Home
last modified time | relevance | path

Searched refs:switchedToUser (Results 1 – 25 of 26) sorted by relevance

12

/cts/common/device-side/bedstead/modules/multiuser/src/main/kotlin/com/android/bedstead/multiuser/
DUsersComponent.kt111 switchedToUser = OptionalBoolean.TRUE in <lambda>()
128 fun ensureSwitchedToUser(switchedToUser: OptionalBoolean, user: UserReference) { in <lambda>()
129 if (switchedToUser == OptionalBoolean.TRUE) { in <lambda>()
132 } else if (switchedToUser == OptionalBoolean.FALSE) { in <lambda>()
152 switchedToUser: OptionalBoolean in <lambda>()
163 ensureSwitchedToUser(switchedToUser, user) in <lambda>()
233 switchedToUser: OptionalBoolean in <lambda>()
250 ensureSwitchedToUser(switchedToUser, mAdditionalUser!!) in <lambda>()
252 ensureHasUser(UserType.SECONDARY_USER_TYPE_NAME, installInstrumentedApp, switchedToUser) in <lambda>()
351 fun requireRunOnAdditionalUser(switchedToUser: OptionalBoolean) { in <lambda>()
[all …]
DMultiUserAnnotationExecutor.kt56 switchedToUser in <lambda>()
61 switchedToUser in <lambda>()
93 switchedToUser(annotation) in <lambda>()
102 switchedToUser(annotation) in <lambda>()
110 private fun Class<out Annotation>.switchedToUser(annotation: Annotation) = in <lambda>() method
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DUserTest.kt111 @EnsureHasAdditionalUser(switchedToUser = FALSE) in <lambda>()
120 @RequireRunOnSystemUser(switchedToUser = ANY) in <lambda>()
140 @RequireRunOnSystemUser(switchedToUser = ANY) in <lambda>()
263 @EnsureHasAdditionalUser(switchedToUser = FALSE) in <lambda>()
277 @EnsureHasAdditionalUser(switchedToUser = FALSE) in <lambda>()
292 @EnsureHasAdditionalUser(switchedToUser = FALSE) in <lambda>()
307 @EnsureHasAdditionalUser(switchedToUser = FALSE) in <lambda>()
DWipeDataTest.java116 @RequireRunOnSystemUser(switchedToUser = ANY)
DBugReportTest.kt127 @EnsureHasAdditionalUser(switchedToUser = TRUE) in <lambda>()
/cts/tests/tests/multiuser/src/android/multiuser/cts/
DUserVisibilityVisibleBackgroundUsersOnDefaultDisplayTest.java71 @EnsureHasAdditionalUser(switchedToUser = FALSE)
92 @EnsureHasAdditionalUser(switchedToUser = FALSE)
DUserVisibilityVisibleBackgroundUsersTest.java62 @EnsureHasSecondaryUser(switchedToUser = FALSE)
DUserVisibilityTest.java92 @RequireRunOnSecondaryUser(switchedToUser = FALSE)
149 @RequireRunOnSecondaryUser(switchedToUser = FALSE)
/cts/common/device-side/bedstead/harrier/common/src/main/java/com/android/bedstead/harrier/annotations/meta/
DRequireRunOnUser.java34 OptionalBoolean switchedToUser() default TRUE; in switchedToUser() method
DEnsureHasUser.java37 OptionalBoolean switchedToUser() default ANY; in switchedToUser() method
/cts/common/device-side/bedstead/harrier/common/src/main/java/com/android/bedstead/harrier/annotations/
DRequireRunOnSingleUser.java31 @RequireRunOnSecondaryUser(switchedToUser = OptionalBoolean.ANY)
DEnsureHasAdditionalUser.java52 OptionalBoolean switchedToUser() default ANY; in switchedToUser() method
DRequireRunOnInitialUser.java52 OptionalBoolean switchedToUser() default TRUE; in switchedToUser() method
DEnsureHasSecondaryUser.java50 OptionalBoolean switchedToUser() default ANY; in switchedToUser() method
DRequireRunOnSecondaryUser.java53 OptionalBoolean switchedToUser() default TRUE; in switchedToUser() method
DRequireRunOnSystemUser.java54 OptionalBoolean switchedToUser() default ANY; in switchedToUser() method
DRequireRunOnPrimaryUser.java54 OptionalBoolean switchedToUser() default TRUE; in switchedToUser() method
DRequireRunOnAdditionalUser.java61 OptionalBoolean switchedToUser() default TRUE; in switchedToUser() method
/cts/common/device-side/bedstead/modules/enterprise/src/main/kotlin/com/android/bedstead/enterprise/annotations/parameterized/
DIncludeRunOnBackgroundDeviceOwnerUser.java41 @RequireRunOnSystemUser(switchedToUser = FALSE)
DIncludeRunOnSystemDeviceOwnerUser.java39 @RequireRunOnSystemUser(switchedToUser = OptionalBoolean.ANY)
DIncludeRunOnFinancedDeviceOwnerUser.java40 @RequireRunOnSystemUser(switchedToUser = OptionalBoolean.ANY)
DIncludeRunOnDevicePolicyManagementRoleHolderUser.java41 @RequireRunOnSystemUser(switchedToUser = OptionalBoolean.ANY)
/cts/common/device-side/bedstead/harrier/src/main/java/com/android/bedstead/harrier/
DBedsteadJUnit4.java120 private static RequireRunOnPrimaryUser requireRunOnPrimaryUser(OptionalBoolean switchedToUser) { in requireRunOnPrimaryUser() argument
121 return new AutoAnnotation_BedsteadJUnit4_requireRunOnPrimaryUser(switchedToUser); in requireRunOnPrimaryUser()
130 OptionalBoolean switchedToUser) { in requireRunOnSecondaryUser() argument
131 return new AutoAnnotation_BedsteadJUnit4_requireRunOnSecondaryUser(switchedToUser); in requireRunOnSecondaryUser()
160 static RequireRunOnInitialUser requireRunOnInitialUser(OptionalBoolean switchedToUser) { in requireRunOnInitialUser() argument
161 return new AutoAnnotation_BedsteadJUnit4_requireRunOnInitialUser(switchedToUser); in requireRunOnInitialUser()
348 .switchedToUser()));
354 .switchedToUser()));
368 .switchedToUser()));
/cts/common/device-side/bedstead/harrier/src/test/java/com/android/bedstead/harrier/
DDeviceStateTest.java541 @RequireRunOnInitialUser(switchedToUser = FALSE)
560 @EnsureHasAdditionalUser(switchedToUser = FALSE) // We don't test the default as it's ANY
566 @EnsureHasAdditionalUser(switchedToUser = TRUE)
848 @RequireRunOnSystemUser(switchedToUser = OptionalBoolean.ANY)
854 @EnsureHasAdditionalUser(switchedToUser = TRUE)
855 @RequireRunOnSystemUser(switchedToUser = OptionalBoolean.ANY)
/cts/common/device-side/bedstead/modules/multiuser/src/test/kotlin/com/android/bedstead/multiuser/
DUsersTest.kt532 @EnsureHasSecondaryUser(switchedToUser = OptionalBoolean.TRUE) in <lambda>()
538 @RequireRunOnPrimaryUser(switchedToUser = OptionalBoolean.TRUE) in <lambda>()

12