Home
last modified time | relevance | path

Searched refs:onUser (Results 1 – 25 of 51) sorted by relevance

123

/cts/common/device-side/bedstead/testapp/src/library/main/java/com/android/bedstead/testapp/
DTestAppEvents.kt132 ActivityCreatedEvent.queryPackage(mTestApp.packageName()).onUser(mTestApp.user())
135 ActivityDestroyedEvent.queryPackage(mTestApp.packageName()).onUser(mTestApp.user())
138 ActivityPausedEvent.queryPackage(mTestApp.packageName()).onUser(mTestApp.user())
141 ActivityRestartedEvent.queryPackage(mTestApp.packageName()).onUser(mTestApp.user())
144 ActivityResumedEvent.queryPackage(mTestApp.packageName()).onUser(mTestApp.user())
147 ActivityStartedEvent.queryPackage(mTestApp.packageName()).onUser(mTestApp.user())
150 ActivityStoppedEvent.queryPackage(mTestApp.packageName()).onUser(mTestApp.user())
153 BroadcastReceivedEvent.queryPackage(mTestApp.packageName()).onUser(mTestApp.user())
156 DeviceAdminBugreportFailedEvent.queryPackage(mTestApp.packageName()).onUser(mTestApp.user())
159 DeviceAdminBugreportSharedEvent.queryPackage(mTestApp.packageName()).onUser(mTestApp.user())
[all …]
/cts/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/events/activities/
DActivityEventsImpl.java44 .onUser(mUser); in activityCreated()
52 .onUser(mUser); in activityDestroyed()
60 .onUser(mUser); in activityPaused()
68 .onUser(mUser); in activityRestarted()
76 .onUser(mUser); in activityResumed()
85 .onUser(mUser); in activityStarted()
94 .onUser(mUser); in activityStopped()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DProfileOwnerTest.kt47 @EnsureHasNoAccounts(onUser = UserType.ANY) in <lambda>()
68 onUser = UserType.ANY, allowPreCreatedAccounts = false, failureMode = FailureMode.SKIP) in <lambda>()
87 @EnsureHasNoAccounts(onUser = UserType.ANY) in <lambda>()
88 @EnsureHasAccount(features = [FEATURE_DISALLOW], onUser = UserType.INITIAL_USER) in <lambda>()
106 @EnsureHasNoAccounts(onUser = UserType.ANY) in <lambda>()
107 @EnsureHasAccount(features = [], onUser = UserType.INITIAL_USER) in <lambda>()
141 @EnsureHasNoAccounts(onUser = UserType.ANY) in <lambda>()
142 @EnsureHasAccount(features = [FEATURE_DISALLOW], onUser = UserType.INITIAL_USER) in <lambda>()
176 @EnsureHasNoAccounts(onUser = UserType.ANY) in <lambda>()
177 @EnsureHasAccount(features = [FEATURE_ALLOW, FEATURE_DISALLOW], onUser = UserType.INITIAL_USER) in <lambda>()
[all …]
DDeviceOwnerTest.kt129 @EnsureHasNoAccounts(onUser = UserType.ANY) in <lambda>()
151 onUser = UserType.ANY, in <lambda>()
175 @EnsureHasNoAccounts(onUser = UserType.ANY) in <lambda>()
176 @EnsureHasAccount(features = [], onUser = UserType.ADDITIONAL_USER) in <lambda>()
210 @EnsureHasNoAccounts(onUser = UserType.ANY) in <lambda>()
211 @EnsureHasAccount(features = [FEATURE_DISALLOW], onUser = UserType.ADDITIONAL_USER) in <lambda>()
243 @EnsureHasNoAccounts(onUser = UserType.ANY) in <lambda>()
246 onUser = UserType.ADDITIONAL_USER in <lambda>()
279 @EnsureHasNoAccounts(onUser = UserType.ANY) in <lambda>()
280 @EnsureHasAccount(features = [FEATURE_ALLOW], onUser = UserType.ADDITIONAL_USER) in <lambda>()
[all …]
DDeviceManagementCoexistenceTest.java162 @EnsureHasDevicePolicyManagerRoleHolder(onUser = UserType.SYSTEM_USER)
185 @EnsureHasDevicePolicyManagerRoleHolder(onUser = UserType.SYSTEM_USER)
216 @EnsureHasDevicePolicyManagerRoleHolder(onUser = UserType.SYSTEM_USER)
260 @EnsureHasDevicePolicyManagerRoleHolder(onUser = UserType.SYSTEM_USER)
287 @EnsureHasDevicePolicyManagerRoleHolder(onUser = UserType.SYSTEM_USER)
314 @EnsureHasDevicePolicyManagerRoleHolder(onUser = UserType.SYSTEM_USER)
342 @EnsureHasDevicePolicyManagerRoleHolder(onUser = UserType.SYSTEM_USER)
364 @EnsureHasDevicePolicyManagerRoleHolder(onUser = UserType.SYSTEM_USER)
385 @EnsureHasDevicePolicyManagerRoleHolder(onUser = UserType.SYSTEM_USER)
410 @EnsureHasDevicePolicyManagerRoleHolder(onUser = UserType.SYSTEM_USER)
[all …]
DDevicePolicyManagementRoleHolderTest.java113 @EnsureHasDevicePolicyManagerRoleHolder(onUser = SYSTEM_USER)
191 @EnsureHasNoAccounts(onUser = ANY)
208 @EnsureHasNoAccounts(onUser = ANY)
229 @EnsureHasNoAccounts(onUser = ANY)
249 @EnsureHasAccount(onUser = ADDITIONAL_USER, features = {})
267 @EnsureHasAccount(onUser = ADDITIONAL_USER, features = FEATURE_ALLOW)
DUserTest.kt114 onUser = UserType.ADMIN_USER in <lambda>()
121 @EnsureDoesNotHaveUserRestriction(DISALLOW_REMOVE_USER, onUser = UserType.ANY) in <lambda>()
134 onUser = UserType.ADMIN_USER in <lambda>()
225 onUser = UserType.ADMIN_USER in <lambda>()
239 onUser = UserType.ADMIN_USER in <lambda>()
/cts/tests/tests/packageinstaller/userrestriction/src/android/packageinstaller/userrestriction/cts/
DUserRestrictionInstallTest.kt129 @EnsureHasUserRestriction(value = DISALLOW_DEBUGGING_FEATURES, onUser = UserType.WORK_PROFILE) in <lambda>()
130 @EnsureDoesNotHaveUserRestriction(value = DISALLOW_INSTALL_APPS, onUser = UserType.WORK_PROFILE) in <lambda>()
153 @EnsureHasUserRestriction(value = DISALLOW_DEBUGGING_FEATURES, onUser = UserType.WORK_PROFILE) in <lambda>()
154 @EnsureDoesNotHaveUserRestriction(value = DISALLOW_INSTALL_APPS, onUser = UserType.WORK_PROFILE) in <lambda>()
172 @EnsureHasUserRestriction(value = DISALLOW_DEBUGGING_FEATURES, onUser = UserType.WORK_PROFILE) in <lambda>()
173 @EnsureDoesNotHaveUserRestriction(value = DISALLOW_INSTALL_APPS, onUser = UserType.WORK_PROFILE) in <lambda>()
192 @EnsureHasUserRestriction(value = DISALLOW_DEBUGGING_FEATURES, onUser = UserType.WORK_PROFILE) in <lambda>()
193 @EnsureDoesNotHaveUserRestriction(value = DISALLOW_INSTALL_APPS, onUser = UserType.WORK_PROFILE) in <lambda>()
209 @EnsureHasUserRestriction(value = DISALLOW_INSTALL_APPS, onUser = UserType.WORK_PROFILE) in <lambda>()
212 onUser = UserType.WORK_PROFILE in <lambda>()
[all …]
/cts/common/device-side/bedstead/harrier/common/src/main/java/com/android/bedstead/harrier/annotations/
DRequireGmsBuild.java33 @RequirePackageInstalled(value = GMS_CORE_PACKAGE, onUser = UserType.ANY)
34 @RequirePackageInstalled(value = PLAY_STORE_PACKAGE, onUser = UserType.ANY)
35 @RequirePackageInstalled(value = GSF_PACKAGE, onUser = UserType.ANY)
DRequireAospBuild.java33 @RequirePackageNotInstalled(value = GMS_CORE_PACKAGE, onUser = UserType.ANY)
34 @RequirePackageNotInstalled(value = PLAY_STORE_PACKAGE, onUser = UserType.ANY)
35 @RequirePackageNotInstalled(value = GSF_PACKAGE, onUser = UserType.ANY)
DEnsureHasTestContentSuggestionsService.java40 UserType onUser() default INSTRUMENTED_USER; in onUser() method
DEnsureDefaultContentSuggestionsServiceDisabled.java40 UserType onUser() default INSTRUMENTED_USER; in onUser() method
DEnsureDefaultContentSuggestionsServiceEnabled.java40 UserType onUser() default INSTRUMENTED_USER; in onUser() method
DEnsureDoesNotHaveUserRestriction.java43 UserType onUser() default UserType.INSTRUMENTED_USER; in onUser() method
DEnsurePackageNotInstalled.java44 UserType onUser() default UserType.INSTRUMENTED_USER; in onUser() method
DEnsureHasAccountAuthenticator.java41 UserType onUser() default INSTRUMENTED_USER; in onUser() method
DEnsureSecureSettingSet.java34 UserType onUser() default UserType.INSTRUMENTED_USER; in onUser() method
DRequirePackageNotInstalled.java44 UserType onUser() default UserType.INSTRUMENTED_USER; in onUser() method
/cts/common/device-side/bedstead/harrier/src/main/java/com/android/bedstead/harrier/
DDeviceState.java514 ensureDefaultContentSuggestionsServiceEnabledAnnotation.onUser(),
523 ensureDefaultContentSuggestionsServiceDisabledAnnotation.onUser(),
531 ensureHasTestContentSuggestionsServiceAnnotation.onUser());
596 resolveUserTypeToUser(ensureTestAppInstalledAnnotation.onUser()),
674 requirePackageInstalledAnnotation.onUser(),
682 requirePackageNotInstalledAnnotation.onUser(),
691 ensurePackageNotInstalledAnnotation.onUser()
730 ensureSecureSettingSetAnnotation.onUser(),
781 ensureHasAccountAuthenticator(ensureHasAccountAuthenticatorAnnotation.onUser());
787 ensureHasAccountAnnotation.onUser(),
[all …]
/cts/common/device-side/bedstead/modules/enterprise/src/main/kotlin/com/android/bedstead/enterprise/annotations/parameterized/
DIncludeRunOnDevicePolicyManagementRoleHolderProfile.java45 @EnsureHasNoProfileOwner(onUser = INITIAL_USER)
46 @EnsureHasNoProfileOwner(onUser = SYSTEM_USER)
48 @EnsureHasDevicePolicyManagerRoleHolder(onUser = INITIAL_USER, isPrimary = true)
DIncludeRunOnDevicePolicyManagementRoleHolderSecondaryUser.java42 @EnsureHasNoDpc(onUser = ANY)
43 @EnsureHasDevicePolicyManagerRoleHolder(onUser = SYSTEM_USER, isPrimary = true)
/cts/tests/tests/accounts/multiuser/src/test/android/accounts/cts/multiuser/
DAccountManagerTest.java53 @EnsureHasAccount(onUser = ADDITIONAL_USER, features = "feature")
69 @EnsureHasAccount(onUser = ADDITIONAL_USER, features = "feature")
84 @EnsureHasAccount(onUser = ADDITIONAL_USER, features = {})
/cts/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/
DEventLogsQuery.java91 public F onUser(UserHandle userHandle) { in onUser() method in EventLogsQuery
100 public F onUser(UserReference userReference) { in onUser() method in EventLogsQuery
101 return onUser(userReference.userHandle()); in onUser()
/cts/common/device-side/bedstead/modules/enterprise/src/main/kotlin/com/android/bedstead/enterprise/
DProfileOwnersComponent.kt68 val user: UserReference = deviceState.resolveUserTypeToUser(onUser) in <lambda>()
197 fun profileOwner(onUser: UserReference): RemoteDpc { in <lambda>()
198 check(profileOwners.containsKey(onUser)) { in <lambda>()
202 val profileOwner = profileOwners[onUser] in <lambda>()
DEnterpriseAnnotationExecutor.kt47 annotation.onUser, in applyAnnotation()
66 profileOwnersComponent.ensureHasNoProfileOwner(annotation.onUser) in applyAnnotation()

123