Searched refs:setDeviceOwner (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DevicePolicyManagerTest.java | 549 setDeviceOwner(); in testSetDeviceOwner() 570 private void setDeviceOwner() throws Exception { in setDeviceOwner() method in DevicePolicyManagerTest 589 assertTrue(dpm.setDeviceOwner(admin1, "owner-name")); in setDeviceOwner() 784 dpm.setDeviceOwner(new ComponentName("a.b.c", ".def")); in testSetDeviceOwner_noSuchPackage() 812 assertTrue(dpm.setDeviceOwner(admin1, "owner-name")); in testClearDeviceOwner() 878 assertTrue(dpm.setDeviceOwner(admin1, "owner-name")); in testClearDeviceOwner_fromDifferentUser() 915 dpm.setDeviceOwner(admin2, "owner-name", DpmMockContext.CALLER_USER_HANDLE); in testSetProfileOwner() 999 assertTrue(dpm.setDeviceOwner(admin2, "owner-name", DpmMockContext.CALLER_USER_HANDLE)); in checkDeviceOwnerWithMultipleDeviceAdmins() 1021 dpms.mOwners.setDeviceOwner( in testDeviceOwnerMigration() 1190 assertTrue(dpm.setDeviceOwner(admin1, "owner-name", in testSetUserRestriction_asDo() [all …]
|
/frameworks/base/cmds/dpm/src/com/android/commands/dpm/ |
D | Dpm.java | 148 if (!mDevicePolicyManager.setDeviceOwner(mComponent, mName, mUserId)) { in runSetDeviceOwner()
|
/frameworks/base/core/java/android/app/admin/ |
D | DevicePolicyManager.java | 3510 public boolean setDeviceOwner(ComponentName who) { in setDeviceOwner() method in DevicePolicyManager 3511 return setDeviceOwner(who, null); in setDeviceOwner() 3517 public boolean setDeviceOwner(ComponentName who, int userId) { in setDeviceOwner() method in DevicePolicyManager 3518 return setDeviceOwner(who, null, userId); in setDeviceOwner() 3524 public boolean setDeviceOwner(ComponentName who, String ownerName) { in setDeviceOwner() method in DevicePolicyManager 3525 return setDeviceOwner(who, ownerName, UserHandle.USER_SYSTEM); in setDeviceOwner() 3543 public boolean setDeviceOwner(ComponentName who, String ownerName, int userId) in setDeviceOwner() method in DevicePolicyManager 3547 return mService.setDeviceOwner(who, ownerName, userId); in setDeviceOwner()
|
D | IDevicePolicyManager.aidl | 126 boolean setDeviceOwner(in ComponentName who, String ownerName, int userId); in setDeviceOwner() method
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | Owners.java | 218 void setDeviceOwner(ComponentName admin, String ownerName, int userId) { in setDeviceOwner() method in Owners
|
D | DevicePolicyManagerService.java | 5687 public boolean setDeviceOwner(ComponentName admin, String ownerName, int userId) { in setDeviceOwner() method in DevicePolicyManagerService 5715 mOwners.setDeviceOwner(admin, ownerName, userId); in setDeviceOwner()
|