Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTest.java299 setDeviceOwner(); in testLoadAdminData()
841 setDeviceOwner(); in testSetDeviceOwner()
858 private void setDeviceOwner() throws Exception { in setDeviceOwner() method in DevicePolicyManagerTest
877 assertTrue(dpm.setDeviceOwner(admin1, "owner-name")); in setDeviceOwner()
1049 () -> dpm.setDeviceOwner(new ComponentName("a.b.c", ".def"))); in testSetDeviceOwner_noSuchPackage()
1072 assertTrue(dpm.setDeviceOwner(admin1, "owner-name")); in testClearDeviceOwner()
1145 assertTrue(dpm.setDeviceOwner(admin1, "owner-name")); in testClearDeviceOwner_fromDifferentUser()
1182 () -> dpm.setDeviceOwner(admin2, "owner-name", in testSetProfileOwner()
1261 assertTrue(dpm.setDeviceOwner(admin2, "owner-name", DpmMockContext.CALLER_USER_HANDLE)); in checkDeviceOwnerWithMultipleDeviceAdmins()
1283 dpms.mOwners.setDeviceOwner( in testDeviceOwnerMigration()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DSuspendPackagesTest.java485 private boolean setDeviceOwner() throws IOException { in setDeviceOwner() method in SuspendPackagesTest
513 assertTrue("Device-owner could not be set", setDeviceOwner()); in testCannotSuspendWhenDeviceOwner()
530 assertTrue("Device-owner could not be set", setDeviceOwner()); in testPackageUnsuspendedOnAddingDeviceOwner()
/frameworks/base/cmds/dpm/src/com/android/commands/dpm/
DDpm.java176 if (!mDevicePolicyManager.setDeviceOwner(mComponent, mName, mUserId)) { in runSetDeviceOwner()
/frameworks/base/core/java/android/app/admin/
DDevicePolicyManager.java4961 public boolean setDeviceOwner(ComponentName who) { in setDeviceOwner() method in DevicePolicyManager
4962 return setDeviceOwner(who, null); in setDeviceOwner()
4968 public boolean setDeviceOwner(ComponentName who, int userId) { in setDeviceOwner() method in DevicePolicyManager
4969 return setDeviceOwner(who, null, userId); in setDeviceOwner()
4975 public boolean setDeviceOwner(ComponentName who, String ownerName) { in setDeviceOwner() method in DevicePolicyManager
4976 return setDeviceOwner(who, ownerName, UserHandle.USER_SYSTEM); in setDeviceOwner()
4994 public boolean setDeviceOwner(ComponentName who, String ownerName, int userId) in setDeviceOwner() method in DevicePolicyManager
4998 return mService.setDeviceOwner(who, ownerName, userId); in setDeviceOwner()
DIDevicePolicyManager.aidl140 boolean setDeviceOwner(in ComponentName who, String ownerName, int userId); in setDeviceOwner() method
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DOwners.java250 void setDeviceOwner(ComponentName admin, String ownerName, int userId) { in setDeviceOwner() method in Owners
DDevicePolicyManagerService.java7172 public boolean setDeviceOwner(ComponentName admin, String ownerName, int userId) { in setDeviceOwner() method in DevicePolicyManagerService
7209 mOwners.setDeviceOwner(admin, ownerName, userId); in setDeviceOwner()
/frameworks/base/config/
Dboot-image-profile.txt15741 HSPLandroid/app/admin/IDevicePolicyManager;->setDeviceOwner(Landroid/content/ComponentName;Ljava/la…