Home
last modified time | relevance | path

Searched refs:setProfileOwner (Results 1 – 22 of 22) sorted by relevance

/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/devicepolicy/
DDevicePolicyTest.java109 TestApis.devicePolicy().setProfileOwner(profile, DPC_COMPONENT_NAME); in setProfileOwner_profileOwnerIsSet()
130 TestApis.devicePolicy().setProfileOwner(profile, DPC_COMPONENT_NAME); in setProfileOwner_profileOwnerIsAlreadySet_throwsException()
133 () -> TestApis.devicePolicy().setProfileOwner(profile, DPC_COMPONENT_NAME)); in setProfileOwner_profileOwnerIsAlreadySet_throwsException()
149 () -> TestApis.devicePolicy().setProfileOwner( in setProfileOwner_componentNameNotInstalled_throwsException()
161 () -> TestApis.devicePolicy().setProfileOwner(sUser, NOT_DPC_COMPONENT_NAME)); in setProfileOwner_componentNameIsNotDPC_throwsException()
169 () -> TestApis.devicePolicy().setProfileOwner( in setProfileOwner_nullUser_throwsException()
178 () -> TestApis.devicePolicy().setProfileOwner( in setProfileOwner_nullComponentName_throwsException()
187 () -> TestApis.devicePolicy().setProfileOwner( in setProfileOwner_userDoesNotExist_throwsException()
203 TestApis.devicePolicy().setProfileOwner(profile, DPC_COMPONENT_NAME); in getProfileOwner_returnsProfileOwner()
331 TestApis.devicePolicy().setProfileOwner(sUser, DPC_COMPONENT_NAME)) { in profileOwner_autoclose_removesProfileOwner()
[all …]
DProfileOwnerTest.java101 TestApis.devicePolicy().setProfileOwner(sProfile, DPC_COMPONENT_NAME); in remove_removesProfileOwner()
109 ProfileOwner profileOwner = TestApis.devicePolicy().setProfileOwner( in remove_nonTestOnlyDpc_removesProfileOwner()
125 ProfileOwner profileOwner = TestApis.devicePolicy().setProfileOwner( in setAndRemoveProfileOwnerRepeatedly_doesNotThrowError()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DMixedProfileOwnerTestApi25.java38 if (!setProfileOwner( in setUp()
DProfileOwnerTestApi23.java41 if (!setProfileOwner( in setUp()
DMixedProfileOwnerTest.java49 if (!setProfileOwner( in setUp()
DProfileOwnerTest.java47 if (!setProfileOwner( in setUp()
DDeviceAndProfileOwnerHostSideTransferTest.java110 if (!setProfileOwner(adminReceiverClassName, userId, false)) { in setupManagedProfile()
DManagedProfileTest.java165 assertFalse(setProfileOwner( in testCannotSetProfileOwnerAgain()
171 assertFalse(setProfileOwner(DEVICE_OWNER_PKG + "/" + DEVICE_OWNER_ADMIN, mProfileUserId, in testCannotSetProfileOwnerAgain()
DUserRestrictionsTest.java313 setProfileOwner(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, in setPoAsUser()
DBaseDevicePolicyTest.java836 protected boolean setProfileOwner(String componentName, int userId, boolean expectFailure) in setProfileOwner() method in BaseDevicePolicyTest
853 if (!setProfileOwner(componentName, userId, /*expectFailure*/ false)) { in setProfileOwnerOrFail()
862 if (setProfileOwner(componentName, userId, /* expectFailure =*/ true)) { in setProfileOwnerExpectingFailure()
DOrgOwnedProfileOwnerTest.java422 setProfileOwner(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, in setPoAsUser()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DClearApplicationDataTest.java75 ProfileOwner p = TestApis.devicePolicy().setProfileOwner( in clearApplicationUserData_calledByProfileOwner_testPackage_isCleared()
114 try (ProfileOwner p = TestApis.devicePolicy().setProfileOwner( in clearApplicationUserData_calledByProfileOwner_activeAdmin_isNotCleared()
153 TestApis.devicePolicy().setProfileOwner(TestApis.users().instrumented(), in clearApplicationUserData_calledByProfileOwner_deviceProvisioning_isNotCleared()
DManagedSubscriptionsPolicyTest.java265 ProfileOwner profileOwner = TestApis.devicePolicy().setProfileOwner( in setManagedSubscriptionsPolicy_fromDPMRoleHolder_works()
/cts/common/device-side/bedstead/remotedpc/src/test/java/com/android/bedstead/remotedpc/
DRemoteDpcTest.java127 TestApis.devicePolicy().setProfileOwner(sUser, NON_REMOTE_DPC_COMPONENT); in profileOwner_nonRemoteDpcProfileOwner_returnsNull()
174 TestApis.devicePolicy().setProfileOwner(profile, NON_REMOTE_DPC_COMPONENT); in profileOwner_userHandle_nonRemoteDpcProfileOwner_returnsNull()
233 TestApis.devicePolicy().setProfileOwner(profile, NON_REMOTE_DPC_COMPONENT); in profileOwner_userReference_nonRemoteDpcProfileOwner_returnsNull()
270 ProfileOwner profileOwner = TestApis.devicePolicy().setProfileOwner(sUser, in any_noDeviceOwner_nonRemoteDpcProfileOwner_returnsNull()
332 TestApis.devicePolicy().setProfileOwner(profile, NON_REMOTE_DPC_COMPONENT); in any_userHandle_noDeviceOwner_nonRemoteDpcProfileOwner_returnsNull()
406 TestApis.devicePolicy().setProfileOwner(profile, NON_REMOTE_DPC_COMPONENT); in any_userReference_noDeviceOwner_nonRemoteDpcProfileOwner_returnsNull()
553 .setProfileOwner(TestApis.users().instrumented(), NON_REMOTE_DPC_COMPONENT); in setAsProfileOwner_userHandle_alreadyHasProfileOwner_replacesProfileOwner()
650 .setProfileOwner(TestApis.users().instrumented(), NON_REMOTE_DPC_COMPONENT); in setAsProfileOwner_userReference_alreadyHasProfileOwner_replacesProfileOwner()
/cts/hostsidetests/appcloning/hostside/src/com/android/cts/appcloning/contacts/
DManagedProfileContactsAccessTest.java160 private boolean setProfileOwner(String componentName, int userId) in setProfileOwner() method in ManagedProfileContactsAccessTest
221 boolean isSetOwnerSuccessful = setProfileOwner( in testClonedAppsAccessManagedProfileContacts_contactReadsBlocked()
/cts/common/device-side/bedstead/deviceadminapp/src/test/java/com/android/bedstead/deviceadminapp/
DDeviceAdminAppTest.java81 TestApis.devicePolicy().setProfileOwner( in setAsProfileOwner_isEnabled()
/cts/hostsidetests/multiuser/src/android/host/multiuser/
DDpcCommander.java52 public void setProfileOwner() throws DeviceNotAvailableException { in setProfileOwner() method in DpcCommander
DEphemeralTest.java184 dpc.setProfileOwner(); in testRemoveUserWhenPossible_devicePolicyIsSet()
/cts/common/device-side/bedstead/modules/enterprise/src/main/kotlin/com/android/bedstead/enterprise/
DProfileOwnersComponent.kt187 devicePolicy().setProfileOwner(key, value.componentName()) in <lambda>()
/cts/common/device-side/bedstead/remotedpc/src/main/java/com/android/bedstead/remotedpc/
DRemoteDpc.java355 TestApis.devicePolicy().setProfileOwner(user, componentName)); in setAsProfileOwner()
/cts/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/premade/
DEventLibDeviceAdminReceiverTest.java120 TestApis.devicePolicy().setProfileOwner(sUser, DEVICE_ADMIN_COMPONENT); in enableProfileOwner_logsEnabledEvent()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/devicepolicy/
DDevicePolicy.kt66 fun setProfileOwner(user: UserReference, profileOwnerComponent: ComponentName): ProfileOwner { in <lambda>() method