Searched refs:parentUser (Results 1 – 7 of 7) sorted by relevance
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/ |
H A D | FakeUserInfoHelper.java | 74 public void setCurrentUserId(int parentUser) { in setCurrentUserId() argument 75 setCurrentUserIds(parentUser, new int[]{parentUser}); in setCurrentUserId() 78 public void setCurrentUserIds(int parentUser, int[] currentProfileUserIds) { in setCurrentUserIds() argument 79 Preconditions.checkArgument(ArrayUtils.contains(currentProfileUserIds, parentUser)); in setCurrentUserIds() 81 mCurrentUserId = parentUser; in setCurrentUserIds() 82 mProfiles.put(parentUser, in setCurrentUserIds()
|
/aosp14/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()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
H A D | UserManagerTest.java | 557 final UserInfo parentUser = createUser("Human User", /* flags= */ 0); in testRemoveUserWhenPossible_withProfiles() local 559 .that(parentUser).isNotNull(); in testRemoveUserWhenPossible_withProfiles() 564 if (mUserManager.canAddMoreProfilesToUser(profileType, parentUser.id)) { in testRemoveUserWhenPossible_withProfiles() 565 final UserInfo profile = createProfileForUser(name, profileType, parentUser.id); in testRemoveUserWhenPossible_withProfiles() 570 Slog.w(TAG, "Can not add " + name + " to user #" + parentUser.id); in testRemoveUserWhenPossible_withProfiles() 575 assumeTrue("Not possible to create any profiles to user #" + parentUser.id, in testRemoveUserWhenPossible_withProfiles() 578 assertThat(mUserManager.removeUserWhenPossible(parentUser.getUserHandle(), in testRemoveUserWhenPossible_withProfiles() 581 waitForUserRemoval(parentUser.id); in testRemoveUserWhenPossible_withProfiles() 584 .that(hasUser(parentUser.id)).isFalse(); in testRemoveUserWhenPossible_withProfiles()
|
/aosp14/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
H A D | DevicePolicyEngine.java | 1111 UserInfo parentUser = mUserManager.getProfileParent(userId); in getProfileParentId() 1112 return parentUser != null ? parentUser.id : userId; in getProfileParentId()
|
H A D | DevicePolicyManagerService.java | 4061 clearOrgOwnedProfileOwnerUserRestrictions(parentUser); 4062 clearOrgOwnedProfileOwnerDeviceWidePolicies(parentUser.getIdentifier()); 5216 final int parentUser = getProfileParentId(profileUserId); 5217 enforceUserUnlocked(parentUser); 5222 int complexity = getAggregatedPasswordComplexityLocked(parentUser, true); 7627 () -> clearOrgOwnedProfileOwnerUserRestrictions(parentUser)); 11245 UserInfo parentUser = mUserManager.getProfileParent(userHandle); 11246 return parentUser != null ? parentUser.id : userHandle; 18128 if (parentUser == null) { 18134 parentUser); [all …]
|
/aosp14/frameworks/base/core/java/android/accounts/ |
H A D | AccountManager.java | 2000 public void addSharedAccountsFromParentUser(UserHandle parentUser, UserHandle user) { 2002 mService.addSharedAccountsFromParentUser(parentUser.getIdentifier(),
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
H A D | DevicePolicyManagerTest.java | 6925 UserInfo parentUser = new UserInfo(); in testGetPasswordComplexity_unifiedChallengeReturnsParentUserPassword() local 6926 parentUser.id = CALLER_USER_HANDLE + 10; in testGetPasswordComplexity_unifiedChallengeReturnsParentUserPassword() 6928 .thenReturn(parentUser.id); in testGetPasswordComplexity_unifiedChallengeReturnsParentUserPassword() 6934 .getUserPasswordMetrics(parentUser.id)) in testGetPasswordComplexity_unifiedChallengeReturnsParentUserPassword()
|