Home
last modified time | relevance | path

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

/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/scheduling/
DFederatedComputeJobManager.java186 FederatedTrainingTask newTask; in onTrainerStartCalled() local
225 newTask = newTaskBuilder.build(); in onTrainerStartCalled()
285 newTask = newTaskBuilder.build(); in onTrainerStartCalled()
292 boolean scheduleResult = mJobSchedulerHelper.scheduleTask(mContext, newTask); in onTrainerStartCalled()
297 newTask.jobId()); in onTrainerStartCalled()
305 mFederatedTrainingTaskDao.updateOrInsertFederatedTrainingTask(newTask); in onTrainerStartCalled()
310 newTask.jobId()); in onTrainerStartCalled()
316 LogUtil.i(TAG, " JobScheduler cancel the task %d", newTask.jobId()); in onTrainerStartCalled()
374 FederatedTrainingTask newTask = existingTask.toBuilder().lastRunStartTime(nowMs).build();
375 mFederatedTrainingTaskDao.updateOrInsertFederatedTrainingTask(newTask);
[all …]
DJobSchedulerHelper.java43 public boolean scheduleTask(Context context, FederatedTrainingTask newTask) { in scheduleTask() argument
44 JobInfo jobInfo = convertToJobInfo(context, newTask); in scheduleTask()
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/
DPackageInstallStateChangedTaskTest.java72 private PackageInstallStateChangedTask newTask(String pkg, int progress) { in newTask() method in PackageInstallStateChangedTaskTest
83 mModelHelper.getModel().enqueueModelUpdateTask(newTask(TEST_PACKAGE, 30)); in testSessionUpdate_ignore_installed()
94 mModelHelper.getModel().enqueueModelUpdateTask(newTask(PENDING_APP_1, 30)); in testSessionUpdate_shortcuts_updated()
104 mModelHelper.getModel().enqueueModelUpdateTask(newTask(PENDING_APP_2, 30)); in testSessionUpdate_widgets_updated()
DCacheDataUpdatedTaskTest.java93 private CacheDataUpdatedTask newTask(int op, String... pkg) { in newTask() method in CacheDataUpdatedTaskTest
106 newTask(CacheDataUpdatedTask.OP_CACHE_UPDATE, TEST_PACKAGE)); in testCacheUpdate_update_apps()
121 newTask(CacheDataUpdatedTask.OP_SESSION_UPDATE, TEST_PACKAGE)); in testSessionUpdate_ignores_normal_apps()
140 newTask(CacheDataUpdatedTask.OP_SESSION_UPDATE, PENDING_APP_1)); in testSessionUpdate_updates_pending_apps()
DAddWorkspaceItemsTaskTest.kt186 val task = newTask(*itemsToAdd) in testAddItems()
204 private fun newTask(vararg items: ItemInfo): AddWorkspaceItemsTask = in newTask() method
/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.java53 public static SearchQueryTask newTask(Context context, SiteMapManager siteMapManager, in newTask() method in InstalledAppResultTask
DAccessibilityServiceResultTask.java54 public static SearchQueryTask newTask(Context context, SiteMapManager manager, in newTask() method in AccessibilityServiceResultTask
DInputDeviceResultTask.java64 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.java609 private static void startIntent(Intent intent, BySelector selector, boolean newTask) { in startIntent() argument
611 if (newTask) { in startIntent()