Home
last modified time | relevance | path

Searched refs:mUser (Results 1 – 25 of 50) sorted by relevance

12

/packages/apps/Launcher3/src/com/android/launcher3/model/
DPackageUpdatedTask.java77 private final UserHandle mUser; field in PackageUpdatedTask
82 mUser = user; in PackageUpdatedTask()
95 ItemInfoMatcher matcher = ItemInfoMatcher.ofPackages(packageSet, mUser); in execute()
100 iconCache.updateIconsForPkg(packages[i], mUser); in execute()
104 appsList.addPackage(context, packages[i], mUser); in execute()
107 if (!Utilities.ATLEAST_OREO && !Process.myUserHandle().equals(mUser)) { in execute()
108 SessionCommitReceiver.queueAppIconAddition(context, packages[i], mUser); in execute()
117 iconCache.updateIconsForPkg(packages[i], mUser); in execute()
118 appsList.updatePackage(context, packages[i], mUser); in execute()
119 app.getWidgetCache().removePackage(packages[i], mUser); in execute()
[all …]
DUserLockStateChangedTask.java47 private final UserHandle mUser; field in UserLockStateChangedTask
50 mUser = user; in UserLockStateChangedTask()
56 boolean isUserUnlocked = UserManagerCompat.getInstance(context).isUserUnlocked(mUser); in execute()
62 deepShortcutManager.queryForPinnedShortcuts(null, mUser); in execute()
81 && mUser.equals(itemInfo.user)) { in execute()
113 if (keysIter.next().user.equals(mUser)) { in execute()
120 null, mUser, deepShortcutManager.queryForAllShortcuts(mUser)); in execute()
DShortcutsChangedTask.java44 private final UserHandle mUser; field in ShortcutsChangedTask
51 mUser = user; in ShortcutsChangedTask()
68 if (si.getIntent().getPackage().equals(mPackageName) && si.user.equals(mUser)) { in execute()
79 mPackageName, new ArrayList<>(allIds), mUser); in execute()
117 dataModel.updateDeepShortcutCounts(mPackageName, mUser, mShortcuts); in execute()
DCacheDataUpdatedTask.java43 private final UserHandle mUser; field in CacheDataUpdatedTask
48 mUser = user; in CacheDataUpdatedTask()
61 if (info instanceof WorkspaceItemInfo && mUser.equals(info.user)) { in execute()
72 apps.updateIconsAndLabels(mPackages, mUser, updatedApps); in execute()
/packages/apps/PermissionController/src/com/android/packageinstaller/role/ui/
DRoleListLiveData.java49 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()
DDefaultAppViewModel.java47 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()
DRoleLiveData.java49 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()
DDefaultAppListViewModel.java40 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/apps/Settings/src/com/android/settings/deviceinfo/storage/
DUserProfileController.java47 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()
DSecondaryUserController.java53 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/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/storage/
DUserProfileController.java47 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()
DSecondaryUserController.java53 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/
DVendorServiceController.java136 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/users/
DAppRestrictionsFragment.java83 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 …]
DEditUserInfoController.java58 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()
DRestrictedProfileSettings.java82 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/Settings/src/com/android/settings/users/
DAppRestrictionsFragment.java83 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 …]
DEditUserInfoController.java58 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()
DRestrictedProfileSettings.java82 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/
DAppRestrictionsFragment.java95 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/
DPackageUserKey.java15 public UserHandle mUser; field in PackageUserKey
32 mUser = user; in update()
57 return mPackageName.equals(otherKey.mPackageName) && mUser.equals(otherKey.mUser); in equals()
/packages/apps/Settings/src/com/android/settings/applications/manageapplications/
DMusicViewHolderController.java47 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/
DMusicViewHolderController.java47 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/
DRunningState.java605 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/
DRunningState.java605 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 …]

12