Home
last modified time | relevance | path

Searched refs:bitmapInfo (Results 1 – 10 of 10) sorted by relevance

/packages/apps/TV/src/com/android/tv/util/images/
DImageLoader.java208 ScaledBitmapInfo bitmapInfo = imageCache.get(uriString); in doLoadBitmap() local
209 if (bitmapInfo != null && !bitmapInfo.needToReload(maxWidth, maxHeight)) { in doLoadBitmap()
211 callback.onBitmapLoaded(bitmapInfo.bitmap); in doLoadBitmap()
241 ScaledBitmapInfo bitmapInfo = loadBitmapTask.getFromCache(); in doLoadBitmap() local
243 if (bitmapInfo != null && !needToReload) { in doLoadBitmap()
245 callback.onBitmapLoaded(bitmapInfo.bitmap); in doLoadBitmap()
288 ScaledBitmapInfo bitmapInfo = getFromCache(); in isReloadNeeded() local
290 bitmapInfo != null && bitmapInfo.needToReload(mMaxWidth, mMaxHeight); in isReloadNeeded()
297 + bitmapInfo.bitmap.getWidth() in isReloadNeeded()
299 + bitmapInfo.bitmap.getHeight() in isReloadNeeded()
[all …]
DImageCache.java55 protected int sizeOf(String key, ScaledBitmapInfo bitmapInfo) { in ImageCache()
56 return (bitmapInfo.bitmap.getByteCount() + 1023) / 1024; in ImageCache()
101 public void putIfNeeded(ScaledBitmapInfo bitmapInfo) { in putIfNeeded() argument
102 if (bitmapInfo == null || bitmapInfo.id == null) { in putIfNeeded()
105 String key = bitmapInfo.id; in putIfNeeded()
108 ScaledBitmapInfo old = mMemoryCache.put(key, bitmapInfo); in putIfNeeded()
109 if (old != null && !old.needToReload(bitmapInfo)) { in putIfNeeded()
117 + bitmapInfo in putIfNeeded()
125 + bitmapInfo in putIfNeeded()
/packages/modules/Permission/PermissionController/iconloaderlib/src/com/android/launcher3/icons/
DThemedIconDrawable.java60 final ThemedBitmapInfo bitmapInfo; field in ThemedIconDrawable
70 bitmapInfo = constantState.bitmapInfo; in ThemedIconDrawable()
74 mMonochromeIcon = bitmapInfo.mThemeData.loadMonochromeDrawable(colorFg); in ThemedIconDrawable()
76 mBadgeBounds = bitmapInfo.mUserBadge == null ? null : in ThemedIconDrawable()
77 new Rect(0, 0, bitmapInfo.mUserBadge.getWidth(), bitmapInfo.mUserBadge.getHeight()); in ThemedIconDrawable()
91 canvas.scale(bitmapInfo.mNormalizationScale, bitmapInfo.mNormalizationScale, in drawInternal()
98 canvas.drawBitmap(bitmapInfo.mUserBadge, mBadgeBounds, getBounds(), mPaint); in drawInternal()
109 return new ThemedConstantState(bitmapInfo, colorBg, colorFg, mIsDisabled); in getConstantState()
114 final ThemedBitmapInfo bitmapInfo; field in ThemedIconDrawable.ThemedConstantState
117 public ThemedConstantState(ThemedBitmapInfo bitmapInfo, in ThemedConstantState() argument
[all …]
DClockDrawableWrapper.java199 BitmapInfo bitmapInfo = iconFactory.createBadgedIconBitmap(background, in getExtendedInfo() local
203 mAnimationInfo, bitmapInfo.icon, mThemeData); in getExtendedInfo()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DSplitToWorkspaceController.java116 BitmapInfo bitmapInfo; in handleSecondAppSelectionForSplit() local
121 bitmapInfo = workspaceItemInfo.bitmap; in handleSecondAppSelectionForSplit()
127 bitmapInfo = appInfo.bitmap; in handleSecondAppSelectionForSplit()
139 startWorkspaceAnimation(view, null /*bitmap*/, bitmapInfo.newIcon(mLauncher)); in handleSecondAppSelectionForSplit()
/packages/apps/TV/src/com/android/tv/data/
DChannelLogoFetcher.java136 ScaledBitmapInfo bitmapInfo = in doInBackground() local
139 if (bitmapInfo == null) { in doInBackground()
158 bitmapInfo.bitmap.compress(CompressFormat.PNG, 100, os); in doInBackground()
/packages/apps/Launcher3/src/com/android/launcher3/icons/
DIconCache.java273 BitmapInfo bitmapInfo = cacheLocked(ShortcutKey.fromInfo(si).componentName, in getShortcutIcon() local
275 if (bitmapInfo.isNullOrLowRes()) { in getShortcutIcon()
276 bitmapInfo = getDefaultIcon(si.getUserHandle()); in getShortcutIcon()
279 if (isDefaultIcon(bitmapInfo, si.getUserHandle()) && fallbackIconCheck.test(info)) { in getShortcutIcon()
282 info.bitmap = bitmapInfo.withBadgeInfo(getShortcutInfoBadge(si)); in getShortcutIcon()
/packages/modules/Permission/PermissionController/iconloaderlib/src/com/android/launcher3/icons/cache/
DBaseIconCache.java553 private ContentValues newContentValues(BitmapInfo bitmapInfo, String label, in newContentValues() argument
556 values.put(IconDB.COLUMN_ICON, bitmapInfo.toByteArray()); in newContentValues()
557 values.put(IconDB.COLUMN_ICON_COLOR, bitmapInfo.color); in newContentValues()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DTaskIconCache.java171 BitmapInfo bitmapInfo = getBitmapInfo( in getCacheEntry() local
176 entry.icon = bitmapInfo.newIcon(mContext); in getCacheEntry()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DPrivateProfileManager.java178 BitmapInfo bitmapInfo = LauncherIcons.obtain(context).createIconBitmap(shortcut); in addPrivateSpaceInstallAppButton() local
183 itemInfo.bitmap = bitmapInfo; in addPrivateSpaceInstallAppButton()