Home
last modified time | relevance | path

Searched refs:removeAdmin (Results 1 – 25 of 25) sorted by relevance

/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DBaseDeviceAdminServiceTest.java52 removeAdmin(OWNER_COMPONENT, getUserId()); in tearDown()
53 removeAdmin(OWNER_COMPONENT_B, getUserId()); in tearDown()
94 protected abstract void removeAdmin(String ownerComponent) throws Exception; in removeAdmin() method in BaseDeviceAdminServiceTest
111 removeAdmin(OWNER_COMPONENT); in testAll()
166 removeAdmin(OWNER_COMPONENT); in testAll()
178 removeAdmin(OWNER_COMPONENT); in testAll()
DMixedDeviceOwnerTestApi25.java42 removeAdmin(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mDeviceOwnerUserId); in setUp()
51 removeAdmin(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mUserId); in tearDown()
DMixedProfileOwnerTestApi25.java41 removeAdmin(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mUserId); in setUp()
50 removeAdmin(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mUserId)); in tearDown()
DProfileOwnerTestApi23.java44 removeAdmin(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mUserId); in setUp()
53 removeAdmin(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mUserId)); in tearDown()
DDeviceAdminServiceProfileOwnerTest.java49 protected void removeAdmin(String component) throws Exception { in removeAdmin() method in DeviceAdminServiceProfileOwnerTest
51 removeAdmin(component, mUserId); in removeAdmin()
DMixedProfileOwnerTest.java52 removeAdmin(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mUserId); in setUp()
61 removeAdmin(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mUserId)); in tearDown()
DProfileOwnerTest.java50 removeAdmin(PROFILE_OWNER_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mUserId); in setUp()
80 removeAdmin(PROFILE_OWNER_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mUserId)); in tearDown()
DDeviceAdminServiceDeviceOwnerTest.java34 protected void removeAdmin(String component) throws Exception { in removeAdmin() method in DeviceAdminServiceDeviceOwnerTest
DUserRestrictionsTest.java61 assertTrue("Failed to clear owner", removeAdmin(componentName, mDeviceOwnerUserId)); in tearDown()
63 boolean removed = removeAdmin(componentName, mPrimaryUserId); in tearDown()
DBaseDeviceAdminHostSideTest.java66 assertTrue("Failed to remove admin", removeAdmin(getAdminReceiverComponent(), mUserId)); in tearDown()
DDeviceOwnerPlusProfileOwnerTest.java86 removeAdmin(COMP_DPC_ADMIN, mDeviceOwnerUserId); in setUp()
98 … assertTrue("Failed to remove device owner.", removeAdmin(COMP_DPC_ADMIN, mDeviceOwnerUserId)); in tearDown()
DBaseDeviceOwnerTest.java56 removeAdmin(DEVICE_OWNER_COMPONENT, mDeviceOwnerUserId); in setUp()
DDeviceAndProfileOwnerHostSideTransferTest.java111 removeAdmin(TRANSFER_OWNER_OUTGOING_TEST_RECEIVER, userId); in setupManagedProfile()
DDeviceOwnerTest.java501 removeAdmin(MANAGED_PROFILE_PKG + "/" + MANAGED_PROFILE_ADMIN, mPrimaryUserId); in testCannotSetDeviceOwnerAgain()
611 removeAdmin(deviceAdminReceiver, adminUserId); in testDisallowFactoryReset()
1023 if (!removeAdmin(DEVICE_OWNER_COMPONENT, mDeviceOwnerUserId)) { in testListForegroundAffiliatedUsers_notDeviceOwner()
DBaseDevicePolicyTest.java352 if (!removeAdmin(componentName, mDeviceOwnerUserId)) { in removeDeviceOwnerAdmin()
356 if (isHeadlessSystemUserMode() && !removeAdmin(componentName, mPrimaryUserId)) { in removeDeviceOwnerAdmin()
947 protected boolean removeAdmin(String componentName, int userId) in removeAdmin() method in BaseDevicePolicyTest
972 removeAdmin(componentName, userId); in removeOwners()
987 removeAdmin(componentName, userId); in removeOwners()
DManagedProfileTest.java184 removeAdmin(DEVICE_OWNER_PKG + "/" + DEVICE_OWNER_ADMIN, mParentUserId); in testCannotSetDeviceOwnerWhenProfilePresent()
DOrgOwnedProfileOwnerTest.java129 removeAdmin(DEVICE_ADMIN_COMPONENT_FLATTENED, /* userId= */ 0); in testCanRelinquishControlOverDevice()
/cts/hostsidetests/securitybulletin/src/android/security/cts/
DCVE_2023_21128.java63 device.removeAdmin(pocDeviceAdminPkg, currentUserId); in testPocCVE_2023_21128()
DCVE_2021_0963.java60 device.removeAdmin(component, userId); in testPocCVE_2021_0963()
DCVE_2023_20955.java75 device.removeAdmin(componentName, 0); in testPocCVE_2023_20955()
DCVE_2023_20917.java73 device.removeAdmin(testPkg + "/.PocDeviceAdminReceiver", workUserId); in testPocCVE_2023_20917()
DCVE_2024_31332.java66 return () -> device.removeAdmin(componentName, userId); in withPocDeviceAdminReceiverAsDeviceOwner()
DCVE_2024_23704.java69 return () -> device.removeAdmin(componentName, userId); in withPocAdminReceiverAsDeviceOwner()
DCVE_2021_0595.java77 device.removeAdmin(pocDeviceAdminPkg, workUserId); in testPocCVE_2021_0595()
DTestLocationScanningServicesUsingSlices.java61 mDevice.removeAdmin(mTestPkg + "/.PocDeviceAdminReceiver", mDevice.getCurrentUser()); in tearDown()