Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/RestrictedLockUtils/src/com/android/settingslib/
DRestrictedLockUtils.java69 ComponentName adminComponent = userContext.getSystemService( in getProfileOrDeviceOwner() local
71 if (adminComponent != null) { in getProfileOrDeviceOwner()
72 return new EnforcedAdmin(adminComponent, enforcedRestriction, user); in getProfileOrDeviceOwner()
75 adminComponent = dpm.getDeviceOwnerComponentOnAnyUser(); in getProfileOrDeviceOwner()
76 if (adminComponent != null) { in getProfileOrDeviceOwner()
77 return new EnforcedAdmin(adminComponent, enforcedRestriction, user); in getProfileOrDeviceOwner()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DTransferOwnershipMetadataManager.java137 String adminComponent = null; in parseMetadataFile() local
156 adminComponent = parser.getText(); in parseMetadataFile()
164 return new Metadata(adminComponent, targetComponent, userId, adminType); in parseMetadataFile()
DDevicePolicyManagerService.java1938 CallerIdentity getCallerIdentity(@Nullable ComponentName adminComponent) { in getCallerIdentity() argument
1939 return getCallerIdentity(adminComponent, null); in getCallerIdentity()
1950 CallerIdentity getCallerIdentity(@Nullable ComponentName adminComponent, in getCallerIdentity() argument
1961 if (adminComponent != null) { in getCallerIdentity()
1963 ActiveAdmin admin = policy.mAdminMap.get(adminComponent); in getCallerIdentity()
1967 "No active admin for %s", adminComponent)); in getCallerIdentity()
1971 "Admin %s is not owned by uid %d", adminComponent, callerUid)); in getCallerIdentity()
1974 Preconditions.checkArgument(callerPackage.equals(adminComponent.getPackageName())); in getCallerIdentity()
1976 callerPackage = adminComponent.getPackageName(); in getCallerIdentity()
1980 return new CallerIdentity(callerUid, callerPackage, adminComponent); in getCallerIdentity()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DRestrictedLockUtilsInternal.java595 ComponentName adminComponent = dpm.getDeviceOwnerComponentOnAnyUser(); in getDeviceOwner() local
596 if (adminComponent != null) { in getDeviceOwner()
598 adminComponent, enforcedRestriction, dpm.getDeviceOwnerUser()); in getDeviceOwner()
617 ComponentName adminComponent = dpm.getProfileOwnerAsUser(userId); in getProfileOwner() local
618 if (adminComponent != null) { in getProfileOwner()
619 return new EnforcedAdmin(adminComponent, enforcedRestriction, getUserHandleOf(userId)); in getProfileOwner()