/packages/apps/Car/Settings/src/com/android/car/settings/users/ |
D | EditUserNameEntryPreferenceController.java | 44 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()
|
D | UserDetailsPermissionsFragment.java | 50 getUserInfo()); in onAttach() 52 getUserInfo()); in onAttach() 59 getUserInfo())); in getTitleText()
|
D | UserDetailsBaseFragment.java | 75 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()
|
D | UserUtils.java | 39 public static UserInfo getUserInfo(Context context, int userId) { in getUserInfo() method in UserUtils 41 return userManager.getUserInfo(userId); in getUserInfo()
|
D | UserDetailsFragment.java | 57 R.string.pk_edit_user_name_entry).setUserInfo(getUserInfo()); in onAttach() 74 return UserUtils.getUserDisplayName(getContext(), getCarUserManagerHelper(), getUserInfo()); in getTitleText()
|
D | UserDetailsBasePreferenceController.java | 57 public UserInfo getUserInfo() { in getUserInfo() method in UserDetailsBasePreferenceController 63 mUserInfo = UserUtils.getUserInfo(getContext(), mUserInfo.id); in refreshUserInfo()
|
D | MakeAdminPreferenceController.java | 71 mConfirmListener, /* rejectListener= */ null, getUserInfo()); in updateState() 76 Drawable icon = new UserIconProvider(getCarUserManagerHelper()).getUserIcon(getUserInfo(), in updateState()
|
D | PermissionsPreferenceController.java | 94 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/ |
D | ProfileSelectDialogTest.java | 61 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/ |
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/Car/Settings/tests/robotests/src/com/android/car/settings/users/ |
D | UserDetailsFragmentTest.java | 83 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/ |
D | ShadowUserManager.java | 44 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/ |
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/user/car-user-lib/src/android/car/userlib/ |
D | CarUserManagerHelper.java | 298 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/ |
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/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/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactsActor.java | 200 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/ |
D | VisibilityPreferenceControllerTest.java | 108 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/ |
D | UserSettings.java | 391 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/ |
D | UserSettings.java | 395 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/ |
D | UserUtil.java | 31 return userManager.getUserInfo(userHandle.getIdentifier()); in getUserInfoFromUserHandle()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
D | ApplicationFeatureProviderImplTest.java | 222 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/ |
D | SaveChosenLockWorkerBase.java | 80 if (context == null || UserManager.get(context).getUserInfo(mUserId).isPrimary()) { in prepare()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/password/ |
D | SaveChosenLockWorkerBase.java | 80 if (context == null || UserManager.get(context).getUserInfo(mUserId).isPrimary()) { in prepare()
|
/packages/services/Car/tests/robotests/src/com/android/car/testutils/shadow/ |
D | ShadowUserManager.java | 96 public UserInfo getUserInfo(int id) { in getUserInfo() method in ShadowUserManager
|