/packages/apps/Car/Settings/src/com/android/car/settings/users/ |
D | EditUserNameEntryPreferenceController.java | 47 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()
|
D | UserDetailsPermissionsFragment.java | 50 getUserInfo()); in onAttach() 52 getUserInfo()); in onAttach() 58 UserUtils.getUserDisplayName(getContext(), getUserInfo())); in getTitleText()
|
D | UserHelper.java | 166 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()
|
D | UserDetailsBaseFragment.java | 75 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()
|
D | UserUtils.java | 42 public static UserInfo getUserInfo(Context context, int userId) { in getUserInfo() method in UserUtils 44 return userManager.getUserInfo(userId); in getUserInfo()
|
D | UserDetailsFragment.java | 62 R.string.pk_edit_user_name_entry).setUserInfo(getUserInfo()); in onAttach() 79 return UserUtils.getUserDisplayName(getContext(), getUserInfo()); in getTitleText()
|
D | MakeAdminPreferenceController.java | 75 mConfirmListener, /* rejectListener= */ null, getUserInfo()); in updateState() 80 Drawable icon = new UserIconProvider().getRoundedUserIcon(getUserInfo(), getContext()); in updateState()
|
D | UserDetailsBasePreferenceController.java | 64 public UserInfo getUserInfo() { in getUserInfo() method in UserDetailsBasePreferenceController 70 mUserInfo = UserUtils.getUserInfo(getContext(), mUserInfo.id); in refreshUserInfo()
|
D | PermissionsPreferenceController.java | 97 getUserInfo().getUserHandle()); in PermissionsPreferenceController() 124 getUserInfo().getUserHandle())); in updateState()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/profileselector/ |
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()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/webview/ |
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()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/base/ |
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()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/users/ |
D | UserDetailsFragmentTest.java | 73 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/ |
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()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/ |
D | CarUserServiceTest.java | 397 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/ |
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()
|
/packages/apps/Settings/src/com/android/settings/webview/ |
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()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/ |
D | ShadowUserManager.java | 187 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/ |
D | CarUserService.java | 435 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/ |
D | ContactsActor.java | 199 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/ |
D | AndroidMockitoHelper.java | 101 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/ |
D | VisibilityPreferenceControllerTest.java | 109 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/ |
D | UserSettings.java | 392 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/ |
D | VendorServiceControllerTest.java | 118 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/ |
D | UserSettings.java | 397 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());
|