Home
last modified time | relevance | path

Searched refs:ActivitySession (Results 1 – 18 of 18) sorted by relevance

/cts/tests/framework/base/biometrics/src/android/server/biometrics/
DBiometricActivityTests.java62 ActivitySession activitySession = in testBiometricOnly_authenticateFromForegroundActivity()
63 new ActivitySession(this, CLASS_2_BIOMETRIC_ACTIVITY)) { in testBiometricOnly_authenticateFromForegroundActivity()
72 @NonNull ActivitySession activitySession) throws Exception { in testBiometricOnly_authenticateFromForegroundActivity_forSensor()
115 ActivitySession activitySession = in testBiometricOnly_rejectThenErrorFromForegroundActivity()
116 new ActivitySession(this, CLASS_2_BIOMETRIC_ACTIVITY)) { in testBiometricOnly_rejectThenErrorFromForegroundActivity()
125 @NonNull ActivitySession activitySession) throws Exception { in testBiometricOnly_rejectThenErrorFromForegroundActivity_forSensor()
182 ActivitySession activitySession = in testBiometricOnly_rejectThenAuthenticate()
183 new ActivitySession(this, CLASS_2_BIOMETRIC_ACTIVITY)) { in testBiometricOnly_rejectThenAuthenticate()
192 @NonNull ActivitySession activitySession) throws Exception { in testBiometricOnly_rejectThenAuthenticate_forSensor()
250 ActivitySession activitySession = in testBiometricOnly_negativeButtonInvoked()
[all …]
DActivitySession.java26 public class ActivitySession implements AutoCloseable { class
33 public ActivitySession(@NonNull BiometricTestBase test, @NonNull ComponentName componentName) { in ActivitySession() method in ActivitySession
DBiometricSecurityTests.java187 ActivitySession activitySession = new ActivitySession(this, componentName)) { in testBiometricStrength_forSensor_authAllowed()
234 ActivitySession activitySession = new ActivitySession(this, componentName)) { in testBiometricStrength_forSensor_authDisallowed()
367 ActivitySession activitySession = new ActivitySession(this, componentName)) { in testBiometricStrengthDowngraded_forSensor()
535 ActivitySession activitySession = new ActivitySession(this, componentName)) { in testBiometricStrengthUpgraded_forSensor()
DBiometricTestBase.java425 protected void launchActivityAndWaitForResumed(@NonNull ActivitySession activitySession) { in launchActivityAndWaitForResumed()
432 protected void closeActivity(@NonNull ActivitySession activitySession) throws Exception { in closeActivity()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DAmProfileTests.java32 import android.server.wm.CommandSession.ActivitySession;
116 final ActivitySession activitySession; in testProfile()
144 private ActivitySession startActivityProfiling(ComponentName activityName, boolean sampling, in startActivityProfiling()
DActivityVisibilityTests.java63 import android.server.wm.CommandSession.ActivitySession;
241 ActivitySession activity = sleepDeviceAndLaunchTurnScreenOnActivity(lockScreenSession, in testTurnScreenOnActivity()
268 ActivitySession activity = sleepDeviceAndLaunchTurnScreenOnActivity(lockScreenSession, in testFreeformWindowTurnScreenOnActivity()
282 private ActivitySession sleepDeviceAndLaunchTurnScreenOnActivity( in sleepDeviceAndLaunchTurnScreenOnActivity()
787 final ActivitySession activity = activityClient.startActivity( in testConvertTranslucentOnTranslucentActivity()
802 final ActivitySession activity = activityClient.startActivity( in testConvertTranslucentOnNonTopTranslucentActivity()
820 final ActivitySession activity = activityClient.startActivity( in testConvertTranslucentOnOpaqueActivity()
835 final ActivitySession activity = activityClient.startActivity( in testConvertTranslucentOnNonTopOpaqueActivity()
DAppConfigurationTests.java67 import android.server.wm.CommandSession.ActivitySession;
208 final ActivitySession activitySession = noRelaunchActivityClient.getLastStartedSession(); in rotateAndCheckSizes()
750 final ActivitySession activitySession = createManagedActivityClientSession() in testFixedOrientationWhenRotating()
945 final ActivitySession activitySession = createManagedActivityClientSession()
981 final ActivitySession fullscreenActivitySession = createManagedActivityClientSession()
992 final ActivitySession secondActivitySession = createManagedActivityClientSession()
1008 final ActivitySession thirdActivitySession = createManagedActivityClientSession()
1028 final ActivitySession freeformActivitySession = createManagedActivityClientSession() in testAppConfigurationMatchesActivityInFreeform()
1038 private boolean activityAndAppSizesMatch(ActivitySession activitySession) { in activityAndAppSizesMatch()
1044 private SizeInfo getActivitySizeInfo(ActivitySession activitySession) { in getActivitySizeInfo()
[all …]
DMultiDisplaySecurityTests.java69 import android.server.wm.CommandSession.ActivitySession;
391 final ActivitySession session1 = virtualDisplayLauncher.launchActivityOnDisplay( in testDisplayHasAccess_UIDCanPresentOnPrivateDisplay()
400 final ActivitySession session2 = virtualDisplayLauncher.launchActivityOnDisplay( in testDisplayHasAccess_UIDCanPresentOnPrivateDisplay()
420 final ActivitySession session1 = virtualDisplayLauncher.launchActivityOnDisplay( in testDisplayHasAccess_NoAccessWhenUIDNotPresentOnPrivateDisplay()
430 final ActivitySession session2 = virtualDisplayLauncher.launchActivityOnDisplay( in testDisplayHasAccess_NoAccessWhenUIDNotPresentOnPrivateDisplay()
455 private boolean isUidAccesibleOnDisplay(ActivitySession session) { in isUidAccesibleOnDisplay()
DStartActivityTests.java52 import android.server.wm.CommandSession.ActivitySession;
219 final CommandSession.ActivitySession activitySession3 = in testStartActivityByNavigateUpToFromDiffUid()
379 final ActivitySession activity = createManagedActivityClientSession() in startActivitiesAndGetTaskIds()
DSplashscreenTests.java123 private CommandSession.ActivitySession prepareTestLauncher() { in prepareTestLauncher()
132 private void startActivityFromTestLauncher(CommandSession.ActivitySession homeActivity, in startActivityFromTestLauncher()
352 final CommandSession.ActivitySession homeActivity = prepareTestLauncher(); in launchRuntimeHandleExitAnimationActivity()
428 final CommandSession.ActivitySession homeActivity = prepareTestLauncher(); in testHandleExitIconAnimatingActivity()
452 final CommandSession.ActivitySession homeActivity = prepareTestLauncher(); in testCancelHandleExitIconAnimatingActivity()
517 final CommandSession.ActivitySession homeActivity = prepareTestLauncher(); in testOverrideSplashscreenTheme()
DMultiDisplayPolicyTests.java53 import android.server.wm.CommandSession.ActivitySession;
204 final ActivitySession resizeableActivitySession = in testRotationNotAffectingSecondaryScreen()
220 final ActivitySession testActivitySession = in testRotationNotAffectingSecondaryScreen()
231 ActivitySession activitySession, SizeInfo initialSize) { in rotateAndCheckSameSizes()
DDisplaySizeTest.java89 final CommandSession.ActivitySession activity = createManagedActivityClientSession() in testCompatibilityDialogAfterReturn()
DKeyguardTests.java54 import android.server.wm.CommandSession.ActivitySession;
159 final ActivitySession showWhenLockedActivitySession = in testFinishMultipleShowWhenLockedActivities()
362 final ActivitySession showWhenLockedActivitySession = in testNoTransientConfigurationWhenShowWhenLockedRequestsOrientation()
DMultiDisplayTestBase.java62 import android.server.wm.CommandSession.ActivitySession;
631 ActivitySession launchActivityOnDisplay(ComponentName activityName, in launchActivityOnDisplay()
637 ActivitySession launchActivityOnDisplay(ComponentName activityName, in launchActivityOnDisplay()
651 ActivitySession launchActivity(Consumer<LaunchActivityBuilder> setupBuilder) { in launchActivity()
DMultiDisplayActivityLaunchTests.java77 import android.server.wm.CommandSession.ActivitySession;
283 final ActivitySession nonResizeableSession = virtualLauncher.launchActivity( in testMoveNonResizeableActivityToSecondaryDisplay()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DCommandSession.java169 public static class ActivitySession {
179 ActivitySession(ActivitySessionClient client, boolean requireReply) {
397 private final ArrayMap<String, ActivitySession> mSessions = new ArrayMap<>();
410 public ActivitySession startActivity(Intent intent) {
422 public ActivitySession startActivity(Intent intent, Bundle options, boolean waitIdle) {
424 final ActivitySession session = new ActivitySession(this, waitIdle);
439 public ActivitySession startActivity(LaunchProxy proxy) {
442 final ActivitySession session = new ActivitySession(this, waitIdle);
474 private void setupLaunchIntent(Intent intent, boolean waitIdle, ActivitySession session) {
484 public ActivitySession getLastStartedSession() {
[all …]
DActivityManagerTestBase.java144 import android.server.wm.CommandSession.ActivitySession;
2031 static List<ActivityCallback> assertActivityLifecycle(ActivitySession activitySession,
/cts/tests/tests/content/src/android/content/cts/
DContextTest.java1037 try (ActivitySession activitySession = new ActivitySession()) { in testStartActivityAsUser()
1047 try (ActivitySession activitySession = new ActivitySession()) { in testStartActivity()
1059 private class ActivitySession implements AutoCloseable { class in ContextTest