/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/profiles/ |
H A D | ProfileDetailsHeaderPreferenceController.java | 48 Drawable icon = new ProfileIconProvider().getRoundedProfileIcon(getUserInfo(), in updateState() 51 preference.setTitle(ProfileUtils.getProfileDisplayName(getContext(), getUserInfo())); in updateState() 61 if (!getUserInfo().isInitialized()) { in getSummary() 64 if (getUserInfo().isAdmin()) { in getSummary() 65 return mProfileHelper.isCurrentProcessUser(getUserInfo()) in getSummary()
|
H A D | ProfileDetailsPermissionsFragment.java | 49 R.string.pk_profile_details_permissions_header).setUserInfo(getUserInfo()); in onAttach() 51 R.string.pk_profile_details_permissions_action_buttons).setUserInfo(getUserInfo()); in onAttach() 53 getUserInfo()); in onAttach() 59 ProfileUtils.getProfileDisplayName(getContext(), getUserInfo())); in getTitleText()
|
H A D | ProfileDetailsActionButtonsPreferenceController.java | 136 && mProfileHelper.isCurrentProcessUser(getUserInfo()) in onStartInternal() 142 || mUserManager.isAdminUser() && mProfileHelper.isCurrentProcessUser(getUserInfo()) in onStartInternal() 146 getContext(), getUserInfo(), /* availableForCurrentProcessUser= */ false); in onStartInternal() 162 .setVisible(mProfileHelper.isCurrentProcessUser(getUserInfo())) in onStartInternal() 164 EditProfileNameFragment.newInstance(getUserInfo()))); in onStartInternal() 169 .setVisible(ProfileUtils.isAdminViewingNonAdmin(mUserManager, getUserInfo())) in onStartInternal() 234 mMakeAdminConfirmListener, /* rejectListener= */ null, getUserInfo()); in showConfirmMakeAdminDialog()
|
H A D | ProfileDetailsBaseFragment.java | 48 mUserInfo = ProfileUtils.getUserInfo(getContext(), userId); in onAttach() 59 protected UserInfo getUserInfo() { in getUserInfo() method in ProfileDetailsBaseFragment 65 mUserInfo = ProfileUtils.getUserInfo(getContext(), mUserInfo.id); in refreshUserInfo()
|
H A D | ProfileUtils.java | 42 public static UserInfo getUserInfo(Context context, int userId) { in getUserInfo() method in ProfileUtils 44 return userManager.getUserInfo(userId); in getUserInfo()
|
H A D | ProfileDetailsBasePreferenceController.java | 61 public UserInfo getUserInfo() { in getUserInfo() method in ProfileDetailsBasePreferenceController 67 mUserInfo = ProfileUtils.getUserInfo(getContext(), mUserInfo.id); in refreshUserInfo()
|
H A D | PermissionsPreferenceController.java | 97 getUserInfo().getUserHandle()); in PermissionsPreferenceController() 124 getUserInfo().getUserHandle())); in updateState()
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/profileselector/ |
H A D | ProfileSelectDialogTest.java | 62 when(mUserManager.getUserInfo(NORMAL_USER.getIdentifier())).thenReturn(userInfo); in setUp() 77 verify(mUserManager, never()).getUserInfo(NORMAL_USER.getIdentifier()); in updateUserHandlesIfNeeded_Normal() 91 verify(mUserManager, times(1)).getUserInfo(NORMAL_USER.getIdentifier()); in updateUserHandlesIfNeeded_Remove() 92 verify(mUserManager, times(2)).getUserInfo(REMOVED_USER.getIdentifier()); in updateUserHandlesIfNeeded_Remove()
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
H A D | UserManagerServiceUserInfoTest.java | 144 UserInfo userInfo = mUserManagerService.getUserInfo(UserHandle.USER_SYSTEM); in testGetUserName() 154 assertEquals("A Name", mUserManagerService.getUserInfo(TEST_ID).name); in testGetUserName() 226 assertTrue((mUserManagerService.getUserInfo(100).flags & FLAG_PROFILE) != 0); in testUpgradeIfNecessaryLP_9() 231 assertTrue((mUserManagerService.getUserInfo(102).flags & FLAG_PROFILE) == 0); in testUpgradeIfNecessaryLP_9() 234 assertTrue((mUserManagerService.getUserInfo(103).flags & FLAG_PROFILE) == 0); in testUpgradeIfNecessaryLP_9() 319 assertTrue((mUserManagerService.getUserInfo(userId).flags & FLAG_PROFILE) != 0); in testUpgradeProfileType_updateTypeAndFlags() 320 assertTrue((mUserManagerService.getUserInfo(userId).flags & FLAG_MANAGED_PROFILE) == 0); in testUpgradeProfileType_updateTypeAndFlags() 321 assertTrue((mUserManagerService.getUserInfo(userId).flags & FLAG_INITIALIZED) != 0); in testUpgradeProfileType_updateTypeAndFlags()
|
/aosp12/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/base/ |
H A D | DocumentInfoTest.java | 197 assertThat(otherUserDoc.getTreeDocumentUri().getUserInfo()) in testGetTreeDocumentUri_otherUser_userInfo() 198 .isNotEqualTo(doc.getTreeDocumentUri().getUserInfo()); in testGetTreeDocumentUri_otherUser_userInfo() 201 assertThat(otherUserDoc.getTreeDocumentUri().getUserInfo()) in testGetTreeDocumentUri_otherUser_userInfo() 202 .isEqualTo(otherUserDoc.getDocumentUri().getUserInfo()); in testGetTreeDocumentUri_otherUser_userInfo()
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/webview/ |
H A D | WebViewAppPickerTest.java | 234 when(packageForFirstUser.getUserInfo()).thenReturn(mFirstUser); in testDisabledReasonForSingleUserDisabledPackage() 250 when(packageForFirstUser.getUserInfo()).thenReturn(mFirstUser); in testDisabledReasonForSingleUserUninstalledPackage() 266 when(packageForFirstUser.getUserInfo()).thenReturn(mFirstUser); in testDisabledReasonSeveralUsers() 271 when(packageForSecondUser.getUserInfo()).thenReturn(mSecondUser); in testDisabledReasonSeveralUsers() 291 when(packageForFirstUser.getUserInfo()).thenReturn(mFirstUser); in testDisabledReasonUninstalledAndDisabled() 296 when(packageForSecondUser.getUserInfo()).thenReturn(mSecondUser); in testDisabledReasonUninstalledAndDisabled()
|
/aosp12/frameworks/base/services/tests/mockingservicestests/src/com/android/server/sensorprivacy/ |
H A D | SensorPrivacyServiceMockingTest.java | 129 .getUserInfo(0); in testServiceInit() 141 .getUserInfo(0); in testServiceInit() 143 .getUserInfo(10); in testServiceInit() 210 .getUserInfo(0); in testServiceInit_AppOpsRestricted()
|
/aosp12/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/ |
H A D | UtilsTest.java | 50 when(mUserManager.getUserInfo(TEST_PRIMARY_USER_ID)).thenReturn(primaryUser); in setUp() 53 when(mUserManager.getUserInfo(eq(TEST_MANAGED_PROFILE_ID))).thenReturn(managedProfile); in setUp()
|
/aosp12/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
H A D | UriTest.java | 108 assertEquals("bob", uri.getUserInfo()); in testStringUri() 113 assertEquals("bob lee", uri.getUserInfo()); in testStringUri() 133 assertNull(uri.getUserInfo()); in testStringUri() 142 assertNull(uri.getUserInfo()); in testStringUri() 152 assertEquals("some:user", uri.getUserInfo()); in testStringUri() 362 assertNull(uri.getUserInfo()); in testOpaqueUri()
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
H A D | MockSystemServices.java | 236 when(userManager.getUserInfo(eq(userId))).thenReturn(uh); in addUser() 252 final UserInfo ui = getUserInfo(userId1); in addUser() 253 return ui == null ? null : getUserInfo(ui.profileGroupId); in addUser() 259 final UserInfo ui = getUserInfo(userHandle.getIdentifier()); in addUser() 298 when(userManager.getUserInfo(eq(userId))).thenReturn(null); in removeUser() 303 private UserInfo getUserInfo(int userId) { in getUserInfo() method in MockSystemServices
|
/aosp12/packages/apps/Car/SystemUI/src/com/android/systemui/car/qc/ |
H A D | ProfileSwitcher.java | 100 UserInfo currentUser = mUserManager.getUserInfo(ActivityManager.getCurrentUser()); in getQCItem() 214 UserInfo newGuest = getUserInfo(future); in createNewOrFindExistingGuest() 224 private UserInfo getUserInfo(AsyncFuture<UserCreationResult> future) { in getUserInfo() method in ProfileSwitcher 316 UserInfo user = getUserInfo(future); in doInBackground()
|
/aosp12/frameworks/base/services/core/java/com/android/server/am/ |
H A D | UserController.java | 683 final UserInfo userInfo = getUserInfo(userId); in finishUserUnlocked() 713 final UserInfo info = getUserInfo(userId); in finishUserUnlocked() 740 UserInfo userInfo = getUserInfo(userId); in finishUserUnlockedCompleted() 855 final UserInfo userInfo = getUserInfo(userId); 1091 final UserInfo userInfo = getUserInfo(userId); 1249 final UserInfo userInfo = getUserInfo(userId); 1274 UserInfo userInfo = getUserInfo(oldUserId); 1340 final UserInfo userInfo = getUserInfo(userId); 2368 return getUserInfo(mCurrentUserId); 2392 return getUserInfo(userId); [all …]
|
/aosp12/packages/apps/Settings/src/com/android/settings/webview/ |
H A D | WebViewAppPicker.java | 158 R.string.webview_uninstalled_for_user, userPackage.getUserInfo().name); in getDisabledReason() 162 R.string.webview_disabled_for_user, userPackage.getUserInfo().name); in getDisabledReason()
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/ |
H A D | ShadowUserManager.java | 187 protected UserInfo getUserInfo(@UserIdInt int userId) { in getUserInfo() method in ShadowUserManager 191 .orElse(super.getUserInfo(userId)); in getUserInfo()
|
/aosp12/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/statusbar/ |
H A D | UserNameViewControllerTest.java | 78 when(mUserManager.getUserInfo(mUserInfo1.id)).thenReturn(mUserInfo1); in setUp() 79 when(mUserManager.getUserInfo(mUserInfo2.id)).thenReturn(mUserInfo2); in setUp()
|
/aosp12/packages/apps/Car/SystemUI/src/com/android/systemui/car/userswitcher/ |
H A D | UserGridRecyclerView.java | 176 return new UserRecord(mUserManager.getUserInfo(ActivityManager.getCurrentUser()), in createForegroundUserRecord() 463 UserInfo newGuest = getUserInfo(future); in createNewOrFindExistingGuest() 494 private UserInfo getUserInfo(AsyncFuture<UserCreationResult> future) { in getUserInfo() method in UserGridRecyclerView.UserAdapter 546 UserInfo user = getUserInfo(future); in doInBackground()
|
/aosp12/frameworks/base/core/java/android/os/ |
H A D | UserManager.java | 1885 UserInfo userInfo = getUserInfo(mUserId); in getUserType() 1908 UserInfo userInfo = getUserInfo(mUserId); in getUserName() 1961 UserInfo user = getUserInfo(UserHandle.myUserId()); in isPrimaryUser() 1999 UserInfo user = getUserInfo(userId); in isUserAdmin() 2136 return mService.getUserInfo(user.getIdentifier()).isRestricted(); in isRestrictedProfile() 2184 final UserInfo info = getUserInfo(mUserId); in getRestrictedProfileParent() 2201 UserInfo user = getUserInfo(userId); in isGuestUser() 2215 UserInfo user = getUserInfo(UserHandle.myUserId()); in isGuestUser() 2360 final UserInfo user = getUserInfo(userId); in isUserEphemeral() 2600 public UserInfo getUserInfo(@UserIdInt int userId) { in getUserInfo() method in UserManager [all …]
|
/aosp12/packages/services/Telecomm/src/com/android/server/telecom/ |
H A D | UserUtil.java | 31 return userManager.getUserInfo(userHandle.getIdentifier()); in getUserInfoFromUserHandle()
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
H A D | BaseLockSettingsServiceTests.java | 158 when(mUserManager.getUserInfo(eq(PRIMARY_USER_ID))).thenReturn(PRIMARY_USER_INFO); in setUp_baseServices() 165 when(mUserManager.getUserInfo(eq(SECONDARY_USER_ID))).thenReturn(SECONDARY_USER_INFO); in setUp_baseServices() 199 when(mUserManager.getUserInfo(eq(profileId))).thenReturn(userInfo); in installChildProfile()
|
/aosp12/packages/services/Car/tests/carservice_unit_test/src/android/car/test/mocks/ |
H A D | AndroidMockitoHelperTest.java | 122 assertThat(mMockedUserManager.getUserInfo(TEST_USER_ID)).isSameInstanceAs(mTestUser); in testMockUmGetUserInfo() 133 mMockedUserManager.getUserInfo(UserHandle.USER_SYSTEM).getUserHandle()).isEqualTo( in testMockUmGetSystemUser()
|