/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | PackageUpdatedTask.java | 80 private final UserHandle mUser; field in PackageUpdatedTask 85 mUser = user; in PackageUpdatedTask() 102 ItemInfoMatcher matcher = ItemInfoMatcher.ofPackages(packageSet, mUser); in execute() 109 iconCache.updateIconsForPkg(packages[i], mUser); in execute() 111 appsList.removePackage(packages[i], mUser); in execute() 113 appsList.addPackage(context, packages[i], mUser); in execute() 116 if (!Utilities.ATLEAST_OREO && !Process.myUserHandle().equals(mUser)) { in execute() 117 SessionCommitReceiver.queueAppIconAddition(context, packages[i], mUser); in execute() 128 iconCache.updateIconsForPkg(packages[i], mUser); in execute() 129 appsList.updatePackage(context, packages[i], mUser); in execute() [all …]
|
D | UserLockStateChangedTask.java | 45 private final UserHandle mUser; field in UserLockStateChangedTask 48 mUser = user; in UserLockStateChangedTask() 54 boolean isUserUnlocked = UserManagerCompat.getInstance(context).isUserUnlocked(mUser); in execute() 60 deepShortcutManager.queryForPinnedShortcuts(null, mUser); in execute() 79 && mUser.equals(itemInfo.user)) { in execute() 111 if (keysIter.next().user.equals(mUser)) { in execute() 118 null, mUser, deepShortcutManager.queryForAllShortcuts(mUser)); in execute()
|
D | ShortcutsChangedTask.java | 43 private final UserHandle mUser; field in ShortcutsChangedTask 50 mUser = user; in ShortcutsChangedTask() 67 if (mPackageName.equals(si.getIntent().getPackage()) && si.user.equals(mUser)) { in execute() 78 mPackageName, new ArrayList<>(allIds), mUser); in execute() 116 dataModel.updateDeepShortcutCounts(mPackageName, mUser, mShortcuts); in execute()
|
D | CacheDataUpdatedTask.java | 39 private final UserHandle mUser; field in CacheDataUpdatedTask 44 mUser = user; in CacheDataUpdatedTask() 57 if (info instanceof WorkspaceItemInfo && mUser.equals(info.user)) { in execute() 68 apps.updateIconsAndLabels(mPackages, mUser); in execute()
|
/packages/apps/PermissionController/src/com/android/packageinstaller/role/ui/ |
D | RoleListLiveData.java | 49 private final UserHandle mUser; field in RoleListLiveData 55 mUser = user; in RoleListLiveData() 65 mUser); in onActive() local 71 roleManager.removeOnRoleHoldersChangedListenerAsUser(this, mUser); in onInactive() 95 if (!role.isAvailableAsUser(mUser, mContext)) { in loadValueInBackground() 99 if (!role.isVisibleAsUser(mUser, mContext)) { in loadValueInBackground() 103 if (mExclusive && role.getQualifyingPackagesAsUser(mUser, mContext).isEmpty()) { in loadValueInBackground() 109 mUser); in loadValueInBackground() 116 holderPackageName, mUser, mContext); in loadValueInBackground() 119 + holderPackageName + ", user id: " + mUser.getIdentifier()); in loadValueInBackground()
|
D | DefaultAppViewModel.java | 47 private final UserHandle mUser; field in DefaultAppViewModel 61 mUser = user; in DefaultAppViewModel() 63 mRoleLiveData = Transformations.map(new RoleLiveData(mRole, mUser, application), in DefaultAppViewModel() 88 mUser, getApplication()); in setDefaultApp() local 96 mRole.onNoneHolderSelectedAsUser(mUser, context); in setNoneDefaultApp() 101 mManageRoleHolderStateLiveData.clearRoleHoldersAsUser(mRole.getName(), 0, mUser, context); in setNoneDefaultApp() local 113 private UserHandle mUser; field in DefaultAppViewModel.Factory 121 mUser = user; in Factory() 129 return (T) new DefaultAppViewModel(mRole, mUser, mApplication); in create()
|
D | RoleLiveData.java | 49 private final UserHandle mUser; field in RoleLiveData 55 mUser = user; in RoleLiveData() 64 roleManager.addOnRoleHoldersChangedListenerAsUser(mContext.getMainExecutor(), this, mUser); in onActive() local 70 roleManager.removeOnRoleHoldersChangedListenerAsUser(this, mUser); in onInactive() 82 List<String> holderPackageNames = roleManager.getRoleHoldersAsUser(mRole.getName(), mUser); in loadValueInBackground() 84 List<String> qualifyingPackageNames = mRole.getQualifyingPackagesAsUser(mUser, mContext); in loadValueInBackground() 91 qualifyingPackageName, mUser, mContext); in loadValueInBackground() 97 if (!mRole.isApplicationVisibleAsUser(qualifyingApplicationInfo, mUser, mContext)) { in loadValueInBackground()
|
D | DefaultAppListViewModel.java | 40 private final UserHandle mUser; field in DefaultAppListViewModel 51 mUser = Process.myUserHandle(); in DefaultAppListViewModel() 53 mLiveData = Transformations.map(new RoleListLiveData(true, mUser, application), in DefaultAppListViewModel() 62 return mUser; in getUser()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/storage/ |
D | UserProfileController.java | 47 private UserInfo mUser; field in UserProfileController 53 mUser = Preconditions.checkNotNull(info); in UserProfileController() 64 return PREFERENCE_KEY_BASE + mUser.id; in getPreferenceKey() 71 mStoragePreference.setKey(PREFERENCE_KEY_BASE + mUser.id); in displayPreference() 72 mStoragePreference.setTitle(mUser.name); in displayPreference() 80 args.putInt(StorageProfileFragment.USER_ID_EXTRA, mUser.id); in handlePreferenceTreeClick() 86 .setTitleText(mUser.name) in handlePreferenceTreeClick() 99 int userId = mUser.id; in handleResult() 126 Drawable userIcon = fetchedIcons.get(mUser.id); in handleUserIcons()
|
D | SecondaryUserController.java | 53 UserInfo mUser; field in SecondaryUserController 104 mUser = info; in SecondaryUserController() 115 mStoragePreference.setTitle(mUser.name); in displayPreference() 116 mStoragePreference.setKey(PREFERENCE_KEY_BASE + mUser.id); in displayPreference() 142 return mUser; in getUser() 176 mUserIcon = fetchedIcons.get(mUser.id); in handleUserIcons()
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/ |
D | UserProfileController.java | 47 private UserInfo mUser; field in UserProfileController 53 mUser = Preconditions.checkNotNull(info); in UserProfileController() 64 return PREFERENCE_KEY_BASE + mUser.id; in getPreferenceKey() 71 mStoragePreference.setKey(PREFERENCE_KEY_BASE + mUser.id); in displayPreference() 72 mStoragePreference.setTitle(mUser.name); in displayPreference() 80 args.putInt(StorageProfileFragment.USER_ID_EXTRA, mUser.id); in handlePreferenceTreeClick() 86 .setTitleText(mUser.name) in handlePreferenceTreeClick() 99 int userId = mUser.id; in handleResult() 126 Drawable userIcon = fetchedIcons.get(mUser.id); in handleUserIcons()
|
D | SecondaryUserController.java | 53 UserInfo mUser; field in SecondaryUserController 104 mUser = info; in SecondaryUserController() 115 mStoragePreference.setTitle(mUser.name); in displayPreference() 116 mStoragePreference.setKey(PREFERENCE_KEY_BASE + mUser.id); in displayPreference() 142 return mUser; in getUser() 176 mUserIcon = fetchedIcons.get(mUser.id); in handleUserIcons()
|
/packages/services/Car/service/src/com/android/car/pm/ |
D | VendorServiceController.java | 136 final int connectedUserId = connection.mUser.getIdentifier(); in doSwitchUser() 266 private final UserHandle mUser; field in VendorServiceController.VendorServiceConnection 278 mUser = user; in VendorServiceConnection() 295 + ", as user: " + mUser + ", bind: " + mVendorServiceInfo.shouldBeBound() in startOrBindService() 302 return mContext.bindServiceAsUser(intent, this, BIND_AUTO_CREATE, mHandler, mUser); in startOrBindService() 304 mStarted = mContext.startForegroundServiceAsUser(intent, mUser) != null; in startOrBindService() 307 mStarted = mContext.startServiceAsUser(intent, mUser) != null; in startOrBindService() 315 mContext.stopServiceAsUser(mVendorServiceInfo.getIntent(), mUser); in stopOrUnbindService() local 354 if (UserHandle.of(mUserManagerHelper.getCurrentForegroundUserId()).equals(mUser) in tryToRebind() 355 || UserHandle.SYSTEM.equals(mUser)) { in tryToRebind() [all …]
|
/packages/apps/Settings/src/com/android/settings/users/ |
D | AppRestrictionsFragment.java | 83 protected UserHandle mUser; field in AppRestrictionsFragment 214 mUser = new UserHandle(icicle.getInt(EXTRA_USER_ID)); in init() 219 mUser = new UserHandle(args.getInt(EXTRA_USER_ID)); in init() 225 if (mUser == null) { in init() 226 mUser = android.os.Process.myUserHandle(); in init() 229 mHelper = new AppRestrictionsHelper(getContext(), mUser); in init() 233 mRestrictedProfile = mUserManager.getUserInfo(mUser.getIdentifier()).isRestricted(); in init() 253 outState.putInt(EXTRA_USER_ID, mUser.getIdentifier()); in onSaveInstanceState() 351 final int userId = mUser.getIdentifier(); in populateApps() 354 if (Utils.getExistingUser(mUserManager, mUser) == null) { in populateApps() [all …]
|
D | EditUserInfoController.java | 58 private UserHandle mUser; field in EditUserInfoController 115 mUser = user; in createDialog() 122 UserInfo info = mUserManager.getUserInfo(mUser.getIdentifier()); in createDialog() 155 mUserManager.setUserName(mUser.getIdentifier(), in createDialog() 170 mUserManager.setUserIcon(mUser.getIdentifier(), in createDialog()
|
D | RestrictedProfileSettings.java | 82 UserInfo info = Utils.getExistingUser(mUserManager, mUser); in onResume() 121 this, mUser); in onCreateDialog() 124 UserDialogs.createRemoveDialog(getActivity(), mUser.getIdentifier(), in onCreateDialog() 152 mUserManager.removeUser(mUser.getIdentifier()); in removeUser()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/users/ |
D | AppRestrictionsFragment.java | 83 protected UserHandle mUser; field in AppRestrictionsFragment 214 mUser = new UserHandle(icicle.getInt(EXTRA_USER_ID)); in init() 219 mUser = new UserHandle(args.getInt(EXTRA_USER_ID)); in init() 225 if (mUser == null) { in init() 226 mUser = android.os.Process.myUserHandle(); in init() 229 mHelper = new AppRestrictionsHelper(getContext(), mUser); in init() 233 mRestrictedProfile = mUserManager.getUserInfo(mUser.getIdentifier()).isRestricted(); in init() 253 outState.putInt(EXTRA_USER_ID, mUser.getIdentifier()); in onSaveInstanceState() 351 final int userId = mUser.getIdentifier(); in populateApps() 354 if (Utils.getExistingUser(mUserManager, mUser) == null) { in populateApps() [all …]
|
D | EditUserInfoController.java | 58 private UserHandle mUser; field in EditUserInfoController 116 mUser = user; in createDialog() 123 UserInfo info = mUserManager.getUserInfo(mUser.getIdentifier()); in createDialog() 156 mUserManager.setUserName(mUser.getIdentifier(), in createDialog() 171 mUserManager.setUserIcon(mUser.getIdentifier(), in createDialog()
|
D | RestrictedProfileSettings.java | 82 UserInfo info = Utils.getExistingUser(mUserManager, mUser); in onResume() 121 this, mUser); in onCreateDialog() 124 UserDialogs.createRemoveDialog(getActivity(), mUser.getIdentifier(), in onCreateDialog() 152 mUserManager.removeUser(mUser.getIdentifier()); in removeUser()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/ |
D | AppRestrictionsFragment.java | 95 private UserHandle mUser; field in AppRestrictionsFragment 255 mUser = new UserHandle(savedInstanceState.getInt(EXTRA_USER_ID)); in onCreate() 266 mUser = new UserHandle(args.getInt(EXTRA_USER_ID)); in onCreate() 272 if (mUser == null) { in onCreate() 273 mUser = android.os.Process.myUserHandle(); in onCreate() 276 mHelper = new AppRestrictionsHelper(getContext(), mUser); in onCreate() 281 mRestrictedProfile = mUserManager.getUserInfo(mUser.getIdentifier()).isRestricted(); in onCreate() 303 outState.putInt(EXTRA_USER_ID, mUser.getIdentifier()); in onSaveInstanceState() 406 final int userId = mUser.getIdentifier(); in populateApps() 409 if (getExistingUser(mUserManager, mUser) == null) { in populateApps() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | PackageUserKey.java | 16 public UserHandle mUser; field in PackageUserKey 35 mUser = user; in update() 61 return mPackageName.equals(otherKey.mPackageName) && mUser.equals(otherKey.mUser); in equals()
|
/packages/apps/Settings/src/com/android/settings/applications/manageapplications/ |
D | MusicViewHolderController.java | 47 private UserHandle mUser; field in MusicViewHolderController 54 mUser = user; in MusicViewHolderController() 61 mMusicSize = mSource.getExternalStorageStats(mVolumeUuid, mUser).audioBytes; in queryStats() 87 intent.putExtra(Intent.EXTRA_USER_ID, mUser); in onClick()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/manageapplications/ |
D | MusicViewHolderController.java | 47 private UserHandle mUser; field in MusicViewHolderController 54 mUser = user; in MusicViewHolderController() 61 mMusicSize = mSource.getExternalStorageStats(mVolumeUuid, mUser).audioBytes; in queryStats() 87 intent.putExtra(Intent.EXTRA_USER_ID, mUser); in onClick()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/ |
D | RunningState.java | 605 UserState mUser; field in RunningState.MergedItem 636 if (mUser != null) { in update() 644 mLabel = mUser != null ? mUser.mLabel : null; in update() 683 if (mUser != null) { in updateSize() 710 if (mUser == null) { in loadIcon() 713 if (mUser.mIcon != null) { in loadIcon() 714 ConstantState constState = mUser.mIcon.getConstantState(); in loadIcon() 716 return mUser.mIcon; in loadIcon() 887 userItem.mUser = new UserState(); in addOtherUserItem() 888 userItem.mUser.mInfo = info; in addOtherUserItem() [all …]
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | RunningState.java | 605 UserState mUser; field in RunningState.MergedItem 636 if (mUser != null) { in update() 644 mLabel = mUser != null ? mUser.mLabel : null; in update() 683 if (mUser != null) { in updateSize() 710 if (mUser == null) { in loadIcon() 713 if (mUser.mIcon != null) { in loadIcon() 714 ConstantState constState = mUser.mIcon.getConstantState(); in loadIcon() 716 return mUser.mIcon; in loadIcon() 887 userItem.mUser = new UserState(); in addOtherUserItem() 888 userItem.mUser.mInfo = info; in addOtherUserItem() [all …]
|