Lines Matching refs:user

182     private Bitmap makeDefaultIcon(UserHandleCompat user) {  in makeDefaultIcon()  argument
184 return Utilities.createBadgedIconBitmap(unbadged, user, mContext); in makeDefaultIcon()
190 public synchronized void remove(ComponentName componentName, UserHandleCompat user) { in remove() argument
191 mCache.remove(new ComponentKey(componentName, user)); in remove()
197 private void removeFromMemCacheLocked(String packageName, UserHandleCompat user) { in removeFromMemCacheLocked() argument
201 && key.user.equals(user)) { in removeFromMemCacheLocked()
213 public synchronized void updateIconsForPkg(String packageName, UserHandleCompat user) { in updateIconsForPkg() argument
214 removeIconsForPkg(packageName, user); in updateIconsForPkg()
218 long userSerial = mUserManager.getSerialNumberForUser(user); in updateIconsForPkg()
219 … for (LauncherActivityInfoCompat app : mLauncherApps.getActivityList(packageName, user)) { in updateIconsForPkg()
231 public synchronized void removeIconsForPkg(String packageName, UserHandleCompat user) { in removeIconsForPkg() argument
232 removeFromMemCacheLocked(packageName, user); in removeIconsForPkg()
233 long userSerial = mUserManager.getSerialNumberForUser(user); in removeIconsForPkg()
244 for (UserHandleCompat user : mUserManager.getUserProfiles()) { in updateDbIcons()
246 final List<LauncherActivityInfoCompat> apps = mLauncherApps.getActivityList(null, user); in updateDbIcons()
255 updateDBIcons(user, apps, UserHandleCompat.myUserHandle().equals(user) in updateDbIcons()
265 private void updateDBIcons(UserHandleCompat user, List<LauncherActivityInfoCompat> apps, in updateDBIcons() argument
267 long userSerial = mUserManager.getSerialNumberForUser(user); in updateDBIcons()
303 remove(component, user); in updateDBIcons()
321 remove(component, user); in updateDBIcons()
408 st.user, false); in updateIconInBackground()
411 getTitleAndIconForApp(pti.packageName, pti.user, false, pti); in updateIconInBackground()
426 private Bitmap getNonNullIcon(CacheEntry entry, UserHandleCompat user) { in getNonNullIcon() argument
427 return entry.icon == null ? getDefaultIcon(user) : entry.icon; in getNonNullIcon()
435 UserHandleCompat user = info == null ? application.user : info.getUser(); in getTitleAndIcon() local
436 CacheEntry entry = cacheLocked(application.componentName, info, user, in getTitleAndIcon()
439 application.iconBitmap = getNonNullIcon(entry, user); in getTitleAndIcon()
448 CacheEntry entry = cacheLocked(application.componentName, null, application.user, in updateTitleAndIcon()
450 if (entry.icon != null && !isDefaultIcon(entry.icon, application.user)) { in updateTitleAndIcon()
461 public synchronized Bitmap getIcon(Intent intent, UserHandleCompat user) { in getIcon() argument
466 return getDefaultIcon(user); in getIcon()
469 LauncherActivityInfoCompat launcherActInfo = mLauncherApps.resolveActivity(intent, user); in getIcon()
470 … CacheEntry entry = cacheLocked(component, launcherActInfo, user, true, false /* useLowRes */); in getIcon()
479 UserHandleCompat user, boolean useLowResIcon) { in getTitleAndIcon() argument
484 shortcutInfo.setIcon(getDefaultIcon(user)); in getTitleAndIcon()
489 LauncherActivityInfoCompat info = mLauncherApps.resolveActivity(intent, user); in getTitleAndIcon()
490 getTitleAndIcon(shortcutInfo, component, info, user, true, useLowResIcon); in getTitleAndIcon()
499 UserHandleCompat user, boolean usePkgIcon, boolean useLowResIcon) { in getTitleAndIcon() argument
500 CacheEntry entry = cacheLocked(component, info, user, usePkgIcon, useLowResIcon); in getTitleAndIcon()
501 shortcutInfo.setIcon(getNonNullIcon(entry, user)); in getTitleAndIcon()
503 shortcutInfo.usingFallbackIcon = isDefaultIcon(entry.icon, user); in getTitleAndIcon()
511 String packageName, UserHandleCompat user, boolean useLowResIcon, in getTitleAndIconForApp() argument
513 CacheEntry entry = getEntryForPackageLocked(packageName, user, useLowResIcon); in getTitleAndIconForApp()
514 infoOut.iconBitmap = getNonNullIcon(entry, user); in getTitleAndIconForApp()
520 public synchronized Bitmap getDefaultIcon(UserHandleCompat user) { in getDefaultIcon() argument
521 if (!mDefaultIcons.containsKey(user)) { in getDefaultIcon()
522 mDefaultIcons.put(user, makeDefaultIcon(user)); in getDefaultIcon()
524 return mDefaultIcons.get(user); in getDefaultIcon()
527 public boolean isDefaultIcon(Bitmap icon, UserHandleCompat user) { in isDefaultIcon() argument
528 return mDefaultIcons.get(user) == icon; in isDefaultIcon()
536 UserHandleCompat user, boolean usePackageIcon, boolean useLowResIcon) { in cacheLocked() argument
537 ComponentKey cacheKey = new ComponentKey(componentName, user); in cacheLocked()
551 componentName.getPackageName(), user, false); in cacheLocked()
563 entry.icon = getDefaultIcon(user); in cacheLocked()
570 entry.contentDescription = mUserManager.getBadgedLabelForUser(entry.title, user); in cacheLocked()
580 public synchronized void cachePackageInstallInfo(String packageName, UserHandleCompat user, in cachePackageInstallInfo() argument
582 removeFromMemCacheLocked(packageName, user); in cachePackageInstallInfo()
584 ComponentKey cacheKey = getPackageKey(packageName, user); in cachePackageInstallInfo()
600 private static ComponentKey getPackageKey(String packageName, UserHandleCompat user) { in getPackageKey() argument
602 return new ComponentKey(cn, user); in getPackageKey()
609 private CacheEntry getEntryForPackageLocked(String packageName, UserHandleCompat user, in getEntryForPackageLocked() argument
611 ComponentKey cacheKey = getPackageKey(packageName, user); in getEntryForPackageLocked()
621 int flags = UserHandleCompat.myUserHandle().equals(user) ? 0 : in getEntryForPackageLocked()
629 appInfo.loadIcon(mPackageManager), user, mContext); in getEntryForPackageLocked()
631 … entry.contentDescription = mUserManager.getBadgedLabelForUser(entry.title, user); in getEntryForPackageLocked()
639 mUserManager.getSerialNumberForUser(user)); in getEntryForPackageLocked()
693 Long.toString(mUserManager.getSerialNumberForUser(cacheKey.user))}); in getEntryFromDB()
703 entry.title, cacheKey.user); in getEntryFromDB()