/packages/apps/Settings/src/com/android/settings/accounts/ |
D | AccountPreferenceController.java | 121 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/ |
D | SettingsInitialize.java | 53 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 …]
|
D | MasterClear.java | 312 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/ |
D | UserUtil.java | 35 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/ |
D | SecurityFragment.java | 149 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/ |
D | PreProvisioningController.java | 649 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/ |
D | UserAppInfo.java | 30 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/ |
D | UserLineItem.java | 42 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()
|
D | UserSettingsFragment.java | 101 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/ |
D | EnterprisePrivacyFeatureProviderImpl.java | 71 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()
|
D | EnterpriseSetDefaultAppsListPreferenceController.java | 92 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/ |
D | CreateManagedProfileTask.java | 67 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()
|
D | DisallowAddUserTask.java | 62 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/ |
D | UserAndAccountDashboardFragmentTest.java | 73 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/ |
D | OtaController.java | 82 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/ |
D | VpnPreferenceController.java | 146 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/ |
D | UserIconLoader.java | 70 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/ |
D | PrivateVolumeSettings.java | 225 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/ |
D | UserSettingsTest.java | 63 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/ |
D | WorkModeCondition.java | 46 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/ |
D | UserDialogs.java | 54 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/ |
D | ShadowUserManager.java | 41 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/ |
D | UninstallAlertDialogFragment.java | 68 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/ |
D | UninstallAlertFragment.java | 73 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/ |
D | DefaultHomePicker.java | 115 for (UserInfo userInfo : profiles) { in hasManagedProfile() 116 if (userInfo.isManagedProfile()) { in hasManagedProfile()
|