Lines Matching refs:icon
81 public Bitmap icon; field in IconCache.CacheEntry
377 if (entry == null || entry.isLowResIcon || entry.icon == null) { in updateCacheAndGetContentValues()
383 entry.icon = Utilities.createBadgedIconBitmap( in updateCacheAndGetContentValues()
390 return newContentValues(entry.icon, entry.title.toString(), mActivityBgColor); in updateCacheAndGetContentValues()
427 return entry.icon == null ? getDefaultIcon(user) : entry.icon; in getNonNullIcon()
450 if (entry.icon != null && !isDefaultIcon(entry.icon, application.user)) { in updateTitleAndIcon()
452 application.iconBitmap = entry.icon; in updateTitleAndIcon()
471 return entry.icon; in getIcon()
503 shortcutInfo.usingFallbackIcon = isDefaultIcon(entry.icon, user); in getTitleAndIcon()
527 public boolean isDefaultIcon(Bitmap icon, UserHandleCompat user) { in isDefaultIcon() argument
528 return mDefaultIcons.get(user) == icon; in isDefaultIcon()
546 entry.icon = Utilities.createBadgedIconBitmap( in cacheLocked()
555 entry.icon = packageEntry.icon; in cacheLocked()
560 if (entry.icon == null) { in cacheLocked()
563 entry.icon = getDefaultIcon(user); in cacheLocked()
581 Bitmap icon, CharSequence title) { in cachePackageInstallInfo() argument
595 if (icon != null) { in cachePackageInstallInfo()
596 entry.icon = Utilities.createIconBitmap(icon, mContext); in cachePackageInstallInfo()
628 entry.icon = Utilities.createBadgedIconBitmap( in getEntryForPackageLocked()
637 newContentValues(entry.icon, entry.title.toString(), mPackageBgColor); in getEntryForPackageLocked()
665 public void preloadIcon(ComponentName componentName, Bitmap icon, int dpi, String label, in preloadIcon() argument
678 Bitmap.createScaledBitmap(icon, idp.iconBitmapSize, idp.iconBitmapSize, true), in preloadIcon()
695 entry.icon = loadIconNoResize(c, 0, lowRes ? mLowResOptions : null); in getEntryFromDB()
834 private ContentValues newContentValues(Bitmap icon, String label, int lowResBackgroundColor) { in newContentValues() argument
836 values.put(IconDB.COLUMN_ICON, Utilities.flattenBitmap(icon)); in newContentValues()
843 Bitmap.createScaledBitmap(icon, in newContentValues()
844 icon.getWidth() / LOW_RES_SCALE_FACTOR, in newContentValues()
845 icon.getHeight() / LOW_RES_SCALE_FACTOR, true))); in newContentValues()
849 mLowResBitmap = Bitmap.createBitmap(icon.getWidth() / LOW_RES_SCALE_FACTOR, in newContentValues()
850 icon.getHeight() / LOW_RES_SCALE_FACTOR, Bitmap.Config.RGB_565); in newContentValues()
855 mLowResCanvas.drawBitmap(icon, new Rect(0, 0, icon.getWidth(), icon.getHeight()), in newContentValues()