Home
last modified time | relevance | path

Searched refs:parentUser (Results 1 – 8 of 8) sorted by relevance

/packages/apps/Settings/src/com/android/settings/notification/
DVisibilityPreferenceController.java152 final UserInfo parentUser = mUm.getProfileParent(UserHandle.myUserId()); in getLockscreenNotificationsEnabled() local
153 final int primaryUserId = parentUser != null ? parentUser.id : UserHandle.myUserId(); in getLockscreenNotificationsEnabled()
165 UserInfo parentUser = mUm.getProfileParent(UserHandle.myUserId()); in isLockScreenSecure() local
166 if (parentUser != null){ in isLockScreenSecure()
167 lockscreenSecure |= mLockPatternUtils.isSecure(parentUser.id); in isLockScreenSecure()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DVisibilityPreferenceController.java152 final UserInfo parentUser = mUm.getProfileParent(UserHandle.myUserId()); in getLockscreenNotificationsEnabled() local
153 final int primaryUserId = parentUser != null ? parentUser.id : UserHandle.myUserId(); in getLockscreenNotificationsEnabled()
165 UserInfo parentUser = mUm.getProfileParent(UserHandle.myUserId()); in isLockScreenSecure() local
166 if (parentUser != null){ in isLockScreenSecure()
167 lockscreenSecure |= mLockPatternUtils.isSecure(parentUser.id); in isLockScreenSecure()
/packages/apps/Bluetooth/jni/
Dpermission_helpers.cc74 uid_t parentUser = callingUser; in isCallerActiveUserOrManagedProfile() local
82 parentUser = um->getProfileParentId(callingUser); in isCallerActiveUserOrManagedProfile()
86 return foregroundUserId == parentUser; in isCallerActiveUserOrManagedProfile()
/packages/apps/Settings/src/com/android/settings/
DTrustedCredentialsDialogBuilder.java218 UserInfo parentUser = mUserManager.getProfileParent(userId); in isUserSecure() local
219 if (parentUser == null) { in isUserSecure()
222 return lockPatternUtils.isSecure(parentUser.id); in isUserSecure()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DTrustedCredentialsDialogBuilder.java218 UserInfo parentUser = mUserManager.getProfileParent(userId); in isUserSecure() local
219 if (parentUser == null) { in isUserSecure()
222 return lockPatternUtils.isSecure(parentUser.id); in isUserSecure()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/utils/
DUtils.java834 UserHandle parentUser = getSystemServiceSafe(context, UserManager.class) in getParentUserContext() local
837 if (parentUser == null) { in getParentUserContext()
845 parentUser); in getParentUserContext()
848 throw new IllegalStateException("Could not switch to parent user " + parentUser, e); in getParentUserContext()
/packages/apps/Bluetooth/src/com/android/bluetooth/
DUtils.java275 int parentUser = (ui != null) ? ui.id : UserHandle.USER_NULL; in checkCallerAllowManagedProfiles() local
278 return (sForegroundUserId == callingUser) || (sForegroundUserId == parentUser) in checkCallerAllowManagedProfiles()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarProvider2.java822 final UserInfo parentUser = userManager.getProfileParent(UserHandle.myUserId()); in getParentUserId() local
823 return parentUser == null ? UserHandle.USER_NULL : parentUser.id; in getParentUserId()