Searched refs:setActiveAdmin (Results 1 – 6 of 6) sorted by relevance
84 setActiveAdmin(adminComponent, userId); in run()118 private void setActiveAdmin(ComponentName component, int userId) { in setActiveAdmin() method in SetDevicePolicyTask120 mDevicePolicyManager.setActiveAdmin(component, true, userId); in setActiveAdmin()
320 Shadows.shadowOf(devicePolicyManager).setActiveAdmin(buildTestComponentName(PKG_NAME)); in launchChooseLock_callingAppIsAdmin_setsAdminExtra()337 .setActiveAdmin(buildTestComponentName("other_pkg_name")); in launchChooseLock_callingAppIsNotAdmin_doesNotSetAdminExtra()
205 mDPM.setActiveAdmin(mDeviceAdmin.getComponent(), mRefreshing); in addAndFinish()
167 verify(mDevicePolicyManager).setActiveAdmin(ADMIN_COMPONENT_NAME, true, TEST_USER_ID); in testSetActiveAdmin()
430 mDPM.setActiveAdmin(mDeviceAdmin.getComponent(), mRefreshing); in addAndFinish()
489 mDPM.setActiveAdmin(mDeviceAdmin.getComponent(), mRefreshing); in addAndFinish()