Home
last modified time | relevance | path

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

/cts/tests/framework/base/biometrics/src/android/server/biometrics/
DBiometricActivityTests.java62 ActivitySession activitySession = in testBiometricOnly_authenticateFromForegroundActivity()
65 session, prop.getSensorId(), activitySession); in testBiometricOnly_authenticateFromForegroundActivity()
72 @NonNull ActivitySession activitySession) throws Exception { in testBiometricOnly_authenticateFromForegroundActivity_forSensor() argument
78 .get(activitySession.getComponentName()); in testBiometricOnly_authenticateFromForegroundActivity_forSensor()
81 launchActivityAndWaitForResumed(activitySession); in testBiometricOnly_authenticateFromForegroundActivity_forSensor()
115 ActivitySession activitySession = in testBiometricOnly_rejectThenErrorFromForegroundActivity()
118 session, prop.getSensorId(), activitySession); in testBiometricOnly_rejectThenErrorFromForegroundActivity()
125 @NonNull ActivitySession activitySession) throws Exception { in testBiometricOnly_rejectThenErrorFromForegroundActivity_forSensor() argument
133 TestJournalProvider.TestJournalContainer.get(activitySession.getComponentName()); in testBiometricOnly_rejectThenErrorFromForegroundActivity_forSensor()
136 launchActivityAndWaitForResumed(activitySession); in testBiometricOnly_rejectThenErrorFromForegroundActivity_forSensor()
[all …]
DBiometricSecurityTests.java187 ActivitySession activitySession = new ActivitySession(this, componentName)) { in testBiometricStrength_forSensor_authAllowed()
192 TestJournalContainer.get(activitySession.getComponentName()); in testBiometricStrength_forSensor_authAllowed()
200 launchActivityAndWaitForResumed(activitySession); in testBiometricStrength_forSensor_authAllowed()
234 ActivitySession activitySession = new ActivitySession(this, componentName)) { in testBiometricStrength_forSensor_authDisallowed()
238 TestJournalContainer.get(activitySession.getComponentName()); in testBiometricStrength_forSensor_authDisallowed()
248 launchActivityAndWaitForResumed(activitySession); in testBiometricStrength_forSensor_authDisallowed()
367 ActivitySession activitySession = new ActivitySession(this, componentName)) { in testBiometricStrengthDowngraded_forSensor()
372 TestJournalContainer.get(activitySession.getComponentName()); in testBiometricStrengthDowngraded_forSensor()
393 launchActivityAndWaitForResumed(activitySession); in testBiometricStrengthDowngraded_forSensor()
418 launchActivityAndWaitForResumed(activitySession); in testBiometricStrengthDowngraded_forSensor()
[all …]
DBiometricTestBase.java425 protected void launchActivityAndWaitForResumed(@NonNull ActivitySession activitySession) { in launchActivityAndWaitForResumed() argument
426 activitySession.start(); in launchActivityAndWaitForResumed()
427 mWmState.waitForActivityState(activitySession.getComponentName(), in launchActivityAndWaitForResumed()
432 protected void closeActivity(@NonNull ActivitySession activitySession) throws Exception { in closeActivity() argument
433 activitySession.close(); in closeActivity()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DAppConfigurationTests.java208 final ActivitySession activitySession = noRelaunchActivityClient.getLastStartedSession(); in rotateAndCheckSizes() local
209 final ComponentName activityName = activitySession.getName(); in rotateAndCheckSizes()
230 final SizeInfo rotatedSizes = activitySession.getConfigInfo().sizeInfo; in rotateAndCheckSizes()
700 TestActivitySession<ConfigChangeHandlingActivity> activitySession in assertDisplayContextDoesntChangeOrientationWhenRotating() local
702 activitySession.launchTestActivityOnDisplaySync( in assertDisplayContextDoesntChangeOrientationWhenRotating()
706 final ConfigChangeHandlingActivity activity = activitySession.getActivity(); in assertDisplayContextDoesntChangeOrientationWhenRotating()
750 final ActivitySession activitySession = createManagedActivityClientSession() in testFixedOrientationWhenRotating() local
777 final SizeInfo currentSize = activitySession.getConfigInfo().sizeInfo; in testFixedOrientationWhenRotating()
945 final ActivitySession activitySession = createManagedActivityClientSession()
951 SizeInfo dockedActivitySizes = getActivitySizeInfo(activitySession);
[all …]
DAmProfileTests.java116 final ActivitySession activitySession; in testProfile() local
118 activitySession = createManagedActivityClientSession().startActivity( in testProfile()
122 activitySession = startActivityProfiling(PROFILEABLE_APP_ACTIVITY, sampling, streaming); in testProfile()
131 activitySession.sendCommandAndWaitReply(COMMAND_WAIT_FOR_PROFILE_OUTPUT); in testProfile()
DMultiDisplaySystemDecorationTests.java891 TestActivitySession<? extends ImeTestActivity> activitySession, int expectDisplayId) { in tapAndAssertEditorFocusedOnImeActivity() argument
893 waitAndAssertActivityStateOnDisplay(activitySession.getActivity().getComponentName(), in tapAndAssertEditorFocusedOnImeActivity()
896 activitySession.runOnMainSyncAndWait(() -> { in tapAndAssertEditorFocusedOnImeActivity()
897 final EditText editText = activitySession.getActivity().mEditText; in tapAndAssertEditorFocusedOnImeActivity()
900 final ComponentName expectComponent = activitySession.getActivity().getComponentName(); in tapAndAssertEditorFocusedOnImeActivity()
902 mWmState.computeState(activitySession.getActivity().getComponentName()); in tapAndAssertEditorFocusedOnImeActivity()
908 TestActivitySession<? extends ImeTestActivity> activitySession, ImeEventStream stream) in showSoftInputAndAssertImeShownOnDisplay() argument
910 activitySession.runOnMainSyncAndWait( in showSoftInputAndAssertImeShownOnDisplay()
911 activitySession.getActivity()::showSoftInput); in showSoftInputAndAssertImeShownOnDisplay()
913 activitySession.getActivity().mEditText.getPrivateImeOptions()), TIMEOUT); in showSoftInputAndAssertImeShownOnDisplay()
DMultiDisplayClientTests.java220 final TestActivitySession<ClientTestActivity> activitySession = in testViewGetDisplay() local
228 activitySession.launchTestActivityOnDisplaySync(ClientTestActivity.class, displayId); in testViewGetDisplay()
230 final Activity activity = activitySession.getActivity(); in testViewGetDisplay()
241 activitySession.runOnMainAndAssertWithTimeout( in testViewGetDisplay()
DStartActivityTests.java334 final TestActivitySession<Activities.RegularActivity> activitySession = in testStartActivitiesTaskOverlayStayOnTop() local
336 activitySession.launchTestActivityOnDisplaySync(regularActivityName, baseIntent, in testStartActivitiesTaskOverlayStayOnTop()
340 final Activity baseActivity = activitySession.getActivity(); in testStartActivitiesTaskOverlayStayOnTop()
DKeyguardTests.java156 final ActivitySessionClient activitySession = createManagedActivityClientSession(); in testFinishMultipleShowWhenLockedActivities() local
160 activitySession.startActivity(getLaunchActivityBuilder() in testFinishMultipleShowWhenLockedActivities()
360 final ActivitySessionClient activitySession = createManagedActivityClientSession(); in testNoTransientConfigurationWhenShowWhenLockedRequestsOrientation() local
363 activitySession.startActivity(getLaunchActivityBuilder() in testNoTransientConfigurationWhenShowWhenLockedRequestsOrientation()
DMultiDisplayPolicyTests.java231 ActivitySession activitySession, SizeInfo initialSize) { in rotateAndCheckSameSizes() argument
234 final SizeInfo rotatedSize = activitySession.getConfigInfo().sizeInfo; in rotateAndCheckSameSizes()
/cts/tests/devicestate/src/android/hardware/devicestate/cts/
DDeviceStateManagerTests.java136 final TestActivitySession<DeviceStateTestActivity> activitySession = in testRequestStateSucceedsAsTopApp() local
139 activitySession.launchTestActivityOnDisplaySync( in testRequestStateSucceedsAsTopApp()
144 DeviceStateTestActivity activity = activitySession.getActivity(); in testRequestStateSucceedsAsTopApp()
172 final TestActivitySession<DeviceStateTestActivity> activitySession = in testRequestStateFailsAsBackgroundApp() local
174 activitySession.launchTestActivityOnDisplaySync( in testRequestStateFailsAsBackgroundApp()
179 DeviceStateTestActivity activity = activitySession.getActivity(); in testRequestStateFailsAsBackgroundApp()
/cts/tests/tests/content/src/android/content/cts/
DContextTest.java1037 try (ActivitySession activitySession = new ActivitySession()) { in testStartActivityAsUser() argument
1040 activitySession.assertActivityLaunched(intent.getComponent().getClassName(), in testStartActivityAsUser()
1047 try (ActivitySession activitySession = new ActivitySession()) { in testStartActivity() argument
1051 activitySession.assertActivityLaunched(intent.getComponent().getClassName(), in testStartActivity()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DActivityManagerTestBase.java2031 static List<ActivityCallback> assertActivityLifecycle(ActivitySession activitySession,
2033 final String name = activitySession.getName().flattenToShortString();
2034 final List<ActivityCallback> callbackHistory = activitySession.takeCallbackHistory();