Home
last modified time | relevance | path

Searched refs:activitySession (Results 1 – 15 of 15) sorted by relevance

/cts/tests/framework/base/biometrics/src/android/server/biometrics/
DBiometricActivityTests.java75 ActivitySession activitySession = in testBiometricOnly_authenticateFromForegroundActivity()
78 session, prop.getSensorId(), activitySession); in testBiometricOnly_authenticateFromForegroundActivity()
85 @NonNull ActivitySession activitySession) throws Exception { in testBiometricOnly_authenticateFromForegroundActivity_forSensor() argument
91 .get(activitySession.getComponentName()); in testBiometricOnly_authenticateFromForegroundActivity_forSensor()
94 launchActivityAndWaitForResumed(activitySession); in testBiometricOnly_authenticateFromForegroundActivity_forSensor()
127 ActivitySession activitySession = in testBiometricOnly_rejectThenErrorFromForegroundActivity()
130 session, prop.getSensorId(), activitySession); in testBiometricOnly_rejectThenErrorFromForegroundActivity()
137 @NonNull ActivitySession activitySession) throws Exception { in testBiometricOnly_rejectThenErrorFromForegroundActivity_forSensor() argument
145 TestJournalProvider.TestJournalContainer.get(activitySession.getComponentName()); in testBiometricOnly_rejectThenErrorFromForegroundActivity_forSensor()
148 launchActivityAndWaitForResumed(activitySession); in testBiometricOnly_rejectThenErrorFromForegroundActivity_forSensor()
[all …]
DBiometricSecurityTests.java213 ActivitySession activitySession = new ActivitySession(this, componentName)) { in testBiometricStrength_forSensor_authAllowed()
218 TestJournalContainer.get(activitySession.getComponentName()); in testBiometricStrength_forSensor_authAllowed()
226 launchActivityAndWaitForResumed(activitySession); in testBiometricStrength_forSensor_authAllowed()
254 ActivitySession activitySession = new ActivitySession(this, componentName)) { in testBiometricStrength_forSensor_authDisallowed()
258 TestJournalContainer.get(activitySession.getComponentName()); in testBiometricStrength_forSensor_authDisallowed()
268 launchActivityAndWaitForResumed(activitySession); in testBiometricStrength_forSensor_authDisallowed()
387 ActivitySession activitySession = new ActivitySession(this, componentName)) { in testBiometricStrengthDowngraded_forSensor()
392 TestJournalContainer.get(activitySession.getComponentName()); in testBiometricStrengthDowngraded_forSensor()
412 launchActivityAndWaitForResumed(activitySession); in testBiometricStrengthDowngraded_forSensor()
430 launchActivityAndWaitForResumed(activitySession); in testBiometricStrengthDowngraded_forSensor()
[all …]
DBiometricTestBase.java525 protected void launchActivityAndWaitForResumed(@NonNull ActivitySession activitySession) { in launchActivityAndWaitForResumed() argument
526 activitySession.start(); in launchActivityAndWaitForResumed()
527 mWmState.waitForActivityState(activitySession.getComponentName(), in launchActivityAndWaitForResumed()
532 protected void closeActivity(@NonNull ActivitySession activitySession) throws Exception { in closeActivity() argument
533 activitySession.close(); in closeActivity()
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/area/
DExtensionRearDisplayPresentationKeyguardTest.java149 final TestActivitySession<TestRearDisplayActivity> activitySession = in testStartRearDisplayPresentation_whenKeyguardLocked() local
153 activitySession.launchTestActivityOnDisplaySync(TestRearDisplayActivity.class, in testStartRearDisplayPresentation_whenKeyguardLocked()
161 mWindowAreaComponent.startRearDisplayPresentationSession(activitySession.getActivity(), in testStartRearDisplayPresentation_whenKeyguardLocked()
186 final TestActivitySession<TestRearDisplayShowWhenLockedActivity> activitySession = in testStartRearDisplayPresentation_afterKeyguardLocked() local
188 activitySession.launchTestActivityOnDisplaySync(TestRearDisplayShowWhenLockedActivity.class, in testStartRearDisplayPresentation_afterKeyguardLocked()
191 mWindowAreaComponent.startRearDisplayPresentationSession(activitySession.getActivity(), in testStartRearDisplayPresentation_afterKeyguardLocked()
201 activitySession.getActivity().runOnUiThread(() -> in testStartRearDisplayPresentation_afterKeyguardLocked()
227 final TestActivitySession<TestRearDisplayShowWhenLockedActivity> activitySession = in testStartRearDisplayPresentation_thenKeyguardLocked() local
229 activitySession.launchTestActivityOnDisplaySync(TestRearDisplayShowWhenLockedActivity.class, in testStartRearDisplayPresentation_thenKeyguardLocked()
236 mWindowAreaComponent.startRearDisplayPresentationSession(activitySession.getActivity(), in testStartRearDisplayPresentation_thenKeyguardLocked()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/display/
DAppConfigurationTests.java210 final ActivitySession activitySession = noRelaunchActivityClient.getLastStartedSession(); in rotateAndCheckSizes() local
211 final ComponentName activityName = activitySession.getName(); in rotateAndCheckSizes()
232 final SizeInfo rotatedSizes = activitySession.getConfigInfo().sizeInfo; in rotateAndCheckSizes()
693 TestActivitySession<ConfigChangeHandlingActivity> activitySession in assertDisplayContextDoesntChangeOrientationWhenRotating() local
695 activitySession.launchTestActivityOnDisplaySync( in assertDisplayContextDoesntChangeOrientationWhenRotating()
699 final ConfigChangeHandlingActivity activity = activitySession.getActivity(); in assertDisplayContextDoesntChangeOrientationWhenRotating()
744 final ActivitySession activitySession = createManagedActivityClientSession() in testFixedOrientationWhenRotating() local
764 final SizeInfo initialSize = activitySession.getConfigInfo().sizeInfo; in testFixedOrientationWhenRotating()
775 final SizeInfo currentSize = activitySession.getConfigInfo().sizeInfo; in testFixedOrientationWhenRotating()
974 final ActivitySession activitySession = createManagedActivityClientSession()
[all …]
/cts/tests/devicestate/src/android/hardware/devicestate/cts/
DDeviceStateManagerTests.java183 final TestActivitySession<DeviceStateTestActivity> activitySession = in testRequestStateFailsAsTopApp_ifStateNotDefinedAsAvailableForAppsToRequest() local
186 activitySession.launchTestActivityOnDisplaySync( in testRequestStateFailsAsTopApp_ifStateNotDefinedAsAvailableForAppsToRequest()
191 DeviceStateTestActivity activity = activitySession.getActivity(); in testRequestStateFailsAsTopApp_ifStateNotDefinedAsAvailableForAppsToRequest()
234 final TestActivitySession<DeviceStateTestActivity> activitySession = in testRequestStateSucceedsAsTopApp_ifStateDefinedAsAvailableForAppsToRequest() local
237 activitySession.launchTestActivityOnDisplaySync( in testRequestStateSucceedsAsTopApp_ifStateDefinedAsAvailableForAppsToRequest()
242 final DeviceStateTestActivity activity = activitySession.getActivity(); in testRequestStateSucceedsAsTopApp_ifStateDefinedAsAvailableForAppsToRequest()
289 final TestActivitySession<DeviceStateTestActivity> activitySession = in testRequestStateFailsAsBackgroundApp() local
291 activitySession.launchTestActivityOnDisplaySync( in testRequestStateFailsAsBackgroundApp()
296 final DeviceStateTestActivity activity = activitySession.getActivity(); in testRequestStateFailsAsBackgroundApp()
335 final TestActivitySession<DeviceStateTestActivity> activitySession = in testCancelStateRequestFromNewActivity() local
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/activity/
DAmProfileTests.java119 final ActivitySession activitySession; in testProfile() local
121 activitySession = createManagedActivityClientSession().startActivity( in testProfile()
125 activitySession = startActivityProfiling(PROFILEABLE_APP_ACTIVITY, sampling, streaming); in testProfile()
134 activitySession.sendCommandAndWaitReply(COMMAND_WAIT_FOR_PROFILE_OUTPUT); in testProfile()
DStartActivityTests.java380 final TestActivitySession<Activities.RegularActivity> activitySession = in testStartActivitiesTaskOverlayStayOnTop() local
382 activitySession.launchTestActivityOnDisplaySync(regularActivityName, baseIntent, in testStartActivitiesTaskOverlayStayOnTop()
386 final Activity baseActivity = activitySession.getActivity(); in testStartActivitiesTaskOverlayStayOnTop()
444 final TestActivitySession<Activities.RegularActivity> activitySession = in verifyStartActivitiesTaskOverlayWithLaunchFlags() local
446 activitySession.launchTestActivityOnDisplaySync(regularActivityName, baseIntent, in verifyStartActivitiesTaskOverlayWithLaunchFlags()
450 final Activity baseActivity = activitySession.getActivity(); in verifyStartActivitiesTaskOverlayWithLaunchFlags()
/cts/tests/framework/base/windowmanager/src/android/server/wm/ime/
DMultiDisplayImeTests.java693 TestActivitySession<? extends ImeTestActivity> activitySession, int expectDisplayId) { in tapAndAssertEditorFocusedOnImeActivity() argument
695 waitAndAssertActivityStateOnDisplay(activitySession.getActivity().getComponentName(), in tapAndAssertEditorFocusedOnImeActivity()
698 activitySession.runOnMainSyncAndWait(() -> { in tapAndAssertEditorFocusedOnImeActivity()
699 final EditText editText = activitySession.getActivity().mEditText; in tapAndAssertEditorFocusedOnImeActivity()
702 final ComponentName expectComponent = activitySession.getActivity().getComponentName(); in tapAndAssertEditorFocusedOnImeActivity()
704 mWmState.computeState(activitySession.getActivity().getComponentName()); in tapAndAssertEditorFocusedOnImeActivity()
710 TestActivitySession<? extends ImeTestActivity> activitySession, ImeEventStream stream) in showSoftInputAndAssertImeShownOnDisplay() argument
712 activitySession.runOnMainSyncAndWait( in showSoftInputAndAssertImeShownOnDisplay()
713 activitySession.getActivity()::showSoftInput); in showSoftInputAndAssertImeShownOnDisplay()
715 activitySession.getActivity().mEditText.getPrivateImeOptions()), TIMEOUT); in showSoftInputAndAssertImeShownOnDisplay()
/cts/tests/framework/base/windowmanager/src/android/server/wm/multidisplay/
DMultiDisplayClientTests.java223 final TestActivitySession<ClientTestActivity> activitySession = in testViewGetDisplay() local
231 activitySession.launchTestActivityOnDisplaySync(ClientTestActivity.class, displayId); in testViewGetDisplay()
233 final Activity activity = activitySession.getActivity(); in testViewGetDisplay()
244 activitySession.runOnMainAndAssertWithTimeout( in testViewGetDisplay()
DMultiDisplayPolicyTests.java238 ActivitySession activitySession, SizeInfo initialSize) { in rotateAndCheckSameSizes() argument
241 final SizeInfo rotatedSize = activitySession.getConfigInfo().sizeInfo; in rotateAndCheckSameSizes()
/cts/tests/framework/base/windowmanager/src/android/server/wm/backnavigation/
DOnBackInvokedCallbackGestureTest.java89 final TestActivitySession<BackNavigationActivity> activitySession = in setup() local
91 activitySession.launchTestActivityOnDisplaySync( in setup()
96 mActivity = activitySession.getActivity(); in setup()
/cts/tests/framework/base/windowmanager/src/android/server/wm/keyguard/
DKeyguardTests.java245 final ActivitySessionClient activitySession = createManagedActivityClientSession(); in testFinishMultipleShowWhenLockedActivities() local
249 activitySession.startActivity(getLaunchActivityBuilder() in testFinishMultipleShowWhenLockedActivities()
439 final ActivitySessionClient activitySession = createManagedActivityClientSession(); in testNoTransientConfigurationWhenShowWhenLockedRequestsOrientation() local
442 activitySession.startActivity(getLaunchActivityBuilder() in testNoTransientConfigurationWhenShowWhenLockedRequestsOrientation()
/cts/tests/tests/content/src/android/content/cts/
DContextTest.java1168 try (ActivitySession activitySession = new ActivitySession()) { in testStartActivityAsUser() argument
1171 activitySession.assertActivityLaunched(intent.getComponent().getClassName(), in testStartActivityAsUser()
1179 try (ActivitySession activitySession = new ActivitySession()) { in testStartActivity() argument
1183 activitySession.assertActivityLaunched(intent.getComponent().getClassName(), in testStartActivity()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DActivityManagerTestBase.java2138 ActivitySession activitySession, boolean relaunched) {
2139 final String name = activitySession.getName().flattenToShortString();
2140 final List<ActivityCallback> callbackHistory = activitySession.takeCallbackHistory();