Home
last modified time | relevance | path

Searched refs:WORK_PROFILE (Results 1 – 16 of 16) sorted by relevance

/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DCrossProfileAppsTest.java27 import static com.android.bedstead.harrier.UserType.WORK_PROFILE;
149 @UserPair(from = WORK_PROFILE, to = ADDITIONAL_USER),
150 @UserPair(from = ADDITIONAL_USER, to = WORK_PROFILE)
162 @UserPair(from = WORK_PROFILE, to = INITIAL_USER),
163 @UserPair(from = INITIAL_USER, to = WORK_PROFILE)
174 @UserPair(from = WORK_PROFILE, to = INITIAL_USER),
175 @UserPair(from = INITIAL_USER, to = WORK_PROFILE)
187 @UserTest({INITIAL_USER, WORK_PROFILE})
204 @UserPair(from = WORK_PROFILE, to = ADDITIONAL_USER),
205 @UserPair(from = ADDITIONAL_USER, to = WORK_PROFILE),
[all …]
DCrossProfileIntentFiltersTest.java85 @UserPair(from = UserType.INITIAL_USER, to = UserType.WORK_PROFILE),
86 @UserPair(from = UserType.WORK_PROFILE, to = UserType.INITIAL_USER)})
99 @UserPair(from = UserType.INITIAL_USER, to = UserType.WORK_PROFILE),
100 @UserPair(from = UserType.WORK_PROFILE, to = UserType.INITIAL_USER)})
127 @UserPair(from = UserType.INITIAL_USER, to = UserType.WORK_PROFILE),
128 @UserPair(from = UserType.WORK_PROFILE, to = UserType.INITIAL_USER)})
154 @UserPair(from = UserType.INITIAL_USER, to = UserType.WORK_PROFILE),
155 @UserPair(from = UserType.WORK_PROFILE, to = UserType.INITIAL_USER)})
187 @UserPair(from = UserType.INITIAL_USER, to = UserType.WORK_PROFILE),
188 @UserPair(from = UserType.WORK_PROFILE, to = UserType.INITIAL_USER)})
[all …]
DCrossProfileSharingTest.java29 import static com.android.bedstead.harrier.UserType.WORK_PROFILE;
312 sDeviceState.profileOwner(WORK_PROFILE).devicePolicyManager() in getResolveInfo()
313 .addCrossProfileIntentFilter(sDeviceState.profileOwner(WORK_PROFILE) in getResolveInfo()
319 sDeviceState.profileOwner(WORK_PROFILE).devicePolicyManager() in getResolveInfo()
321 sDeviceState.profileOwner(WORK_PROFILE).componentName()); in getResolveInfo()
340 RemoteDpc remoteDpc = sDeviceState.profileOwner(WORK_PROFILE); in setSharingIntoProfileEnabled()
DManagedSubscriptionsPolicyTest.java21 import static com.android.bedstead.harrier.UserType.WORK_PROFILE;
237 WORK_PROFILE).devicePolicyManager().setManagedSubscriptionsPolicy( in setManagedSubscriptionsPolicy_enabledForNonDMPRoleHolders_works()
242 sDeviceState.profileOwner(WORK_PROFILE) in setManagedSubscriptionsPolicy_enabledForNonDMPRoleHolders_works()
248 WORK_PROFILE).devicePolicyManager().setManagedSubscriptionsPolicy( in setManagedSubscriptionsPolicy_enabledForNonDMPRoleHolders_works()
DApplicationRestrictionsTest.java23 import static com.android.bedstead.harrier.UserType.WORK_PROFILE;
454 @EnsureHasDevicePolicyManagerRoleHolder(isPrimary = true, onUser = WORK_PROFILE)
488 @EnsureHasDevicePolicyManagerRoleHolder(isPrimary = true, onUser = WORK_PROFILE)
DPermissionGrantTest.java26 import static com.android.bedstead.harrier.UserType.WORK_PROFILE;
1115 WORK_PROFILE).devicePolicyManager(); in grantSmsPermission_orgOwnedDeviceWithManagedSubscriptionsPolicySet_granted()
1116 ComponentName componentName = sDeviceState.profileOwner(WORK_PROFILE).componentName(); in grantSmsPermission_orgOwnedDeviceWithManagedSubscriptionsPolicySet_granted()
/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/tests/devicepolicy/telephony/src/android/devicepolicy/cts/telephony/
DWorkProfileTelephonyTest.java31 import static com.android.bedstead.harrier.UserType.WORK_PROFILE;
170 WORK_PROFILE).devicePolicyManager(); in sendTextMessage_fromWorkProfile_allManagedSubscriptions_smsSentSuccessfully()
191 WORK_PROFILE).devicePolicyManager().setManagedSubscriptionsPolicy( in sendTextMessage_fromWorkProfile_allManagedSubscriptions_smsSentSuccessfully()
210 WORK_PROFILE).devicePolicyManager(); in sendTextMessage_fromPersonalProfile_allManagedSubscriptions_errorUserNotAllowed()
253 WORK_PROFILE).devicePolicyManager().setManagedSubscriptionsPolicy( in sendTextMessage_fromPersonalProfile_allManagedSubscriptions_errorUserNotAllowed()
272 WORK_PROFILE).devicePolicyManager(); in allManagedSubscriptions_accessWorkMessageFromPersonalProfile_fails()
301 WORK_PROFILE).devicePolicyManager().setManagedSubscriptionsPolicy( in allManagedSubscriptions_accessWorkMessageFromPersonalProfile_fails()
318 WORK_PROFILE).devicePolicyManager(); in allManagedSubscriptions_accessWorkMessageFromWorkProfile_works()
352 WORK_PROFILE).devicePolicyManager().setManagedSubscriptionsPolicy( in allManagedSubscriptions_accessWorkMessageFromWorkProfile_works()
367 sDeviceState.profileOwner(WORK_PROFILE).devicePolicyManager().setManagedSubscriptionsPolicy( in placeCall_fromWorkProfile_allManagedSubscriptions_works()
[all …]
/cts/common/device-side/bedstead/harrier/common/src/main/java/com/android/bedstead/harrier/
DUserType.java56 WORK_PROFILE, enumConstant
/cts/common/device-side/bedstead/harrier/src/test/java/com/android/bedstead/harrier/
DBedsteadJUnit4Test.java20 import static com.android.bedstead.harrier.UserType.WORK_PROFILE;
226 @UserTest({INITIAL_USER, WORK_PROFILE})
235 @UserPair(from = INITIAL_USER, to = WORK_PROFILE),
236 @UserPair(from = WORK_PROFILE, to = INITIAL_USER),
DDeviceStateInternalTest.java139 ….apply(List.of(requirePackageRespondsToIntent(INTENT_ACTION, UserType.WORK_PROFILE), ensureHasPerm… in requirePackageRespondsToIntentAnnotation_workProfile_packageRespondsToIntent()
/cts/common/device-side/bedstead/harrier/src/main/java/com/android/bedstead/harrier/
DPolicy.java23 import static com.android.bedstead.harrier.UserType.WORK_PROFILE;
181 …Annotation(includeRunOnProfileOwnerProfileWithNoDeviceOwner(), /* roleHolderUser= */ WORK_PROFILE))
183 …eHolderAnnotation(includeRunOnOrganizationOwnedProfileOwner(), /* roleHolderUser= */ WORK_PROFILE))
186 …nnotation(includeRunOnParentOfProfileOwnerWithNoDeviceOwner(), /* roleHolderUser= */ WORK_PROFILE))
188 …nnotation(includeRunOnParentOfOrganizationOwnedProfileOwner(), /* roleHolderUser= */ WORK_PROFILE))
191 …OnSecondaryUserInDifferentProfileGroupToProfileOwnerProfile(), /* roleHolderUser= */ WORK_PROFILE))
194 …upToOrganizationOwnedProfileOwnerProfileUsingParentInstance(), /* roleHolderUser= */ WORK_PROFILE))
225 …oleHolderIfCanSet(includeRunOnOrganizationOwnedProfileOwner(), /* roleHolderUser= */ WORK_PROFILE))
226 …erIfCanSet(includeRunOnProfileOwnerProfileWithNoDeviceOwner(), /* roleHolderUser= */ WORK_PROFILE))
DBedsteadJUnit4.java1124 case WORK_PROFILE: in getRunOnAnnotation()
1153 case WORK_PROFILE: in getHasUserAnnotation()
DDeviceState.java1736 case WORK_PROFILE:
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/
DVoiceInteractionServiceTest.java29 import static com.android.bedstead.harrier.UserType.WORK_PROFILE;
204 @EnsureHasUserRestriction(value = DISALLOW_ASSIST_CONTENT, onUser = WORK_PROFILE)
222 @EnsureHasUserRestriction(value = DISALLOW_ASSIST_CONTENT, onUser = WORK_PROFILE)
/cts/tests/tests/media/bettertogether/src/android/media/bettertogether/cts/
DMediaRouter2Test.java243 @UserTest({UserType.PRIMARY_USER, UserType.WORK_PROFILE})