/cts/tests/framework/base/windowmanager/src/android/server/wm/lifecycle/ |
D | ActivityStarterTests.java | 93 mAmWmState.getAmState().getTopActivityName(0)); in testClearTopNewTaskResetTask() 106 final int taskId = mAmWmState.getAmState().getTaskByActivity(STANDARD_ACTIVITY).getTaskId(); in testLaunchStandardActivity() 107 final int instances = mAmWmState.getAmState().getActivityCountInTask(taskId, null); in testLaunchStandardActivity() 114 mAmWmState.getAmState().getActivityCountInTask(taskId, null)); in testLaunchStandardActivity() 119 mAmWmState.getAmState().getTopActivityName(0)); in testLaunchStandardActivity() 123 mAmWmState.getAmState().getTaskByActivity(SECOND_STANDARD_ACTIVITY).getTaskId()); in testLaunchStandardActivity() 138 final int taskId = mAmWmState.getAmState().getTaskByActivity(STANDARD_ACTIVITY).getTaskId(); in testLaunchSingleTopActivity() 143 final int instances = mAmWmState.getAmState().getActivityCountInTask(taskId, null); in testLaunchSingleTopActivity() 152 mAmWmState.getAmState().getTopActivityName(0)); in testLaunchSingleTopActivity() 156 mAmWmState.getAmState().getTaskByActivity(SINGLE_TOP_ACTIVITY).getTaskId()); in testLaunchSingleTopActivity() [all …]
|
D | ActivityLifecycleFreeformTests.java | 167 mAmWmState.getAmState().containsActivity(getComponentName(SecondActivity.class))); in testLaunchOccludingInFreeform() 227 mAmWmState.getAmState().containsActivity( in testLaunchTranslucentInFreeform()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | MultiDisplayActivityLaunchTests.java | 127 mAmWmState.getAmState().getFrontStackActivityType(newDisplay.mId)); in validateActivityLaunchOnNewDisplay() 203 0, mAmWmState.getAmState().getResumedActivitiesCount()); in testLaunchExternalDisplayActivityWhilePrimaryOff() 250 final int externalFrontStackId = mAmWmState.getAmState() in testMoveNonResizeableActivityToSecondaryDisplay() 265 mAmWmState.getAmState().getDisplayByActivity(NON_RESIZEABLE_ACTIVITY)); in testMoveNonResizeableActivityToSecondaryDisplay() 318 final int newFrontStackId = mAmWmState.getAmState().getFocusedStackId(); in testLaunchNonResizeableActivityFromSecondaryDisplayNewTask() 320 mAmWmState.getAmState().getStackById(newFrontStackId); in testLaunchNonResizeableActivityFromSecondaryDisplayNewTask() 527 newDisplay.mId, mAmWmState.getAmState().getDisplayByActivity(SECOND_ACTIVITY)); in testLaunchPendingActivityOnSecondaryDisplay() 549 final int stackNum = mAmWmState.getAmState().getDisplay(DEFAULT_DISPLAY) in testMoveToDisplayOnLaunch() 551 final int stackNumOnSecondary = mAmWmState.getAmState() in testMoveToDisplayOnLaunch() 570 final int stackNumFinal = mAmWmState.getAmState().getDisplay(DEFAULT_DISPLAY) in testMoveToDisplayOnLaunch() [all …]
|
D | SplitScreenTests.java | 85 mIsHomeRecentsComponent = mAmWmState.getAmState().isHomeRecentsComponent(); in setUp() 197 int taskNumberInitial = mAmWmState.getAmState().getStandardTaskCountByWindowingMode( in testLaunchToSideAndBringToFront() 204 int taskNumberCovered = mAmWmState.getAmState().getStandardTaskCountByWindowingMode( in testLaunchToSideAndBringToFront() 217 int taskNumberFinal = mAmWmState.getAmState().getStandardTaskCountByWindowingMode( in testLaunchToSideAndBringToFront() 232 int taskNumberInitial = mAmWmState.getAmState().getStandardTaskCountByWindowingMode( in testLaunchToSideMultiple() 235 mAmWmState.getAmState().getTaskByActivity( in testLaunchToSideMultiple() 241 int taskNumberFinal = mAmWmState.getAmState().getStandardTaskCountByWindowingMode( in testLaunchToSideMultiple() 247 mAmWmState.getAmState().getTaskByActivity( in testLaunchToSideMultiple() 277 final int taskId = mAmWmState.getAmState().getTaskByActivity(LAUNCHING_ACTIVITY).mTaskId; in launchTargetToSide() 291 int taskNumberInitial = mAmWmState.getAmState().getStandardTaskCountByWindowingMode( in launchTargetToSide() [all …]
|
D | VrDisplayTests.java | 134 final int focusedStackId = mAmWmState.getAmState().getFocusedStackId(); in testVrActivityLaunch() 136 = mAmWmState.getAmState().getStackById(focusedStackId); in testVrActivityLaunch() 184 final int focusedStackId = mAmWmState.getAmState().getFocusedStackId(); in testVrActivityReLaunch() 186 = mAmWmState.getAmState().getStackById(focusedStackId); in testVrActivityReLaunch() 234 final int focusedStackId = mAmWmState.getAmState().getFocusedStackId(); in testActivityLaunchPostVr() 236 = mAmWmState.getAmState().getStackById(focusedStackId); in testActivityLaunchPostVr() 272 final int frontStackId = mAmWmState.getAmState().getFrontStackId(DEFAULT_DISPLAY); in testActivityLaunchPostVr() 274 = mAmWmState.getAmState().getStackById(frontStackId); in testActivityLaunchPostVr()
|
D | MultiDisplayPolicyTests.java | 111 mAmWmState.getAmState().containsActivity(TEST_ACTIVITY)); in testContentDestroyOnDisplayRemoved() 113 mAmWmState.getAmState().containsActivity(RESIZEABLE_ACTIVITY)); in testContentDestroyOnDisplayRemoved() 351 mAmWmState.getAmState().computeState(); in testNoLeakOnExternalDisplay() 352 final int displayCount = mAmWmState.getAmState().getDisplayCount(); in testNoLeakOnExternalDisplay() 363 assertEquals(displayCount, mAmWmState.getAmState().getDisplayCount()); in testNoLeakOnExternalDisplay() 364 assertEquals(displayCount, mAmWmState.getAmState().getKeyguardControllerState(). in testNoLeakOnExternalDisplay() 413 final int defaultDisplayStackId = mAmWmState.getAmState().getFocusedStackId(); in testMoveTaskBetweenDisplays() 414 ActivityStack frontStack = mAmWmState.getAmState().getStackById( in testMoveTaskBetweenDisplays() 485 final int focusedStackWindowingMode = mAmWmState.getAmState().getFrontStackWindowingMode( in testStackFocusSwitchOnDisplayRemoved3() 515 final int frontStackId = mAmWmState.getAmState().getFrontStackId(newDisplay.mId); in tryCreatingAndRemovingDisplayWithActivity() [all …]
|
D | KeyguardTests.java | 364 final int displayId = mAmWmState.getAmState() in testNoTransientConfigurationWhenShowWhenLockedRequestsOrientation() 366 ActivityManagerState.ActivityDisplay display = mAmWmState.getAmState() in testNoTransientConfigurationWhenShowWhenLockedRequestsOrientation() 379 display = mAmWmState.getAmState().getDisplay(displayId); in testNoTransientConfigurationWhenShowWhenLockedRequestsOrientation() 434 mAmWmState.getAmState().hasActivityState(occludingActivity, in testResumeOccludingActivityFromBackground() 447 assertTrue(mAmWmState.getAmState().getKeyguardControllerState().keyguardShowing); in testDismissKeyguardActivity() 462 assertTrue(mAmWmState.getAmState().getKeyguardControllerState().keyguardShowing); in testDismissKeyguardActivity_method() 467 assertFalse(mAmWmState.getAmState().getKeyguardControllerState().keyguardShowing); in testDismissKeyguardActivity_method() 478 assertTrue(mAmWmState.getAmState().getKeyguardControllerState().keyguardShowing); in testDismissKeyguardActivity_method_notTop() 492 assertTrue(mAmWmState.getAmState().getKeyguardControllerState().keyguardShowing); in testDismissKeyguardActivity_method_turnScreenOn() 497 assertFalse(mAmWmState.getAmState().getKeyguardControllerState().keyguardShowing); in testDismissKeyguardActivity_method_turnScreenOn() [all …]
|
D | MultiDisplaySecurityTests.java | 113 final int externalFocusedStackId = mAmWmState.getAmState().getFocusedStackId(); in testLaunchWithoutPermissionOnVirtualDisplayByOwner() 115 mAmWmState.getAmState().getStackById(externalFocusedStackId); in testLaunchWithoutPermissionOnVirtualDisplayByOwner() 122 externalFocusedStackId, mAmWmState.getAmState().getFocusedStackId()); in testLaunchWithoutPermissionOnVirtualDisplayByOwner() 150 mAmWmState.getAmState().containsActivity(TEST_ACTIVITY)); in testLaunchWithoutPermissionOnVirtualDisplay() 520 final int defaultDisplayFocusedStackId = mAmWmState.getAmState().getFocusedStackId(); in testPermissionLaunchFromShell() 521 ActivityStack frontStack = mAmWmState.getAmState().getStackById( in testPermissionLaunchFromShell() 596 final int frontStackId = mAmWmState.getAmState().getFrontStackId(newDisplay.mId); in testPermissionLaunchMultiUidTask() 597 ActivityStack frontStack = mAmWmState.getAmState().getStackById( in testPermissionLaunchMultiUidTask() 610 frontStack = mAmWmState.getAmState().getStackById(frontStackId); in testPermissionLaunchMultiUidTask() 627 final int defaultDisplayFocusedStackId = mAmWmState.getAmState().getFocusedStackId(); in testPermissionLaunchFromOwner() [all …]
|
D | FreeformWindowingModeTests.java | 81 mAmWmState.getAmState().getTaskByActivity(TEST_ACTIVITY).getBounds()); in testFreeformWindowManagementSupport() 92 mAmWmState.getAmState().getTaskByActivity(NON_RESIZEABLE_ACTIVITY); in testNonResizeableActivityHasFullDisplayBounds() 93 final ActivityStack stack = mAmWmState.getAmState().getStackById(task.mStackId); in testNonResizeableActivityHasFullDisplayBounds() 120 final int displayId = mAmWmState.getAmState().getStandardStackByWindowingMode( in testActivityLifeCycleOnResizeFreeformTask()
|
D | KeyguardLockedTests.java | 133 mAmWmState.getAmState().isActivityTranslucent(DISMISS_KEYGUARD_ACTIVITY); in testDismissKeyguard_whileOccluded() 164 assertTrue(mAmWmState.getAmState().getKeyguardControllerState().keyguardShowing); in testDismissKeyguardActivity_method() 170 assertFalse(mAmWmState.getAmState().getKeyguardControllerState().keyguardShowing); in testDismissKeyguardActivity_method() 182 assertTrue(mAmWmState.getAmState().getKeyguardControllerState().keyguardShowing); in testDismissKeyguardActivity_method_cancelled() 188 assertTrue(mAmWmState.getAmState().getKeyguardControllerState().keyguardShowing); in testDismissKeyguardActivity_method_cancelled() 199 assertTrue(mAmWmState.getAmState().getKeyguardControllerState().keyguardShowing); in testDismissKeyguardAttrActivity_method_turnScreenOn_withSecureKeyguard() 203 assertTrue(mAmWmState.getAmState().getKeyguardControllerState().keyguardShowing); in testDismissKeyguardAttrActivity_method_turnScreenOn_withSecureKeyguard()
|
D | AssistantStackTests.java | 79 mAmWmState.getAmState().getStackByActivityType(ACTIVITY_TYPE_ASSISTANT); in setUp() 96 mAmWmState.getAmState().getStackByActivityType( in testLaunchingAssistantActivityIntoAssistantStack() 270 boolean isTranslucent = mAmWmState.getAmState().isActivityTranslucent(TEST_ACTIVITY); in testTranslucentAssistantActivityStackVisibility() 317 final ActivityManagerState amState = mAmWmState.getAmState(); in testLaunchIntoSameTask() 320 final int taskId = mAmWmState.getAmState().getTaskByActivity(ASSISTANT_ACTIVITY) in testLaunchIntoSameTask() 341 mAmWmState.getAmState().getTaskByActivity(ASSISTANT_ACTIVITY).mTaskId); in testLaunchIntoSameTask()
|
D | PinnedStackTests.java | 576 assertTrue(mAmWmState.getAmState().containsActivityInWindowingMode( in testDisallowMultipleTasksInPinnedStack() 578 assertTrue(mAmWmState.getAmState().containsActivityInWindowingMode( in testDisallowMultipleTasksInPinnedStack() 814 ActivityTask task = mAmWmState.getAmState().getStandardStackByWindowingMode( in testDisallowEnterPipActivityLocked() 983 assumeTrue(!mAmWmState.getAmState().isHomeRecentsComponent()); in testWindowButtonEntersPip() 998 int taskId = mAmWmState.getAmState().getStandardStackByWindowingMode( in testFinishPipActivityWithTaskOverlay() 1019 ActivityStack stack = mAmWmState.getAmState().getStandardStackByWindowingMode( in testNoResumeAfterTaskOverlayFinishes() 1085 int rootActivityTaskId = mAmWmState.getAmState().getTaskByActivity( in testLaunchTaskByComponentMatchMultipleTasks() 1095 assertEquals(rootActivityTaskId, mAmWmState.getAmState().getTaskByActivity( in testLaunchTaskByComponentMatchMultipleTasks() 1117 int rootActivityTaskId = mAmWmState.getAmState().getTaskByActivity( in testLaunchTaskByAffinityMatchMultipleTasks() 1126 assertEquals(rootActivityTaskId, mAmWmState.getAmState().getTaskByActivity( in testLaunchTaskByAffinityMatchMultipleTasks() [all …]
|
D | AppConfigurationTests.java | 190 mAmWmState.getAmState().getTaskByActivity(RESIZEABLE_ACTIVITY); in rotateAndCheckSizes() 191 final int displayId = mAmWmState.getAmState().getStackById(task.mStackId).mDisplayId; in rotateAndCheckSizes() 256 final ActivityManagerState.ActivityStack stack = mAmWmState.getAmState() in moveActivityFullSplitFull() 303 final ActivityManagerState.ActivityStack stack = mAmWmState.getAmState() in testDialogWhenLargeSplitSmall() 468 mAmWmState.getAmState().containsActivity(TRANSLUCENT_LANDSCAPE_ACTIVITY)); in testNonFullscreenActivityProhibited() 584 final int displayId = mAmWmState.getAmState().getDisplayByActivity(RESIZEABLE_ACTIVITY); in testAppOrientationWhenRotating() 632 final int displayId = mAmWmState.getAmState() in testFixedOrientationWhenRotating()
|
D | MultiDisplaySystemDecorationTests.java | 319 mAmWmState.getAmState().getFrontStackActivityType(newDisplay.mId)); in testLaunchSingleHomeActivityOnDisplayWithDecorations() 341 mAmWmState.getAmState().getFrontStackActivityType(newDisplay.mId)); in testLaunchSingleSecondaryHomeActivityOnDisplayWithDecorations() 362 mAmWmState.getAmState().getFrontStackActivityType(newDisplay.mId)); in testLaunchHomeActivityOnDisplayWithDecorations() 384 mAmWmState.getAmState().getFrontStackActivityType(newDisplay.mId)); in testLaunchSecondaryHomeActivityOnDisplayWithDecorations() 436 mAmWmState.getAmState().getDisplay(DEFAULT_DISPLAY)); in testImeWindowCanSwitchToDifferentDisplays() 632 mAmWmState.getAmState().getDisplay(newDisplay.mId).mStacks.size()); in testImeWindowCanShownWhenActivityMovedToDisplay()
|
D | DisplayTests.java | 116 final int frontStackId = mAmWmState.getAmState().getFrontStackId(DEFAULT_DISPLAY); in testMultiDisplayDisabled() 118 mAmWmState.getAmState().getStackById(frontStackId); in testMultiDisplayDisabled()
|
D | RobustnessTests.java | 44 if (mAmWmState.getAmState().isActivityVisible(TEST_ACTIVITY)) { in testLaunchActivityRecursively()
|
D | ActivityVisibilityTests.java | 89 final int stackId = mAmWmState.getAmState().getStackIdByActivity( in testTranslucentActivityOnTopOfPinnedStack() 139 final int stackId = mAmWmState.getAmState().getStackIdByActivity( in testHomeVisibleOnActivityTaskPinned() 267 !mAmWmState.getAmState().isBehindOpaqueActivities(MOVE_TASK_TO_BACK_ACTIVITY); in performFinishActivityWithMoveTaskToBack()
|
D | StartActivityTests.java | 63 assertFalse(mAmWmState.getAmState().containsActivity(TEST_ACTIVITY)); in testStartActivityContexts()
|
D | AnimationBackgroundTests.java | 83 final int displayId = mAmWmState.getAmState().getDisplayByActivity(activity); in assumeActivityNotInFreeformDisplay()
|
D | ConfigChangeTests.java | 216 mAmWmState.getAmState().getTaskByActivity(activityName).mStackId; in testRotation() 217 final int displayId = mAmWmState.getAmState().getStackById(actualStackId).mDisplayId; in testRotation()
|
D | AmStartOptionsTests.java | 57 int procId = mAmWmState.getAmState().getActivityProcId(TEST_ACTIVITY); in testDashD()
|
/cts/tests/framework/base/windowmanager/backgroundactivity/src/android/server/wm/ |
D | BackgroundActivityLaunchTest.java | 104 assertNull(mAmWmState.getAmState().getTaskByActivity(APP_A_BACKGROUND_ACTIVITY)); in setUp() 105 assertNull(mAmWmState.getAmState().getTaskByActivity(APP_A_FOREGROUND_ACTIVITY)); in setUp() 106 assertNull(mAmWmState.getAmState().getTaskByActivity(APP_B_FOREGROUND_ACTIVITY)); in setUp() 440 assertNull(mAmWmState.getAmState().getTaskByActivity(sourceComponent)); in assertTaskStack() 443 List<ActivityManagerState.Activity> actual = mAmWmState.getAmState().getTaskByActivity( in assertTaskStack() 484 mAmWmState.getAmState().computeState(); in waitForActivityFocused() 486 if (mAmWmState.getAmState().hasActivityState(componentName, STATE_RESUMED)) { in waitForActivityFocused() 488 mAmWmState.getAmState().computeState(); in waitForActivityFocused() 493 mAmWmState.getAmState().computeState(); in waitForActivityFocused() 496 return getActivityName(componentName).equals(mAmWmState.getAmState().getFocusedActivity()); in waitForActivityFocused()
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | ActivityAndWindowManagersState.java | 539 public ActivityManagerState getAmState() { in getAmState() method in ActivityAndWindowManagersState 699 getAmState().getKeyguardControllerState().keyguardShowing); in assertKeyguardShowingAndOccluded() 701 getAmState().getKeyguardControllerState().isKeyguardOccluded(DEFAULT_DISPLAY)); in assertKeyguardShowingAndOccluded() 706 getAmState().getKeyguardControllerState().keyguardShowing); in assertKeyguardShowingAndNotOccluded() 708 getAmState().getKeyguardControllerState().isKeyguardOccluded(DEFAULT_DISPLAY)); in assertKeyguardShowingAndNotOccluded() 713 getAmState().getKeyguardControllerState().keyguardShowing); in assertKeyguardGone() 718 getAmState().getKeyguardControllerState().aodShowing); in assertAodShowing() 723 getAmState().getKeyguardControllerState().aodShowing); in assertAodNotShowing() 727 assumeTrue(getAmState().pendingActivityContain(activity)); in assumePendingActivityContain()
|
D | ActivityManagerTestBase.java | 596 final List<ActivityManagerState.ActivityStack> stacks = mAmWmState.getAmState().getStacks(); in getStackIds() 607 final List<ActivityManagerState.ActivityStack> stacks = mAmWmState.getAmState().getStacks(); in getStackForTaskId() 667 final int taskId = mAmWmState.getAmState().getTaskByActivity(activityName).mTaskId; in launchActivityInSplitScreenWithRecents() 694 final boolean isHomeRecentsComponent = mAmWmState.getAmState().isHomeRecentsComponent(); in moveTaskToPrimarySplitScreen() 741 final int taskId = mAmWmState.getAmState().getTaskByActivity( in launchActivitiesInSplitScreen() 757 final int taskId = mAmWmState.getAmState().getTaskByActivity(activityName).mTaskId; in setActivityTaskWindowingMode() 768 final int taskId = mAmWmState.getAmState().getTaskByActivity(activityName).mTaskId; in moveActivityToStack() 780 final int taskId = mAmWmState.getAmState().getTaskByActivity(activityName).mTaskId; in resizeActivityTask() 860 assertTrue(message, mAmWmState.getAmState().hasActivityState(activityName, state)); in waitAndAssertActivityState() 875 mAmWmState.getAmState().hasActivityState(activityName, STATE_RESUMED)); in waitAndAssertTopResumedActivity() [all …]
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/intent/ |
D | LaunchRunner.java | 298 mTestBase.getAmWmState().getAmState().getStacks(); in waitDumpAndTrim() 324 mTestBase.getAmWmState().getAmState().getStacks(); in waitDumpAndTrimForVerification() 332 return amWmState.getAmState().getStacks(); in getBaseStacks()
|