Home
last modified time | relevance | path

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

/aosp14/frameworks/base/graphics/java/android/graphics/
H A DBitmap.java128 Bitmap(long nativeBitmap, int width, int height, int density, in Bitmap() argument
136 Bitmap(long nativeBitmap, int width, int height, int density, in Bitmap() argument
139 if (nativeBitmap == 0) { in Bitmap()
153 mNativePtr = nativeBitmap; in Bitmap()
164 registry.registerNativeAllocation(this, nativeBitmap); in Bitmap()
2410 private static native int nativeGetAshmemFD(long nativeBitmap); in nativeGetAshmemFD() argument
2412 private static native void nativeRecycle(long nativeBitmap); in nativeRecycle() argument
2422 private static native int nativeRowBytes(long nativeBitmap); in nativeRowBytes() argument
2423 private static native int nativeConfig(long nativeBitmap); in nativeConfig() argument
2438 private static native int nativeGenerationId(long nativeBitmap); in nativeGenerationId() argument
[all …]
H A DBaseCanvas.java812 private static native void nDrawNinePatch(long nativeCanvas, long nativeBitmap, long ninePatch, in nDrawNinePatch() argument
H A DBaseRecordingCanvas.java706 private static native void nDrawNinePatch(long nativeCanvas, long nativeBitmap, long ninePatch, in nDrawNinePatch() argument
/aosp14/frameworks/base/libs/hwui/jni/
H A DImageDecoder.cpp342 sk_sp<Bitmap> nativeBitmap; in ImageDecoder_nDecodeBitmap() local
344 nativeBitmap = Bitmap::allocateAshmemBitmap(&bm); in ImageDecoder_nDecodeBitmap()
346 nativeBitmap = Bitmap::allocateHeapBitmap(&bm); in ImageDecoder_nDecodeBitmap()
348 if (!nativeBitmap) { in ImageDecoder_nDecodeBitmap()
367 result = decoder->extractGainmap(nativeBitmap.get(), in ImageDecoder_nDecodeBitmap()
463 nativeBitmap->setAlphaType(newAlphaType); in ImageDecoder_nDecodeBitmap()
482 if (nativeBitmap->hasGainmap()) { in ImageDecoder_nDecodeBitmap()
483 auto gm = uirenderer::Gainmap::allocateHardwareGainmap(nativeBitmap->gainmap()); in ImageDecoder_nDecodeBitmap()
499 nativeBitmap->setImmutable(); in ImageDecoder_nDecodeBitmap()
501 return bitmap::createBitmap(env, nativeBitmap.release(), bitmapCreateFlags, ninePatchChunk, in ImageDecoder_nDecodeBitmap()
H A DBitmapRegionDecoder.cpp112 sk_sp<Bitmap> nativeBitmap = Bitmap::allocateHeapBitmap(SkImageInfo::Make( in decodeGainmapRegion() local
114 if (!nativeBitmap) { in decodeGainmapRegion()
118 RecyclingClippingPixelAllocator allocator(nativeBitmap.get(), false); in decodeGainmapRegion()
131 gainmap->bitmap = std::move(nativeBitmap); in decodeGainmapRegion()
H A DBitmap.cpp320 sk_sp<Bitmap> nativeBitmap = Bitmap::allocateHeapBitmap(&bitmap); in Bitmap_creator() local
321 if (!nativeBitmap) { in Bitmap_creator()
331 return createBitmap(env, nativeBitmap.release(), getPremulBitmapCreateFlags(isMutable)); in Bitmap_creator()
774 sk_sp<Bitmap> nativeBitmap; in Bitmap_createFromParcel() local
783 nativeBitmap = Bitmap::allocateHeapBitmap(allocationSize, imageInfo, rowBytes); in Bitmap_createFromParcel()
784 if (nativeBitmap) { in Bitmap_createFromParcel()
785 memcpy(nativeBitmap->pixels(), buffer.get(), allocationSize); in Bitmap_createFromParcel()
806 nativeBitmap = in Bitmap_createFromParcel()
817 if (error == STATUS_NO_MEMORY || !nativeBitmap) { in Bitmap_createFromParcel()
822 return createBitmap(env, nativeBitmap.release(), getPremulBitmapCreateFlags(isMutable), nullptr, in Bitmap_createFromParcel()
H A DGainmap.cpp56 auto nativeBitmap = gainmap->bitmap; in Gainmap_extractFromBitmap() local
57 const int createFlags = getCreateFlags(nativeBitmap); in Gainmap_extractFromBitmap()
58 jGainmapImage = bitmap::createBitmap(env, nativeBitmap.release(), createFlags); in Gainmap_extractFromBitmap()
H A DBitmapFactory.cpp230 sk_sp<Bitmap> nativeBitmap = nullptr; in decodeGainmap() local
243 nativeBitmap = android::Bitmap::allocateHeapBitmap(&decodeBitmap); in decodeGainmap()
244 if (!nativeBitmap) { in decodeGainmap()
274 nativeBitmap = android::Bitmap::allocateHeapBitmap(&gainmapBitmap); in decodeGainmap()
275 if (!nativeBitmap) { in decodeGainmap()
300 gainmap->bitmap = std::move(nativeBitmap); in decodeGainmap()
/aosp14/frameworks/base/libs/hwui/hwui/
H A DImageDecoder.cpp559 sk_sp<Bitmap> nativeBitmap; in extractGainmap() local
561 nativeBitmap = Bitmap::allocateAshmemBitmap(&bm); in extractGainmap()
563 nativeBitmap = Bitmap::allocateHeapBitmap(&bm); in extractGainmap()
565 if (!nativeBitmap) { in extractGainmap()
577 gainmap->bitmap = std::move(nativeBitmap); in extractGainmap()