Home
last modified time | relevance | path

Searched refs:setDeviceOwner (Results 1 – 12 of 12) sorted by relevance

/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DCustomDeviceOwnerTest.java72 assertTrue(setDeviceOwner(DEVICE_OWNER_ADMIN_COMPONENT, mPrimaryUserId, in testOwnerChangedBroadcast()
95 assertFalse(setDeviceOwner(DEVICE_OWNER_ADMIN_COMPONENT, mPrimaryUserId, in testCannotSetDeviceOwnerWhenSecondaryUserPresent()
113 assertFalse(setDeviceOwner(DEVICE_OWNER_ADMIN_COMPONENT, mPrimaryUserId, in testCannotSetDeviceOwnerWhenAccountPresent()
DDevicePlusProfileOwnerHostSideTransferTest.java25 if (setDeviceOwner(TRANSFER_OWNER_OUTGOING_TEST_RECEIVER, mPrimaryUserId, in setUp()
DMixedDeviceOwnerTestApi25.java41 if (!setDeviceOwner( in setUp()
DMixedDeviceOwnerHostSideTransferTest.java39 if (setDeviceOwner(TRANSFER_OWNER_OUTGOING_TEST_RECEIVER, mPrimaryUserId, in setUp()
DAdbProvisioningTests.java54 setDeviceOwner(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mPrimaryUserId, in testAdbDeviceOwnerLogged()
DBaseDeviceAdminHostSideTest.java118 setDeviceOwner(getAdminReceiverComponent(), mUserId, /*expectFailure*/ false); in testRunDeviceOwnerPasswordTest()
DDeviceOwnerTest.java108 if (!setDeviceOwner(DEVICE_OWNER_COMPONENT, mPrimaryUserId, in setUp()
647 assertFalse(setDeviceOwner( in testCannotSetDeviceOwnerAgain()
654 assertFalse(setDeviceOwner( in testCannotSetDeviceOwnerAgain()
DMixedDeviceOwnerTest.java44 if (!setDeviceOwner(DEVICE_ADMIN_COMPONENT_FLATTENED, mUserId, /*expectFailure*/ in setUp()
DUserRestrictionsTest.java276 setDeviceOwner(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, in setDo()
DBaseDevicePolicyTest.java752 protected boolean setDeviceOwner(String componentName, int userId, boolean expectFailure) in setDeviceOwner() method in BaseDevicePolicyTest
769 assertTrue(setDeviceOwner(componentName, userId, /* expectFailure =*/ false)); in setDeviceOwnerOrFail()
774 assertFalse(setDeviceOwner(componentName, userId, /* expectFailure =*/ true)); in setDeviceOwnerExpectingFailure()
DDeviceOwnerPlusProfileOwnerTest.java71 if (!setDeviceOwner(COMP_DPC_ADMIN, mPrimaryUserId, /*expectFailure*/ false)) { in setUp()
DManagedProfileTest.java960 assertFalse(setDeviceOwner(DEVICE_OWNER_PKG + "/" + DEVICE_OWNER_ADMIN, mParentUserId, in testCannotSetDeviceOwnerWhenProfilePresent()