Home
last modified time | relevance | path

Searched refs:setDeviceOwnerType (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DBaseIDevicePolicyManager.java141 public void setDeviceOwnerType(@NonNull ComponentName admin, int deviceOwnerType) { in setDeviceOwnerType() method in BaseIDevicePolicyManager
DOwners.java642 void setDeviceOwnerType(String packageName, @DeviceOwnerType int deviceOwnerType) { in setDeviceOwnerType() method in Owners
DDevicePolicyManagerService.java17499 public void setDeviceOwnerType(@NonNull ComponentName admin,
17510 mOwners.setDeviceOwnerType(packageName, deviceOwnerType);
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DOwnersTest.java95 owners.setDeviceOwnerType(owners.getDeviceOwnerPackageName(), in testUpgrade01()
369 owners.setDeviceOwnerType(owners.getDeviceOwnerPackageName(), in testUpgrade04()
401 owners.setDeviceOwnerType(owners.getDeviceOwnerPackageName(), in testUpgrade04()
588 owners.setDeviceOwnerType(previousDeviceOwnerPackageName, DEVICE_OWNER_TYPE_FINANCED); in testRemoveExistingFiles()
DDevicePolicyManagerTest.java7457 () -> dpm.setDeviceOwnerType(admin1, DEVICE_OWNER_TYPE_DEFAULT)); in testSetDeviceOwnerType_throwsExceptionWhenCallerNotAuthorized()
7464 () -> dpm.setDeviceOwnerType(admin1, DEVICE_OWNER_TYPE_DEFAULT)); in testSetDeviceOwnerType_throwsExceptionWhenThereIsNoDeviceOwner()
7472 () -> dpm.setDeviceOwnerType(admin2, DEVICE_OWNER_TYPE_FINANCED)); in testSetDeviceOwnerType_throwsExceptionWhenNotAsDeviceOwnerAdmin()
7479 dpm.setDeviceOwnerType(admin1, DEVICE_OWNER_TYPE_FINANCED); in testSetDeviceOwnerType_asDeviceOwner_toFinancedDevice()
7497 dpm.setDeviceOwnerType(admin1, DEVICE_OWNER_TYPE_FINANCED); in testSetDeviceOwnerType_asDeviceOwner_throwsExceptionWhenSetDeviceOwnerTypeAgain()
7504 () -> dpm.setDeviceOwnerType(admin1, DEVICE_OWNER_TYPE_DEFAULT)); in testSetDeviceOwnerType_asDeviceOwner_throwsExceptionWhenSetDeviceOwnerTypeAgain()
/frameworks/base/core/java/android/app/admin/
DIDevicePolicyManager.aidl520 void setDeviceOwnerType(in ComponentName admin, in int deviceOwnerType); in setDeviceOwnerType() method
DDevicePolicyManager.java13866 public void setDeviceOwnerType(@NonNull ComponentName admin, in setDeviceOwnerType() method in DevicePolicyManager
13871 mService.setDeviceOwnerType(admin, deviceOwnerType); in setDeviceOwnerType()