Home
last modified time | relevance | path

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

1234

/packages/apps/Car/Settings/src/com/android/car/settings/users/
DEditUserNameEntryPreferenceController.java44 getFragmentController().launchFragment(EditUsernameFragment.newInstance(getUserInfo())); in updateState()
47 Drawable icon = new UserIconProvider(getCarUserManagerHelper()).getUserIcon(getUserInfo(), in updateState()
51 getUserInfo())); in updateState()
53 if (!getCarUserManagerHelper().isCurrentProcessUser(getUserInfo())) { in updateState()
60 if (!getUserInfo().isInitialized()) { in getSummary()
63 if (getUserInfo().isAdmin()) { in getSummary()
64 return getCarUserManagerHelper().isCurrentProcessUser(getUserInfo()) in getSummary()
DUserDetailsPermissionsFragment.java50 getUserInfo()); in onAttach()
52 getUserInfo()); in onAttach()
59 getUserInfo())); in getTitleText()
DUserDetailsBaseFragment.java75 mUserInfo = UserUtils.getUserInfo(getContext(), userId); in onAttach()
112 protected UserInfo getUserInfo() { in getUserInfo() method in UserDetailsBaseFragment
118 mUserInfo = UserUtils.getUserInfo(getContext(), mUserInfo.id); in refreshUserInfo()
DUserUtils.java39 public static UserInfo getUserInfo(Context context, int userId) { in getUserInfo() method in UserUtils
41 return userManager.getUserInfo(userId); in getUserInfo()
DUserDetailsFragment.java57 R.string.pk_edit_user_name_entry).setUserInfo(getUserInfo()); in onAttach()
74 return UserUtils.getUserDisplayName(getContext(), getCarUserManagerHelper(), getUserInfo()); in getTitleText()
DUserDetailsBasePreferenceController.java57 public UserInfo getUserInfo() { in getUserInfo() method in UserDetailsBasePreferenceController
63 mUserInfo = UserUtils.getUserInfo(getContext(), mUserInfo.id); in refreshUserInfo()
DMakeAdminPreferenceController.java71 mConfirmListener, /* rejectListener= */ null, getUserInfo()); in updateState()
76 Drawable icon = new UserIconProvider(getCarUserManagerHelper()).getUserIcon(getUserInfo(), in updateState()
DPermissionsPreferenceController.java94 getCarUserManagerHelper().setUserRestriction(getUserInfo(), in PermissionsPreferenceController()
118 switchPreference.getExtras().getString(PERMISSION_TYPE_KEY), getUserInfo())); in updateState()
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/profileselector/
DProfileSelectDialogTest.java61 when(mUserManager.getUserInfo(NORMAL_USER.getIdentifier())).thenReturn(userInfo); in setUp()
76 verify(mUserManager, never()).getUserInfo(NORMAL_USER.getIdentifier()); in updateUserHandlesIfNeeded_Normal()
90 verify(mUserManager, times(1)).getUserInfo(NORMAL_USER.getIdentifier()); in updateUserHandlesIfNeeded_Remove()
91 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/Car/Settings/tests/robotests/src/com/android/car/settings/users/
DUserDetailsFragmentTest.java83 when(mUserManager.getUserInfo(TEST_USER_ID)).thenReturn(testUser); in testCarUserManagerHelperUpdateListener_showsCorrectText()
93 when(mUserManager.getUserInfo(TEST_USER_ID)).thenReturn(testUser); in testCarUserManagerHelperUpdateListener_textChangesWithUserUpdate()
101 when(mUserManager.getUserInfo(TEST_USER_ID)).thenReturn(testUserUpdated); in testCarUserManagerHelperUpdateListener_textChangesWithUserUpdate()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowUserManager.java44 protected UserInfo getUserInfo(@UserIdInt int userHandle) { in getUserInfo() method in ShadowUserManager
45 return sInstance.getUserInfo(userHandle); in getUserInfo()
/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/user/car-user-lib/src/android/car/userlib/
DCarUserManagerHelper.java298 return mUserManager.getUserInfo(UserHandle.USER_SYSTEM); in getSystemUserInfo()
310 return mUserManager.getUserInfo(getCurrentForegroundUserId()); in getCurrentForegroundUserInfo()
333 return mUserManager.getUserInfo(getCurrentProcessUserId()); in getCurrentProcessUserInfo()
590 UserInfo user = mUserManager.getUserInfo(userId); in isPersistentUser()
/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/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/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsActor.java200 public UserInfo getUserInfo(int userHandle) { in getUserInfo() method in ContactsActor.MockUserManager
211 final UserInfo child = getUserInfo(userHandle); in getProfileParent()
245 return getUserInfo(userId).profileGroupId == getUserInfo(otherUserId).profileGroupId; in isSameProfileGroup()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DVisibilityPreferenceControllerTest.java108 when(mUm.getUserInfo(anyInt())).thenReturn(userInfo); in setUp()
152 when(mUm.getUserInfo(anyInt())).thenReturn(userInfo); in testUpdateState_disabledByAdmin_disableSecure()
174 when(mUm.getUserInfo(anyInt())).thenReturn(userInfo); in testUpdateState_disabledByAdmin_disableUnredacted()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/users/
DUserSettings.java391 UserInfo user = mUserManager.getUserInfo(UserHandle.myUserId()); in loadProfile()
494 UserInfo info = mUserManager.getUserInfo(userId); in onManageUserClicked()
527 if (mUserManager.getUserInfo(userId).isRestricted()) { in onUserCreated()
1059 UserInfo user = mUserManager.getUserInfo(userId); in onPreferenceClick()
1208 UserInfo info = mContext.getSystemService(UserManager.class).getUserInfo( in setListening()
/packages/apps/Settings/src/com/android/settings/users/
DUserSettings.java395 UserInfo user = mUserManager.getUserInfo(UserHandle.myUserId()); in loadProfile()
498 UserInfo info = mUserManager.getUserInfo(userId); in onManageUserClicked()
531 if (mUserManager.getUserInfo(userId).isRestricted()) { in onUserCreated()
1063 UserInfo user = mUserManager.getUserInfo(userId); in onPreferenceClick()
1209 UserInfo info = mContext.getSystemService(UserManager.class).getUserInfo( in setListening()
/packages/services/Telecomm/src/com/android/server/telecom/
DUserUtil.java31 return userManager.getUserInfo(userHandle.getIdentifier()); in getUserInfoFromUserHandle()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DApplicationFeatureProviderImplTest.java222 when(mUserManager.getUserInfo(MAIN_USER_ID)).thenReturn(mainUser); in testFindPersistentPreferredActivities()
223 when(mUserManager.getUserInfo(MANAGED_PROFILE_ID)).thenReturn(managedUser); in testFindPersistentPreferredActivities()
/packages/apps/Settings/src/com/android/settings/password/
DSaveChosenLockWorkerBase.java80 if (context == null || UserManager.get(context).getUserInfo(mUserId).isPrimary()) { in prepare()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/password/
DSaveChosenLockWorkerBase.java80 if (context == null || UserManager.get(context).getUserInfo(mUserId).isPrimary()) { in prepare()
/packages/services/Car/tests/robotests/src/com/android/car/testutils/shadow/
DShadowUserManager.java96 public UserInfo getUserInfo(int id) { in getUserInfo() method in ShadowUserManager

1234