Home
last modified time | relevance | path

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

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DBackNavigationControllerTests.java136 final Task topTask = createTopTaskWithActivity(); in noBackWhenMoveTaskToBack() local
137 withSystemCallback(topTask); in noBackWhenMoveTaskToBack()
139 topTask.setVisibleRequested(false); in noBackWhenMoveTaskToBack()
150 final Task topTask = createTopTaskWithActivity(); in backTypeCrossTaskWhenBackToPreviousTask() local
151 withSystemCallback(topTask); in backTypeCrossTaskWhenBackToPreviousTask()
163 final ActivityRecord topActivity = topTask.getTopMostActivity(); in backTypeCrossTaskWhenBackToPreviousTask()
478 final Task topTask = createTopTaskWithActivity(); in preparesForBackToHome() local
479 withSystemCallback(topTask); in preparesForBackToHome()
488 final WindowState window = topTask.getTopVisibleAppMainWindow(); in preparesForBackToHome()
DTransitionTests.java471 final Task topTask = createTask(mDisplayContent); in testCreateInfo_PromoteSimilarClose() local
474 final ActivityRecord hiding = createActivityRecord(topTask); in testCreateInfo_PromoteSimilarClose()
475 final ActivityRecord closing = createActivityRecord(topTask); in testCreateInfo_PromoteSimilarClose()
477 changes.put(topTask, new Transition.ChangeInfo(topTask, true /* vis */, false /* exChg */)); in testCreateInfo_PromoteSimilarClose()
484 fillChangeMap(changes, topTask); in testCreateInfo_PromoteSimilarClose()
497 assertTrue(Transition.containsChangeFor(topTask, targets)); in testCreateInfo_PromoteSimilarClose()
506 final Task topTask = createTask(mDisplayContent); in testCreateInfo_PromoteSimilarOpen() local
508 final ActivityRecord showing = createActivityRecord(topTask); in testCreateInfo_PromoteSimilarOpen()
509 final ActivityRecord opening = createActivityRecord(topTask); in testCreateInfo_PromoteSimilarOpen()
512 changes.put(topTask, in testCreateInfo_PromoteSimilarOpen()
[all …]
DTaskFragmentTest.java322 final Task topTask = createTask(mDisplayContent); in testMoveTaskToFront_supportsEnterPipOnTaskSwitchForAdjacentTaskFragment() local
324 final TaskFragment primaryTf = createTaskFragmentWithActivity(topTask); in testMoveTaskToFront_supportsEnterPipOnTaskSwitchForAdjacentTaskFragment()
325 final TaskFragment secondaryTf = createTaskFragmentWithActivity(topTask); in testMoveTaskToFront_supportsEnterPipOnTaskSwitchForAdjacentTaskFragment()
335 assertEquals(topTask, bottomTask.getDisplayArea().getTopRootTask()); in testMoveTaskToFront_supportsEnterPipOnTaskSwitchForAdjacentTaskFragment()
DActivityStarterTests.java921 final Task topTask = new TaskBuilder(mSupervisor).setParentTask(topStack).build(); in testBringTaskToFrontOnSecondaryDisplay() local
922 new ActivityBuilder(mAtm).setTask(topTask).build(); in testBringTaskToFrontOnSecondaryDisplay()
/frameworks/base/services/core/java/com/android/server/wm/
DRecentTasks.java255 final Task topTask = stack != null ? stack.getTopMostTask() : null;
259 resetFreezeTaskListReordering(topTask);
337 void resetFreezeTaskListReordering(Task topTask) { in resetFreezeTaskListReordering() argument
347 if (topTask != null) { in resetFreezeTaskListReordering()
348 mTasks.remove(topTask); in resetFreezeTaskListReordering()
349 mTasks.add(0, topTask); in resetFreezeTaskListReordering()
368 final Task topTask = focusedStack != null ? focusedStack.getTopMostTask() : null; in resetFreezeTaskListReorderingOnTimeout() local
369 final Task reorderToEndTask = topTask != null && topTask.hasChild() ? topTask : null; in resetFreezeTaskListReorderingOnTimeout()
DTask.java1356 final Task topTask = getTopMostTask(); in getBaseIntent()
1357 return (topTask != this && topTask != null) ? topTask.getBaseIntent() : null; in getBaseIntent()
3422 final Task topTask = top != null ? top.getTask() : this;
3423 info.resizeMode = topTask.mResizeMode;
3424 info.topActivityType = topTask.getActivityType();
3425 info.displayCutoutInsets = topTask.getDisplayCutoutInsets();
3573 final Task topTask = getTopMostTask();
3574 if (topTask == null) return null;
3575 return getPictureInPictureParams(topTask.getTopMostActivity());
4688 final Task topTask = getTopMostTask();
[all …]
DRootWindowContainer.java2457 final Task topTask = getTopDisplayFocusedRootTask(); in ensureVisibilityOnVisibleActivityDiedOrCrashed() local
2458 if (topTask != null && topTask.topRunningActivity(true /* focusableOnly */) == null) { in ensureVisibilityOnVisibleActivityDiedOrCrashed()
2460 topTask.adjustFocusToNextFocusableTask(reason); in ensureVisibilityOnVisibleActivityDiedOrCrashed()
DActivityStarter.java2836 final Task topTask = curTop != null ? curTop.getTask() : null; in setTargetRootTaskIfNeeded() local
2837 differentTopTask = topTask != intentTask in setTargetRootTaskIfNeeded()
2838 || (focusRootTask != null && topTask != focusRootTask.getTopMostTask()) in setTargetRootTaskIfNeeded()
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/sensors/face/aidl/
DFaceAuthenticationClientTest.java269 final ActivityManager.RunningTaskInfo topTask = new ActivityManager.RunningTaskInfo(); in cancelsAuthWhenNotInForeground() local
270 topTask.topActivity = new ComponentName("other", "thing"); in cancelsAuthWhenNotInForeground()
271 when(mActivityTaskManager.getTasks(anyInt())).thenReturn(List.of(topTask)); in cancelsAuthWhenNotInForeground()
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/sensors/fingerprint/aidl/
DFingerprintAuthenticationClientTest.java593 final ActivityManager.RunningTaskInfo topTask = new ActivityManager.RunningTaskInfo(); in cancelsAuthWhenNotInForeground() local
594 topTask.topActivity = new ComponentName("other", "thing"); in cancelsAuthWhenNotInForeground()
595 when(mActivityTaskManager.getTasks(anyInt())).thenReturn(List.of(topTask)); in cancelsAuthWhenNotInForeground()