Home
last modified time | relevance | path

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

/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DProfileOwnerTest.kt57 assertThat(TestApis.devicePolicy().getProfileOwner()).isNotNull() in <lambda>()
59 val profileOwner = TestApis.devicePolicy().getProfileOwner() in <lambda>()
78 assertThat(TestApis.devicePolicy().getProfileOwner()).isNotNull() in <lambda>()
80 val profileOwner = TestApis.devicePolicy().getProfileOwner() in <lambda>()
101 assertThat(TestApis.devicePolicy().getProfileOwner(profile)).isNotNull() in <lambda>()
124 val profileOwner = TestApis.devicePolicy().getProfileOwner() in <lambda>()
157 assertThat(TestApis.devicePolicy().getProfileOwner()).isNull() in <lambda>()
159 val profileOwner = TestApis.devicePolicy().getProfileOwner() in <lambda>()
192 assertThat(TestApis.devicePolicy().getProfileOwner()).isNull() in <lambda>()
194 val profileOwner = TestApis.devicePolicy().getProfileOwner() in <lambda>()
[all …]
DTransferOwnershipTest.kt128 assertThat(TestApis.devicePolicy().getProfileOwner()!!.componentName()) in <lambda>()
266 TestApis.devicePolicy().getProfileOwner(it)?.remove() in <lambda>()
DAdbProvisioningTest.java101 ProfileOwner profileOwner = TestApis.devicePolicy().getProfileOwner(); in setProfileOwnerUsingAdb_isLogged()
DProvisioningTest.kt199 TestApis.devicePolicy().getProfileOwner(profile)!!.pkg().packageName() in <lambda>()
379 assertThat(TestApis.devicePolicy().getProfileOwner()).isNotNull() in <lambda>()
383 val profileOwner = TestApis.devicePolicy().getProfileOwner() in <lambda>()
498 val profileOwner = TestApis.devicePolicy().getProfileOwner() in <lambda>()
522 val profileOwner = TestApis.devicePolicy().getProfileOwner() in <lambda>()
1336 TestApis.devicePolicy().getProfileOwner( in <lambda>()
1366 TestApis.devicePolicy().getProfileOwner( in <lambda>()
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/devicepolicy/
DProfileOwnerTest.java99 assertThat(TestApis.devicePolicy().getProfileOwner(sProfile)).isNull(); in remove_removesProfileOwner()
114 assertThat(TestApis.devicePolicy().getProfileOwner()).isNull(); in remove_nonTestOnlyDpc_removesProfileOwner()
138 TestApis.devicePolicy().getProfileOwner(sDeviceState.secondaryUser()).remove(); in remove_onOtherUser_removesProfileOwner()
140 assertThat(TestApis.devicePolicy().getProfileOwner(sDeviceState.secondaryUser())) in remove_onOtherUser_removesProfileOwner()
147 TestApis.devicePolicy().getProfileOwner().remove(); in remove_onWorkProfile_testDpc_removesProfileOwner()
149 assertThat(TestApis.devicePolicy().getProfileOwner()).isNull(); in remove_onWorkProfile_testDpc_removesProfileOwner()
DDevicePolicyTest.java112 assertThat(TestApis.devicePolicy().getProfileOwner(profile)).isEqualTo(profileOwner); in setProfileOwner_profileOwnerIsSet()
205 assertThat(TestApis.devicePolicy().getProfileOwner(profile)).isEqualTo(profileOwner); in getProfileOwner_returnsProfileOwner()
221 assertThat(TestApis.devicePolicy().getProfileOwner(profile)).isNull(); in getProfileOwner_noProfileOwner_returnsNull()
231 () -> TestApis.devicePolicy().getProfileOwner((UserReference) null)); in getProfileOwner_nullUser_throwsException()
335 assertThat(TestApis.devicePolicy().getProfileOwner(sUser)).isNull(); in profileOwner_autoclose_removesProfileOwner()
389 assertThat(TestApis.devicePolicy().getProfileOwner(sUser)).isNotNull(); in setProfileOwner_recentlyUnsetProfileOwner_sets()
402 assertThat(TestApis.devicePolicy().getProfileOwner(sUser)).isNotNull(); in setProfileOwner_recentlyUnsetDeviceOwner_sets()
/cts/common/device-side/bedstead/modules/enterprise/src/test/kotlin/com/android/bedstead/enterprise/
DEnterpriseAnnotationExecutorTest.kt229 val profileOwner = devicePolicy().getProfileOwner() in ensureHasProfileOwnerAnnotation_noQuerySpecified_setsDefaultRemoteDpc()
241 val remoteDpc = RemoteDpc.forDevicePolicyController(devicePolicy().getProfileOwner()) in ensureHasProfileOwnerAnnotation_targetingV28_remoteDpcTargetsV28()
256 assertThat(devicePolicy().getProfileOwner(users().instrumented())).isNotNull() in ensureHasProfileOwnerAnnotation_defaultUser_profileOwnerIsSet()
262 assertThat(devicePolicy().getProfileOwner(users().instrumented())).isNull() in ensureHasNoProfileOwnerAnnotation_defaultUser_profileOwnerIsNotSet()
268 assertThat(devicePolicy().getProfileOwner(sDeviceState.secondaryUser())).isNotNull() in ensureHasProfileOwnerAnnotation_otherUser_setsProfileOwner()
275 assertThat(devicePolicy().getProfileOwner(sDeviceState.secondaryUser())).isNull() in ensureHasNoProfileOwnerAnnotation_otherUser_profileOwnerIsNotSet()
289 assertThat(devicePolicy().getProfileOwner(users().instrumented())).isNotNull() in profileOwner_defaultUser_profileOwnerIsSet_returnsProfileOwner()
351 assertThat(devicePolicy().getProfileOwner(dpcUser)!!.isOrganizationOwned()).isFalse() in includeRunOnCloneProfileAlongsideProfileOwnerUsingParentInstance_runsOnCloneProfile()
361 assertThat(devicePolicy().getProfileOwner(dpcUser)!!.isOrganizationOwned()).isTrue() in includeRunOnCloneProfileAlongsideOrgOwnedProfileOwnerUsingParentInstance_runsOnCloneProfile()
376 assertThat(devicePolicy().getProfileOwner()!!.isOrganizationOwned()).isTrue() in includeRunOnOrganizationOwnedProfileOwnerAnnotation_isRunningOnOrganizationOwnedManagedProfile()
[all …]
/cts/common/device-side/bedstead/modules/enterprise/src/main/kotlin/com/android/bedstead/enterprise/
DProfileOwnersComponent.kt107 val currentProfileOwner = devicePolicy().getProfileOwner(user) in <lambda>()
173 val currentProfileOwner = devicePolicy().getProfileOwner(user) ?: return in <lambda>()
177 devicePolicy().getProfileOwner(user)!!.remove() in <lambda>()
183 val currentProfileOwner = devicePolicy().getProfileOwner(key) in <lambda>()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DHeadlessSystemUserTest.java59 ComponentName admin = mCurrentUserDpm.getProfileOwner(); in testProfileOwnerIsSetOnCurrentUser()
80 assertProfileOwner(newUserDpm.getProfileOwner(), userId); in testProfileOwnerIsSetOnNewUser()
/cts/common/device-side/bedstead/remotedpc/src/test/java/com/android/bedstead/remotedpc/
DRemoteDpcTest.java538 assertThat(TestApis.devicePolicy().getProfileOwner(profile)).isNotNull(); in setAsProfileOwner_userHandle_alreadySet_doesNothing()
557 assertThat(TestApis.devicePolicy().getProfileOwner(TestApis.users().instrumented())) in setAsProfileOwner_userHandle_alreadyHasProfileOwner_replacesProfileOwner()
579 assertThat(TestApis.devicePolicy().getProfileOwner(profile)).isNotNull(); in setAsProfileOwner_userHandle_doesNotHaveProfileOwner_setsProfileOwner()
635 assertThat(TestApis.devicePolicy().getProfileOwner(profile)).isNotNull(); in setAsProfileOwner_userReference_alreadySet_doesNothing()
654 assertThat(TestApis.devicePolicy().getProfileOwner(TestApis.users().instrumented())) in setAsProfileOwner_userReference_alreadyHasProfileOwner_replacesProfileOwner()
676 assertThat(TestApis.devicePolicy().getProfileOwner(profile)).isNotNull(); in setAsProfileOwner_userReference_doesNotHaveProfileOwner_setsProfileOwner()
719 assertThat(TestApis.devicePolicy().getProfileOwner(profile)).isNull(); in remove_profileOwner_removes()
823 assertThat(TestApis.devicePolicy().getProfileOwner() in setAsProfileOwner_alreadySetToDifferentRemoteDpc_replacesRemoteDpc()
826 ProfileOwner profileOwner = TestApis.devicePolicy().getProfileOwner(sUser); in setAsProfileOwner_alreadySetToDifferentRemoteDpc_replacesRemoteDpc()
859 assertThat(TestApis.devicePolicy().getProfileOwner() in setAsProfileOwner_matchesExistingRemoteDpc_doesNotReplace()
[all …]
/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/main/java/com/android/bedstead/remotedpc/
DRemoteDpc.java114 ProfileOwner profileOwner = TestApis.devicePolicy().getProfileOwner(profile); in profileOwner()
305 ProfileOwner currentProfileOwner = TestApis.devicePolicy().getProfileOwner(user); in setAsProfileOwner()
335 ProfileOwner currentProfileOwner = TestApis.devicePolicy().getProfileOwner(user); in setAsProfileOwner()
438 RemoteDpc dpc = forDevicePolicyController(TestApis.devicePolicy().getProfileOwner( in createWorkProfile()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/
DDeviceAdminReceiverUtils.java69 ComponentName admin = dpm.getProfileOwner(); in disableSelf()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/devicepolicy/
DDevicePolicy.kt100 Poll.forValue("Profile Owner") { TestApis.devicePolicy().getProfileOwner(user) } in <lambda>()
119 val profileOwner = getProfileOwner(user) in <lambda>()
130 fun getProfileOwner(user: UserHandle): ProfileOwner? { in <lambda>() method
131 return getProfileOwner(UserReference.of(user)) in <lambda>()
138 fun getProfileOwner(user: UserReference = TestApis.users().instrumented()): ProfileOwner? { in <lambda>() method
DProfileOwner.java135 () -> TestApis.devicePolicy().getProfileOwner(mUser)) in remove()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/users/
DUserReference.java186 ProfileOwner profileOwner = TestApis.devicePolicy().getProfileOwner(this); in remove()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/packages/
DPackage.java271 TestApis.devicePolicy().getProfileOwner(user); in uninstall()
/cts/common/device-side/bedstead/harrier/src/test/java/com/android/bedstead/harrier/
DDeviceStateTest.java379 TestApis.devicePolicy().getProfileOwner(TestApis.users().instrumented()) in requireRunOnWorkProfileAnnotation_workProfileHasProfileOwner()
/cts/common/device-side/bedstead/harrier/src/main/java/com/android/bedstead/harrier/
DDeviceState.java1555 ProfileOwner profileOwner = TestApis.devicePolicy().getProfileOwner(profile);
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dsystem-current.txt1325 …method @Nullable public android.content.ComponentName getProfileOwner() throws java.lang.IllegalAr…