Home
last modified time | relevance | path

Searched refs:newTask (Results 1 – 11 of 11) sorted by relevance

/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/model/
DAddWorkspaceItemsTaskTest.java73 private AddWorkspaceItemsTask newTask(ItemInfo... items) { in newTask() method in AddWorkspaceItemsTaskTest
89 int[] spaceFound = newTask().findSpaceForItem( in testFindSpaceForItem_prefers_second()
96 spaceFound = newTask().findSpaceForItem( in testFindSpaceForItem_prefers_second()
109 int[] spaceFound = newTask().findSpaceForItem( in testFindSpaceForItem_adds_new_screen()
124 assertTrue(mModelHelper.executeTaskForTest(newTask(info)).isEmpty()); in testAddItem_existing_item_ignored()
141 mModelHelper.executeTaskForTest(newTask(info, info2)).get(0).run(); in testAddItem_some_items_added()
DPackageInstallStateChangedTaskTest.java36 private PackageInstallStateChangedTask newTask(String pkg, int progress) { in newTask() method in PackageInstallStateChangedTaskTest
45 mModelHelper.executeTaskForTest(newTask("app1", 30)); in testSessionUpdate_ignore_installed()
53 mModelHelper.executeTaskForTest(newTask("app3", 30)); in testSessionUpdate_shortcuts_updated()
60 mModelHelper.executeTaskForTest(newTask("app4", 30)); in testSessionUpdate_widgets_updated()
DCacheDataUpdatedTaskTest.java89 private CacheDataUpdatedTask newTask(int op, String... pkg) { in newTask() method in CacheDataUpdatedTaskTest
101 mModelHelper.executeTaskForTest(newTask(CacheDataUpdatedTask.OP_CACHE_UPDATE, "app1")); in testCacheUpdate_update_apps()
120 mModelHelper.executeTaskForTest(newTask(CacheDataUpdatedTask.OP_SESSION_UPDATE, "app1")); in testSessionUpdate_ignores_normal_apps()
128 mModelHelper.executeTaskForTest(newTask(CacheDataUpdatedTask.OP_SESSION_UPDATE, "app3")); in testSessionUpdate_updates_pending_apps()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/
DSearchFeatureProviderImpl.java65 tasks.add(DatabaseResultTask.newTask(context, getSiteMapManager(), cleanQuery)); in getSearchQueryTasks()
66 tasks.add(InstalledAppResultTask.newTask(context, getSiteMapManager(), cleanQuery)); in getSearchQueryTasks()
67 tasks.add(AccessibilityServiceResultTask.newTask(context, getSiteMapManager(), cleanQuery)); in getSearchQueryTasks()
68 tasks.add(InputDeviceResultTask.newTask(context, getSiteMapManager(), cleanQuery)); in getSearchQueryTasks()
/packages/services/Mtp/src/com/android/mtp/
DDocumentLoader.java133 final LoaderTask newTask = new LoaderTask( in getNextTaskOrReleaseBackgroundThread() local
135 newTask.loadObjectHandles(); in getNextTaskOrReleaseBackgroundThread()
136 mTaskList.addFirst(newTask); in getNextTaskOrReleaseBackgroundThread()
137 return newTask; in getNextTaskOrReleaseBackgroundThread()
/packages/apps/Car/SettingsIntelligence/src/com/android/settings/intelligence/search/car/
DCarSearchFeatureProviderImpl.java66 tasks.add(DatabaseResultTask.newTask(context, getSiteMapManager(), cleanQuery)); in getSearchQueryTasks()
67 tasks.add(InstalledAppResultTask.newTask(context, getSiteMapManager(), cleanQuery)); in getSearchQueryTasks()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/query/
DInstalledAppResultTask.java50 public static SearchQueryTask newTask(Context context, SiteMapManager siteMapManager, in newTask() method in InstalledAppResultTask
DAccessibilityServiceResultTask.java52 public static SearchQueryTask newTask(Context context, SiteMapManager manager, in newTask() method in AccessibilityServiceResultTask
DInputDeviceResultTask.java62 public static SearchQueryTask newTask(Context context, SiteMapManager manager, in newTask() method in InputDeviceResultTask
DDatabaseResultTask.java100 public static SearchQueryTask newTask(Context context, SiteMapManager siteMapManager, in newTask() method in DatabaseResultTask
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/
DAbstractLauncherUiTest.java501 private static void startIntent(Intent intent, BySelector selector, boolean newTask) { in startIntent() argument
503 if (newTask) { in startIntent()