Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTest.java169 dpm.setActiveAdmin(admin, /* replace =*/ false); in setAsProfileOwner()
197 dpm.setActiveAdmin(admin1, false); in testSetActiveAdmin_SecurityException()
205 dpm.setActiveAdmin(admin1, false, DpmMockContext.CALLER_USER_HANDLE + 1); in testSetActiveAdmin_SecurityException()
225 dpm.setActiveAdmin(admin1, /* replace =*/ false); in testSetActiveAdmin()
269 dpm.setActiveAdmin(admin2, /* replace =*/ false); in testSetActiveAdmin()
287 dpm.setActiveAdmin(admin1, /* replace =*/ false); in testSetActiveAdmin()
293 dpm.setActiveAdmin(admin1, /* replace =*/ true); in testSetActiveAdmin()
324 dpm.setActiveAdmin(admin1, /* replace =*/ false); in testSetActiveAdmin_multiUsers()
327 dpm.setActiveAdmin(admin2, /* replace =*/ false); in testSetActiveAdmin_multiUsers()
348 dpm.setActiveAdmin(admin1, /* replace =*/ false); in testSetActiveAdmin_twiceWithoutReplace()
[all …]
/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/core/java/android/app/admin/
DDevicePolicyManager.java3375 public void setActiveAdmin(@NonNull ComponentName policyReceiver, boolean refreshing, in setActiveAdmin() method in DevicePolicyManager
3379 mService.setActiveAdmin(policyReceiver, refreshing, userHandle); in setActiveAdmin()
3389 public void setActiveAdmin(@NonNull ComponentName policyReceiver, boolean refreshing) { in setActiveAdmin() method in DevicePolicyManager
3390 setActiveAdmin(policyReceiver, refreshing, myUserId()); in setActiveAdmin()
3768 mService.setActiveAdmin(admin, false, myUserId); in setActiveProfileOwner()
DIDevicePolicyManager.aidl108 void setActiveAdmin(in ComponentName policyReceiver, boolean refreshing, int userHandle); in setActiveAdmin() method
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java2785 public void setActiveAdmin(ComponentName adminReceiver, boolean refreshing, int userHandle) { in setActiveAdmin() method in DevicePolicyManagerService
2789 setActiveAdmin(adminReceiver, refreshing, userHandle, null); in setActiveAdmin()
2792 private void setActiveAdmin(ComponentName adminReceiver, boolean refreshing, int userHandle, in setActiveAdmin() method in DevicePolicyManagerService
7148 setActiveAdmin(profileOwner, true, userHandle); in createAndManageUser()