Home
last modified time | relevance | path

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

/aosp12/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/
H A DSetDeviceOwnerPolicyTaskTest.java233 verify(mDevicePolicyManager).setDeviceOwnerType(ADMIN_COMPONENT_NAME, in testSetDeviceOwnerType_asDeviceOwner_toFinancedDevice()
248 verify(mDevicePolicyManager, never()).setDeviceOwnerType(any(), anyInt()); in testSetDeviceOwnerType_asDeviceOwner_notCalledWhenProvisioningManagedDevice()
/aosp12/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
H A DBaseIDevicePolicyManager.java148 public void setDeviceOwnerType(@NonNull ComponentName admin, int deviceOwnerType) { in setDeviceOwnerType() method in BaseIDevicePolicyManager
H A DOwners.java640 void setDeviceOwnerType(String packageName, @DeviceOwnerType int deviceOwnerType) { in setDeviceOwnerType() method in Owners
H A DDevicePolicyManagerService.java17840 public void setDeviceOwnerType(@NonNull ComponentName admin,
17851 mOwners.setDeviceOwnerType(packageName, deviceOwnerType);
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
H A 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()
H A DDevicePolicyManagerTest.java7509 () -> dpm.setDeviceOwnerType(admin1, DEVICE_OWNER_TYPE_DEFAULT)); in testSetDeviceOwnerType_throwsExceptionWhenCallerNotAuthorized()
7516 () -> dpm.setDeviceOwnerType(admin1, DEVICE_OWNER_TYPE_DEFAULT)); in testSetDeviceOwnerType_throwsExceptionWhenThereIsNoDeviceOwner()
7524 () -> dpm.setDeviceOwnerType(admin2, DEVICE_OWNER_TYPE_FINANCED)); in testSetDeviceOwnerType_throwsExceptionWhenNotAsDeviceOwnerAdmin()
7531 dpm.setDeviceOwnerType(admin1, DEVICE_OWNER_TYPE_FINANCED); in testSetDeviceOwnerType_asDeviceOwner_toFinancedDevice()
7549 dpm.setDeviceOwnerType(admin1, DEVICE_OWNER_TYPE_FINANCED); in testSetDeviceOwnerType_asDeviceOwner_throwsExceptionWhenSetDeviceOwnerTypeAgain()
7556 () -> dpm.setDeviceOwnerType(admin1, DEVICE_OWNER_TYPE_DEFAULT)); in testSetDeviceOwnerType_asDeviceOwner_throwsExceptionWhenSetDeviceOwnerTypeAgain()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
H A DShadowDevicePolicyManager.java83 public void setDeviceOwnerType(@NonNull ComponentName admin, in setDeviceOwnerType() method in ShadowDevicePolicyManager
/aosp12/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
H A DSetDeviceOwnerPolicyTask.java88 mDevicePolicyManager.setDeviceOwnerType(adminComponent, DEVICE_OWNER_TYPE_FINANCED); in run()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
H A DActionDisabledByAdminDialogHelperTest.java248 dpmShadow.setDeviceOwnerType(component, DEVICE_OWNER_TYPE_FINANCED); in setupFinancedDevice()
/aosp12/frameworks/base/core/java/android/app/admin/
H A DIDevicePolicyManager.aidl527 void setDeviceOwnerType(in ComponentName admin, in int deviceOwnerType); in setDeviceOwnerType() method
H A DDevicePolicyManager.java14028 public void setDeviceOwnerType(@NonNull ComponentName admin, in setDeviceOwnerType() method in DevicePolicyManager
14033 mService.setDeviceOwnerType(admin, deviceOwnerType); in setDeviceOwnerType()