/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/data/ |
D | DataTestUtil.java | 25 public static boolean isEqualTask(FederatedTrainingTask task1, FederatedTrainingTask task2) { in isEqualTask() argument 26 assertThat(task1.jobId()).isEqualTo(task2.jobId()); in isEqualTask() 27 assertThat(task1.appPackageName()).isEqualTo(task2.appPackageName()); in isEqualTask() 28 assertThat(task1.populationName()).isEqualTo(task2.populationName()); in isEqualTask() 29 assertThat(task1.constraints()).isEqualTo(task2.constraints()); in isEqualTask() 30 assertThat(task1.intervalOptions()).isEqualTo(task2.intervalOptions()); in isEqualTask() 31 assertThat(task1.creationTime()).isEqualTo(task2.creationTime()); in isEqualTask() 32 assertThat(task1.lastScheduledTime()).isEqualTo(task2.lastScheduledTime()); in isEqualTask() 33 assertThat(task1.lastRunStartTime()).isEqualTo(task2.lastRunStartTime()); in isEqualTask() 34 assertThat(task1.lastRunEndTime()).isEqualTo(task2.lastRunEndTime()); in isEqualTask() [all …]
|
D | FederatedTrainingTaskTest.java | 126 FederatedTrainingTask task1 = createFederatedTrainingTaskWithAllFields(); in queryWithJobId() local 127 task1.addToDatabase(mDatabase); in queryWithJobId() 138 assertThat(DataTestUtil.isEqualTask(trainingTaskList.get(0), task1)).isTrue(); in queryWithJobId()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/ |
D | GroupTask.java | 36 public final Task task1; field in GroupTask 54 task1 = t1; in GroupTask() 61 return task1.key.id == taskId || (task2 != null && task2.key.id == taskId); in containsTask() 73 return Collections.singletonList(task1); in getTasks() 75 return Arrays.asList(task1, task2); in getTasks() 84 new Task(task1), in copy() 91 return "type=" + taskViewType + " task1=" + task1 + " task2=" + task2; in toString()
|
D | SplitSelectStateController.java | 265 lastActiveTasks[0] = groupTask.task1; in findLastActiveTasksAndRunCallback() 278 Task task1 = groupTask.task1; in findLastActiveTasksAndRunCallback() 280 if (isInstanceOfComponent(task1, key) in findLastActiveTasksAndRunCallback() 281 && !Arrays.asList(lastActiveTasks).contains(task1)) { in findLastActiveTasksAndRunCallback() 282 lastActiveTask = task1; in findLastActiveTasksAndRunCallback() 321 return ((isInstanceOfComponent(groupTask.task1, componentKey1) in isInstanceOfAppPair() 324 (isInstanceOfComponent(groupTask.task1, componentKey2) in isInstanceOfAppPair()
|
D | AppPairsController.java | 381 int task1 = lastActiveTasksOfAppPair.get(0); in handleAppPairLaunchInApp() 387 task1 == runningTaskId1 || task1 == runningTaskId2 in handleAppPairLaunchInApp() 393 task1 == runningTaskId2 || task2 == runningTaskId2 in handleAppPairLaunchInApp()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/ |
D | KeyboardQuickSwitchTaskView.java | 133 @NonNull Task task1, in setThumbnails() 137 applyThumbnail(mThumbnailView1, task1, thumbnailUpdateFunction); in setThumbnails() 141 applyIcon(mIcon1, task1); in setThumbnails() 144 ? task1.titleDescription in setThumbnails() 147 task1.titleDescription, in setThumbnails() 151 iconUpdateFunction.updateIconInBackground(task1, t -> { in setThumbnails() 152 applyIcon(mIcon1, task1); in setThumbnails() 156 setContentDescription(task1.titleDescription); in setThumbnails() 165 task1.titleDescription, in setThumbnails()
|
D | KeyboardQuickSwitchController.java | 219 Task task1 = task.task1; in dumpLogs() local 221 ComponentName cn1 = task1.getTopComponent(); in dumpLogs() 223 pw.println(prefix + "\t\tt1: (id=" + task1.key.id in dumpLogs() 266 return runningTaskId == task.task1.key.id in isTaskRunning()
|
D | KeyboardQuickSwitchViewController.java | 170 .showDesktopApp(task.task1.key.id)); in launchTaskAt() 178 task.task1.key, activityOptions); in launchTaskAt()
|
D | KeyboardQuickSwitchView.java | 215 groupTask.task1, in applyLoadPlan()
|
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/wm/taskview/ |
D | RootTaskMediatorTest.java | 182 ActivityManager.RunningTaskInfo task1 = createTask(/* taskId= */ 1); in onTaskInfoChanged_multipleExisting_taskVisible_movesToFrontOfStack() local 183 mMediator.onTaskAppeared(task1, null); in onTaskInfoChanged_multipleExisting_taskVisible_movesToFrontOfStack() 187 mMediator.onTaskInfoChanged(task1); in onTaskInfoChanged_multipleExisting_taskVisible_movesToFrontOfStack() 189 assertThat(mMediator.getTaskStack()).containsExactly(task1, task2); in onTaskInfoChanged_multipleExisting_taskVisible_movesToFrontOfStack() 190 verify(mTaskViewClientPart).onTaskInfoChanged(task1); in onTaskInfoChanged_multipleExisting_taskVisible_movesToFrontOfStack() 229 ActivityManager.RunningTaskInfo task1 = createTask(/* taskId= */ 1); in onTaskVanished_multipleExistingTasks_removesFromTaskStack() local 230 mMediator.onTaskAppeared(task1, null); in onTaskVanished_multipleExistingTasks_removesFromTaskStack() 234 mMediator.onTaskVanished(task1); in onTaskVanished_multipleExistingTasks_removesFromTaskStack() 237 verify(mTaskViewClientPart).onTaskVanished(task1); in onTaskVanished_multipleExistingTasks_removesFromTaskStack()
|
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/ |
D | RecentTasksListTest.java | 84 assertNull(taskList.get(0).task1.taskDescription.getLabel()); in loadTasksInBackground_onlyKeys_noValidTaskDescription() 91 ActivityManager.RecentTaskInfo task1 = new ActivityManager.RecentTaskInfo(); in loadTasksInBackground_moreThanKeys_hasValidTaskDescription() local 92 task1.taskDescription = new ActivityManager.TaskDescription(taskDescription); in loadTasksInBackground_moreThanKeys_hasValidTaskDescription() 95 GroupedRecentTaskInfo recentTaskInfos = GroupedRecentTaskInfo.forSplitTasks(task1, task2, in loadTasksInBackground_moreThanKeys_hasValidTaskDescription() 104 assertEquals(taskDescription, taskList.get(0).task1.taskDescription.getLabel()); in loadTasksInBackground_moreThanKeys_hasValidTaskDescription()
|
D | RecentsModelTest.java | 115 expectedGroupTask.task1); in preloadOnHighResolutionEnabled() 164 Task task1 = Task.from(taskKey1, taskInfo1, false); in getTaskResult() local 170 allTasks.add(new GroupTask(task1, task2, null)); in getTaskResult()
|
/packages/apps/Launcher3/quickstep/tests/multivalentTests/src/com/android/quickstep/util/ |
D | SplitSelectStateControllerTest.kt | 172 assertEquals(it[0], groupTask1.task1) in activeTasks_singleMatchingTask() 269 assertEquals(it[0], groupTask1.task1) in activeTasks_findTaskAsNonPrimaryUser() 322 assertEquals(it[0], groupTask1.task1) in activeTasks_multipleMatchMostRecentTask() 484 assertEquals(it[0], groupTask1.task1) in activeTasks_multipleSearchShouldFindDifferentInstancesOfSameTask() 547 assertEquals("Found wrong task", it[0], groupTask2.task1) in activeTasks_multipleSearchShouldFindExactPairMatch() 630 val task1 = Task() in generateGroupTask() constant 636 task1.key = Task.TaskKey(taskInfo) in generateGroupTask() 646 task1, in generateGroupTask() 659 val task1 = Task() in generateGroupTask() constant 667 task1.key = Task.TaskKey(taskInfo) in generateGroupTask() [all …]
|
D | TaskKeyByLastActiveTimeCacheTest.java | 203 ThumbnailData task1 = new ThumbnailData(); in removeByLastActiveTimeWhenOverMaxSize() local 204 cache.put(key1, task1); in removeByLastActiveTimeWhenOverMaxSize() 218 assertEquals(task1, cache.getAndInvalidateIfModified(key1)); in removeByLastActiveTimeWhenOverMaxSize()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/ |
D | RecentTasksList.java | 315 Task task1 = loadKeysOnly in loadTasksInBackground() local 319 task1.setLastSnapshotData(taskInfo1); in loadTasksInBackground() 346 allTasks.add(new GroupTask(task1, task2, launcherSplitBounds)); in loadTasksInBackground() 378 Task task1 = task.task1; in dump() local 380 ComponentName cn1 = task1.getTopComponent(); in dump() 382 writer.println(prefix + " t1: (id=" + task1.key.id in dump()
|
D | RecentsFilterState.java | 127 || groupTask.task1.key.getPackageName().equals(packageName); in getFilter() 139 final String firstTaskPkgName = groupTask.task1.key.getPackageName(); in getInstanceCountMap()
|
D | RecentsModel.java | 226 mThumbnailCache.updateThumbnailInCache(group.task1, /* lowResolution= */ true); in onTaskStackChangedBackground() 344 mThumbnailCache.updateThumbnailInCache(group.task1, /* lowResolution= */ false); in preloadCacheIfNeeded()
|
D | QuickstepTestInformationHandler.java | 49 group.task1.key.baseIntent.getComponent().flattenToString()); in call()
|
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/scheduling/ |
D | FederatedComputeLearningJobScheduleOrchestratorTest.java | 89 FederatedTrainingTask task1 = in checkAndScheduleTest() local 121 mTrainingTaskDao.updateOrInsertFederatedTrainingTask(task1); in checkAndScheduleTest() 134 JobInfo fetchedJobInfo1 = jobScheduler.getPendingJob(task1.jobId()); in checkAndScheduleTest() 136 assertEquals(task1.jobId(), fetchedJobInfo1.getId()); in checkAndScheduleTest()
|
/packages/services/Car/cpp/evs/manager/aidl/tests/unit/src/ |
D | EvsEnumeratorHidlUnitTest_1_0.cpp | 235 std::packaged_task<bool()> task1( in TEST_F() local 241 std::future<bool> result1 = task1.get_future(); in TEST_F() 244 std::thread t1(std::move(task1)); in TEST_F() 276 std::packaged_task<bool()> task1( in TEST_F() local 285 std::future<bool> result1 = task1.get_future(); in TEST_F() 288 std::thread t1(std::move(task1)); in TEST_F()
|
D | EvsEnumeratorUnitTest.cpp | 347 std::packaged_task<bool()> task1(std::bind(&EvsEnumeratorUnitTest::VerifyCameraStream, this, in TEST_F() local 353 std::future<bool> result1 = task1.get_future(); in TEST_F() 356 std::thread t1(std::move(task1)); in TEST_F() 389 std::packaged_task<bool()> task1(std::bind(&EvsEnumeratorUnitTest::VerifyCameraStream, this, in TEST_F() local 398 std::future<bool> result1 = task1.get_future(); in TEST_F() 401 std::thread t1(std::move(task1)); in TEST_F()
|
D | EvsEnumeratorHidlUnitTest.cpp | 420 std::packaged_task<bool()> task1(std::bind(&EvsEnumeratorHidlUnitTest::VerifyCameraStream, in TEST_F() local 426 std::future<bool> result1 = task1.get_future(); in TEST_F() 429 std::thread t1(std::move(task1)); in TEST_F() 461 std::packaged_task<bool()> task1(std::bind(&EvsEnumeratorHidlUnitTest::VerifyCameraStream, in TEST_F() local 470 std::future<bool> result1 = task1.get_future(); in TEST_F() 473 std::thread t1(std::move(task1)); in TEST_F()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/ |
D | QuickstepLauncher.java | 1371 Task task1 = groupTask.task1; in launchSplitTasks() local 1376 task1.key.id, in launchSplitTasks()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/ |
D | RecentsView.java | 1825 groupTask.mSplitBounds.leftTopTaskId == groupTask.task1.key.id; in applyLoadPlan() 1826 Task leftTopTask = firstTaskIsLeftTopTask ? groupTask.task1 : groupTask.task2; in applyLoadPlan() 1827 Task rightBottomTask = firstTaskIsLeftTopTask ? groupTask.task2 : groupTask.task1; in applyLoadPlan() 1835 Task task = groupTask.task1.key.id == stagedTaskIdToBeRemoved ? groupTask.task2 in applyLoadPlan() 1836 : groupTask.task1; in applyLoadPlan()
|