Home
last modified time | relevance | path

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

12

/packages/apps/Settings/src/com/android/settings/accounts/
DAccountPreferenceController.java120 public UserInfo userInfo; field in AccountPreferenceController.ProfileData
178 UserInfo userInfo = profiles.get(i); in updateRawDataToIndex() local
179 if (userInfo.isEnabled()) { in updateRawDataToIndex()
180 if (!mHelper.hasBaseUserRestriction(DISALLOW_MODIFY_ACCOUNTS, userInfo.id)) { in updateRawDataToIndex()
186 if (userInfo.isManagedProfile()) { in updateRawDataToIndex()
236 intent.putExtra(EXTRA_USER, profileData.userInfo.getUserHandle()); in onPreferenceClick()
242 final int userId = profileData.userInfo.id; in onPreferenceClick()
249 arguments.putParcelable(Intent.EXTRA_USER, profileData.userInfo.getUserHandle()); in onPreferenceClick()
275 UserInfo userInfo = mUm.getUserInfo(UserHandle.myUserId()); in updateUi() local
276 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.java273 final UserInfo userInfo = profiles.get(profileIndex); in loadAccountList() local
274 final int profileId = userInfo.id; in loadAccountList()
290 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.java619 UserInfo userInfo = mUserManager.createUser( in doInBackground() local
623 if (userInfo != null) { in doInBackground()
624 ProvisionLogger.logi("Created user " + userInfo.id + " to hold the device owner"); in doInBackground()
626 return userInfo; in doInBackground()
630 protected void onPostExecute(UserInfo userInfo) { in onPostExecute() argument
631 if (userInfo == null) { in onPostExecute()
636 mActivityManager.switchUser(userInfo.id); in onPostExecute()
639 mUi.startProvisioning(userInfo.id, mParams); in onPostExecute()
665 UserInfo userInfo = mUserManager.getUserInfo(mUserManager.getUserHandle()); in showManagedProfileErrorAndClose() local
676 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/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()
219 for (final UserInfo userInfo : mUm.getProfiles(MY_USER_ID)) { in getNumberOfActiveDeviceAdminsForCurrentUserAndManagedProfile()
221 = mDpm.getActiveAdminsAsUser(userInfo.id); in getNumberOfActiveDeviceAdminsForCurrentUserAndManagedProfile()
DEnterpriseSetDefaultAppsListPreferenceController.java90 mUsers.add(apps.get(0).userInfo); in buildAppList()
124 final UserInfo userInfo = mUsers.get(i); in updateUi() local
127 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.java94 final UserInfo userInfo = new UserInfo(); in updateSummary_shouldDisplaySignedInUser() local
95 userInfo.name = "test_name"; in updateSummary_shouldDisplaySignedInUser()
98 when(mUserManager.getUserInfo(anyInt())).thenReturn(userInfo); in updateSummary_shouldDisplaySignedInUser()
105 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.java145 final UserInfo userInfo = mUserManager.getUserInfo(UserHandle.myUserId()); in updateSummary() local
147 if (userInfo.isRestricted()) { in updateSummary()
148 uid = userInfo.restrictedProfileParentId; in updateSummary()
150 uid = userInfo.id; in updateSummary()
/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/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()
DStorageAsyncLoader.java79 public int compare(UserInfo userInfo, UserInfo otherUser) { in loadApps()
80 return Integer.compare(userInfo.id, otherUser.id); in loadApps()
/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/src/com/android/settings/system/
DFactoryResetPreferenceController.java60 for (UserInfo userInfo : profiles) { in updateState()
61 final int profileId = userInfo.id; in updateState()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/handheld/
DUninstallAlertDialogFragment.java69 UserInfo userInfo = userManager.getUserInfo(dialogInfo.user.getIdentifier()); in onCreateDialog() local
71 getString(R.string.uninstall_application_text_user, userInfo.name)); in onCreateDialog()
/packages/apps/Settings/src/com/android/settings/applications/defaultapps/
DDefaultHomePicker.java115 for (UserInfo userInfo : profiles) { in hasManagedProfile()
116 if (userInfo.isManagedProfile()) { in hasManagedProfile()
/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/Email/emailcommon/src/com/android/emailcommon/provider/
DHostAuth.java310 public void setLogin(String userInfo) { in setLogin() argument
313 if (!TextUtils.isEmpty(userInfo)) { in setLogin()
314 String[] userInfoParts = userInfo.split(":", 2); in setLogin()

12