Home
last modified time | relevance | path

Searched refs:hwBitmap (Results 1 – 9 of 9) sorted by relevance

/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A DAppSnapshotLoader.java174 final Bitmap hwBitmap = bitmap.copy(Config.HARDWARE, false); in loadTask() local
176 if (hwBitmap == null) { in loadTask()
180 final HardwareBuffer buffer = hwBitmap.getHardwareBuffer(); in loadTask()
192 int taskWidth = (int) ((float) hwBitmap.getWidth() / legacyConfig.mScale); in loadTask()
193 int taskHeight = (int) ((float) hwBitmap.getHeight() / legacyConfig.mScale); in loadTask()
200 topActivityComponent, buffer, hwBitmap.getColorSpace(), in loadTask()
H A DAbsAppSnapshotController.java429 final Bitmap hwBitmap = ThreadedRenderer.createHardwareBitmap(node, width, height); in drawAppThemeSnapshot() local
430 if (hwBitmap == null) { in drawAppThemeSnapshot()
441 topActivity.mActivityComponent, hwBitmap.getHardwareBuffer(), in drawAppThemeSnapshot()
442 hwBitmap.getColorSpace(), mainWindow.getConfiguration().orientation, in drawAppThemeSnapshot()
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/
H A DRotationAnimationUtilsTest.java99 Bitmap hwBitmap = swBitmap.copy(Bitmap.Config.HARDWARE, false); in swBitmapToHardwareBuffer() local
100 return hwBitmap.getHardwareBuffer(); in swBitmapToHardwareBuffer()
/aosp14/frameworks/base/libs/hwui/jni/
H A DImageDecoder.cpp479 sk_sp<Bitmap> hwBitmap = Bitmap::allocateHardwareBitmap(bm); in ImageDecoder_nDecodeBitmap() local
480 if (hwBitmap) { in ImageDecoder_nDecodeBitmap()
481 hwBitmap->setImmutable(); in ImageDecoder_nDecodeBitmap()
485 hwBitmap->setGainmap(std::move(gm)); in ImageDecoder_nDecodeBitmap()
488 return bitmap::createBitmap(env, hwBitmap.release(), bitmapCreateFlags, in ImageDecoder_nDecodeBitmap()
/aosp14/frameworks/base/libs/hwui/
H A DReadback.h47 CopyResult copyHWBitmapInto(Bitmap* hwBitmap, SkBitmap* bitmap);
H A DReadback.cpp270 CopyResult Readback::copyHWBitmapInto(Bitmap* hwBitmap, SkBitmap* bitmap) { in copyHWBitmapInto() argument
271 LOG_ALWAYS_FATAL_IF(!hwBitmap->isHardware()); in copyHWBitmapInto()
274 return copyImageInto(hwBitmap->makeImage(), srcRect, bitmap); in copyHWBitmapInto()
/aosp14/frameworks/base/libs/hwui/renderthread/
H A DRenderProxy.cpp455 int RenderProxy::copyHWBitmapInto(Bitmap* hwBitmap, SkBitmap* bitmap) { in copyHWBitmapInto() argument
460 return (int)thread.readback().copyHWBitmapInto(hwBitmap, bitmap); in copyHWBitmapInto()
463 [&]() -> int { return (int)thread.readback().copyHWBitmapInto(hwBitmap, bitmap); }); in copyHWBitmapInto()
H A DRenderProxy.h150 static int copyHWBitmapInto(Bitmap* hwBitmap, SkBitmap* bitmap);
/aosp14/frameworks/base/core/java/android/app/
H A DActivityOptions.java2230 final Bitmap hwBitmap = mThumbnail.copy(Config.HARDWARE, false /* isMutable */); in toBundle() local
2231 if (hwBitmap != null) { in toBundle()
2232 b.putParcelable(KEY_ANIM_THUMBNAIL, hwBitmap.getHardwareBuffer()); in toBundle()