Home
last modified time | relevance | path

Searched refs:getUserInfo (Results 1 – 25 of 107) sorted by relevance

12345

/packages/apps/Car/Settings/src/com/android/car/settings/users/
DEditUserNameEntryPreferenceController.java47 getFragmentController().launchFragment(EditUsernameFragment.newInstance(getUserInfo())); in updateState()
50 Drawable icon = new UserIconProvider().getRoundedUserIcon(getUserInfo(), getContext()); in updateState()
52 preference.setTitle(UserUtils.getUserDisplayName(getContext(), getUserInfo())); in updateState()
54 if (!mUserHelper.isCurrentProcessUser(getUserInfo())) { in updateState()
61 if (!getUserInfo().isInitialized()) { in getSummary()
64 if (getUserInfo().isAdmin()) { in getSummary()
65 return mUserHelper.isCurrentProcessUser(getUserInfo()) in getSummary()
DUserDetailsPermissionsFragment.java50 getUserInfo()); in onAttach()
52 getUserInfo()); in onAttach()
58 UserUtils.getUserDisplayName(getContext(), getUserInfo())); in getTitleText()
DUserHelper.java166 private UserInfo getUserInfo(AndroidFuture<UserCreationResult> future) { in getUserInfo() method in UserHelper
219 UserInfo user = getUserInfo(future); in createNewAdminUser()
238 UserInfo newGuest = getUserInfo(future); in createNewOrFindExistingGuest()
336 return mUserManager.getUserInfo(UserHandle.myUserId()); in getCurrentProcessUserInfo()
DUserDetailsBaseFragment.java75 mUserInfo = UserUtils.getUserInfo(getContext(), userId); in onAttach()
110 protected UserInfo getUserInfo() { in getUserInfo() method in UserDetailsBaseFragment
116 mUserInfo = UserUtils.getUserInfo(getContext(), mUserInfo.id); in refreshUserInfo()
DUserUtils.java42 public static UserInfo getUserInfo(Context context, int userId) { in getUserInfo() method in UserUtils
44 return userManager.getUserInfo(userId); in getUserInfo()
DUserDetailsFragment.java62 R.string.pk_edit_user_name_entry).setUserInfo(getUserInfo()); in onAttach()
79 return UserUtils.getUserDisplayName(getContext(), getUserInfo()); in getTitleText()
DMakeAdminPreferenceController.java75 mConfirmListener, /* rejectListener= */ null, getUserInfo()); in updateState()
80 Drawable icon = new UserIconProvider().getRoundedUserIcon(getUserInfo(), getContext()); in updateState()
DUserDetailsBasePreferenceController.java64 public UserInfo getUserInfo() { in getUserInfo() method in UserDetailsBasePreferenceController
70 mUserInfo = UserUtils.getUserInfo(getContext(), mUserInfo.id); in refreshUserInfo()
DPermissionsPreferenceController.java97 getUserInfo().getUserHandle()); in PermissionsPreferenceController()
124 getUserInfo().getUserHandle())); in updateState()
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/profileselector/
DProfileSelectDialogTest.java62 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()
/packages/apps/Settings/tests/robotests/src/com/android/settings/webview/
DWebViewAppPickerTest.java234 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()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/base/
DDocumentInfoTest.java197 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()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/users/
DUserDetailsFragmentTest.java73 UserUtils.getUserDisplayName(mContext, mUserManager.getUserInfo(TEST_USER_ID))); in testCarUserManagerHelperUpdateListener_showsCorrectText()
81 UserUtils.getUserDisplayName(mContext, mUserManager.getUserInfo(TEST_USER_ID))); in testCarUserManagerHelperUpdateListener_textChangesWithUserUpdate()
88 UserUtils.getUserDisplayName(mContext, mUserManager.getUserInfo(TEST_USER_ID))); in testCarUserManagerHelperUpdateListener_textChangesWithUserUpdate()
/packages/apps/Settings/tests/unit/src/com/android/settings/
DUtilsTest.java50 when(mUserManager.getUserInfo(TEST_PRIMARY_USER_ID)).thenReturn(primaryUser); in setUp()
53 when(mUserManager.getUserInfo(eq(TEST_MANAGED_PROFILE_ID))).thenReturn(managedProfile); in setUp()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DCarUserServiceTest.java397 doReturn(user1Info).when(mMockedUserManager).getUserInfo(user1); in testBackgroundUserList()
398 doReturn(user2Info).when(mMockedUserManager).getUserInfo(user2); in testBackgroundUserList()
399 doReturn(user3Info).when(mMockedUserManager).getUserInfo(user3); in testBackgroundUserList()
400 doReturn(user4GuestInfo).when(mMockedUserManager).getUserInfo(user4Guest); in testBackgroundUserList()
401 doReturn(user5Info).when(mMockedUserManager).getUserInfo(user5); in testBackgroundUserList()
446 doReturn(user1Info).when(mMockedUserManager).getUserInfo(user1); in testBackgroundUsersStartStopKeepBackgroundUserList()
447 doReturn(user2Info).when(mMockedUserManager).getUserInfo(user2); in testBackgroundUsersStartStopKeepBackgroundUserList()
448 doReturn(user3Info).when(mMockedUserManager).getUserInfo(user3); in testBackgroundUsersStartStopKeepBackgroundUserList()
537 doReturn(driverInfo).when(mMockedUserManager).getUserInfo(driverId); in testCreatePassenger()
548 doReturn(driverInfo).when(mMockedUserManager).getUserInfo(driverId); in testCreatePassenger_IfMaximumProfileAlreadyCreated()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/webview/
DWebViewAppPicker.java158 R.string.webview_uninstalled_for_user, userPackage.getUserInfo().name); in getDisabledReason()
162 R.string.webview_disabled_for_user, userPackage.getUserInfo().name); in getDisabledReason()
/packages/apps/Settings/src/com/android/settings/webview/
DWebViewAppPicker.java158 R.string.webview_uninstalled_for_user, userPackage.getUserInfo().name); in getDisabledReason()
162 R.string.webview_disabled_for_user, userPackage.getUserInfo().name); in getDisabledReason()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowUserManager.java187 protected UserInfo getUserInfo(@UserIdInt int userId) { in getUserInfo() method in ShadowUserManager
191 .orElse(super.getUserInfo(userId)); in getUserInfo()
/packages/services/Car/service/src/com/android/car/user/
DCarUserService.java435 UserInfo driver = mUserManager.getUserInfo(driverId); in createPassenger()
548 UserInfo passenger = mUserManager.getUserInfo(passengerId); in stopPassengerInternal()
705 : mUserManager.getUserInfo(userId); in setInitialUser()
790 UserInfo targetUser = mUserManager.getUserInfo(targetUserId); in switchUser()
934 UserInfo userInfo = mUserManager.getUserInfo(userId); in removeUser()
1212 UserInfo user = mUserManager.getUserInfo(userId); in getHalUserInfoFlags()
1307 UserInfo targetUser = mUserManager.getUserInfo(targetUserId); in createUserSwitchRequest()
1396 return !mUserManager.getUserInfo(userId).isEphemeral(); in isPersistentUser()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsActor.java199 public UserInfo getUserInfo(int userHandle) { in getUserInfo() method in ContactsActor.MockUserManager
210 final UserInfo child = getUserInfo(userHandle); in getProfileParent()
244 return getUserInfo(userId).profileGroupId == getUserInfo(otherUserId).profileGroupId; in isSameProfileGroup()
/packages/services/Car/car-test-lib/src/android/car/test/mocks/
DAndroidMockitoHelper.java101 when(um.getUserInfo(user.id)).thenReturn(user); in mockUmGetUserInfo()
111 when(um.getUserInfo(UserHandle.USER_SYSTEM)).thenReturn(user); in mockUmGetSystemUser()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/app/
DVisibilityPreferenceControllerTest.java109 when(mUm.getUserInfo(anyInt())).thenReturn(userInfo); in setUp()
153 when(mUm.getUserInfo(anyInt())).thenReturn(userInfo); in testUpdateState_disabledByAdmin_disableSecure()
175 when(mUm.getUserInfo(anyInt())).thenReturn(userInfo); in testUpdateState_disabledByAdmin_disableUnredacted()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/users/
DUserSettings.java392 UserInfo user = mUserManager.getUserInfo(UserHandle.myUserId()); in loadProfile()
495 UserInfo info = mUserManager.getUserInfo(userId); in onManageUserClicked()
528 if (mUserManager.getUserInfo(userId).isRestricted()) { in onUserCreated()
1063 UserInfo user = mUserManager.getUserInfo(userId); in onPreferenceClick()
1212 UserInfo info = mContext.getSystemService(UserManager.class).getUserInfo( in setListening()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/pm/
DVendorServiceControllerTest.java118 when(mUserManager.getUserInfo(FG_USER_ID)).thenReturn(persistentFgUser); in setUp()
179 when(mUserManager.getUserInfo(UserHandle.USER_NULL)).thenReturn(nullUser); in fgUserUnlocked()
/packages/apps/Settings/src/com/android/settings/users/
DUserSettings.java397 UserInfo user = mUserManager.getUserInfo(UserHandle.myUserId()); in loadProfile()
475 UserInfo userInfo = mUserManager.getUserInfo(userId); in onUserCreated()
609 UserInfo info = mUserManager.getUserInfo(user.getIdentifier()); in onCreateDialog()
1054 UserInfo userInfo = mUserManager.getUserInfo(((UserPreference) pref).getUserId());

12345