Home
last modified time | relevance | path

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

/cts/tests/framework/base/biometrics/src/android/server/biometrics/
DBiometricActivityTests.java75 ActivitySession activitySession = in testBiometricOnly_authenticateFromForegroundActivity()
76 new ActivitySession(this, CLASS_2_BIOMETRIC_ACTIVITY)) { in testBiometricOnly_authenticateFromForegroundActivity()
85 @NonNull ActivitySession activitySession) throws Exception { in testBiometricOnly_authenticateFromForegroundActivity_forSensor()
127 ActivitySession activitySession = in testBiometricOnly_rejectThenErrorFromForegroundActivity()
128 new ActivitySession(this, CLASS_2_BIOMETRIC_ACTIVITY)) { in testBiometricOnly_rejectThenErrorFromForegroundActivity()
137 @NonNull ActivitySession activitySession) throws Exception { in testBiometricOnly_rejectThenErrorFromForegroundActivity_forSensor()
200 ActivitySession activitySession = in testBiometricOnly_rejectThenAuthenticate()
201 new ActivitySession(this, CLASS_2_BIOMETRIC_ACTIVITY)) { in testBiometricOnly_rejectThenAuthenticate()
210 @NonNull ActivitySession activitySession) throws Exception { in testBiometricOnly_rejectThenAuthenticate_forSensor()
271 ActivitySession activitySession = in testBiometricOnly_negativeButtonInvoked()
[all …]
DActivitySession.java27 public class ActivitySession implements AutoCloseable { class
34 public ActivitySession(@NonNull BiometricTestBase test, @NonNull ComponentName componentName) { in ActivitySession() method in ActivitySession
DBiometricSecurityTests.java213 ActivitySession activitySession = new ActivitySession(this, componentName)) { in testBiometricStrength_forSensor_authAllowed()
254 ActivitySession activitySession = new ActivitySession(this, componentName)) { in testBiometricStrength_forSensor_authDisallowed()
387 ActivitySession activitySession = new ActivitySession(this, componentName)) { in testBiometricStrengthDowngraded_forSensor()
547 ActivitySession activitySession = new ActivitySession(this, componentName)) { in testBiometricStrengthUpgraded_forSensor()
DBiometricTestBase.java525 protected void launchActivityAndWaitForResumed(@NonNull ActivitySession activitySession) { in launchActivityAndWaitForResumed()
532 protected void closeActivity(@NonNull ActivitySession activitySession) throws Exception { in closeActivity()
/cts/tests/framework/base/windowmanager/src/android/server/wm/activity/
DAmProfileTests.java35 import android.server.wm.CommandSession.ActivitySession;
119 final ActivitySession activitySession; in testProfile()
147 private ActivitySession startActivityProfiling(ComponentName activityName, boolean sampling, in startActivityProfiling()
DActivityVisibilityTests.java65 import android.server.wm.CommandSession.ActivitySession;
230 final ActivitySession activity = activityClient.startActivity( in testTurnScreenOnActivity()
273 ActivitySession activity = sleepDeviceAndLaunchTurnScreenOnActivity(lockScreenSession, in testTurnScreenOnActivity()
301 ActivitySession activity = sleepDeviceAndLaunchTurnScreenOnActivity(lockScreenSession, in testFreeformWindowTurnScreenOnActivity()
315 private ActivitySession sleepDeviceAndLaunchTurnScreenOnActivity( in sleepDeviceAndLaunchTurnScreenOnActivity()
818 final ActivitySession activity = activityClient.startActivity( in testConvertTranslucentOnTranslucentActivity()
833 final ActivitySession activity = activityClient.startActivity( in testConvertTranslucentOnNonTopTranslucentActivity()
851 final ActivitySession activity = activityClient.startActivity( in testConvertTranslucentOnOpaqueActivity()
866 final ActivitySession activity = activityClient.startActivity( in testConvertTranslucentOnNonTopOpaqueActivity()
DStartActivityTests.java59 import android.server.wm.CommandSession.ActivitySession;
242 final CommandSession.ActivitySession activitySession3 = in verifyNavigateUpTo()
480 final ActivitySession activity = createManagedActivityClientSession() in startActivitiesAndGetTaskIds()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DCommandSession.java171 public static class ActivitySession {
182 ActivitySession(ActivitySessionClient client, boolean requireReply) {
437 private final ArrayMap<String, ActivitySession> mSessions = new ArrayMap<>();
453 public ActivitySession startActivity(Intent intent) {
465 public ActivitySession startActivity(Intent intent, Bundle options, boolean waitIdle) {
467 final ActivitySession session = new ActivitySession(this, waitIdle);
482 public ActivitySession startActivity(LaunchProxy proxy) {
485 final ActivitySession session = new ActivitySession(this, waitIdle);
517 private void setupLaunchIntent(Intent intent, boolean waitIdle, ActivitySession session) {
527 public ActivitySession getLastStartedSession() {
[all …]
DMultiDisplayTestBase.java61 import android.server.wm.CommandSession.ActivitySession;
441 public ActivitySession launchActivityOnDisplay(ComponentName activityName, in launchActivityOnDisplay()
447 public ActivitySession launchActivityOnDisplay(ComponentName activityName, in launchActivityOnDisplay()
461 public ActivitySession launchActivity(Consumer<LaunchActivityBuilder> setupBuilder) { in launchActivity()
DActivityManagerTestBase.java162 import android.server.wm.CommandSession.ActivitySession;
2138 ActivitySession activitySession, boolean relaunched) {
2911 protected CommandSession.ActivitySession mActivity;
2995 public CommandSession.ActivitySession getActivitySession() {
3015 public CommandSession.ActivitySession getActivitySession() {
/cts/tests/framework/base/windowmanager/src/android/server/wm/display/
DAppConfigurationTests.java65 import android.server.wm.CommandSession.ActivitySession;
210 final ActivitySession activitySession = noRelaunchActivityClient.getLastStartedSession(); in rotateAndCheckSizes()
744 final ActivitySession activitySession = createManagedActivityClientSession() in testFixedOrientationWhenRotating()
974 final ActivitySession activitySession = createManagedActivityClientSession()
1010 final ActivitySession fullscreenActivitySession = createManagedActivityClientSession()
1021 final ActivitySession secondActivitySession = createManagedActivityClientSession()
1037 final ActivitySession thirdActivitySession = createManagedActivityClientSession()
1057 final ActivitySession freeformActivitySession = createManagedActivityClientSession() in testAppConfigurationMatchesActivityInFreeform()
1067 private boolean activityAndAppSizesMatch(ActivitySession activitySession) { in activityAndAppSizesMatch()
1073 private SizeInfo getActivitySizeInfo(ActivitySession activitySession) { in getActivitySizeInfo()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/animations/
DSplashscreenTests.java139 private CommandSession.ActivitySession prepareTestStarter() { in prepareTestStarter()
144 private void startActivitiesFromStarter(CommandSession.ActivitySession starter, in startActivitiesFromStarter()
155 private void startActivityFromStarter(CommandSession.ActivitySession starter, in startActivityFromStarter()
177 final CommandSession.ActivitySession starter = prepareTestStarter(); in testSplashscreenContent()
196 final CommandSession.ActivitySession starter = prepareTestStarter(); in testSplashscreenContent_FreeformWindow()
441 final CommandSession.ActivitySession starter = prepareTestStarter(); in testSetBackgroundColorActivity()
460 final CommandSession.ActivitySession starter = prepareTestStarter(); in testSetBackgroundColorActivity_FreeformWindow()
547 final CommandSession.ActivitySession starter = prepareTestStarter(); in testLaunchWithSolidColorOptions()
582 final CommandSession.ActivitySession starter = prepareTestStarter(); in launchActivitiesFromStarterWithOptions()
710 final CommandSession.ActivitySession starter = prepareTestStarter(); in testDefineSplashScreenStyleFromTheme()
DDisplaySizeTest.java93 final CommandSession.ActivitySession activity = createManagedActivityClientSession() in testCompatibilityDialogAfterReturn()
/cts/tests/framework/base/windowmanager/src/android/server/wm/multidisplay/
DMultiDisplaySecurityTests.java63 import android.server.wm.CommandSession.ActivitySession;
384 final ActivitySession session1 = virtualDisplayLauncher.launchActivityOnDisplay( in testDisplayHasAccess_UIDCanPresentOnPrivateDisplay()
395 final ActivitySession session2 = virtualDisplayLauncher.launchActivityOnDisplay( in testDisplayHasAccess_UIDCanPresentOnPrivateDisplay()
417 final ActivitySession session1 = virtualDisplayLauncher.launchActivityOnDisplay( in testDisplayHasAccess_NoAccessWhenUIDNotPresentOnPrivateDisplay()
429 final ActivitySession session2 = virtualDisplayLauncher.launchActivityOnDisplay( in testDisplayHasAccess_NoAccessWhenUIDNotPresentOnPrivateDisplay()
456 private boolean isUidAccessibleOnDisplay(ActivitySession session) { in isUidAccessibleOnDisplay()
DMultiDisplayPolicyTests.java53 import android.server.wm.CommandSession.ActivitySession;
211 final ActivitySession resizeableActivitySession = in testRotationNotAffectingSecondaryScreen()
227 final ActivitySession testActivitySession = in testRotationNotAffectingSecondaryScreen()
238 ActivitySession activitySession, SizeInfo initialSize) { in rotateAndCheckSameSizes()
DMultiDisplayActivityLaunchTests.java79 import android.server.wm.CommandSession.ActivitySession;
289 final ActivitySession nonResizeableSession = virtualLauncher.launchActivity( in testMoveNonResizeableActivityToSecondaryDisplay()
/cts/tests/framework/base/windowmanager/src/android/server/wm/other/
DCompatScaleTests.java145 private void runTestUpdateResourcesConfiguration(CommandSession.ActivitySession activity) { in runTestUpdateResourcesConfiguration()
420 private void addSubview(CommandSession.ActivitySession activity, String subviewId) { in addSubview()
430 private Bundle getSubViewSize(CommandSession.ActivitySession activity, String subviewId) { in getSubViewSize()
/cts/tests/framework/base/windowmanager/src/android/server/wm/keyguard/
DKeyguardTests.java63 import android.server.wm.CommandSession.ActivitySession;
248 final ActivitySession showWhenLockedActivitySession = in testFinishMultipleShowWhenLockedActivities()
441 final ActivitySession showWhenLockedActivitySession = in testNoTransientConfigurationWhenShowWhenLockedRequestsOrientation()
505 final ActivitySession nonShowWhenLockedActivitySession = in testResumeOccludingActivityFromBackground()
/cts/tests/tests/content/src/android/content/cts/
DContextTest.java1168 try (ActivitySession activitySession = new ActivitySession()) { in testStartActivityAsUser()
1179 try (ActivitySession activitySession = new ActivitySession()) { in testStartActivity()
1191 private class ActivitySession implements AutoCloseable { class in ContextTest