Home
last modified time | relevance | path

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

/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/devicepolicy/
DDevicePolicyTest.java104 TestApis.devicePolicy().setProfileOwner(profile, DPC_COMPONENT_NAME); in setProfileOwner_profileOwnerIsSet()
124 TestApis.devicePolicy().setProfileOwner(profile, DPC_COMPONENT_NAME); in setProfileOwner_profileOwnerIsAlreadySet_throwsException()
127 () -> TestApis.devicePolicy().setProfileOwner(profile, DPC_COMPONENT_NAME)); in setProfileOwner_profileOwnerIsAlreadySet_throwsException()
143 () -> TestApis.devicePolicy().setProfileOwner( in setProfileOwner_componentNameNotInstalled_throwsException()
155 () -> TestApis.devicePolicy().setProfileOwner(sUser, NOT_DPC_COMPONENT_NAME)); in setProfileOwner_componentNameIsNotDPC_throwsException()
163 () -> TestApis.devicePolicy().setProfileOwner( in setProfileOwner_nullUser_throwsException()
172 () -> TestApis.devicePolicy().setProfileOwner( in setProfileOwner_nullComponentName_throwsException()
181 () -> TestApis.devicePolicy().setProfileOwner( in setProfileOwner_userDoesNotExist_throwsException()
197 TestApis.devicePolicy().setProfileOwner(profile, DPC_COMPONENT_NAME); in getProfileOwner_returnsProfileOwner()
332 TestApis.devicePolicy().setProfileOwner(sUser, DPC_COMPONENT_NAME)) { in profileOwner_autoclose_removesProfileOwner()
[all …]
DProfileOwnerTest.java80 sProfileOwner = TestApis.devicePolicy().setProfileOwner(sProfile, DPC_COMPONENT_NAME); in remove_removesProfileOwner()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DMixedProfileOwnerTestApi25.java38 if (!setProfileOwner( in setUp()
DProfileOwnerTestApi23.java41 if (!setProfileOwner( in setUp()
DAdbProvisioningTests.java58 setProfileOwner(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mPrimaryUserId, in testAdbProfileOwnerLogged()
DMixedProfileOwnerTest.java50 if (!setProfileOwner( in setUp()
DProfileOwnerTest.java50 if (!setProfileOwner( in setUp()
DDeviceAndProfileOwnerHostSideTransferTest.java158 if (!setProfileOwner(adminReceiverClassName, userId, false)) { in setupManagedProfile()
DManagedProfileTest.java224 assertFalse(setProfileOwner( in testCannotSetProfileOwnerAgain()
230 assertFalse(setProfileOwner(DEVICE_OWNER_PKG + "/" + DEVICE_OWNER_ADMIN, mProfileUserId, in testCannotSetProfileOwnerAgain()
DUserRestrictionsTest.java274 setProfileOwner(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, in setPoAsUser()
DBaseDevicePolicyTest.java834 protected boolean setProfileOwner(String componentName, int userId, boolean expectFailure) in setProfileOwner() method in BaseDevicePolicyTest
851 if (!setProfileOwner(componentName, userId, /*expectFailure*/ false)) { in setProfileOwnerOrFail()
860 if (setProfileOwner(componentName, userId, /* expectFailure =*/ true)) { in setProfileOwnerExpectingFailure()
DOrgOwnedProfileOwnerTest.java548 setProfileOwner(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, in setPoAsUser()
/cts/common/device-side/bedstead/remotedpc/src/test/java/com/android/bedstead/remotedpc/
DRemoteDpcTest.java129 TestApis.devicePolicy().setProfileOwner(sUser, NON_REMOTE_DPC_COMPONENT); in profileOwner_nonRemoteDpcProfileOwner_returnsNull()
176 TestApis.devicePolicy().setProfileOwner(profile, NON_REMOTE_DPC_COMPONENT); in profileOwner_userHandle_nonRemoteDpcProfileOwner_returnsNull()
235 TestApis.devicePolicy().setProfileOwner(profile, NON_REMOTE_DPC_COMPONENT); in profileOwner_userReference_nonRemoteDpcProfileOwner_returnsNull()
272 ProfileOwner profileOwner = TestApis.devicePolicy().setProfileOwner(sUser, in any_noDeviceOwner_nonRemoteDpcProfileOwner_returnsNull()
334 TestApis.devicePolicy().setProfileOwner(profile, NON_REMOTE_DPC_COMPONENT); in any_userHandle_noDeviceOwner_nonRemoteDpcProfileOwner_returnsNull()
408 TestApis.devicePolicy().setProfileOwner(profile, NON_REMOTE_DPC_COMPONENT); in any_userReference_noDeviceOwner_nonRemoteDpcProfileOwner_returnsNull()
550 TestApis.devicePolicy().setProfileOwner(profile, NON_REMOTE_DPC_COMPONENT); in setAsProfileOwner_userHandle_alreadyHasProfileOwner_replacesProfileOwner()
648 TestApis.devicePolicy().setProfileOwner(profile, NON_REMOTE_DPC_COMPONENT); in setAsProfileOwner_userReference_alreadyHasProfileOwner_replacesProfileOwner()
/cts/common/device-side/bedstead/deviceadminapp/src/test/java/com/android/bedstead/deviceadminapp/
DDeviceAdminAppTest.java78 TestApis.devicePolicy().setProfileOwner( in setAsProfileOwner_isEnabled()
/cts/common/device-side/bedstead/remotedpc/src/main/java/com/android/bedstead/remotedpc/
DRemoteDpc.java219 TestApis.devicePolicy().setProfileOwner(user, DPC_COMPONENT_NAME)); in setAsProfileOwner()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/devicepolicy/
DDevicePolicy.java81 public ProfileOwner setProfileOwner(UserReference user, ComponentName profileOwnerComponent) { in setProfileOwner() method in DevicePolicy
/cts/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/premade/
DEventLibDeviceAdminReceiverTest.java118 TestApis.devicePolicy().setProfileOwner(sUser, DEVICE_ADMIN_COMPONENT); in enableProfileOwner_logsEnabledEvent()
/cts/common/device-side/bedstead/harrier/src/main/java/com/android/bedstead/harrier/
DDeviceState.java1366 TestApis.devicePolicy().setProfileOwner(originalProfileOwner.getKey(),