Searched refs:setDeviceOwner (Results 1 – 5 of 5) sorted by relevance
87 assertTrue(setDeviceOwner(DEVICE_OWNER_ADMIN_COMPONENT)); in testOwnerChangedBroadcast()106 assertFalse(setDeviceOwner(DEVICE_OWNER_ADMIN_COMPONENT)); in testCannotSetDeviceOwnerWhenSecondaryUserPresent()122 assertFalse(setDeviceOwner(DEVICE_AND_PROFILE_OWNER_ADMIN_COMPONENT)); in testCannotSetDeviceOwnerWhenAccountPresent()139 assertTrue(setDeviceOwner(PACKAGE_INSTALLER_ADMIN_COMPONENT)); in testSilentPackageInstall()
50 setDeviceOwner(DEVICE_OWNER_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS)); in setUp()107 assertFalse(setDeviceOwner(DEVICE_OWNER_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS)); in testCannotSetDeviceOwnerAgain()112 assertFalse(setDeviceOwner(MANAGED_PROFILE_PKG + "/" + MANAGED_PROFILE_ADMIN)); in testCannotSetDeviceOwnerAgain()
43 setDeviceOwner(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS)); in setUp()
544 assertFalse(setDeviceOwner(DEVICE_OWNER_PKG + "/" + DEVICE_OWNER_ADMIN)); in testCannotSetDeviceOwnerWhenProfilePresent()
359 protected boolean setDeviceOwner(String componentName) throws DeviceNotAvailableException { in setDeviceOwner() method in BaseDevicePolicyTest