/packages/apps/Car/Settings/src/com/android/car/settings/profiles/ |
D | ProfileDetailsActionButtonsPreferenceController.java | 130 && mProfileHelper.isCurrentProcessUser(getUserInfo()) in onStartInternal() 134 || mUserManager.isAdminUser() && mProfileHelper.isCurrentProcessUser(getUserInfo()) in onStartInternal() 149 .setVisible(mProfileHelper.isCurrentProcessUser(getUserInfo())) in onStartInternal() 151 EditProfileNameFragment.newInstance(getUserInfo()))); in onStartInternal() 156 .setVisible(ProfileUtils.isAdminViewingNonAdmin(mUserManager, getUserInfo())) in onStartInternal() 183 .setVisible(mRemoveProfileHandler.canRemoveProfile(getUserInfo()) in onStartInternal() 184 && !mProfileHelper.isCurrentProcessUser(getUserInfo())) in onStartInternal() 214 mMakeAdminConfirmListener, /* rejectListener= */ null, getUserInfo()); in showConfirmMakeAdminDialog()
|
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()
|
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()
|
D | ProfileDetailsFragment.java | 54 R.string.pk_profile_details_header).setUserInfo(getUserInfo()); in onAttach() 56 R.string.pk_profile_details_action_buttons).setUserInfo(getUserInfo()); in onAttach() 58 R.string.pk_account_group).setUserInfo(getUserInfo()); in onAttach() 60 R.string.pk_profile_details_delete).setUserInfo(getUserInfo()); in onAttach()
|
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()
|
D | ProfileUtils.java | 42 public static UserInfo getUserInfo(Context context, int userId) { in getUserInfo() method in ProfileUtils 44 return userManager.getUserInfo(userId); in getUserInfo()
|
D | ProfileDetailsBasePreferenceController.java | 61 public UserInfo getUserInfo() { in getUserInfo() method in ProfileDetailsBasePreferenceController 67 mUserInfo = ProfileUtils.getUserInfo(getContext(), mUserInfo.id); in refreshUserInfo()
|
D | ProfileDetailsDeletePreferenceController.java | 79 preference.setVisible(mRemoveProfileHandler.canRemoveProfile(getUserInfo()) in updateState() 80 && mProfileHelper.isCurrentProcessUser(getUserInfo())); in updateState()
|
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/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/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/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
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()
|
/packages/apps/Settings/tests/legacy_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/apps/Car/SystemUI/src/com/android/systemui/car/userswitcher/ |
D | UserGridRecyclerView.java | 177 return new UserRecord(mUserManager.getUserInfo(ActivityManager.getCurrentUser()), in createForegroundUserRecord() 464 UserInfo newGuest = getUserInfo(future); in createNewOrFindExistingGuest() 495 private UserInfo getUserInfo(AsyncFuture<UserCreationResult> future) { in getUserInfo() method in UserGridRecyclerView.UserAdapter 547 UserInfo user = getUserInfo(future); in doInBackground()
|
/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/services/Car/service/src/com/android/car/user/ |
D | CarUserService.java | 521 UserInfo driver = mUserManager.getUserInfo(driverId); in createPassenger() 636 UserInfo passenger = mUserManager.getUserInfo(passengerId); in stopPassengerInternal() 756 UserInfo currentUser = mUserManager.getUserInfo(currentUserId); in initResumeReplaceGuest() 989 UserInfo targetUser = mUserManager.getUserInfo(targetUserId); in switchUser() 1154 UserInfo callingUser = mUserManager.getUserInfo(callingUserId); in removeUser() 1165 UserInfo userInfo = mUserManager.getUserInfo(userId); in handleRemoveUser() 1370 UserInfo callingUser = mUserManager.getUserInfo(callingUserId); in handleCreateUser() 1600 UserInfo user = mUserManager.getUserInfo(userId); in getHalUserInfoFlags() 1704 UserInfo targetUser = mUserManager.getUserInfo(targetUserId); in createUserSwitchRequest() 1793 return !mUserManager.getUserInfo(userId).isEphemeral(); in isPersistentUser() [all …]
|
D | InitialUserSetter.java | 357 UserInfo currentUser = mUm.getUserInfo(currentUserId); in replaceUser() 421 UserInfo user = mUm.getUserInfo(userId); in switchUser() 688 UserInfo user = mUm.getUserInfo(userId); in setLastActiveUser()
|
/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/apps/Car/SystemUI/tests/src/com/android/systemui/car/statusbar/ |
D | UserNameViewControllerTest.java | 78 when(mUserManager.getUserInfo(mUserInfo1.id)).thenReturn(mUserInfo1); in setUp() 79 when(mUserManager.getUserInfo(mUserInfo2.id)).thenReturn(mUserInfo2); in setUp()
|
/packages/services/Car/tests/carservice_unit_test/src/android/car/test/mocks/ |
D | AndroidMockitoHelperTest.java | 121 assertThat(mMockedUserManager.getUserInfo(TEST_USER_ID)).isSameInstanceAs(mTestUser); in testMockUmGetUserInfo() 132 mMockedUserManager.getUserInfo(UserHandle.USER_SYSTEM).getUserHandle()).isEqualTo( in testMockUmGetSystemUser()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/ |
D | CarUserServiceTest.java | 484 doReturn(user1Info).when(mMockedUserManager).getUserInfo(user1); in testBackgroundUserList() 485 doReturn(user2Info).when(mMockedUserManager).getUserInfo(user2); in testBackgroundUserList() 486 doReturn(user3Info).when(mMockedUserManager).getUserInfo(user3); in testBackgroundUserList() 487 doReturn(user4GuestInfo).when(mMockedUserManager).getUserInfo(user4Guest); in testBackgroundUserList() 488 doReturn(user5Info).when(mMockedUserManager).getUserInfo(user5); in testBackgroundUserList() 533 when(mMockedUserManager.getUserInfo(user1)).thenReturn(user1Info); in testBackgroundUsersStartStopKeepBackgroundUserList() 534 when(mMockedUserManager.getUserInfo(user2)).thenReturn(user2Info); in testBackgroundUsersStartStopKeepBackgroundUserList() 535 when(mMockedUserManager.getUserInfo(user3)).thenReturn(user3Info); in testBackgroundUsersStartStopKeepBackgroundUserList() 708 doReturn(driverInfo).when(mMockedUserManager).getUserInfo(driverId); in testCreatePassenger() 719 doReturn(driverInfo).when(mMockedUserManager).getUserInfo(driverId); in testCreatePassenger_IfMaximumProfileAlreadyCreated() [all …]
|
/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/apps/Settings/tests/robotests/src/com/android/settings/notification/app/ |
D | VisibilityPreferenceControllerTest.java | 111 when(mUm.getUserInfo(anyInt())).thenReturn(userInfo); in setUp() 172 when(mUm.getUserInfo(anyInt())).thenReturn(userInfo); in testUpdateState_disabledByAdmin_disableSecure() 194 when(mUm.getUserInfo(anyInt())).thenReturn(userInfo); in testUpdateState_disabledByAdmin_disableUnredacted()
|
/packages/services/Car/car-test-lib/src/android/car/test/mocks/ |
D | AndroidMockitoHelper.java | 105 when(um.getUserInfo(user.id)).thenReturn(user); in mockUmGetUserInfo() 115 when(um.getUserInfo(UserHandle.USER_SYSTEM)).thenReturn(user); in mockUmGetSystemUser()
|