Home
last modified time | relevance | path

Searched refs:userInfo (Results 1 – 25 of 39) sorted by relevance

12

/packages/apps/Settings/src/com/android/settings/accounts/
DAccountPreferenceController.java121 public UserInfo userInfo; field in AccountPreferenceController.ProfileData
179 UserInfo userInfo = profiles.get(i); in updateRawDataToIndex() local
180 if (userInfo.isEnabled()) { in updateRawDataToIndex()
181 if (!mHelper.hasBaseUserRestriction(DISALLOW_MODIFY_ACCOUNTS, userInfo.id)) { in updateRawDataToIndex()
187 if (userInfo.isManagedProfile()) { in updateRawDataToIndex()
237 intent.putExtra(EXTRA_USER, profileData.userInfo.getUserHandle()); in onPreferenceClick()
243 final int userId = profileData.userInfo.id; in onPreferenceClick()
250 arguments.putParcelable(Intent.EXTRA_USER, profileData.userInfo.getUserHandle()); in onPreferenceClick()
276 UserInfo userInfo = mUm.getUserInfo(UserHandle.myUserId()); in updateUi() local
277 updateProfileUi(userInfo); in updateUi()
[all …]
/packages/apps/Settings/src/com/android/settings/
DSettingsInitialize.java53 UserInfo userInfo = um.getUserInfo(UserHandle.myUserId()); in onReceive() local
55 managedProfileSetup(context, pm, broadcast, userInfo); in onReceive()
56 webviewSettingSetup(context, pm, userInfo); in onReceive()
60 UserInfo userInfo) { in managedProfileSetup() argument
61 if (userInfo == null || !userInfo.isManagedProfile()) { in managedProfileSetup()
67 pm.clearCrossProfileIntentFilters(userInfo.id); in managedProfileSetup()
85 pm.addCrossProfileIntentFilter(info.filter, userInfo.id, in managedProfileSetup()
86 userInfo.profileGroupId, PackageManager.SKIP_CURRENT_PROFILE); in managedProfileSetup()
102 private void webviewSettingSetup(Context context, PackageManager pm, UserInfo userInfo) { in webviewSettingSetup() argument
103 if (userInfo == null) { in webviewSettingSetup()
[all …]
DMasterClear.java312 final UserInfo userInfo = profiles.get(profileIndex); in loadAccountList() local
313 final int profileId = userInfo.id; in loadAccountList()
329 titleText.setText(userInfo.isManagedProfile() ? R.string.category_work in loadAccountList()
/packages/services/Telecomm/src/com/android/server/telecom/
DUserUtil.java35 UserInfo userInfo = getUserInfoFromUserHandle(context, userHandle); in isManagedProfile() local
36 return userInfo != null && userInfo.isManagedProfile(); in isManagedProfile()
40 UserInfo userInfo = getUserInfoFromUserHandle(context, userHandle); in isProfile() local
41 return userInfo != null && userInfo.profileGroupId != userInfo.id; in isProfile()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DSecurityFragment.java149 UserInfo userInfo = findRestrictedUser(mUserManager); in onResume() local
150 if (userInfo != null) { in onResume()
151 onRestrictedUserCreated(userInfo); in onResume()
411 for (UserInfo userInfo : userManager.getUsers()) { in findRestrictedUser()
412 if (userInfo.isRestricted()) { in findRestrictedUser()
413 return userInfo; in findRestrictedUser()
461 UserInfo userInfo = userManager.getUserInfo(UserHandle.myUserId()); in isRestrictedProfileInEffect() local
462 return userInfo.isRestricted(); in isRestrictedProfileInEffect()
466 UserInfo userInfo = userManager.getUserInfo(UserHandle.myUserId()); in isRestrictedProfileInEffect() local
467 return userInfo.isRestricted(); in isRestrictedProfileInEffect()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/
DPreProvisioningController.java649 UserInfo userInfo = mUserManager.createUser( in doInBackground() local
653 if (userInfo != null) { in doInBackground()
654 ProvisionLogger.logi("Created user " + userInfo.id + " to hold the device owner"); in doInBackground()
656 return userInfo; in doInBackground()
660 protected void onPostExecute(UserInfo userInfo) { in onPostExecute() argument
661 if (userInfo == null) { in onPostExecute()
666 mActivityManager.switchUser(userInfo.id); in onPostExecute()
669 mUi.startProvisioning(userInfo.id, mParams); in onPostExecute()
695 UserInfo userInfo = mUserManager.getUserInfo(mUserManager.getUserHandle()); in showManagedProfileErrorAndClose() local
706 if (!userInfo.canHaveProfile()) { in showManagedProfileErrorAndClose()
/packages/apps/Settings/src/com/android/settings/applications/
DUserAppInfo.java30 public final UserInfo userInfo; field in UserAppInfo
34 this.userInfo = mUserInfo; in UserAppInfo()
50 return that.userInfo.id == userInfo.id && TextUtils.equals(that.appInfo.packageName, in equals()
56 return Objects.hash(userInfo.id, appInfo.packageName); in hashCode()
/packages/apps/Car/Settings/src/com/android/car/settings/users/
DUserLineItem.java42 UserInfo userInfo, in UserLineItem() argument
45 super(userInfo.name); in UserLineItem()
47 mUserInfo = userInfo; in UserLineItem()
94 private boolean isCurrentUser(UserInfo userInfo) { in isCurrentUser() argument
95 return ActivityManager.getCurrentUser() == userInfo.id; in isCurrentUser()
DUserSettingsFragment.java101 for (UserInfo userInfo : infos) { in getLineItems()
102 items.add(new UserLineItem(mContext, userInfo, mUserManager, mFragmentController)); in getLineItems()
/packages/apps/Settings/src/com/android/settings/enterprise/
DEnterprisePrivacyFeatureProviderImpl.java71 for (final UserInfo userInfo : mUm.getProfiles(MY_USER_ID)) { in getManagedProfileUserId()
72 if (userInfo.isManagedProfile()) { in getManagedProfileUserId()
73 return userInfo.id; in getManagedProfileUserId()
227 for (final UserInfo userInfo : mUm.getProfiles(MY_USER_ID)) { in getNumberOfActiveDeviceAdminsForCurrentUserAndManagedProfile()
229 = mDpm.getActiveAdminsAsUser(userInfo.id); in getNumberOfActiveDeviceAdminsForCurrentUserAndManagedProfile()
DEnterpriseSetDefaultAppsListPreferenceController.java92 mUsers.add(apps.get(0).userInfo); in buildAppList()
126 final UserInfo userInfo = mUsers.get(i); in updateUi() local
129 if (userInfo.isManagedProfile()) { in updateUi()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DCreateManagedProfileTask.java67 UserInfo userInfo = mUserManager.createProfileForUserEvenWhenDisallowed( in run() local
71 if (userInfo == null) { in run()
75 mProfileUserId = userInfo.id; in run()
76 mNonRequiredAppsLogic.maybeTakeSystemAppsSnapshot(userInfo.id); in run()
DDisallowAddUserTask.java62 for (UserInfo userInfo : mUserManager.getUsers()) { in run()
63 UserHandle userHandle = userInfo.getUserHandle(); in run()
66 ProvisionLogger.logi("DISALLOW_ADD_USER restriction set on user: " + userInfo.id); in run()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/
DUserAndAccountDashboardFragmentTest.java73 final UserInfo userInfo = new UserInfo(); in updateSummary_shouldDisplaySignedInUser() local
74 userInfo.name = "test_name"; in updateSummary_shouldDisplaySignedInUser()
77 when(mUserManager.getUserInfo(anyInt())).thenReturn(userInfo); in updateSummary_shouldDisplaySignedInUser()
84 userInfo.name); in updateSummary_shouldDisplaySignedInUser()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/ota/
DOtaController.java82 for (UserInfo userInfo : mUserManager.getUsers()) { in run()
83 if (userInfo.isManagedProfile()) { in run()
84 addManagedProfileTasks(userInfo.id, mContext); in run()
88 mCrossProfileIntentFiltersSetter.resetFilters(userInfo.id); in run()
/packages/apps/Settings/src/com/android/settings/network/
DVpnPreferenceController.java146 final UserInfo userInfo = mUserManager.getUserInfo(UserHandle.myUserId()); in updateSummary() local
148 if (userInfo.isRestricted()) { in updateSummary()
149 uid = userInfo.restrictedProfileParentId; in updateSummary()
151 uid = userInfo.id; in updateSummary()
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/
DUserIconLoader.java70 for (UserInfo userInfo : um.getUsers()) { in loadUserIconsWithContext()
71 value.put(userInfo.id, Utils.getUserIcon(context, um, userInfo)); in loadUserIconsWithContext()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DPrivateVolumeSettings.java225 final UserInfo userInfo = allUsers.get(userIndex); in update() local
226 if (Utils.isProfileOf(mCurrentUser, userInfo)) { in update()
228 addCategory(screen, userInfo.name) : screen; in update()
229 addDetailItems(details, showShared, userInfo.id); in update()
239 final UserInfo userInfo = allUsers.get(userIndex); in update() local
240 if (!Utils.isProfileOf(mCurrentUser, userInfo)) { in update()
241 addItem(otherUsers, /* titleRes */ 0, userInfo.name, userInfo.id); in update()
/packages/apps/Settings/tests/robotests/src/com/android/settings/users/
DUserSettingsTest.java63 final UserInfo userInfo = new UserInfo(); in setListening_shouldSetSummaryWithUserName() local
64 userInfo.name = name; in setListening_shouldSetSummaryWithUserName()
65 when(mUserManager.getUserInfo(anyInt())).thenReturn(userInfo); in setListening_shouldSetSummaryWithUserName()
/packages/apps/Settings/src/com/android/settings/dashboard/conditional/
DWorkModeCondition.java46 UserInfo userInfo = profiles.get(i); in updateUserHandle() local
47 if (userInfo.isManagedProfile()) { in updateUserHandle()
49 mUserHandle = userInfo.getUserHandle(); in updateUserHandle()
/packages/apps/Settings/src/com/android/settings/users/
DUserDialogs.java54 UserInfo userInfo = um.getUserInfo(removingUserId); in createRemoveDialog() local
58 if (userInfo.isManagedProfile()) { in createRemoveDialog()
69 } else if (userInfo.isRestricted()) { in createRemoveDialog()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowUserManager.java41 public void setUserInfo(int userHandle, UserInfo userInfo) { in setUserInfo() argument
42 mUserInfos.put(userHandle, userInfo); in setUserInfo()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/handheld/
DUninstallAlertDialogFragment.java68 UserInfo userInfo = userManager.getUserInfo(dialogInfo.user.getIdentifier()); in onCreateDialog() local
70 getString(R.string.uninstall_application_text_user, userInfo.name)); in onCreateDialog()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/television/
DUninstallAlertFragment.java73 UserInfo userInfo = userManager.getUserInfo(dialogInfo.user.getIdentifier()); in onCreateGuidance() local
75 getString(R.string.uninstall_application_text_user, userInfo.name)); in onCreateGuidance()
/packages/apps/Settings/src/com/android/settings/applications/defaultapps/
DDefaultHomePicker.java115 for (UserInfo userInfo : profiles) { in hasManagedProfile()
116 if (userInfo.isManagedProfile()) { in hasManagedProfile()

12