Home
last modified time | relevance | path

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

1234

/packages/apps/Car/Settings/src/com/android/car/settings/profiles/
DProfileDetailsActionButtonsPreferenceController.java130 && 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()
DProfileDetailsHeaderPreferenceController.java48 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()
DProfileDetailsPermissionsFragment.java49 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()
DProfileDetailsFragment.java54 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()
DProfileDetailsBaseFragment.java48 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()
DProfileUtils.java42 public static UserInfo getUserInfo(Context context, int userId) { in getUserInfo() method in ProfileUtils
44 return userManager.getUserInfo(userId); in getUserInfo()
DProfileDetailsBasePreferenceController.java61 public UserInfo getUserInfo() { in getUserInfo() method in ProfileDetailsBasePreferenceController
67 mUserInfo = ProfileUtils.getUserInfo(getContext(), mUserInfo.id); in refreshUserInfo()
DProfileDetailsDeletePreferenceController.java79 preference.setVisible(mRemoveProfileHandler.canRemoveProfile(getUserInfo()) in updateState()
80 && mProfileHelper.isCurrentProcessUser(getUserInfo())); in updateState()
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/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/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/modules/Connectivity/tests/cts/net/src/android/net/cts/
DUriTest.java108 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/
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/apps/Car/SystemUI/src/com/android/systemui/car/userswitcher/
DUserGridRecyclerView.java177 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/
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/services/Car/service/src/com/android/car/user/
DCarUserService.java521 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 …]
DInitialUserSetter.java357 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/
DShadowUserManager.java187 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/
DUserNameViewControllerTest.java78 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/
DAndroidMockitoHelperTest.java121 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/
DCarUserServiceTest.java484 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/
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/apps/Settings/tests/robotests/src/com/android/settings/notification/app/
DVisibilityPreferenceControllerTest.java111 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/
DAndroidMockitoHelper.java105 when(um.getUserInfo(user.id)).thenReturn(user); in mockUmGetUserInfo()
115 when(um.getUserInfo(UserHandle.USER_SYSTEM)).thenReturn(user); in mockUmGetSystemUser()

1234