Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/notification/app/
DVisibilityPreferenceController.java159 final UserInfo parentUser = mUm.getProfileParent(UserHandle.myUserId()); in getLockscreenNotificationsEnabled() local
160 final int primaryUserId = parentUser != null ? parentUser.id : UserHandle.myUserId(); in getLockscreenNotificationsEnabled()
172 UserInfo parentUser = mUm.getProfileParent(UserHandle.myUserId()); in isLockScreenSecure() local
173 if (parentUser != null){ in isLockScreenSecure()
174 lockscreenSecure |= mLockPatternUtils.isSecure(parentUser.id); in isLockScreenSecure()
/packages/modules/IntentResolver/tests/shared/src/com/android/intentresolver/platform/
DFakeUserManager.kt172 val parentUser = getUser(parent) in <lambda>() constant
173 require(!parentUser.isProfile) { "Parent user cannot be a profile" } in <lambda>()
176 if (parentUser.profileGroupId == NO_PROFILE_GROUP_ID) { in <lambda>()
177 parentUser.profileGroupId = parentUser.id in <lambda>()
182 profileGroupId = parentUser.profileGroupId in <lambda>()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/data/
DUserIdManager.java315 final UserHandle parentUser = in setUserIdsInternal() local
317 if (parentUser != null) { in setUserIdsInternal()
318 mPersonalUser = UserId.of(parentUser); in setUserIdsInternal()
327 final UserHandle parentUser = in setUserIdsInternal() local
329 if (parentUser != null && in setUserIdsInternal()
330 parentUser.equals(personalUser.getUserHandle())) { in setUserIdsInternal()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/provisioninglisteners/
DProvisioningCompletedController.java82 UserInfo parentUser = mUserManager.getProfileParent(mUserId); in run() local
83 if (parentUser == null) { in run()
86 mCrossProfileAppsSnapshot.takeNewSnapshot(parentUser.id); in run()
/packages/apps/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/
DAccountManagerCompat.java39 public void addSharedAccountsFromParentUser(UserHandle parentUser, UserHandle user) { in addSharedAccountsFromParentUser() argument
40 mAccountManager.addSharedAccountsFromParentUser(parentUser, user); in addSharedAccountsFromParentUser()
/packages/modules/Bluetooth/service/src/com/android/server/bluetooth/
DBtPermissionUtils.java278 final UserHandle parentUser; in checkIfCallerIsForegroundUser() local
286 parentUser = userManager.getProfileParent(callingUser); in checkIfCallerIsForegroundUser()
296 || Objects.equals(parentUser, foregroundUser) in checkIfCallerIsForegroundUser()
308 + parentUser in checkIfCallerIsForegroundUser()
/packages/services/Telecomm/src/com/android/server/telecom/
DInCallController.java2041 UserHandle parentUser = mFeatureFlags.profileUserSupport() in bindToBTService() local
2046 parentUser = um.getProfileParent(userToBind); in bindToBTService()
2059 if (parentUser != null) { in bindToBTService()
2060 infos = getInCallServiceComponents(parentUser, IN_CALL_SERVICE_TYPE_BLUETOOTH); in bindToBTService()
2064 userToBind, parentUser); in bindToBTService()
2075 serviceUnavailableForUser ? parentUser : userToBind); in bindToBTService()
2092 UserHandle parentUser = mFeatureFlags.profileUserSupport() in bindToServices() local
2096 parentUser = um.getProfileParent(userFromCall); in bindToServices()
2098 Log.i(this, "child:%s parent:%s", userFromCall, parentUser); in bindToServices()
2120 if(parentUser != null) { in bindToServices()
[all …]
/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/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/settingslib/
DRestrictedLockUtilsInternal.java107 final UserInfo parentUser = um.getProfileParent(adminUserId); in checkIfRestrictionEnforced() local
108 return (parentUser != null && parentUser.id == userId) in checkIfRestrictionEnforced()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/util/
DServiceImplHelper.java91 UserHandle parentUser = isManagedProfile ? mUserManager.getProfileParent(userHandle) : null; in setUserIsLocked() local
101 mEnterpriseParentUserLocked = parentUser; in setUserIsLocked()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/
DUtils.java1173 UserHandle parentUser = getSystemServiceSafe(context, UserManager.class) in getParentUserContext() local
1176 if (parentUser == null) { in getParentUserContext()
1184 parentUser); in getParentUserContext()
1187 throw new IllegalStateException("Could not switch to parent user " + parentUser, e); in getParentUserContext()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/
DUtils.java831 int parentUser = (uh != null) ? uh.getIdentifier() : USER_HANDLE_NULL.getIdentifier(); in checkCallerIsSystemOrActiveOrManagedUser() local
835 || (sForegroundUserId == parentUser) in checkCallerIsSystemOrActiveOrManagedUser()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarProvider2.java838 final UserInfo parentUser = userManager.getProfileParent(UserHandle.myUserId()); in getParentUserId() local
839 return parentUser == null ? UserHandle.USER_NULL : parentUser.id; in getParentUserId()