diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2016-09-09 15:47:55 -0700 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2016-11-09 15:50:08 -0800 |
commit | f0ba8b7ca1dc8fd53451d3d16e9f4fc306cddcd4 (patch) | |
tree | 821627bf354c858215e48c58cc5122a94ebd9c08 /tests/res/raw | |
parent | 0d547bfd570e2e5d6ced55e24305d070fe2b78e2 (diff) | |
download | android_packages_apps_Trebuchet-f0ba8b7ca1dc8fd53451d3d16e9f4fc306cddcd4.tar.gz android_packages_apps_Trebuchet-f0ba8b7ca1dc8fd53451d3d16e9f4fc306cddcd4.tar.bz2 android_packages_apps_Trebuchet-f0ba8b7ca1dc8fd53451d3d16e9f4fc306cddcd4.zip |
Moving various runnables in LauncherModel to individual tasks
> Adding tests for some of the runnable
Change-Id: I1a315d38878857df3371f0e69d622a41fc3b081a
Diffstat (limited to 'tests/res/raw')
-rw-r--r-- | tests/res/raw/cache_data_updated_task_data.txt | 28 | ||||
-rw-r--r-- | tests/res/raw/package_install_state_change_task_data.txt | 24 |
2 files changed, 52 insertions, 0 deletions
diff --git a/tests/res/raw/cache_data_updated_task_data.txt b/tests/res/raw/cache_data_updated_task_data.txt new file mode 100644 index 000000000..9095476f6 --- /dev/null +++ b/tests/res/raw/cache_data_updated_task_data.txt @@ -0,0 +1,28 @@ +# Model data used by CacheDataUpdatedTaskTest + +classMap s com.android.launcher3.ShortcutInfo + +# Items for the BgDataModel + +# App shortcuts +bgItem s itemType=0 title=app1-class1 intent=component=app1/class1 id=1 +bgItem s itemType=0 title=app1-class2 intent=component=app1/class2 id=2 +bgItem s itemType=0 title=app2-class1 intent=component=app2/class1 id=3 +bgItem s itemType=0 title=app2-class2 intent=component=app2/class2 id=4 + +# Auto install app shortcut +bgItem s itemType=0 status=2 title=app3-class1 intent=component=app3/class1 id=5 +bgItem s itemType=0 status=2 title=app3-class2 intent=component=app3/class2 id=6 + +# Custom shortcuts +bgItem s itemType=1 title=app1-shrt intent=component=app1/class3 id=7 +bgItem s itemType=1 title=app4-shrt intent=component=app4/class1 id=8 + +# Restored custom shortcut +bgItem s itemType=1 status=1 title=app3-shrt intent=component=app3/class3 id=9 +bgItem s itemType=1 status=1 title=app5-shrt intent=component=app5/class1 id=10 + +allApps componentName=app1/class1 +allApps componentName=app1/class2 +allApps componentName=app2/class1 +allApps componentName=app2/class2
\ No newline at end of file diff --git a/tests/res/raw/package_install_state_change_task_data.txt b/tests/res/raw/package_install_state_change_task_data.txt new file mode 100644 index 000000000..84f9c161e --- /dev/null +++ b/tests/res/raw/package_install_state_change_task_data.txt @@ -0,0 +1,24 @@ +# Model data used by PackageInstallStateChangeTaskTest + +classMap s com.android.launcher3.ShortcutInfo +classMap w com.android.launcher3.LauncherAppWidgetInfo + +# Items for the BgDataModel + +# App shortcuts +bgItem s itemType=0 title=app1-class1 intent=component=app1/class1 id=1 +bgItem s itemType=0 title=app1-class2 intent=component=app1/class2 id=2 +bgItem s itemType=0 title=app2-class1 intent=component=app2/class1 id=3 +bgItem s itemType=0 title=app2-class2 intent=component=app2/class2 id=4 + +# Promise icons for app3 +bgItem s itemType=0 status=2 title=app3-class1 intent=component=app3/class1 id=5 +bgItem s itemType=0 status=2 title=app3-class2 intent=component=app3/class2 id=6 +bgItem s itemType=1 status=1 title=app3-shrt intent=component=app3/class3 id=7 + +# Promise icon for app4 +bgItem s itemType=1 status=1 title=app4-shrt intent=component=app4/class1 id=8 + +# Widget +bgItem w providerName=app4/provider1 id=9 +bgItem w providerName=app5/provider1 id=10
\ No newline at end of file |