Home
last modified time | relevance | path

Searched refs:getProfileOwner (Results 1 – 10 of 10) sorted by relevance

/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/devicepolicy/
DDevicePolicyTest.java102 assertThat(sTestApis.devicePolicy().getProfileOwner(profile)).isEqualTo(profileOwner); in setProfileOwner_profileOwnerIsSet()
193 assertThat(sTestApis.devicePolicy().getProfileOwner(profile)).isEqualTo(profileOwner); in getProfileOwner_returnsProfileOwner()
209 assertThat(sTestApis.devicePolicy().getProfileOwner(profile)).isNull(); in getProfileOwner_noProfileOwner_returnsNull()
219 () -> sTestApis.devicePolicy().getProfileOwner(null)); in getProfileOwner_nullUser_throwsException()
358 assertThat(sTestApis.devicePolicy().getProfileOwner(sUser)).isNull(); in profileOwner_autoclose_removesProfileOwner()
403 assertThat(sTestApis.devicePolicy().getProfileOwner(sUser)).isNotNull(); in setProfileOwner_recentlyUnsetProfileOwner_sets()
414 assertThat(sTestApis.devicePolicy().getProfileOwner(sUser)).isNotNull(); in setProfileOwner_recentlyUnsetDeviceOwner_sets()
DProfileOwnerTest.java92 assertThat(sTestApis.devicePolicy().getProfileOwner(sProfile)).isNull(); in remove_removesProfileOwner()
/cts/common/device-side/bedstead/harrier/src/test/java/com/android/bedstead/harrier/
DDeviceStateTest.java323 assertThat(sTestApis.devicePolicy().getProfileOwner(sTestApis.users().instrumented())) in ensureHasProfileOwnerAnnotation_defaultUser_profileOwnerIsSet()
330 assertThat(sTestApis.devicePolicy().getProfileOwner(sTestApis.users().instrumented())) in ensureHasNoProfileOwnerAnnotation_defaultUser_profileOwnerIsNotSet()
337 assertThat(sTestApis.devicePolicy().getProfileOwner(sDeviceState.secondaryUser())) in ensureHasProfileOwnerAnnotation_otherUser_setsProfileOwner()
344 assertThat(sTestApis.devicePolicy().getProfileOwner(sDeviceState.secondaryUser())).isNull(); in ensureHasNoProfileOwnerAnnotation_otherUser_profileOwnerIsNotSet()
356 assertThat(sTestApis.devicePolicy().getProfileOwner(sTestApis.users().instrumented())) in profileOwner_defaultUser_profileOwnerIsSet_returnsProfileOwner()
396 sTestApis.devicePolicy().getProfileOwner(sTestApis.users().instrumented()) in requireRunOnWorkProfileAnnotation_workProfileHasProfileOwner()
428 sTestApis.devicePolicy().getProfileOwner(sTestApis.users().instrumented()) in includeRunOnProfileOwnerAnnotation_hasProfileOwner()
439 assertThat(sTestApis.devicePolicy().getProfileOwner(sDeviceState.workProfile(PRIMARY_USER))) in includeRunOnSecondaryUserInDifferentProfileGroupToProfileOwnerAnnotation_isRunningOnSecondaryUserInDifferentProfileGroupToProfileOwner()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DHeadlessSystemUserTest.java59 ComponentName admin = mCurrentUserDpm.getProfileOwner(); in testProfileOwnerIsSetOnCurrentUser()
79 eventually(() -> assertProfileOwner(newUserDpm.getProfileOwner(), userId)); in testProfileOwnerIsSetOnNewUser()
/cts/common/device-side/bedstead/remotedpc/src/library/test/java/com/android/bedstead/remotedpc/
DRemoteDpcTest.java559 assertThat(sTestApis.devicePolicy().getProfileOwner(profile)).isNotNull(); in setAsProfileOwner_userHandle_alreadySet_doesNothing()
578 assertThat(sTestApis.devicePolicy().getProfileOwner(profile)) in setAsProfileOwner_userHandle_alreadyHasProfileOwner_replacesProfileOwner()
595 assertThat(sTestApis.devicePolicy().getProfileOwner(profile)).isNotNull(); in setAsProfileOwner_userHandle_doesNotHaveProfileOwner_setsProfileOwner()
625 assertThat(sTestApis.devicePolicy().getProfileOwner(profile)).isNotNull(); in setAsProfileOwner_userReference_alreadySet_doesNothing()
644 assertThat(sTestApis.devicePolicy().getProfileOwner(profile)) in setAsProfileOwner_userReference_alreadyHasProfileOwner_replacesProfileOwner()
661 assertThat(sTestApis.devicePolicy().getProfileOwner(profile)).isNotNull(); in setAsProfileOwner_userReference_doesNotHaveProfileOwner_setsProfileOwner()
699 assertThat(sTestApis.devicePolicy().getProfileOwner(profile)).isNull(); in remove_profileOwner_removes()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/enterprise/
DDeviceAdminReceiverUtils.java68 ComponentName admin = dpm.getProfileOwner(); in disableSelf()
/cts/common/device-side/bedstead/remotedpc/src/library/main/java/com/android/bedstead/remotedpc/
DRemoteDpc.java103 ProfileOwner profileOwner = sTestApis.devicePolicy().getProfileOwner(profile); in profileOwner()
216 ProfileOwner profileOwner = sTestApis.devicePolicy().getProfileOwner(user); in setAsProfileOwner()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DDelegationTest.java217 final boolean isManagedProfileOwner = mDevicePolicyManager.getProfileOwner() != null in testDeviceOwnerOrManagedPoOnlyDelegations()
241 final boolean isOrgOwnedManagedProfileOwner = mDevicePolicyManager.getProfileOwner() != null in testDeviceOwnerOrOrgOwnedManagedPoOnlyDelegations()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/devicepolicy/
DDevicePolicy.java111 ProfileOwner profileOwner = getProfileOwner(user); in checkForTerminalProfileOwnerFailures()
138 public ProfileOwner getProfileOwner(UserReference user) { in getProfileOwner() method in DevicePolicy
/cts/common/device-side/bedstead/harrier/src/main/java/com/android/bedstead/harrier/
DDeviceState.java1181 sTestApis.devicePolicy().getProfileOwner(originalProfileOwner.getKey());
1323 ProfileOwner currentProfileOwner = sTestApis.devicePolicy().getProfileOwner(user);
1378 ProfileOwner currentProfileOwner = sTestApis.devicePolicy().getProfileOwner(user);
1388 sTestApis.devicePolicy().getProfileOwner(user).remove();