Home
last modified time | relevance | path

Searched refs:mUserInfo (Results 1 – 14 of 14) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/users/
DUserDetailsSettingsTest.java115 private UserInfo mUserInfo; field in UserDetailsSettingsTest
167 doReturn("Switch to " + mUserInfo.name) in initialize_userSelected_shouldSetupSwitchPref()
173 mUserInfo.name); in initialize_userSelected_shouldSetupSwitchPref()
174 verify(mSwitchUserPref).setTitle("Switch to " + mUserInfo.name); in initialize_userSelected_shouldSetupSwitchPref()
182 doReturn("Switch to " + mUserInfo.name) in initialize_guestSelected_shouldSetupSwitchPref()
188 mUserInfo.name); in initialize_guestSelected_shouldSetupSwitchPref()
189 verify(mSwitchUserPref).setTitle("Switch to " + mUserInfo.name); in initialize_guestSelected_shouldSetupSwitchPref()
330 .isEqualTo(mUserInfo.id); in initialize_adminSelectsNewRestrictedUser_shouldOpenAppContentScreen()
347 verify(mSwitchUserPref).setTitle("Switch to " + mUserInfo.name); in initialize_adminSelectsRestrictedUser_shouldSetupPreferences()
401 mUserManager.setUserRestriction(mUserInfo.getUserHandle(), in initialize_userHasCallRestriction_shouldSetPhoneSwitchUnChecked()
[all …]
/packages/apps/Settings/src/com/android/settings/users/
DUserDetailsSettings.java90 UserInfo mUserInfo; field in UserDetailsSettings
118 mRemoveUserPref.setEnabled((mUserInfo.flags & UserInfo.FLAG_INITIALIZED) != 0); in onResume()
126 if (mUserInfo.isGuest()) { in onPreferenceClick()
152 showDialog(mUserInfo.isGuest() ? DIALOG_CONFIRM_ENABLE_CALLING in onPreferenceChange()
185 return UserDialogs.createRemoveDialog(getActivity(), mUserInfo.id, in onCreateDialog()
213 if (!mUserInfo.isGuest()) {
219 mUserManager.removeUser(mUserInfo.id);
238 mUserInfo = mUserManager.getUserInfo(userId);
247 UserSettings.getUserName(context, mUserInfo)));
266 if (mUserInfo.isRestricted()) {
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/profiles/
DProfileIconProviderTest.java47 private UserInfo mUserInfo; field in ProfileIconProviderTest
57 mUserInfo = new UserInfo(/* id= */ 10, "USER_NAME", /* flags= */ 0); in setUp()
67 ShadowUserManager.setUserIcon(mUserInfo.id, null); in getRoundedUserIcon_AssignsIconIfNotPresent()
69 Drawable returnedIcon = mProfileIconProvider.getRoundedProfileIcon(mUserInfo, mContext); in getRoundedUserIcon_AssignsIconIfNotPresent()
72 assertThat(getShadowUserManager().getUserIcon(mUserInfo.id)).isNotNull(); in getRoundedUserIcon_AssignsIconIfNotPresent()
77 ShadowUserManager.setUserIcon(mUserInfo.id, null); in assignDefaultIcon_AssignsIconForNonGuest()
80 mUserManager, mContext.getResources(), mUserInfo); in assignDefaultIcon_AssignsIconForNonGuest()
83 assertThat(getShadowUserManager().getUserIcon(mUserInfo.id)).isNotNull(); in assignDefaultIcon_AssignsIconForNonGuest()
/packages/apps/Car/Settings/src/com/android/car/settings/profiles/
DProfileDetailsBasePreferenceController.java40 private UserInfo mUserInfo; field in ProfileDetailsBasePreferenceController
57 mUserInfo = userInfo; in setUserInfo()
62 return mUserInfo; in getUserInfo()
67 mUserInfo = ProfileUtils.getUserInfo(getContext(), mUserInfo.id); in refreshUserInfo()
72 if (mUserInfo == null) { in checkInitialized()
DProfileDetailsBaseFragment.java33 private UserInfo mUserInfo; field in ProfileDetailsBaseFragment
48 mUserInfo = ProfileUtils.getUserInfo(getContext(), userId); in onAttach()
60 return mUserInfo; in getUserInfo()
65 mUserInfo = ProfileUtils.getUserInfo(getContext(), mUserInfo.id); in refreshUserInfo()
DRemoveProfileHandler.java43 private UserInfo mUserInfo; field in RemoveProfileHandler
61 mUserInfo = userInfo; in setUserInfo()
69 int removeProfileResult = mProfileHelper.removeProfile(mContext, mUserInfo); in setUserInfo()
114 boolean isLastAdmin = mUserInfo.isAdmin() in showConfirmRemoveProfileDialog()
DEditProfileNameFragment.java47 private UserInfo mUserInfo; field in EditProfileNameFragment
85 mUserInfo = getArguments().getParcelable(Intent.EXTRA_USER); in onCreate()
91 mUserManager.setUserName(mUserInfo.id, in onCreate()
119 mProfileNameEditText.setText(mUserInfo.name); in configureProfileNameEditing()
/packages/apps/Car/Settings/src/com/android/car/settings/accounts/
DAccountDetailsFragment.java46 private UserInfo mUserInfo; field in AccountDetailsFragment
77 mUserInfo = getArguments().getParcelable(EXTRA_USER_INFO); in onAttach()
82 .setUserHandle(mUserInfo.getUserHandle()); in onAttach()
89 .setUserHandle(mUserInfo.getUserHandle()); in onAttach()
104 mAuthenticatorHelper = new AuthenticatorHelper(getContext(), mUserInfo.getUserHandle(), in onStart()
131 mUserInfo.getUserHandle()); in accountExists()
DAccountListPreferenceController.java60 private final UserInfo mUserInfo; field in AccountListPreferenceController
76 mUserInfo = ProfileHelper.getInstance(context).getCurrentProcessUserInfo(); in AccountListPreferenceController()
124 if (userHandle.equals(mUserInfo.getUserHandle())) { in onAccountsUpdate()
136 return new AuthenticatorHelper(getContext(), mUserInfo.getUserHandle(), this); in createAuthenticatorHelper()
142 preference.getAccount(), preference.getLabel(), mUserInfo)); in onAccountPreferenceClicked() local
150 getContext().getString(R.string.account_list_title, mUserInfo.name)); in forceUpdateAccountsCategory()
203 .getAccountsByTypeAsUser(accountType, mUserInfo.getUserHandle()); in getAccountPreferences()
/packages/apps/Car/Settings/src/com/android/car/settings/privacy/
DDeleteUserPreferenceController.java39 private final UserInfo mUserInfo; field in DeleteUserPreferenceController
56 mUserInfo = ProfileUtils.getUserInfo(getContext(), ActivityManager.getCurrentUser()); in DeleteUserPreferenceController()
57 mRemoveProfileHandler.setUserInfo(mUserInfo); in DeleteUserPreferenceController()
82 return mRemoveProfileHandler.canRemoveProfile(mUserInfo) ? AVAILABLE in getAvailabilityStatus()
/packages/apps/Settings/tests/robotests/src/com/android/settings/nfc/
DPaymentSettingsTest.java68 private UserInfo mUserInfo; field in PaymentSettingsTest
76 when(mUserManager.getUserInfo(UserHandle.myUserId())).thenReturn(mUserInfo); in setUp()
113 when(mUserInfo.isGuest()).thenReturn(true); in getNonIndexableKey_guestUser_returnsFalse()
/packages/apps/Settings/src/com/android/settings/applications/
DUserAppInfo.java33 public UserAppInfo(UserInfo mUserInfo, ApplicationInfo mAppInfo) { in UserAppInfo() argument
34 this.userInfo = mUserInfo; in UserAppInfo()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/enterprise/apps/
DUserAppInfo.java36 public UserAppInfo(UserInfo mUserInfo, ApplicationInfo mAppInfo) { in UserAppInfo() argument
37 this.userInfo = mUserInfo; in UserAppInfo()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/accounts/
DAccountDetailsFragmentTest.java52 private final UserInfo mUserInfo = new UserInfo(/* id= */ 0, /* name= */ "name", field in AccountDetailsFragmentTest
118 AccountDetailsFragment.newInstance(mAccount, mAccountLabel, mUserInfo), in setUpFragment()