Home
last modified time | relevance | path

Searched refs:setActiveAdmin (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/cmds/dpm/src/com/android/commands/dpm/
DDpm.java138 mDevicePolicyManager.setActiveAdmin(mComponent, true /*refreshing*/, mUserId); in runSetActiveAdmin()
145 mDevicePolicyManager.setActiveAdmin(mComponent, true /*refreshing*/, mUserId); in runSetDeviceOwner()
173 mDevicePolicyManager.setActiveAdmin(mComponent, true /*refreshing*/, mUserId); in runSetProfileOwner()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTest.java240 dpm.setActiveAdmin(admin, /* replace =*/ false); in setAsProfileOwner()
268 dpm.setActiveAdmin(admin1, false); in testSetActiveAdmin_SecurityException()
276 dpm.setActiveAdmin(admin1, false, DpmMockContext.CALLER_USER_HANDLE + 1); in testSetActiveAdmin_SecurityException()
296 dpm.setActiveAdmin(admin1, /* replace =*/ false); in testSetActiveAdmin()
340 dpm.setActiveAdmin(admin2, /* replace =*/ false); in testSetActiveAdmin()
358 dpm.setActiveAdmin(admin1, /* replace =*/ false); in testSetActiveAdmin()
364 dpm.setActiveAdmin(admin1, /* replace =*/ true); in testSetActiveAdmin()
395 dpm.setActiveAdmin(admin1, /* replace =*/ false); in testSetActiveAdmin_multiUsers()
398 dpm.setActiveAdmin(admin2, /* replace =*/ false); in testSetActiveAdmin_multiUsers()
419 dpm.setActiveAdmin(admin1, /* replace =*/ false); in testSetActiveAdmin_twiceWithoutReplace()
[all …]
/frameworks/base/core/java/android/app/admin/
DDevicePolicyManager.java4276 public void setActiveAdmin(@NonNull ComponentName policyReceiver, boolean refreshing, in setActiveAdmin() method in DevicePolicyManager
4280 mService.setActiveAdmin(policyReceiver, refreshing, userHandle); in setActiveAdmin()
4290 public void setActiveAdmin(@NonNull ComponentName policyReceiver, boolean refreshing) { in setActiveAdmin() method in DevicePolicyManager
4291 setActiveAdmin(policyReceiver, refreshing, myUserId()); in setActiveAdmin()
4703 mService.setActiveAdmin(admin, false, myUserId); in setActiveProfileOwner()
DIDevicePolicyManager.aidl118 void setActiveAdmin(in ComponentName policyReceiver, boolean refreshing, int userHandle); in setActiveAdmin() method
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java3176 public void setActiveAdmin(ComponentName adminReceiver, boolean refreshing, int userHandle) { in setActiveAdmin() method in DevicePolicyManagerService
3180 setActiveAdmin(adminReceiver, refreshing, userHandle, null); in setActiveAdmin()
3183 private void setActiveAdmin(ComponentName adminReceiver, boolean refreshing, int userHandle, in setActiveAdmin() method in DevicePolicyManagerService
8153 setActiveAdmin(profileOwner, true, userHandle); in createAndManageUser()