Home
last modified time | relevance | path

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

12

/cts/tests/framework/base/windowmanager/src/android/server/wm/multidisplay/
DMultiDisplayPolicyTests.java35 import static android.server.wm.app.Components.TEST_ACTIVITY;
95 launchActivityOnDisplay(TEST_ACTIVITY, newDisplay.mId); in testContentDestroyOnDisplayRemoved()
96 waitAndAssertActivityStateOnDisplay(TEST_ACTIVITY, STATE_RESUMED, newDisplay.mId, in testContentDestroyOnDisplayRemoved()
107 mWmState.waitForActivityRemoved(TEST_ACTIVITY); in testContentDestroyOnDisplayRemoved()
112 mWmState.containsActivity(TEST_ACTIVITY)); in testContentDestroyOnDisplayRemoved()
117 mWmState.containsWindow(getWindowName(TEST_ACTIVITY))); in testContentDestroyOnDisplayRemoved()
121 assertActivityDestroyed(TEST_ACTIVITY); in testContentDestroyOnDisplayRemoved()
144 waitAndAssertTopResumedActivity(TEST_ACTIVITY, DEFAULT_DISPLAY, in testActivityLaunchOnContentDestroyDisplayRemoved()
228 virtualLauncher.launchActivityOnDisplay(TEST_ACTIVITY, newDisplay); in testRotationNotAffectingSecondaryScreen()
229 waitAndAssertActivityStateOnDisplay(TEST_ACTIVITY, STATE_RESUMED, newDisplay.mId, in testRotationNotAffectingSecondaryScreen()
[all …]
DMultiDisplayLockedKeyguardTests.java23 import static android.server.wm.app.Components.TEST_ACTIVITY;
70 launchActivityOnDisplay(TEST_ACTIVITY, newDisplay.mId); in testVirtualDisplayHidesContentWhenLocked()
71 mWmState.assertVisibility(TEST_ACTIVITY, true /* visible */); in testVirtualDisplayHidesContentWhenLocked()
75 waitAndAssertActivityState(TEST_ACTIVITY, STATE_STOPPED, in testVirtualDisplayHidesContentWhenLocked()
77 mWmState.assertVisibility(TEST_ACTIVITY, false /* visible */); in testVirtualDisplayHidesContentWhenLocked()
84 waitAndAssertActivityState(TEST_ACTIVITY, STATE_RESUMED, in testVirtualDisplayHidesContentWhenLocked()
86 mWmState.assertVisibility(TEST_ACTIVITY, true /* visible */); in testVirtualDisplayHidesContentWhenLocked()
100 launchActivityOnDisplay(TEST_ACTIVITY, newDisplay.mId); in testPrivateDisplayHideContentWhenLocked()
104 waitAndAssertActivityState(TEST_ACTIVITY, STATE_STOPPED, in testPrivateDisplayHideContentWhenLocked()
106 mWmState.assertVisibility(TEST_ACTIVITY, false /* visible */); in testPrivateDisplayHideContentWhenLocked()
DMultiDisplayActivityLaunchTests.java51 import static android.server.wm.app.Components.TEST_ACTIVITY;
138 .setTargetActivity(TEST_ACTIVITY).setNewTask(true) in validateActivityLaunchOnNewDisplay()
141 waitAndAssertTopResumedActivity(TEST_ACTIVITY, newDisplay.mId, in validateActivityLaunchOnNewDisplay()
145 final SizeInfo reportedSizes = getLastReportedSizesForActivity(TEST_ACTIVITY); in validateActivityLaunchOnNewDisplay()
165 getLaunchActivityBuilder().setTargetActivity(TEST_ACTIVITY).setNewTask(true) in testLaunchActivityOnPrimaryDisplay()
167 mWmState.computeState(TEST_ACTIVITY); in testLaunchActivityOnPrimaryDisplay()
169 waitAndAssertTopResumedActivity(TEST_ACTIVITY, DEFAULT_DISPLAY, in testLaunchActivityOnPrimaryDisplay()
181 .setTargetActivity(TEST_ACTIVITY).setNewTask(true) in testLaunchActivityFromSecondaryDisplay()
196 mBroadcastActionTrigger.launchActivityNewTask(getActivityName(TEST_ACTIVITY)); in testLaunchActivityFromSecondaryDisplay()
197 waitAndAssertTopResumedActivity(TEST_ACTIVITY, newDisplayId, in testLaunchActivityFromSecondaryDisplay()
[all …]
DMultiDisplayPrivateDisplayTests.java19 import static android.server.wm.app.Components.TEST_ACTIVITY;
94 .setTargetActivity(TEST_ACTIVITY) in testCantLaunchOnPrivateDisplay()
99 mWmState.computeState(TEST_ACTIVITY); in testCantLaunchOnPrivateDisplay()
101 mWmState.containsActivity(TEST_ACTIVITY)); in testCantLaunchOnPrivateDisplay()
114 final Intent intent = new Intent(Intent.ACTION_VIEW).setComponent(TEST_ACTIVITY); in testCantAccessPrivateDisplay()
132 .setComponent(TEST_ACTIVITY); in testCanAccessPrivateDisplayWithInternalPermission()
DMultiDisplaySecurityTests.java29 import static android.server.wm.app.Components.TEST_ACTIVITY;
112 .setTargetActivity(TEST_ACTIVITY) in testLaunchWithoutPermissionOnVirtualDisplayByOwner()
115 mWmState.computeState(TEST_ACTIVITY); in testLaunchWithoutPermissionOnVirtualDisplayByOwner()
117 mWmState.containsActivity(TEST_ACTIVITY)); in testLaunchWithoutPermissionOnVirtualDisplayByOwner()
136 .setTargetActivity(TEST_ACTIVITY) in testLaunchWithoutPermissionOnVirtualDisplay()
139 mWmState.computeState(TEST_ACTIVITY); in testLaunchWithoutPermissionOnVirtualDisplay()
141 mWmState.containsActivity(TEST_ACTIVITY)); in testLaunchWithoutPermissionOnVirtualDisplay()
187 assertTrue(isActivityStartAllowedOnDisplay(newDisplay.mId, TEST_ACTIVITY)); in testCanAccessSystemOwnedDisplay()
303 .putExtra(EXTRA_COMPONENT_NAME, TEST_ACTIVITY) in testCantAccessPrivateVirtualDisplayByOwner()
480 launchActivityOnDisplay(TEST_ACTIVITY, newDisplay.mId); in testPermissionLaunchFromShell()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/other/
DRobustnessTests.java20 import static android.server.wm.app.Components.TEST_ACTIVITY;
42 mWmState.computeState(TEST_ACTIVITY); in testLaunchActivityRecursively()
43 if (mWmState.isActivityVisible(TEST_ACTIVITY)) { in testLaunchActivityRecursively()
47 mWmState.waitForValidState(TEST_ACTIVITY); in testLaunchActivityRecursively()
48 mWmState.assertVisibility(TEST_ACTIVITY, true); in testLaunchActivityRecursively()
DDreamManagerServiceTests.java25 import static android.server.wm.app.Components.TEST_ACTIVITY;
92 launchActivity(TEST_ACTIVITY, WINDOWING_MODE_FULLSCREEN); in startFullscreenTestActivity()
93 waitAndAssertTopResumedActivity(TEST_ACTIVITY, DEFAULT_DISPLAY, in startFullscreenTestActivity()
95 mWmState.assertVisibility(TEST_ACTIVITY, true); in startFullscreenTestActivity()
116 mWmState.waitForValidState(TEST_ACTIVITY); in testStartAndStopDream()
117 mWmState.assertVisibility(TEST_ACTIVITY, false); in testStartAndStopDream()
127 waitAndAssertTopResumedActivity(TEST_ACTIVITY, DEFAULT_DISPLAY, in testStartAndStopDream()
174 mWmState.waitForValidState(TEST_ACTIVITY); in testForceStopStubbornDream()
175 mWmState.assertVisibility(TEST_ACTIVITY, false); in testForceStopStubbornDream()
183 waitAndAssertTopResumedActivity(TEST_ACTIVITY, DEFAULT_DISPLAY, in testForceStopStubbornDream()
[all …]
DLockTaskModeTests.java23 import static android.server.wm.app.Components.TEST_ACTIVITY;
75 .setComponent(TEST_ACTIVITY), in startAllowedPackageIntoLockTaskMode_anotherAppPinned_exitsPinningEntersLockTaskMode()
77 waitAndAssertResumedActivity(TEST_ACTIVITY, "Activity must be started and resumed"); in startAllowedPackageIntoLockTaskMode_anotherAppPinned_exitsPinningEntersLockTaskMode()
/cts/tests/inputmethod/util/src/android/view/inputmethod/cts/util/
DMockTestActivityUtil.java49 public static final ComponentName TEST_ACTIVITY = new ComponentName( field in MockTestActivityUtil
155 TEST_ACTIVITY.getPackageName(), TEST_ACTIVITY_URI.getHost())); in launchSync()
161 Intent.ACTION_MAIN, TEST_ACTIVITY.flattenToShortString())); in launchSync()
172 BySelector activitySelector = By.pkg(TEST_ACTIVITY.getPackageName()).depth(0); in launchSync()
176 return () -> TestUtils.forceStopPackage(TEST_ACTIVITY.getPackageName()); in launchSync()
194 userId, TEST_ACTIVITY.getPackageName(), TEST_ACTIVITY_URI.getHost())); in launchAsUser()
202 Intent.ACTION_MAIN, TEST_ACTIVITY.flattenToShortString(), userId)); in launchAsUser()
213 return () -> TestUtils.forceStopPackage(TEST_ACTIVITY.getPackageName(), userId); in launchAsUser()
229 final Intent intent = new Intent().setClassName(TEST_ACTIVITY.getPackageName(), in launchSyncAsUser()
230 TEST_ACTIVITY.getClassName()).addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK); in launchSyncAsUser()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/window/
DMultiWindowTests.java31 import static android.server.wm.app.Components.TEST_ACTIVITY;
93 assertActivitySupportedInSplitScreen(TEST_ACTIVITY); in testResizeableActivity()
161 getLaunchActivityBuilder().setTargetActivity(TEST_ACTIVITY), in testDevEnableNonResizeableMultiWindow_splitScreenSecondary()
198 getLaunchActivityBuilder().setTargetActivity(TEST_ACTIVITY)); in testLaunchToSideMultiWindowCallbacks()
201 mWmState.getTaskDisplayArea(TEST_ACTIVITY).getWindowingMode(); in testLaunchToSideMultiWindowCallbacks()
266 getLaunchActivityBuilder().setTargetActivity(TEST_ACTIVITY)); in testLaunchToSideAndBringToFront()
269 TEST_ACTIVITY); in testLaunchToSideAndBringToFront()
280 launchActivity(TEST_ACTIVITY); in testLaunchToSideAndBringToFront()
282 "Launched to side covering activity must be in front.", TEST_ACTIVITY); in testLaunchToSideAndBringToFront()
289 getLaunchActivityBuilder().setTargetActivity(TEST_ACTIVITY)); in testLaunchToSideMultiple()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/activity/
DDockConfigChangeTests.java22 import static android.server.wm.app.Components.TEST_ACTIVITY;
55 launchActivity(TEST_ACTIVITY); in testDeskMode_noConfigChange()
56 waitAndAssertResumedActivity(TEST_ACTIVITY, "Activity must be resumed"); in testDeskMode_noConfigChange()
61 waitAndAssertResumedActivity(TEST_ACTIVITY, "Activity must be resumed"); in testDeskMode_noConfigChange()
68 dockTestSession.waitForDeskUiMode(TEST_ACTIVITY); in testDeskMode_noConfigChange()
71 assertRelaunchOrConfigChanged(TEST_ACTIVITY, 0 /* numRelaunch */, 1 /* numConfigChange */); in testDeskMode_noConfigChange()
76 dockTestSession.waitForNormalUiMode(TEST_ACTIVITY); in testDeskMode_noConfigChange()
79 assertRelaunchOrConfigChanged(TEST_ACTIVITY, 0 /* numRelaunch */, 1 /* numConfigChange */); in testDeskMode_noConfigChange()
DActivityMetricsLoggerTests.java29 import static android.server.wm.app.Components.TEST_ACTIVITY;
129 launchAndWaitForActivity(TEST_ACTIVITY); in testAppLaunchIsLogged()
131 final LogMaker metricsLog = waitForMetricsLog(TEST_ACTIVITY, APP_TRANSITION); in testAppLaunchIsLogged()
137 assertMetricsLogs(TEST_ACTIVITY, APP_TRANSITION, metricsLog, mPreUptimeMs, postUptimeMs); in testAppLaunchIsLogged()
142 "Displayed " + TEST_ACTIVITY.flattenToShortString() + " for user " in testAppLaunchIsLogged()
146 assertEventLogsContainsLaunchTime(eventLogs, TEST_ACTIVITY, windowsDrawnDelayMs); in testAppLaunchIsLogged()
259 .setTargetActivity(TEST_ACTIVITY) in testAppWarmLaunchSetsWaitResultDelayData()
264 assertActivityDestroyed(TEST_ACTIVITY); in testAppWarmLaunchSetsWaitResultDelayData()
269 "am start -W " + TEST_ACTIVITY.flattenToShortString()); in testAppWarmLaunchSetsWaitResultDelayData()
271 final LogMaker metricsLog = waitForMetricsLog(TEST_ACTIVITY, APP_TRANSITION); in testAppWarmLaunchSetsWaitResultDelayData()
[all …]
DActivityRecordInputSinkTests.java52 private static final ComponentName TEST_ACTIVITY = field in ActivityRecordInputSinkTests
77 launchActivity(TEST_ACTIVITY); in testOverlappingActivityInNewTask_BlocksTouches()
91 launchActivity(TEST_ACTIVITY); in testOverlappingActivityInSameTaskSameUid_DoesNotBlocksTouches()
101 launchActivity(TEST_ACTIVITY); in testOverlappingActivityInSameTaskDifferentUid_DoesNotBlocksTouches()
112 launchActivity(TEST_ACTIVITY); in testOverlappingActivityInSameTaskTrampolineDifferentUid_DoesNotBlockTouches()
126 intent.replaceExtras(Components.TrampolineActivity.buildTrampolineExtra(TEST_ACTIVITY, in testOverlappingActivitySandwich_BlocksTouches()
130 mWmState.waitAndAssertActivityState(TEST_ACTIVITY, STATE_PAUSED); in testOverlappingActivitySandwich_BlocksTouches()
144 intent.replaceExtras(Components.TrampolineActivity.buildTrampolineExtra(TEST_ACTIVITY, in testOverlappingActivitySandwichDuringAnimation_DoesNotBlockTouches()
148 mWmState.waitAndAssertActivityState(TEST_ACTIVITY, STATE_PAUSED); in testOverlappingActivitySandwichDuringAnimation_DoesNotBlockTouches()
177 WindowManagerState.Activity activity = mWmState.getActivity(TEST_ACTIVITY); in touchButtonsAndAssert()
DAssistantStackTests.java41 import static android.server.wm.app.Components.TEST_ACTIVITY;
120 getLaunchActivityBuilder().setTargetActivity(TEST_ACTIVITY)); in testAssistantStackZOrder()
151 getLaunchActivityBuilder().setTargetActivity(TEST_ACTIVITY)); in testAssistantStackLaunchNewTaskWithDockedStack()
163 extraString(EXTRA_ASSISTANT_LAUNCH_NEW_TASK, getActivityName(TEST_ACTIVITY)), in assertAssistantStackCanLaunchAndReturnFromNewTask()
166 waitForValidStateWithActivityType(TEST_ACTIVITY, ACTIVITY_TYPE_STANDARD); in assertAssistantStackCanLaunchAndReturnFromNewTask()
179 mWmState.assertFocusedActivity("TestActivity should be resumed", TEST_ACTIVITY); in assertAssistantStackCanLaunchAndReturnFromNewTask()
206 launchActivityOnDisplay(TEST_ACTIVITY, mAssistantDisplayId); in testAssistantStackFinishToPreviousApp()
215 waitForValidStateWithActivityType(TEST_ACTIVITY, ACTIVITY_TYPE_STANDARD); in testAssistantStackFinishToPreviousApp()
216 waitAndAssertTopResumedActivity(TEST_ACTIVITY, mAssistantDisplayId, in testAssistantStackFinishToPreviousApp()
218 mWmState.assertFocusedActivity("TestActivity should be focused", TEST_ACTIVITY); in testAssistantStackFinishToPreviousApp()
[all …]
DStartActivityTests.java33 import static android.server.wm.app.Components.TEST_ACTIVITY;
110 .setTargetActivity(TEST_ACTIVITY) in testStartActivityContexts()
124 assertFalse(mWmState.containsActivity(TEST_ACTIVITY)); in testStartActivityContexts()
137 .setTargetActivity(TEST_ACTIVITY) in testStartActivityNewTask()
143 mWmState.computeState(TEST_ACTIVITY); in testStartActivityNewTask()
145 TEST_ACTIVITY); in testStartActivityNewTask()
152 .setTargetActivity(TEST_ACTIVITY) in testStartActivityTaskLaunchBehind()
169 TEST_ACTIVITY); in testStartActivityTaskLaunchBehind()
176 .setTargetActivity(TEST_ACTIVITY) in testStartActivityFromFinishingActivity()
188 mWmState.computeState(TEST_ACTIVITY); in testStartActivityFromFinishingActivity()
[all …]
DConfigChangeTests.java29 import static android.server.wm.app.Components.TEST_ACTIVITY;
77 testRotation(TEST_ACTIVITY, 1, 1, 0); in testRotation90Relaunch()
95 testRotation(TEST_ACTIVITY, 2, 0, 0); in testRotation180_RegularActivity()
117 testRotation180WithCutout(TEST_ACTIVITY, false /* canHandleConfigChange */); in testRotation180RelaunchWithCutout()
294 launchActivity(TEST_ACTIVITY); in testUpdateApplicationInfo()
295 final int assetSeq = getAssetSeqNumber(TEST_ACTIVITY); in testUpdateApplicationInfo()
299 updateApplicationInfo(Arrays.asList(TEST_ACTIVITY.getPackageName())); in testUpdateApplicationInfo()
303 return getAssetSeqNumber(TEST_ACTIVITY) == assetSeq + 1 in testUpdateApplicationInfo()
304 && amState.hasActivityState(TEST_ACTIVITY, STATE_RESUMED); in testUpdateApplicationInfo()
312 assertRelaunchOrConfigChanged(TEST_ACTIVITY, 1 /* numRelaunch */, in testUpdateApplicationInfo()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/display/
DFreeformWindowingModeTests.java30 import static android.server.wm.app.Components.TEST_ACTIVITY;
77 mWmState.computeState(FREEFORM_ACTIVITY, TEST_ACTIVITY); in testFreeformWindowManagementSupport()
88 mWmState.assertVisibility(TEST_ACTIVITY, true); in testFreeformWindowManagementSupport()
90 TEST_ACTIVITY + " must be focused Activity", TEST_ACTIVITY); in testFreeformWindowManagementSupport()
92 mWmState.getTaskByActivity(TEST_ACTIVITY).getBounds()); in testFreeformWindowManagementSupport()
123 launchActivity(TEST_ACTIVITY, WINDOWING_MODE_FREEFORM); in testActivityLifeCycleOnResizeFreeformTask()
126 mWmState.computeState(TEST_ACTIVITY, NO_RELAUNCH_ACTIVITY); in testActivityLifeCycleOnResizeFreeformTask()
141 resizeActivityTask(TEST_ACTIVITY, in testActivityLifeCycleOnResizeFreeformTask()
148 mWmState.computeState(new WaitForValidActivityState.Builder(TEST_ACTIVITY).build(), in testActivityLifeCycleOnResizeFreeformTask()
152 resizeActivityTask(TEST_ACTIVITY, in testActivityLifeCycleOnResizeFreeformTask()
[all …]
DDisplayTests.java20 import static android.server.wm.app.Components.TEST_ACTIVITY;
123 launchActivityOnDisplay(TEST_ACTIVITY, newDisplay.mId); in testMultiDisplayDisabled()
124 mWmState.computeState(TEST_ACTIVITY); in testMultiDisplayDisabled()
127 TEST_ACTIVITY); in testMultiDisplayDisabled()
135 getActivityName(TEST_ACTIVITY), in testMultiDisplayDisabled()
/cts/tests/framework/base/windowmanager/src/android/server/wm/animations/
DDisplaySizeTest.java21 import static android.server.wm.app.Components.TEST_ACTIVITY;
60 stopTestPackage(TEST_ACTIVITY.getPackageName()); in tearDown()
66 launchActivity(TEST_ACTIVITY); in testCompatibilityDialog()
67 mWmState.assertActivityDisplayed(TEST_ACTIVITY); in testCompatibilityDialog()
95 .setTargetActivity(TEST_ACTIVITY)); in testCompatibilityDialogAfterReturn()
96 mWmState.assertActivityDisplayed(TEST_ACTIVITY); in testCompatibilityDialogAfterReturn()
101 assertActivityLifecycle(TEST_ACTIVITY, true /* relaunched */); in testCompatibilityDialogAfterReturn()
/cts/tests/framework/base/windowmanager/src/android/server/wm/am/
DAmStartOptionsTests.java29 import static android.server.wm.app.Components.TEST_ACTIVITY;
52 executeShellCommand("am start -n " + getActivityName(TEST_ACTIVITY) + " -D"); in testDashD()
54 mWmState.waitForDebuggerWindowVisible(TEST_ACTIVITY); in testDashD()
55 WindowManagerState.Activity activity = mWmState.getActivity(TEST_ACTIVITY); in testDashD()
75 .setTargetActivity(TEST_ACTIVITY).execute(); in testDashW_FinishingTop()
/cts/tests/framework/base/windowmanager/app30/src/android/server/wm/app30/
DComponents.java19 import static android.server.wm.app.Components.TEST_ACTIVITY;
27 component(Components.class, TEST_ACTIVITY.getClassName());
/cts/hostsidetests/memunreachable/src/android/memunreachable/cts/
DMemunreachableTests.kt42 val meminfo = dumpsysMemunreachable(DEBUGGABLE_TEST_PACKAGE, TEST_ACTIVITY) in testDumpsysMeminfoUnreachableDebuggableApp()
52 val meminfo = dumpsysMemunreachable(UNDEBUGGABLE_TEST_PACKAGE, TEST_ACTIVITY) in testDumpsysMeminfoUnreachableUndebuggableApp()
62 private const val TEST_ACTIVITY = "android.memunreachable.app.TestMemunreachableActivity" constant
/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/tests/content/src/android/content/pm/cts/
DActivityInfoTest.java52 private static final String TEST_ACTIVITY = TEST_PKG + ".MockActivity"; field in ActivityInfoTest
86 ComponentName componentName = new ComponentName(TEST_PKG, TEST_ACTIVITY); in testWriteToParcel()
115 ComponentName componentName = new ComponentName(TEST_PKG, TEST_ACTIVITY); in testGetThemeResource()
137 ComponentName componentName = new ComponentName(TEST_PKG, TEST_ACTIVITY); in testDescribeContents()

12