Home
last modified time | relevance | path

Searched refs:TEST_ACTIVITY (Results 1 – 25 of 29) sorted by relevance

12

/cts/tests/framework/base/windowmanager/src/android/server/wm/
DSplitScreenTests.java38 import static android.server.wm.app.Components.TEST_ACTIVITY;
101 launchActivity(TEST_ACTIVITY); in testStackList()
102 mAmWmState.computeState(TEST_ACTIVITY); in testStackList()
113 launchActivityInSplitScreenWithRecents(TEST_ACTIVITY); in testDockActivity()
137 getLaunchActivityBuilder().setTargetActivity(TEST_ACTIVITY)); in testLaunchToSide()
149 getLaunchActivityBuilder().setTargetActivity(TEST_ACTIVITY)); in testLaunchToSideMultiWindowCallbacks()
159 TEST_ACTIVITY); in testLaunchToSideMultiWindowCallbacks()
166 launchActivity(TEST_ACTIVITY, WINDOWING_MODE_FULLSCREEN); in testNoUserLeaveHintOnMultiWindowModeChanged()
170 setActivityTaskWindowingMode(TEST_ACTIVITY, WINDOWING_MODE_SPLIT_SCREEN_PRIMARY); in testNoUserLeaveHintOnMultiWindowModeChanged()
171 ActivityLifecycleCounts lifecycleCounts = waitForOnMultiWindowModeChanged(TEST_ACTIVITY); in testNoUserLeaveHintOnMultiWindowModeChanged()
[all …]
DMultiDisplayPolicyTests.java34 import static android.server.wm.app.Components.TEST_ACTIVITY;
94 launchActivityOnDisplay(TEST_ACTIVITY, newDisplay.mId); in testContentDestroyOnDisplayRemoved()
95 waitAndAssertTopResumedActivity(TEST_ACTIVITY, newDisplay.mId, in testContentDestroyOnDisplayRemoved()
106 mAmWmState.waitForActivityRemoved(TEST_ACTIVITY); in testContentDestroyOnDisplayRemoved()
111 mAmWmState.getAmState().containsActivity(TEST_ACTIVITY)); in testContentDestroyOnDisplayRemoved()
116 mAmWmState.getWmState().containsWindow(getWindowName(TEST_ACTIVITY))); in testContentDestroyOnDisplayRemoved()
120 assertActivityDestroyed(TEST_ACTIVITY); in testContentDestroyOnDisplayRemoved()
143 waitAndAssertTopResumedActivity(TEST_ACTIVITY, DEFAULT_DISPLAY, in testActivityLaunchOnContentDestroyDisplayRemoved()
234 virtualLauncher.launchActivityOnDisplay(TEST_ACTIVITY, newDisplay); in testRotationNotAffectingSecondaryScreen()
235 waitAndAssertTopResumedActivity(TEST_ACTIVITY, newDisplay.mId, in testRotationNotAffectingSecondaryScreen()
[all …]
DStartActivityTests.java19 import static android.server.wm.app.Components.TEST_ACTIVITY;
52 .setTargetActivity(TEST_ACTIVITY) in testStartActivityContexts()
63 assertFalse(mAmWmState.getAmState().containsActivity(TEST_ACTIVITY)); in testStartActivityContexts()
77 .setTargetActivity(TEST_ACTIVITY) in testStartActivityNewTask()
83 mAmWmState.computeState(TEST_ACTIVITY); in testStartActivityNewTask()
85 TEST_ACTIVITY); in testStartActivityNewTask()
96 getLaunchActivityBuilder().setTargetActivity(TEST_ACTIVITY) in testLegacyStartActivityFromNonActivityContext()
101 mAmWmState.computeState(TEST_ACTIVITY); in testLegacyStartActivityFromNonActivityContext()
103 TEST_ACTIVITY); in testLegacyStartActivityFromNonActivityContext()
DFreeformWindowingModeTests.java24 import static android.server.wm.app.Components.TEST_ACTIVITY;
66 mAmWmState.computeState(FREEFORM_ACTIVITY, TEST_ACTIVITY); in testFreeformWindowManagementSupport()
77 mAmWmState.assertVisibility(TEST_ACTIVITY, true); in testFreeformWindowManagementSupport()
79 TEST_ACTIVITY + " must be focused Activity", TEST_ACTIVITY); in testFreeformWindowManagementSupport()
81 mAmWmState.getAmState().getTaskByActivity(TEST_ACTIVITY).getBounds()); in testFreeformWindowManagementSupport()
109 launchActivity(TEST_ACTIVITY, WINDOWING_MODE_FREEFORM); in testActivityLifeCycleOnResizeFreeformTask()
112 mAmWmState.computeState(TEST_ACTIVITY, NO_RELAUNCH_ACTIVITY); in testActivityLifeCycleOnResizeFreeformTask()
129 resizeActivityTask(TEST_ACTIVITY, in testActivityLifeCycleOnResizeFreeformTask()
136 mAmWmState.computeState(new WaitForValidActivityState.Builder(TEST_ACTIVITY).build(), in testActivityLifeCycleOnResizeFreeformTask()
140 resizeActivityTask(TEST_ACTIVITY, in testActivityLifeCycleOnResizeFreeformTask()
[all …]
DActivityViewTest.java24 import static android.server.wm.app.Components.TEST_ACTIVITY;
111 launchActivityInActivityView(TEST_ACTIVITY); in testStartActivity()
112 assertSingleLaunch(TEST_ACTIVITY); in testStartActivity()
121 launchActivityInActivityView(TEST_ACTIVITY); in testResizeActivityView()
122 assertSingleLaunch(TEST_ACTIVITY); in testResizeActivityView()
126 boolean boundsMatched = checkDisplaySize(TEST_ACTIVITY, width, height); in testResizeActivityView()
166 launchActivityInActivityView(TEST_ACTIVITY); in testAppStoppedWithVisibilityGone()
167 assertSingleLaunch(TEST_ACTIVITY); in testAppStoppedWithVisibilityGone()
172 mAmWmState.waitForActivityState(TEST_ACTIVITY, STATE_STOPPED); in testAppStoppedWithVisibilityGone()
174 assertLifecycleCounts(TEST_ACTIVITY, 0, 0, 0, 1, 1, 0, CountSpec.DONT_CARE); in testAppStoppedWithVisibilityGone()
[all …]
DMultiDisplayActivityLaunchTests.java37 import static android.server.wm.app.Components.TEST_ACTIVITY;
115 .setTargetActivity(TEST_ACTIVITY).setNewTask(true) in validateActivityLaunchOnNewDisplay()
118 waitAndAssertTopResumedActivity(TEST_ACTIVITY, newDisplay.mId, in validateActivityLaunchOnNewDisplay()
122 final SizeInfo reportedSizes = getLastReportedSizesForActivity(TEST_ACTIVITY); in validateActivityLaunchOnNewDisplay()
143 getLaunchActivityBuilder().setTargetActivity(TEST_ACTIVITY).setNewTask(true) in testLaunchActivityOnPrimaryDisplay()
145 mAmWmState.computeState(TEST_ACTIVITY); in testLaunchActivityOnPrimaryDisplay()
147 waitAndAssertTopResumedActivity(TEST_ACTIVITY, DEFAULT_DISPLAY, in testLaunchActivityOnPrimaryDisplay()
157 .setTargetActivity(TEST_ACTIVITY).setNewTask(true) in testLaunchActivityFromSecondaryDisplay()
171 mBroadcastActionTrigger.launchActivityNewTask(getActivityName(TEST_ACTIVITY)); in testLaunchActivityFromSecondaryDisplay()
172 waitAndAssertTopResumedActivity(TEST_ACTIVITY, DEFAULT_DISPLAY, in testLaunchActivityFromSecondaryDisplay()
[all …]
DMultiDisplayLockedKeyguardTests.java24 import static android.server.wm.app.Components.TEST_ACTIVITY;
71 launchActivityOnDisplay(TEST_ACTIVITY, newDisplay.mId); in testVirtualDisplayHidesContentWhenLocked()
72 mAmWmState.assertVisibility(TEST_ACTIVITY, true /* visible */); in testVirtualDisplayHidesContentWhenLocked()
76 waitAndAssertActivityState(TEST_ACTIVITY, STATE_STOPPED, in testVirtualDisplayHidesContentWhenLocked()
78 mAmWmState.assertVisibility(TEST_ACTIVITY, false /* visible */); in testVirtualDisplayHidesContentWhenLocked()
86 waitAndAssertActivityState(TEST_ACTIVITY, STATE_RESUMED, in testVirtualDisplayHidesContentWhenLocked()
88 mAmWmState.assertVisibility(TEST_ACTIVITY, true /* visible */); in testVirtualDisplayHidesContentWhenLocked()
103 launchActivityOnDisplay(TEST_ACTIVITY, newDisplay.mId); in testPrivateDisplayHideContentWhenLocked()
107 waitAndAssertActivityState(TEST_ACTIVITY, STATE_STOPPED, in testPrivateDisplayHideContentWhenLocked()
109 mAmWmState.assertVisibility(TEST_ACTIVITY, false /* visible */); in testPrivateDisplayHideContentWhenLocked()
DRobustnessTests.java20 import static android.server.wm.app.Components.TEST_ACTIVITY;
43 mAmWmState.computeState(TEST_ACTIVITY); in testLaunchActivityRecursively()
44 if (mAmWmState.getAmState().isActivityVisible(TEST_ACTIVITY)) { in testLaunchActivityRecursively()
48 mAmWmState.waitForValidState(TEST_ACTIVITY); in testLaunchActivityRecursively()
49 mAmWmState.assertVisibility(TEST_ACTIVITY, true); in testLaunchActivityRecursively()
DAssistantStackTests.java42 import static android.server.wm.app.Components.TEST_ACTIVITY;
118 getLaunchActivityBuilder().setTargetActivity(TEST_ACTIVITY)); in testAssistantStackZOrder()
153 getLaunchActivityBuilder().setTargetActivity(TEST_ACTIVITY)); in testAssistantStackLaunchNewTaskWithDockedStack()
169 EXTRA_ASSISTANT_LAUNCH_NEW_TASK, getActivityName(TEST_ACTIVITY), in assertAssistantStackCanLaunchAndReturnFromNewTask()
173 TEST_ACTIVITY, ACTIVITY_TYPE_STANDARD, expectedWindowingMode); in assertAssistantStackCanLaunchAndReturnFromNewTask()
176 mAmWmState.assertFocusedActivity("TestActivity should be resumed", TEST_ACTIVITY); in assertAssistantStackCanLaunchAndReturnFromNewTask()
196 launchActivityOnDisplay(TEST_ACTIVITY, mAssistantDisplayId); in testAssistantStackFinishToPreviousApp()
206 TEST_ACTIVITY, ACTIVITY_TYPE_STANDARD, WINDOWING_MODE_FULLSCREEN); in testAssistantStackFinishToPreviousApp()
207 waitAndAssertTopResumedActivity(TEST_ACTIVITY, mAssistantDisplayId, in testAssistantStackFinishToPreviousApp()
209 mAmWmState.assertFocusedActivity("TestActivity should be focused", TEST_ACTIVITY); in testAssistantStackFinishToPreviousApp()
[all …]
DActivityVisibilityTests.java46 import static android.server.wm.app.Components.TEST_ACTIVITY;
136 launchActivity(TEST_ACTIVITY); in testHomeVisibleOnActivityTaskPinned()
151 mAmWmState.assertVisibility(TEST_ACTIVITY, false); in testHomeVisibleOnActivityTaskPinned()
164 getLaunchActivityBuilder().setTargetActivity(TEST_ACTIVITY)); in testTranslucentActivityOverDockedStack()
167 new WaitForValidActivityState(TEST_ACTIVITY), in testTranslucentActivityOverDockedStack()
175 mAmWmState.assertVisibility(TEST_ACTIVITY, true); in testTranslucentActivityOverDockedStack()
207 launchActivity(TEST_ACTIVITY, WINDOWING_MODE_FULLSCREEN_OR_SPLIT_SCREEN_SECONDARY); in testFinishActivityInNonFocusedStack()
208 mAmWmState.assertVisibility(TEST_ACTIVITY, true); in testFinishActivityInNonFocusedStack()
498 launchActivityOnDisplay(TEST_ACTIVITY, DEFAULT_DISPLAY); in testGoingHomeMultipleTimes()
499 waitAndAssertTopResumedActivity(TEST_ACTIVITY, DEFAULT_DISPLAY, in testGoingHomeMultipleTimes()
[all …]
DActivityMetricsLoggerTests.java27 import static android.server.wm.app.Components.TEST_ACTIVITY;
108 .setTargetActivity(TEST_ACTIVITY) in testAppLaunchIsLogged()
112 final LogMaker metricsLog = getMetricsLog(TEST_ACTIVITY, APP_TRANSITION); in testAppLaunchIsLogged()
118 assertMetricsLogs(TEST_ACTIVITY, APP_TRANSITION, metricsLog, mPreUptimeMs, postUptimeMs); in testAppLaunchIsLogged()
123 "Displayed " + TEST_ACTIVITY.flattenToShortString() in testAppLaunchIsLogged()
126 assertEventLogsContainsLaunchTime(eventLogs, TEST_ACTIVITY, windowsDrawnDelayMs); in testAppLaunchIsLogged()
220 SystemUtil.runShellCommand("am start -S -W " + TEST_ACTIVITY.flattenToShortString()); in testAppWarmLaunchSetsWaitResultDelayData()
228 "am start -W " + TEST_ACTIVITY.flattenToShortString()); in testAppWarmLaunchSetsWaitResultDelayData()
230 final LogMaker metricsLog = getMetricsLog(TEST_ACTIVITY, APP_TRANSITION); in testAppWarmLaunchSetsWaitResultDelayData()
239 containsString(TEST_ACTIVITY.flattenToShortString())); in testAppWarmLaunchSetsWaitResultDelayData()
[all …]
DConfigChangeTests.java27 import static android.server.wm.app.Components.TEST_ACTIVITY;
90 testRotation(TEST_ACTIVITY, 1, 1, 0); in testRotation90Relaunch()
108 testRotation(TEST_ACTIVITY, 2, 0, 0); in testRotation180_RegularActivity()
127 testRotation180WithCutout(TEST_ACTIVITY, TEST_MODE_RELAUNCH_OR_CONFIG_CHANGE); in testRotation180RelaunchWithCutout()
149 testRotation180WithCutout(TEST_ACTIVITY, TEST_MODE_RESIZE); in testConfigChangeWhenRotatingWithCutout()
308 launchActivity(TEST_ACTIVITY); in testUpdateApplicationInfo()
309 final int assetSeq = getAssetSeqNumber(TEST_ACTIVITY); in testUpdateApplicationInfo()
313 updateApplicationInfo(Arrays.asList(TEST_ACTIVITY.getPackageName())); in testUpdateApplicationInfo()
317 return getAssetSeqNumber(TEST_ACTIVITY) == assetSeq + 1 in testUpdateApplicationInfo()
318 && amState.hasActivityState(TEST_ACTIVITY, STATE_RESUMED); in testUpdateApplicationInfo()
[all …]
DDisplaySizeTest.java22 import static android.server.wm.app.Components.TEST_ACTIVITY;
62 stopTestPackage(TEST_ACTIVITY.getPackageName()); in tearDown()
68 launchActivity(TEST_ACTIVITY); in testCompatibilityDialog()
69 mAmWmState.assertActivityDisplayed(TEST_ACTIVITY); in testCompatibilityDialog()
101 EXTRA_LAUNCH_ANOTHER_ACTIVITY, getActivityName(TEST_ACTIVITY)); in testCompatibilityDialogAfterReturn()
103 mAmWmState.assertActivityDisplayed(TEST_ACTIVITY); in testCompatibilityDialogAfterReturn()
109 assertActivityLifecycle(TEST_ACTIVITY, true /* relaunched */); in testCompatibilityDialogAfterReturn()
DAmStartOptionsTests.java27 import static android.server.wm.app.Components.TEST_ACTIVITY;
59 executeShellCommand("am start -n " + getActivityName(TEST_ACTIVITY) + " -D"); in testDashD()
61 mAmWmState.waitForDebuggerWindowVisible(TEST_ACTIVITY); in testDashD()
62 int procId = mAmWmState.getAmState().getActivityProcId(TEST_ACTIVITY); in testDashD()
87 .setTargetActivity(TEST_ACTIVITY).execute(); in testDashW_FinishingTop()
DMultiDisplaySecurityTests.java28 import static android.server.wm.app.Components.TEST_ACTIVITY;
108 .setTargetActivity(TEST_ACTIVITY) in testLaunchWithoutPermissionOnVirtualDisplayByOwner()
111 mAmWmState.waitForValidState(TEST_ACTIVITY); in testLaunchWithoutPermissionOnVirtualDisplayByOwner()
120 TEST_ACTIVITY); in testLaunchWithoutPermissionOnVirtualDisplayByOwner()
143 .setTargetActivity(TEST_ACTIVITY) in testLaunchWithoutPermissionOnVirtualDisplay()
148 mAmWmState.computeState(TEST_ACTIVITY); in testLaunchWithoutPermissionOnVirtualDisplay()
150 mAmWmState.getAmState().containsActivity(TEST_ACTIVITY)); in testLaunchWithoutPermissionOnVirtualDisplay()
195 final Intent intent = new Intent(Intent.ACTION_VIEW).setComponent(TEST_ACTIVITY); in testCanAccessSystemOwnedDisplay()
347 .putExtra(EXTRA_COMPONENT_NAME, TEST_ACTIVITY) in testCanAccessPrivateVirtualDisplayByOwner()
527 launchActivityOnDisplay(TEST_ACTIVITY, newDisplay.mId); in testPermissionLaunchFromShell()
[all …]
DPinnedStackTests.java57 import static android.server.wm.app.Components.TEST_ACTIVITY;
339 launchActivity(TEST_ACTIVITY, in testEnterPipToOtherOrientation()
469 launchActivity(TEST_ACTIVITY); in testAutoEnterPictureInPicture()
484 launchActivity(TEST_ACTIVITY); in testAutoEnterPictureInPictureLaunchActivity()
504 launchActivity(TEST_ACTIVITY); in testAutoEnterPictureInPictureFinish()
560 launchActivity(TEST_ACTIVITY); in testDisallowMultipleTasksInPinnedStack()
597 launchActivity(TEST_ACTIVITY); in testPipUnPipOverApp()
609 mAmWmState.assertVisibility(TEST_ACTIVITY, true); in testPipUnPipOverApp()
629 launchActivity(TEST_ACTIVITY); in testRemovePipWithVisibleFullscreenStack()
646 launchActivity(TEST_ACTIVITY); in testRemovePipWithHiddenFullscreenStack()
[all …]
DKeyguardTests.java42 import static android.server.wm.app.Components.TEST_ACTIVITY;
105 launchActivity(TEST_ACTIVITY); in testKeyguardHidesActivity()
106 mAmWmState.computeState(TEST_ACTIVITY); in testKeyguardHidesActivity()
107 mAmWmState.assertVisibility(TEST_ACTIVITY, true); in testKeyguardHidesActivity()
112 mAmWmState.assertVisibility(TEST_ACTIVITY, false); in testKeyguardHidesActivity()
195 launchActivity(TEST_ACTIVITY); in testTranslucentDoesntRevealBehind()
197 mAmWmState.computeState(TEST_ACTIVITY, SHOW_WHEN_LOCKED_TRANSLUCENT_ACTIVITY); in testTranslucentDoesntRevealBehind()
198 mAmWmState.assertVisibility(TEST_ACTIVITY, true); in testTranslucentDoesntRevealBehind()
203 mAmWmState.assertVisibility(TEST_ACTIVITY, false); in testTranslucentDoesntRevealBehind()
480 launchActivity(TEST_ACTIVITY); in testDismissKeyguardActivity_method_notTop()
[all …]
DDisplayTests.java20 import static android.server.wm.app.Components.TEST_ACTIVITY;
109 launchActivityOnDisplay(TEST_ACTIVITY, newDisplay.mId); in testMultiDisplayDisabled()
110 mAmWmState.computeState(TEST_ACTIVITY); in testMultiDisplayDisabled()
113 TEST_ACTIVITY); in testMultiDisplayDisabled()
120 getActivityName(TEST_ACTIVITY), frontStack.mResumedActivity); in testMultiDisplayDisabled()
DKeyguardTransitionTests.java29 import static android.server.wm.app.Components.TEST_ACTIVITY;
60 launchActivity(TEST_ACTIVITY); in testUnlock()
63 mAmWmState.computeState(TEST_ACTIVITY); in testUnlock()
97 launchActivity(TEST_ACTIVITY); in testUnocclude()
DAppConfigurationTests.java36 import static android.server.wm.app.Components.TEST_ACTIVITY;
157 getLaunchActivityBuilder().setTargetActivity(TEST_ACTIVITY)); in testConfigurationUpdatesWhenRotatingWhileDocked()
219 moveActivityFullSplitFull(TEST_ACTIVITY); in testSameConfigurationFullSplitFullRelaunch()
281 moveActivitySplitFullSplit(TEST_ACTIVITY); in testSameConfigurationSplitFullSplitRelaunch()
419 launchActivity(TEST_ACTIVITY); in testAppOrientationRequestConfigClears()
420 mAmWmState.assertVisibility(TEST_ACTIVITY, true /* visible */); in testAppOrientationRequestConfigClears()
421 final SizeInfo initialReportedSizes = getLastReportedSizesForActivity(TEST_ACTIVITY); in testAppOrientationRequestConfigClears()
574 launchActivity(TEST_ACTIVITY); in testAppOrientationWhenRotating()
600 assertRelaunchOrConfigChanged(TEST_ACTIVITY, 0 /* numRelaunch */, in testAppOrientationWhenRotating()
DManifestLayoutTests.java25 import static android.server.wm.app.Components.TEST_ACTIVITY;
112 getLaunchActivityBuilder().setTargetActivity(TEST_ACTIVITY)); in testMinimalSize()
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/
DLaunchTestOnDestroyActivity.java20 import static android.server.wm.app.Components.TEST_ACTIVITY;
37 intent.setComponent(TEST_ACTIVITY); in onDestroy()
/cts/tests/framework/base/windowmanager/app27/src/android/server/wm/app27/
DComponents.java20 import static android.server.wm.app.Components.TEST_ACTIVITY;
31 component(Components.class, TEST_ACTIVITY.getClassName());
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DActivityLauncher.java23 import static android.server.wm.app.Components.TEST_ACTIVITY;
143 ? TEST_ACTIVITY : ComponentName.unflattenFromString(targetComponent)); in launchActivityFromExtras()
/cts/hostsidetests/incident/src/com/android/server/cts/
DNotificationIncidentTest.java55 private static final String TEST_ACTIVITY = field in NotificationIncidentTest
66 getDevice().executeShellCommand("am start -n " + TEST_ACTIVITY); in testNotificationRecords()

12