Home
last modified time | relevance | path

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

/frameworks/base/services/accessibility/java/com/android/server/accessibility/
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()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DRestrictedLockUtilsInternal.java354 EnforcedAdmin profileAdmin = null; in checkIfInputMethodDisallowed() local
357 profileAdmin = getProfileOrDeviceOwner(context, getUserHandleOf(managedProfileId)); in checkIfInputMethodDisallowed()
362 if (profileAdmin != null && dpm.isOrganizationOwnedDeviceWithManagedProfile()) { in checkIfInputMethodDisallowed()
366 profileAdmin.component, packageName, managedProfileId); in checkIfInputMethodDisallowed()
374 return profileAdmin; in checkIfInputMethodDisallowed()
416 EnforcedAdmin profileAdmin = getProfileOrDeviceOwner(context, in checkIfAccessibilityServiceDisallowed() local
419 if (profileAdmin != null) { in checkIfAccessibilityServiceDisallowed()
421 profileAdmin.component, packageName, managedProfileId); in checkIfAccessibilityServiceDisallowed()
428 return profileAdmin; in checkIfAccessibilityServiceDisallowed()