Home
last modified time | relevance | path

Searched refs:topTask (Results 1 – 9 of 9) sorted by relevance

/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/sensors/face/aidl/
H A DFaceAuthenticationClientTest.java204 final ActivityManager.RunningTaskInfo topTask = new ActivityManager.RunningTaskInfo(); in cancelsAuthWhenNotInForeground() local
205 topTask.topActivity = new ComponentName("other", "thing"); in cancelsAuthWhenNotInForeground()
206 when(mActivityTaskManager.getTasks(anyInt())).thenReturn(List.of(topTask)); in cancelsAuthWhenNotInForeground()
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DBackNavigationControllerTests.java123 final Task topTask = createTopTaskWithActivity(); in backTypeCrossTaskWhenBackToPreviousTask() local
124 withSystemCallback(topTask); in backTypeCrossTaskWhenBackToPreviousTask()
136 topTask.forAllWindows(w -> { in backTypeCrossTaskWhenBackToPreviousTask()
270 final Task topTask = createTopTaskWithActivity(); in preparesForBackToHome() local
271 withSystemCallback(topTask); in preparesForBackToHome()
H A DTaskFragmentTest.java279 final Task topTask = createTask(mDisplayContent); in testMoveTaskToFront_supportsEnterPipOnTaskSwitchForAdjacentTaskFragment() local
281 final TaskFragment primaryTf = createTaskFragmentWithActivity(topTask); in testMoveTaskToFront_supportsEnterPipOnTaskSwitchForAdjacentTaskFragment()
282 final TaskFragment secondaryTf = createTaskFragmentWithActivity(topTask); in testMoveTaskToFront_supportsEnterPipOnTaskSwitchForAdjacentTaskFragment()
292 assertEquals(topTask, bottomTask.getDisplayArea().getTopRootTask()); in testMoveTaskToFront_supportsEnterPipOnTaskSwitchForAdjacentTaskFragment()
H A DTransitionTests.java421 final Task topTask = createTask(mDisplayContent); in testCreateInfo_PromoteSimilarClose() local
424 final ActivityRecord hiding = createActivityRecord(topTask); in testCreateInfo_PromoteSimilarClose()
425 final ActivityRecord closing = createActivityRecord(topTask); in testCreateInfo_PromoteSimilarClose()
427 changes.put(topTask, new Transition.ChangeInfo(topTask, true /* vis */, false /* exChg */)); in testCreateInfo_PromoteSimilarClose()
434 fillChangeMap(changes, topTask); in testCreateInfo_PromoteSimilarClose()
447 assertTrue(Transition.containsChangeFor(topTask, targets)); in testCreateInfo_PromoteSimilarClose()
456 final Task topTask = createTask(mDisplayContent); in testCreateInfo_PromoteSimilarOpen() local
458 final ActivityRecord showing = createActivityRecord(topTask); in testCreateInfo_PromoteSimilarOpen()
462 changes.put(topTask, in testCreateInfo_PromoteSimilarOpen()
470 fillChangeMap(changes, topTask); in testCreateInfo_PromoteSimilarOpen()
[all …]
H A DActivityStarterTests.java1221 final Task topTask = new TaskBuilder(mSupervisor).setParentTask(topStack).build(); in testBringTaskToFrontOnSecondaryDisplay() local
1222 new ActivityBuilder(mAtm).setTask(topTask).build(); in testBringTaskToFrontOnSecondaryDisplay()
/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A DRecentTasks.java236 final Task topTask = stack != null ? stack.getTopMostTask() : null;
237 resetFreezeTaskListReordering(topTask);
313 void resetFreezeTaskListReordering(Task topTask) { in resetFreezeTaskListReordering() argument
323 if (topTask != null) { in resetFreezeTaskListReordering()
324 mTasks.remove(topTask); in resetFreezeTaskListReordering()
325 mTasks.add(0, topTask); in resetFreezeTaskListReordering()
344 final Task topTask = focusedStack != null ? focusedStack.getTopMostTask() : null; in resetFreezeTaskListReorderingOnTimeout() local
345 final Task reorderToEndTask = topTask != null && topTask.hasChild() ? topTask : null; in resetFreezeTaskListReorderingOnTimeout()
H A DTask.java1333 final Task topTask = getTopMostTask(); in getBaseIntent()
1334 return (topTask != this && topTask != null) ? topTask.getBaseIntent() : null; in getBaseIntent()
3407 final Task topTask = top != null ? top.getTask() : this;
3408 info.resizeMode = topTask.mResizeMode;
3409 info.topActivityType = topTask.getActivityType();
3535 final Task topTask = getTopMostTask();
3536 if (topTask == null) return null;
4557 final Task topTask = getTopMostTask();
4565 topTask)) {
5225 if (topTask == null) {
[all …]
H A DActivityStarter.java2966 final Task topTask = curTop != null ? curTop.getTask() : null; in setTargetRootTaskIfNeeded() local
2967 differentTopTask = topTask != intentTask in setTargetRootTaskIfNeeded()
2968 || (focusRootTask != null && topTask != focusRootTask.getTopMostTask()) in setTargetRootTaskIfNeeded()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/sensors/fingerprint/aidl/
H A DFingerprintAuthenticationClientTest.java392 final ActivityManager.RunningTaskInfo topTask = new ActivityManager.RunningTaskInfo(); in cancelsAuthWhenNotInForeground() local
393 topTask.topActivity = new ComponentName("other", "thing"); in cancelsAuthWhenNotInForeground()
394 when(mActivityTaskManager.getTasks(anyInt())).thenReturn(List.of(topTask)); in cancelsAuthWhenNotInForeground()