Home
last modified time | relevance | path

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

/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DCustomDeviceOwnerTest.java84 assertTrue(setDeviceOwner(DEVICE_OWNER_ADMIN_COMPONENT, mPrimaryUserId, in testOwnerChangedBroadcast()
106 assertFalse(setDeviceOwner(DEVICE_OWNER_ADMIN_COMPONENT, mPrimaryUserId, in testCannotSetDeviceOwnerWhenSecondaryUserPresent()
124 assertFalse(setDeviceOwner(DEVICE_OWNER_ADMIN_COMPONENT, mPrimaryUserId, in testCannotSetDeviceOwnerWhenAccountPresent()
142 assertTrue(setDeviceOwner(PACKAGE_INSTALLER_ADMIN_COMPONENT, mPrimaryUserId, in testSilentPackageInstall()
DBaseDeviceAdminHostSideTest.java126 setDeviceOwner(getAdminReceiverComponent(), mUserId, /*expectFailure*/ false); in makeDoAndClearPassword()
160 setDeviceOwner(getAdminReceiverComponent(), mUserId, /*expectFailure*/ false); in testRunDeviceOwnerPasswordTest()
DDeviceOwnerTest.java61 if (!setDeviceOwner( in setUp()
352 assertFalse(setDeviceOwner( in testCannotSetDeviceOwnerAgain()
359 assertFalse(setDeviceOwner( in testCannotSetDeviceOwnerAgain()
DUserRestrictionsTest.java74 setDeviceOwner(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, in testUserRestrictions_deviceOwnerOnly()
126 setDeviceOwner(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, in testUserRestrictions_layering()
DMixedDeviceOwnerTest.java39 assertTrue("Failed to set device owner", setDeviceOwner( in setUp()
DBaseDevicePolicyTest.java428 protected boolean setDeviceOwner(String componentName, int userId, boolean expectFailure) in setDeviceOwner() method in BaseDevicePolicyTest
DManagedProfileTest.java519 assertFalse(setDeviceOwner(DEVICE_OWNER_PKG + "/" + DEVICE_OWNER_ADMIN, mParentUserId, in testCannotSetDeviceOwnerWhenProfilePresent()