Searched refs:bitmapInfo (Results 1 – 6 of 6) sorted by relevance
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/mediaprojection/appselector/data/ |
H A D | IconLoaderLibAppIconLoaderTest.kt | 76 val bitmapInfo = mock<BitmapInfo>() regex 77 whenever(iconFactory.createBadgedIconBitmap(eq(rawIcon), any())).thenReturn(bitmapInfo) 78 whenever(bitmapInfo.newIcon(context)).thenReturn(icon)
|
/aosp14/frameworks/base/libs/hwui/jni/ |
H A D | ImageDecoder.cpp | 331 SkImageInfo bitmapInfo = decoder->getOutputInfo(); in ImageDecoder_nDecodeBitmap() local 333 bitmapInfo = bitmapInfo.makeColorType(kAlpha_8_SkColorType); in ImageDecoder_nDecodeBitmap() 337 if (!bm.setInfo(bitmapInfo)) { in ImageDecoder_nDecodeBitmap() 351 bitmapInfo.width(), bitmapInfo.height()); in ImageDecoder_nDecodeBitmap() 356 ATRACE_FORMAT("Decoding %dx%d bitmap", bitmapInfo.width(), bitmapInfo.height()); in ImageDecoder_nDecodeBitmap()
|
H A D | BitmapFactory.cpp | 224 SkImageInfo bitmapInfo = decodeInfo; in decodeGainmap() local 227 bitmapInfo = bitmapInfo.makeColorType(kAlpha_8_SkColorType); in decodeGainmap() 232 if (!decodeBitmap.setInfo(bitmapInfo)) { in decodeGainmap() 272 bitmapInfo.makeWH(scaledWidth, scaledHeight).makeColorType(scaledColorType)); in decodeGainmap() 495 SkImageInfo bitmapInfo = decodeInfo; in doDecode() local 501 bitmapInfo = in doDecode() 502 bitmapInfo.makeColorType(kAlpha_8_SkColorType).makeAlphaType(kPremul_SkAlphaType); in doDecode() 505 if (!decodingBitmap.setInfo(bitmapInfo) || in doDecode() 585 bitmapInfo.makeWH(scaledWidth, scaledHeight).makeColorType(scaledColorType)); in doDecode()
|
/aosp14/frameworks/base/core/jni/android/opengl/ |
H A D | util.cpp | 643 AndroidBitmapInfo bitmapInfo = bitmap.getInfo(); in util_texImage2D() local 646 internalformat = getInternalFormat(bitmapInfo.format); in util_texImage2D() 649 type = getType(bitmapInfo.format); in util_texImage2D() 652 if (checkInternalFormat(bitmapInfo.format, internalformat, type)) { in util_texImage2D() 653 glTexImage2D(target, level, internalformat, bitmapInfo.width, bitmapInfo.height, border, in util_texImage2D() 667 AndroidBitmapInfo bitmapInfo = bitmap.getInfo(); in util_texSubImage2D() local 669 int internalFormat = getInternalFormat(bitmapInfo.format); in util_texSubImage2D() 676 if (checkInternalFormat(bitmapInfo.format, internalFormat, type)) { in util_texSubImage2D() 677 glTexSubImage2D(target, level, xoffset, yoffset, bitmapInfo.width, bitmapInfo.height, in util_texSubImage2D()
|
/aosp14/frameworks/base/libs/hwui/hwui/ |
H A D | ImageDecoder.cpp | 548 SkImageInfo bitmapInfo = decoder.getOutputInfo(); in extractGainmap() local 549 if (bitmapInfo.colorType() == kGray_8_SkColorType) { in extractGainmap() 550 bitmapInfo = bitmapInfo.makeColorType(kAlpha_8_SkColorType); in extractGainmap() 554 if (!bm.setInfo(bitmapInfo)) { in extractGainmap() 566 ALOGE("OOM allocating Bitmap with dimensions %i x %i", bitmapInfo.width(), in extractGainmap() 567 bitmapInfo.height()); in extractGainmap()
|
/aosp14/frameworks/base/cmds/bootanimation/ |
H A D | BootAnimation.cpp | 289 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()
|