Searched refs:getProfileOwner (Results 1 – 10 of 10) sorted by relevance
102 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()
92 assertThat(sTestApis.devicePolicy().getProfileOwner(sProfile)).isNull(); in remove_removesProfileOwner()
323 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()
59 ComponentName admin = mCurrentUserDpm.getProfileOwner(); in testProfileOwnerIsSetOnCurrentUser()79 eventually(() -> assertProfileOwner(newUserDpm.getProfileOwner(), userId)); in testProfileOwnerIsSetOnNewUser()
559 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()
68 ComponentName admin = dpm.getProfileOwner(); in disableSelf()
103 ProfileOwner profileOwner = sTestApis.devicePolicy().getProfileOwner(profile); in profileOwner()216 ProfileOwner profileOwner = sTestApis.devicePolicy().getProfileOwner(user); in setAsProfileOwner()
217 final boolean isManagedProfileOwner = mDevicePolicyManager.getProfileOwner() != null in testDeviceOwnerOrManagedPoOnlyDelegations()241 final boolean isOrgOwnedManagedProfileOwner = mDevicePolicyManager.getProfileOwner() != null in testDeviceOwnerOrOrgOwnedManagedPoOnlyDelegations()
111 ProfileOwner profileOwner = getProfileOwner(user); in checkForTerminalProfileOwnerFailures()138 public ProfileOwner getProfileOwner(UserReference user) { in getProfileOwner() method in DevicePolicy
1181 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();