Home
last modified time | relevance | path

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

/aosp12/packages/apps/TV/src/com/android/tv/util/images/
H A DImageLoader.java209 if (bitmapInfo != null && !bitmapInfo.needToReload(maxWidth, maxHeight)) { in doLoadBitmap()
243 if (bitmapInfo != null && !needToReload) { in doLoadBitmap()
290 bitmapInfo != null && bitmapInfo.needToReload(mMaxWidth, mMaxHeight); in isReloadNeeded()
348 return bitmapInfo; in doInBackground()
350 bitmapInfo = doGetBitmapInBackground(); in doInBackground()
351 if (bitmapInfo != null) { in doInBackground()
352 mImageCache.putIfNeeded(bitmapInfo); in doInBackground()
354 return bitmapInfo; in doInBackground()
452 if (bitmapInfo == null) { in getAspectRatioFromPosterArtUri()
453 bitmapInfo = in getAspectRatioFromPosterArtUri()
[all …]
H A 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()
/aosp12/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/
H A 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()
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
119 super(bitmapInfo.icon, bitmapInfo.color, isDisabled); in ThemedConstantState()
[all …]
H A DClockDrawableWrapper.java197 BitmapInfo bitmapInfo = iconFactory.createBadgedIconBitmap(background, in getExtendedInfo() local
201 mAnimationInfo, bitmapInfo.icon, mThemeData); in getExtendedInfo()
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/icons/
H A DIconCache.java240 BitmapInfo bitmapInfo; in getShortcutIcon() local
242 bitmapInfo = cacheLocked(ShortcutKey.fromInfo(si).componentName, si.getUserHandle(), in getShortcutIcon()
246 bitmapInfo = mShortcutCachingLogic.loadIcon(mContext, si); in getShortcutIcon()
248 if (bitmapInfo.isNullOrLowRes()) { in getShortcutIcon()
249 bitmapInfo = getDefaultIcon(si.getUserHandle()); in getShortcutIcon()
252 if (isDefaultIcon(bitmapInfo, si.getUserHandle()) && fallbackIconCheck.test(info)) { in getShortcutIcon()
255 info.bitmap = bitmapInfo; in getShortcutIcon()
/aosp12/frameworks/base/core/jni/android/opengl/
H A Dutil.cpp717 AndroidBitmapInfo bitmapInfo = bitmap.getInfo(); in util_texImage2D() local
720 internalformat = getInternalFormat(bitmapInfo.format); in util_texImage2D()
723 type = getType(bitmapInfo.format); in util_texImage2D()
726 if (checkInternalFormat(bitmapInfo.format, internalformat, type)) { in util_texImage2D()
727 glTexImage2D(target, level, internalformat, bitmapInfo.width, bitmapInfo.height, border, in util_texImage2D()
738 AndroidBitmapInfo bitmapInfo = bitmap.getInfo(); in util_texSubImage2D() local
740 int internalFormat = getInternalFormat(bitmapInfo.format); in util_texSubImage2D()
747 if (checkInternalFormat(bitmapInfo.format, internalFormat, type)) { in util_texSubImage2D()
748 glTexSubImage2D(target, level, xoffset, yoffset, bitmapInfo.width, bitmapInfo.height, in util_texSubImage2D()
/aosp12/packages/apps/TV/src/com/android/tv/data/
H A DChannelLogoFetcher.java136 ScaledBitmapInfo bitmapInfo = in doInBackground() local
139 if (bitmapInfo == null) { in doInBackground()
158 bitmapInfo.bitmap.compress(CompressFormat.PNG, 100, os); in doInBackground()
/aosp12/frameworks/base/libs/hwui/jni/
H A DImageDecoder.cpp310 SkImageInfo bitmapInfo = decoder->getOutputInfo(); in ImageDecoder_nDecodeBitmap() local
312 bitmapInfo = bitmapInfo.makeColorType(kAlpha_8_SkColorType); in ImageDecoder_nDecodeBitmap()
316 if (!bm.setInfo(bitmapInfo)) { in ImageDecoder_nDecodeBitmap()
330 bitmapInfo.width(), bitmapInfo.height()); in ImageDecoder_nDecodeBitmap()
H A DBitmapFactory.cpp357 SkImageInfo bitmapInfo = decodeInfo; in doDecode() local
363 bitmapInfo = in doDecode()
364 bitmapInfo.makeColorType(kAlpha_8_SkColorType).makeAlphaType(kPremul_SkAlphaType); in doDecode()
367 if (!decodingBitmap.setInfo(bitmapInfo) || in doDecode()
447 bitmapInfo.makeWH(scaledWidth, scaledHeight).makeColorType(scaledColorType)); in doDecode()
/aosp12/frameworks/base/cmds/bootanimation/
H A DBootAnimation.cpp289 AndroidBitmapInfo bitmapInfo; in initTexture() local
290 void* pixels = decodeImage(asset->getBuffer(false), asset->getLength(), &bitmapInfo, in initTexture()
301 const int w = bitmapInfo.width; in initTexture()
302 const int h = bitmapInfo.height; in initTexture()
310 switch (bitmapInfo.format) { in initTexture()
341 AndroidBitmapInfo bitmapInfo; in initTexture() local
342 void* pixels = decodeImage(map->getDataPtr(), map->getDataLength(), &bitmapInfo, in initTexture()
355 const int w = bitmapInfo.width; in initTexture()
356 const int h = bitmapInfo.height; in initTexture()
363 switch (bitmapInfo.format) { in initTexture()
/aosp12/packages/apps/Car/SystemUI/src/com/android/systemui/car/privacy/
H A DMicQcPanel.java206 BitmapInfo bitmapInfo = in getBadgedIcon() local
210 return Icon.createWithBitmap(bitmapInfo.icon); in getBadgedIcon()
/aosp12/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
H A DTaskIconCache.java167 BitmapInfo bitmapInfo = getBitmapInfo( in getCacheEntry() local
172 entry.icon = bitmapInfo.newIcon(mContext); in getCacheEntry()
/aosp12/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/cache/
H A DBaseIconCache.java587 private ContentValues newContentValues(BitmapInfo bitmapInfo, String label, in newContentValues() argument
590 values.put(IconDB.COLUMN_ICON, bitmapInfo.toByteArray()); in newContentValues()
591 values.put(IconDB.COLUMN_ICON_COLOR, bitmapInfo.color); in newContentValues()