Home
last modified time | relevance | path

Searched refs:setDeviceOwner (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTest.java685 setDeviceOwner(); in testSetDeviceOwner()
706 private void setDeviceOwner() throws Exception { in setDeviceOwner() method in DevicePolicyManagerTest
725 assertTrue(dpm.setDeviceOwner(admin1, "owner-name")); in setDeviceOwner()
920 dpm.setDeviceOwner(new ComponentName("a.b.c", ".def")); in testSetDeviceOwner_noSuchPackage()
948 assertTrue(dpm.setDeviceOwner(admin1, "owner-name")); in testClearDeviceOwner()
1023 assertTrue(dpm.setDeviceOwner(admin1, "owner-name")); in testClearDeviceOwner_fromDifferentUser()
1060 dpm.setDeviceOwner(admin2, "owner-name", DpmMockContext.CALLER_USER_HANDLE); in testSetProfileOwner()
1144 assertTrue(dpm.setDeviceOwner(admin2, "owner-name", DpmMockContext.CALLER_USER_HANDLE)); in checkDeviceOwnerWithMultipleDeviceAdmins()
1166 dpms.mOwners.setDeviceOwner( in testDeviceOwnerMigration()
1516 assertTrue(dpm.setDeviceOwner(admin1, "owner-name", in testSetUserRestriction_asDo()
[all …]
/frameworks/base/cmds/dpm/src/com/android/commands/dpm/
DDpm.java148 if (!mDevicePolicyManager.setDeviceOwner(mComponent, mName, mUserId)) { in runSetDeviceOwner()
/frameworks/base/core/java/android/app/admin/
DDevicePolicyManager.java4422 public boolean setDeviceOwner(ComponentName who) { in setDeviceOwner() method in DevicePolicyManager
4423 return setDeviceOwner(who, null); in setDeviceOwner()
4429 public boolean setDeviceOwner(ComponentName who, int userId) { in setDeviceOwner() method in DevicePolicyManager
4430 return setDeviceOwner(who, null, userId); in setDeviceOwner()
4436 public boolean setDeviceOwner(ComponentName who, String ownerName) { in setDeviceOwner() method in DevicePolicyManager
4437 return setDeviceOwner(who, ownerName, UserHandle.USER_SYSTEM); in setDeviceOwner()
4455 public boolean setDeviceOwner(ComponentName who, String ownerName, int userId) in setDeviceOwner() method in DevicePolicyManager
4459 return mService.setDeviceOwner(who, ownerName, userId); in setDeviceOwner()
DIDevicePolicyManager.aidl136 boolean setDeviceOwner(in ComponentName who, String ownerName, int userId); in setDeviceOwner() method
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DOwners.java225 void setDeviceOwner(ComponentName admin, String ownerName, int userId) { in setDeviceOwner() method in Owners
DDevicePolicyManagerService.java6482 public boolean setDeviceOwner(ComponentName admin, String ownerName, int userId) { in setDeviceOwner() method in DevicePolicyManagerService
6519 mOwners.setDeviceOwner(admin, ownerName, userId); in setDeviceOwner()