Home
last modified time | relevance | path

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

/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/settingslib/
DRestrictedLockUtils.java59 ComponentName adminComponent = userContext.getSystemService( in getProfileOrDeviceOwner() local
61 if (adminComponent != null) { in getProfileOrDeviceOwner()
62 return new EnforcedAdmin(adminComponent, enforcedRestriction, user); in getProfileOrDeviceOwner()
65 adminComponent = dpm.getDeviceOwnerComponentOnAnyUser(); in getProfileOrDeviceOwner()
66 if (adminComponent != null) { in getProfileOrDeviceOwner()
67 return new EnforcedAdmin(adminComponent, enforcedRestriction, user); in getProfileOrDeviceOwner()
DRestrictedLockUtilsInternal.java574 ComponentName adminComponent = dpm.getDeviceOwnerComponentOnAnyUser(); in getDeviceOwner() local
575 if (adminComponent != null) { in getDeviceOwner()
577 adminComponent, enforcedRestriction, dpm.getDeviceOwnerUser()); in getDeviceOwner()
595 ComponentName adminComponent = dpm.getProfileOwnerAsUser(userId); in getProfileOwner() local
596 if (adminComponent != null) { in getProfileOwner()
597 return new EnforcedAdmin(adminComponent, enforcedRestriction, getUserHandleOf(userId)); in getProfileOwner()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DSetDeviceOwnerPolicyTask.java76 ComponentName adminComponent = in run() local
78 String adminPackage = adminComponent.getPackageName(); in run()
81 setActiveAdmin(adminComponent, userId); in run()
82 success = setDeviceOwner(adminComponent, userId); in run()
85 mDevicePolicyManager.setDeviceOwnerType(adminComponent, DEVICE_OWNER_TYPE_FINANCED); in run()
DCreateAndProvisionManagedProfileTask.java119 ComponentName adminComponent = in buildManagedProfileProvisioningParams() local
122 adminComponent, adminComponent.getPackageName()) in buildManagedProfileProvisioningParams()
DProvisionFullyManagedDeviceTask.java116 ComponentName adminComponent = mProvisioningParams.inferDeviceAdminComponentName( in buildManagedDeviceProvisioningParams() local
119 adminComponent, in buildManagedDeviceProvisioningParams()
/packages/apps/Settings/src/com/android/settings/accounts/
DAccountRestrictionHelper.java88 ComponentName adminComponent = dpm.getProfileOwnerAsUser(managedUsedId); in getEnforcedAdmin() local
89 if (adminComponent != null) { in getEnforcedAdmin()
90 return new EnforcedAdmin(adminComponent, userRestriction, in getEnforcedAdmin()
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/deviceadmin/
DDeviceAdminAdd.java491 ComponentName adminComponent = mDPM.getProfileOwnerAsUser(getUserId()); in showPolicyTransparencyDialogIfRequired() local
492 if (adminComponent != null && mDPM.isOrganizationOwnedDeviceWithManagedProfile()) { in showPolicyTransparencyDialogIfRequired()
493 enforcedAdmin = new EnforcedAdmin(adminComponent, in showPolicyTransparencyDialogIfRequired()