Home
last modified time | relevance | path

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

/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DCustomDeviceOwnerTest.java75 assertTrue(setDeviceOwner(DEVICE_OWNER_ADMIN_COMPONENT, mPrimaryUserId, in testOwnerChangedBroadcast()
97 assertFalse(setDeviceOwner(DEVICE_OWNER_ADMIN_COMPONENT, mPrimaryUserId, in testCannotSetDeviceOwnerWhenSecondaryUserPresent()
115 assertFalse(setDeviceOwner(DEVICE_OWNER_ADMIN_COMPONENT, mPrimaryUserId, in testCannotSetDeviceOwnerWhenAccountPresent()
DBaseDeviceAdminHostSideTest.java99 setDeviceOwner(getAdminReceiverComponent(), mUserId, /*expectFailure*/ false); in makeDoAndClearPassword()
133 setDeviceOwner(getAdminReceiverComponent(), mUserId, /*expectFailure*/ false); in testRunDeviceOwnerPasswordTest()
DMixedDeviceOwnerTest.java41 if (!setDeviceOwner( in setUp()
DMixedDeviceOwnerTestApi25.java41 if (!setDeviceOwner( in setUp()
DDeviceOwnerTest.java61 if (!setDeviceOwner(DEVICE_OWNER_COMPONENT, mPrimaryUserId, in setUp()
455 assertFalse(setDeviceOwner( in testCannotSetDeviceOwnerAgain()
462 assertFalse(setDeviceOwner( in testCannotSetDeviceOwnerAgain()
DUserRestrictionsTest.java273 setDeviceOwner(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, in setDo()
DBaseDevicePolicyTest.java552 protected boolean setDeviceOwner(String componentName, int userId, boolean expectFailure) in setDeviceOwner() method in BaseDevicePolicyTest
569 assertTrue(setDeviceOwner(componentName, userId, /* expectFailure =*/ false)); in setDeviceOwnerOrFail()
574 assertFalse(setDeviceOwner(componentName, userId, /* expectFailure =*/ true)); in setDeviceOwnerExpectingFailure()
DDeviceOwnerPlusProfileOwnerTest.java60 if (!setDeviceOwner(COMP_DPC_ADMIN, mPrimaryUserId, /*expectFailure*/ false)) { in setUp()
DManagedProfileTest.java624 assertFalse(setDeviceOwner(DEVICE_OWNER_PKG + "/" + DEVICE_OWNER_ADMIN, mParentUserId, in testCannotSetDeviceOwnerWhenProfilePresent()