/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/mediaprojection/appselector/ |
D | MediaProjectionAppSelectorControllerTest.kt | 68 taskListProvider.tasks = emptyList() in initNoRecentTasks_bindsEmptyList() 77 taskListProvider.tasks = listOf(createRecentTask(taskId = 1)) in initOneRecentTask_bindsList() 86 val tasks = in <lambda>() constant 93 taskListProvider.tasks = tasks in <lambda>() 102 val tasks = in initMultipleRecentTasksWithoutAppSelectorTask_bindsListInTheSameOrder() constant 108 taskListProvider.tasks = tasks in initMultipleRecentTasksWithoutAppSelectorTask_bindsListInTheSameOrder() 124 val tasks = in initRecentTasksWithAppSelectorTasks_removeAppSelector() constant 131 taskListProvider.tasks = tasks in initRecentTasksWithAppSelectorTasks_removeAppSelector() 147 val tasks = in initRecentTasksWithAppSelectorTasks_bindsCallerTasksAtTheEnd() constant 154 taskListProvider.tasks = tasks in initRecentTasksWithAppSelectorTasks_bindsCallerTasksAtTheEnd() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | RunningTasksTest.java | 82 final ArrayList<RunningTaskInfo> tasks = new ArrayList<>(); in testTaskInfo_expectNoExtrasByDefault() local 83 mRunningTasks.getTasks(numFetchTasks, tasks, FLAG_ALLOWED | FLAG_CROSS_USERS, in testTaskInfo_expectNoExtrasByDefault() 85 assertThat(tasks).hasSize(numFetchTasks); in testTaskInfo_expectNoExtrasByDefault() 86 for (int i = 0; i < tasks.size(); i++) { in testTaskInfo_expectNoExtrasByDefault() 87 final Bundle extras = tasks.get(i).baseIntent.getExtras(); in testTaskInfo_expectNoExtrasByDefault() 107 final ArrayList<RunningTaskInfo> tasks = new ArrayList<>(); in testTaskInfo_expectExtrasWithKeepExtraFlag() local 108 mRunningTasks.getTasks(numFetchTasks, tasks, in testTaskInfo_expectExtrasWithKeepExtraFlag() 111 assertThat(tasks).hasSize(numFetchTasks); in testTaskInfo_expectExtrasWithKeepExtraFlag() 112 for (int i = 0; i < tasks.size(); i++) { in testTaskInfo_expectExtrasWithKeepExtraFlag() 113 final Bundle extras = tasks.get(i).baseIntent.getExtras(); in testTaskInfo_expectExtrasWithKeepExtraFlag() [all …]
|
/frameworks/opt/setupwizard/tools/gradle/ |
D | dist-unit-tests.gradle | 17 def task = tasks.findByName('test' + variant.name.capitalize()) 21 task.ignoreFailures = taskGraph.hasTask(tasks.dist) 27 def zipTask = tasks.create("zipResultsOf${task.name.capitalize()}", Zip) { 36 tasks.dist.mustRunAfter zipTask 57 def coverageTask = tasks.findByName('coverage') ?: tasks.create('coverage') { 64 def testTask = tasks.findByName(testTaskName) 68 def jacocoTask = tasks.create("${testTaskName}Coverage", JacocoReport) { 92 def zipTask = tasks.create("zipResultsOf${jacocoTask.name.capitalize()}", Zip) { 101 tasks.dist.mustRunAfter jacocoTask 104 tasks.dist.mustRunAfter zipTask
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/desktopmode/ |
D | DesktopTasksLimiterTest.kt | 227 val tasks = (1..taskLimit).map { setUpFreeformTask() } in addAndGetMinimizeTaskChangesIfNeeded_tasksAboveLimit_backTaskMinimized() constant 236 assertThat(minimizedTaskId).isEqualTo(tasks.first()) in addAndGetMinimizeTaskChangesIfNeeded_tasksAboveLimit_backTaskMinimized() 245 val tasks = (1..taskLimit).map { setUpFreeformTask() } in addAndGetMinimizeTaskChangesIfNeeded_nonMinimizedTasksWithinLimit_noTaskMinimized() constant 246 desktopTaskRepo.minimizeTask(displayId = DEFAULT_DISPLAY, taskId = tasks[0].taskId) in addAndGetMinimizeTaskChangesIfNeeded_nonMinimizedTasksWithinLimit_noTaskMinimized() 262 val tasks = (1..taskLimit).map { setUpFreeformTask() } in getTaskToMinimizeIfNeeded_tasksWithinLimit_returnsNull() constant 265 visibleFreeformTaskIdsOrderedFrontToBack = tasks.map { it.taskId }) in getTaskToMinimizeIfNeeded_tasksWithinLimit_returnsNull() 273 val tasks = (1..taskLimit + 1).map { setUpFreeformTask() } in getTaskToMinimizeIfNeeded_tasksAboveLimit_returnsBackTask() constant 276 visibleFreeformTaskIdsOrderedFrontToBack = tasks.map { it.taskId }) in getTaskToMinimizeIfNeeded_tasksAboveLimit_returnsBackTask() 279 assertThat(minimizedTask).isEqualTo(tasks.last()) in getTaskToMinimizeIfNeeded_tasksAboveLimit_returnsBackTask() 285 val tasks = (1..taskLimit).map { setUpFreeformTask() } in getTaskToMinimizeIfNeeded_withNewTask_tasksAboveLimit_returnsBackTask() constant [all …]
|
D | DesktopModeTaskRepositoryTest.kt | 370 val tasks = repo.getFreeformTasksInZOrder(DEFAULT_DISPLAY) in addOrMoveFreeformTaskToTop_didNotExist_addsToTop() constant 371 assertThat(tasks.size).isEqualTo(3) in addOrMoveFreeformTaskToTop_didNotExist_addsToTop() 372 assertThat(tasks[0]).isEqualTo(7) in addOrMoveFreeformTaskToTop_didNotExist_addsToTop() 373 assertThat(tasks[1]).isEqualTo(6) in addOrMoveFreeformTaskToTop_didNotExist_addsToTop() 374 assertThat(tasks[2]).isEqualTo(5) in addOrMoveFreeformTaskToTop_didNotExist_addsToTop() 385 val tasks = repo.getFreeformTasksInZOrder(DEFAULT_DISPLAY) in addOrMoveFreeformTaskToTop_alreadyExists_movesToTop() constant 386 assertThat(tasks.size).isEqualTo(3) in addOrMoveFreeformTaskToTop_alreadyExists_movesToTop() 387 assertThat(tasks.first()).isEqualTo(6) in addOrMoveFreeformTaskToTop_alreadyExists_movesToTop()
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/ |
D | ActivityManagerKt.kt | 29 val tasks: List<ActivityManager.RunningTaskInfo> = getRunningTasks(1) in isInForeground() constant 30 return tasks.isNotEmpty() && packageName == tasks[0].topActivity?.packageName in isInForeground()
|
D | ActivityManagerWrapper.java | 106 List<ActivityManager.RunningTaskInfo> tasks = in getRunningTask() local 108 if (tasks.isEmpty()) { in getRunningTask() 111 return tasks.get(0); in getRunningTask() 133 List<ActivityManager.RunningTaskInfo> tasks = in getRunningTasks() local 136 return tasks.toArray(new RunningTaskInfo[tasks.size()]); in getRunningTasks()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/appselector/ |
D | MediaProjectionAppSelectorController.kt | 62 val tasks = in <lambda>() constant 68 refreshForegroundTaskThumbnails(tasks) in <lambda>() 70 view.bind(tasks) in <lambda>() 82 private suspend fun refreshForegroundTaskThumbnails(tasks: List<RecentTask>) { in <lambda>() 85 tasks in <lambda>()
|
/frameworks/base/services/core/java/com/android/server/inputmethod/ |
D | AdditionalSubtypeMapRepository.java | 83 final SparseArray<WriteTask> tasks; 89 tasks = mPendingTasks.clone(); 103 final int size = tasks.size(); 106 final int userId = tasks.keyAt(i); 110 result.add(tasks.valueAt(i)); 121 final ArrayList<WriteTask> tasks = fetchNextTasks(); 122 tasks.forEach(task -> AdditionalSubtypeUtils.save(
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/ |
D | ScreenshotPolicyImplTest.kt | 73 tasks = listOf(pipTask, fullScreenWorkProfileTask, launcherTask, emptyTask) in <lambda>() 86 tasks = listOf(fullScreenWorkProfileTask, launcherTask, emptyTask) in <lambda>() 95 val policy = fakeTasksPolicyImpl(mContext, shadeExpanded = false, tasks = listOf()) in <lambda>() 107 tasks = listOf(launcherTask, fullScreenWorkProfileTask, emptyTask) in <lambda>() 117 tasks: List<RootTaskInfo> in fakeTasksPolicyImpl() 127 override suspend fun getAllRootTaskInfosOnDisplay(displayId: Int) = tasks in fakeTasksPolicyImpl()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/recents/ |
D | RecentTasksController.java | 450 List<ActivityManager.RunningTaskInfo> tasks = mActivityTaskManager.getTasks(1, in getTopRunningTask() local 452 return tasks.isEmpty() ? null : tasks.get(0); in getTopRunningTask() 464 List<ActivityManager.RecentTaskInfo> tasks = mActivityTaskManager.getRecentTasks( in findTaskInBackground() local 467 for (int i = 0; i < tasks.size(); i++) { in findTaskInBackground() 468 final ActivityManager.RecentTaskInfo task = tasks.get(i); in findTaskInBackground() 484 List<ActivityManager.RecentTaskInfo> tasks = mActivityTaskManager.getRecentTasks( in findTaskInBackground() local 487 for (int i = 0; i < tasks.size(); i++) { in findTaskInBackground() 488 final ActivityManager.RecentTaskInfo task = tasks.get(i); in findTaskInBackground() 520 List<GroupedRecentTaskInfo> tasks = in getRecentTasks() local 522 executor.execute(() -> callback.accept(tasks)); in getRecentTasks() [all …]
|
/frameworks/base/core/tests/coretests/src/android/window/ |
D | TaskFpsCallbackTest.java | 62 final List<ActivityManager.RunningTaskInfo> tasks = mActivityTaskManager.getTasks(1); in testRegisterAndUnregister() local 63 assertEquals(tasks.size(), 1); in testRegisterAndUnregister() 64 mWindowManager.registerTaskFpsCallback(tasks.get(0).taskId, Runnable::run, callback); in testRegisterAndUnregister()
|
/frameworks/base/core/proto/android/os/ |
D | cpuinfo.proto | 36 optional int32 total = 1; // total number of cpu tasks 37 optional int32 running = 2; // number of running tasks 38 optional int32 sleeping = 3; // number of sleeping tasks 39 optional int32 stopped = 4; // number of stopped tasks 40 optional int32 zombie = 5; // number of zombie tasks 107 repeated Task tasks = 5; field
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/draganddrop/ |
D | DragSession.java | 85 List<ActivityManager.RunningTaskInfo> tasks = in update() local 87 if (!tasks.isEmpty()) { in update() 88 final ActivityManager.RunningTaskInfo task = tasks.get(0); in update()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/util/ |
D | GroupedRecentTaskInfo.java | 76 @NonNull ActivityManager.RecentTaskInfo... tasks) { in forFreeformTasks() 77 return new GroupedRecentTaskInfo(tasks, null, TYPE_FREEFORM); in forFreeformTasks() 80 private GroupedRecentTaskInfo(@NonNull ActivityManager.RecentTaskInfo[] tasks, in GroupedRecentTaskInfo() argument 82 mTasks = tasks; in GroupedRecentTaskInfo()
|
/frameworks/base/core/tests/coretests/src/android/graphics/ |
D | PaintNativeInstanceTest.kt | 135 val tasks = List(5) { PaintTask(paint) } in <lambda>() constant 136 val results = Executors.newCachedThreadPool().invokeAll(tasks) in <lambda>() 155 val tasks = List(5) { PaintTask(paint) } in <lambda>() constant 156 val results = Executors.newCachedThreadPool().invokeAll(tasks) in <lambda>()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | TaskPersister.java | 263 private Task taskIdToTask(int taskId, ArrayList<Task> tasks) { in taskIdToTask() argument 267 for (int taskNdx = tasks.size() - 1; taskNdx >= 0; --taskNdx) { in taskIdToTask() 268 final Task task = tasks.get(taskNdx); in taskIdToTask() 313 final ArrayList<Task> tasks = new ArrayList<>(); in restoreTasksForUserLocked() local 316 return tasks; in restoreTasksForUserLocked() 375 tasks.add(task); in restoreTasksForUserLocked() 406 for (int taskNdx = tasks.size() - 1; taskNdx >= 0; --taskNdx) { in restoreTasksForUserLocked() 407 final Task task = tasks.get(taskNdx); in restoreTasksForUserLocked() 408 task.setPrevAffiliate(taskIdToTask(task.mPrevAffiliateTaskId, tasks)); in restoreTasksForUserLocked() 409 task.setNextAffiliate(taskIdToTask(task.mNextAffiliateTaskId, tasks)); in restoreTasksForUserLocked() [all …]
|
D | TaskSnapshotController.java | 138 void addSkipClosingAppSnapshotTasks(Set<Task> tasks) { in addSkipClosingAppSnapshotTasks() argument 142 for (Task task : tasks) { in addSkipClosingAppSnapshotTasks() 147 void snapshotTasks(ArraySet<Task> tasks) { in snapshotTasks() argument 148 for (int i = tasks.size() - 1; i >= 0; i--) { in snapshotTasks() 149 recordSnapshot(tasks.valueAt(i)); in snapshotTasks()
|
/frameworks/base/packages/SystemUI/animation/ |
D | build.gradle | 23 tasks.lint.enabled = false 24 tasks.withType(JavaCompile) {
|
/frameworks/base/packages/SettingsLib/Spa/ |
D | build.gradle.kts | 20 import org.jetbrains.kotlin.gradle.tasks.KotlinCompile 67 tasks.withType<KotlinCompile> { in <lambda>()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/ |
D | MockScheduledExecutorService.java | 159 public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks) in invokeAll() argument 165 public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks, long timeout, in invokeAll() argument 171 public <T> T invokeAny(Collection<? extends Callable<T>> tasks) in invokeAny() argument 177 public <T> T invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) in invokeAny() argument
|
/frameworks/base/services/tests/servicestests/src/com/android/server/apphibernation/ |
D | HibernationStateDiskStoreTest.java | 206 public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks) in invokeAll() argument 212 public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks, long timeout, in invokeAll() argument 218 public <T> T invokeAny(Collection<? extends Callable<T>> tasks) in invokeAny() argument 224 public <T> T invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) in invokeAny() argument
|
/frameworks/libs/systemui/animationlib/ |
D | build.gradle | 26 tasks.lint.enabled = false 27 tasks.withType(JavaCompile) {
|
/frameworks/native/services/surfaceflinger/ |
D | BackgroundExecutor.cpp | 77 void BackgroundExecutor::sendCallbacks(Callbacks&& tasks) { in sendCallbacks() argument 78 mCallbacksQueue.push(std::move(tasks)); in sendCallbacks()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wallpapers/ |
D | WallpaperLocalColorExtractorTest.java | 247 List<Runnable> tasks = Arrays.asList( in testNewColorExtraction() local 254 Collections.shuffle(tasks); in testNewColorExtraction() 255 tasks.forEach(Runnable::run); in testNewColorExtraction() 283 List<Runnable> tasks = Arrays.asList( in testRemoveColors() local 292 Collections.shuffle(tasks); in testRemoveColors() 293 tasks.forEach(Runnable::run); in testRemoveColors()
|