/aosp12/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/ |
H A D | FakeUserInfoHelper.java | 71 public void setCurrentUserId(int parentUser) { in setCurrentUserId() argument 72 setCurrentUserIds(parentUser, new int[]{parentUser}); in setCurrentUserId() 75 public void setCurrentUserIds(int parentUser, int[] currentProfileUserIds) { in setCurrentUserIds() argument 76 Preconditions.checkArgument(ArrayUtils.contains(currentProfileUserIds, parentUser)); in setCurrentUserIds() 78 mCurrentUserId = parentUser; in setCurrentUserIds() 79 mProfiles.put(parentUser, in setCurrentUserIds()
|
/aosp12/frameworks/base/services/usb/java/com/android/server/usb/ |
H A D | UsbSettingsManager.java | 92 UserHandle parentUser; in getSettingsForProfileGroup() local 96 parentUser = parentUserInfo.getUserHandle(); in getSettingsForProfileGroup() 98 parentUser = user; in getSettingsForProfileGroup() 103 parentUser.getIdentifier()); in getSettingsForProfileGroup() 105 settings = new UsbProfileGroupSettingsManager(mContext, parentUser, this, in getSettingsForProfileGroup() 107 mSettingsByProfileGroup.put(parentUser.getIdentifier(), settings); in getSettingsForProfileGroup()
|
/aosp12/packages/apps/Settings/src/com/android/settings/notification/app/ |
H A D | VisibilityPreferenceController.java | 159 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()
|
/aosp12/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/ |
H A D | UninstallFinish.java | 213 UserInfo parentUser = userManager.getProfileParent(profileId); in isProfileOfOrSame() local 214 return parentUser != null && parentUser.id == userId; in isProfileOfOrSame()
|
/aosp12/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/television/ |
H A D | UninstallAppProgress.java | 246 UserInfo parentUser = userManager.getProfileParent(profileId); in isProfileOfOrSame() local 247 return parentUser != null && parentUser.id == userId; in isProfileOfOrSame()
|
/aosp12/packages/apps/Settings/src/com/android/settings/ |
H A D | TrustedCredentialsDialogBuilder.java | 218 UserInfo parentUser = mUserManager.getProfileParent(userId); in isUserSecure() local 219 if (parentUser == null) { in isUserSecure() 222 return lockPatternUtils.isSecure(parentUser.id); in isUserSecure()
|
/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
H A D | RestrictedLockUtilsInternal.java | 127 final UserInfo parentUser = um.getProfileParent(adminUserId); in checkIfRestrictionEnforced() local 128 return (parentUser != null && parentUser.id == userId) in checkIfRestrictionEnforced()
|
/aosp12/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/ |
H A D | Utils.java | 1033 UserHandle parentUser = getSystemServiceSafe(context, UserManager.class) in getParentUserContext() local 1036 if (parentUser == null) { in getParentUserContext() 1044 parentUser); in getParentUserContext() 1047 throw new IllegalStateException("Could not switch to parent user " + parentUser, e); in getParentUserContext()
|
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/ |
H A D | Utils.java | 631 int parentUser = (ui != null) ? ui.id : UserHandle.USER_NULL; in checkCallerIsSystemOrActiveOrManagedUser() local 634 return (sForegroundUserId == callingUser) || (sForegroundUserId == parentUser) in checkCallerIsSystemOrActiveOrManagedUser()
|
/aosp12/frameworks/base/services/core/java/com/android/server/ |
H A D | SensorPrivacyService.java | 424 UserHandle parentUser = UserHandle.of(mUserManagerInternal in onSensorUseStarted() local 426 if (mSuppressReminders.containsKey(new Pair<>(sensor, parentUser))) { in onSensorUseStarted() 429 + parentUser); in onSensorUseStarted()
|
H A D | BluetoothManagerService.java | 2492 int parentUser = (ui != null) ? ui.id : UserHandle.USER_NULL; in checkIfCallerIsForegroundUser() local 2497 valid = (callingUser == foregroundUser) || parentUser == foregroundUser in checkIfCallerIsForegroundUser() 2502 + callingUser + " parentUser=" + parentUser + " foregroundUser=" in checkIfCallerIsForegroundUser()
|
/aosp12/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
H A D | DevicePolicyManagerService.java | 3733 clearOrgOwnedProfileOwnerUserRestrictions(parentUser); 4697 final int parentUser = getProfileParentId(profileUserId); 4698 enforceUserUnlocked(parentUser); 4703 int complexity = getAggregatedPasswordComplexityLocked(parentUser, true); 9641 UserInfo parentUser = mUserManager.getProfileParent(userHandle); 9642 return parentUser != null ? parentUser.id : userHandle; 14512 if (parentUser == null) { 14515 if (!parentUser.isSystem()) { 14519 + " on user %d", parentUser.getIdentifier())); 14523 parentUser); [all …]
|
/aosp12/frameworks/base/core/java/android/accounts/ |
H A D | AccountManager.java | 2005 public void addSharedAccountsFromParentUser(UserHandle parentUser, UserHandle user) { 2007 mService.addSharedAccountsFromParentUser(parentUser.getIdentifier(),
|
/aosp12/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
H A D | CalendarProvider2.java | 839 final UserInfo parentUser = userManager.getProfileParent(UserHandle.myUserId()); in getParentUserId() local 840 return parentUser == null ? UserHandle.USER_NULL : parentUser.id; in getParentUserId()
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
H A D | DevicePolicyManagerTest.java | 6702 UserInfo parentUser = new UserInfo(); in testGetPasswordComplexity_unifiedChallengeReturnsParentUserPassword() local 6703 parentUser.id = CALLER_USER_HANDLE + 10; in testGetPasswordComplexity_unifiedChallengeReturnsParentUserPassword() 6705 .thenReturn(parentUser.id); in testGetPasswordComplexity_unifiedChallengeReturnsParentUserPassword() 6711 .getUserPasswordMetrics(parentUser.id)) in testGetPasswordComplexity_unifiedChallengeReturnsParentUserPassword()
|