Home
last modified time | relevance | path

Searched refs:profileAdmin (Results 1 – 2 of 2) sorted by relevance

/aosp14/frameworks/base/services/accessibility/java/com/android/server/accessibility/
H A DRestrictedLockUtilsInternal.java55 final EnforcedAdmin profileAdmin = RestrictedLockUtils.getProfileOrDeviceOwner(context, in checkIfAccessibilityServiceDisallowed() local
58 if (profileAdmin != null) { in checkIfAccessibilityServiceDisallowed()
60 profileAdmin.component, packageName, managedProfileId); in checkIfAccessibilityServiceDisallowed()
67 return profileAdmin; in checkIfAccessibilityServiceDisallowed()
90 EnforcedAdmin profileAdmin = null; in checkIfInputMethodDisallowed() local
93 profileAdmin = RestrictedLockUtils.getProfileOrDeviceOwner( in checkIfInputMethodDisallowed()
99 if (profileAdmin != null && dpm.isOrganizationOwnedDeviceWithManagedProfile()) { in checkIfInputMethodDisallowed()
103 profileAdmin.component, packageName, managedProfileId); in checkIfInputMethodDisallowed()
111 return profileAdmin; in checkIfInputMethodDisallowed()
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
H A DRestrictedLockUtilsInternal.java276 EnforcedAdmin profileAdmin = null; in checkIfInputMethodDisallowed() local
279 profileAdmin = getProfileOrDeviceOwner(context, getUserHandleOf(managedProfileId)); in checkIfInputMethodDisallowed()
284 if (profileAdmin != null && dpm.isOrganizationOwnedDeviceWithManagedProfile()) { in checkIfInputMethodDisallowed()
288 profileAdmin.component, packageName, managedProfileId); in checkIfInputMethodDisallowed()
296 return profileAdmin; in checkIfInputMethodDisallowed()
338 EnforcedAdmin profileAdmin = getProfileOrDeviceOwner(context, in checkIfAccessibilityServiceDisallowed() local
341 if (profileAdmin != null) { in checkIfAccessibilityServiceDisallowed()
343 profileAdmin.component, packageName, managedProfileId); in checkIfAccessibilityServiceDisallowed()
350 return profileAdmin; in checkIfAccessibilityServiceDisallowed()