Home
last modified time | relevance | path

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

/frameworks/layoutlib/bridge/src/android/graphics/
DBitmap_Delegate.java311 /*package*/ static void nativeRecycle(long nativeBitmap) { in nativeRecycle() argument
316 /*package*/ static void nativeReconfigure(long nativeBitmap, int width, int height, in nativeReconfigure() argument
323 /*package*/ static boolean nativeCompress(long nativeBitmap, int format, int quality, in nativeCompress() argument
331 /*package*/ static void nativeErase(long nativeBitmap, int color) { in nativeErase() argument
333 Bitmap_Delegate delegate = sManager.getDelegate(nativeBitmap); in nativeErase()
351 /*package*/ static void nativeErase(long nativeBitmap, long colorSpacePtr, long color) { in nativeErase() argument
352 nativeErase(nativeBitmap, Color.toArgb(color)); in nativeErase()
356 /*package*/ static int nativeRowBytes(long nativeBitmap) { in nativeRowBytes() argument
358 Bitmap_Delegate delegate = sManager.getDelegate(nativeBitmap); in nativeRowBytes()
367 /*package*/ static int nativeConfig(long nativeBitmap) { in nativeConfig() argument
[all …]
DBaseCanvas_Delegate.java432 /*package*/ static void nDrawNinePatch(long nativeCanvas, long nativeBitmap, long ninePatch, in nDrawNinePatch() argument
437 final Bitmap_Delegate bitmapDelegate = Bitmap_Delegate.getDelegate(nativeBitmap); in nDrawNinePatch()
/frameworks/base/graphics/java/android/graphics/
DBitmap.java124 Bitmap(long nativeBitmap, int width, int height, int density, in Bitmap() argument
127 this(nativeBitmap, width, height, density, requestPremultiplied, ninePatchChunk, in Bitmap()
132 Bitmap(long nativeBitmap, int width, int height, int density, in Bitmap() argument
135 if (nativeBitmap == 0) { in Bitmap()
149 mNativePtr = nativeBitmap; in Bitmap()
160 registry.registerNativeAllocation(this, nativeBitmap); in Bitmap()
2255 private static native void nativeRecycle(long nativeBitmap); in nativeRecycle() argument
2257 private static native void nativeReconfigure(long nativeBitmap, int width, int height, in nativeReconfigure() argument
2260 private static native boolean nativeCompress(long nativeBitmap, int format, in nativeCompress() argument
2263 private static native void nativeErase(long nativeBitmap, int color); in nativeErase() argument
[all …]
DBaseRecordingCanvas.java700 private static native void nDrawNinePatch(long nativeCanvas, long nativeBitmap, long ninePatch, in nDrawNinePatch() argument
DBaseCanvas.java789 private static native void nDrawNinePatch(long nativeCanvas, long nativeBitmap, long ninePatch, in nDrawNinePatch() argument
/frameworks/base/libs/hwui/jni/
DImageDecoder.cpp321 sk_sp<Bitmap> nativeBitmap; in ImageDecoder_nDecodeBitmap() local
323 nativeBitmap = Bitmap::allocateAshmemBitmap(&bm); in ImageDecoder_nDecodeBitmap()
325 nativeBitmap = Bitmap::allocateHeapBitmap(&bm); in ImageDecoder_nDecodeBitmap()
327 if (!nativeBitmap) { in ImageDecoder_nDecodeBitmap()
430 nativeBitmap->setAlphaType(newAlphaType); in ImageDecoder_nDecodeBitmap()
460 nativeBitmap->setImmutable(); in ImageDecoder_nDecodeBitmap()
462 return bitmap::createBitmap(env, nativeBitmap.release(), bitmapCreateFlags, ninePatchChunk, in ImageDecoder_nDecodeBitmap()
DBitmap.cpp319 sk_sp<Bitmap> nativeBitmap = Bitmap::allocateHeapBitmap(&bitmap); in Bitmap_creator() local
320 if (!nativeBitmap) { in Bitmap_creator()
330 return createBitmap(env, nativeBitmap.release(), getPremulBitmapCreateFlags(isMutable)); in Bitmap_creator()
829 sk_sp<Bitmap> nativeBitmap; in Bitmap_createFromParcel() local
834 nativeBitmap = Bitmap::allocateHeapBitmap(allocationSize, imageInfo, rowBytes); in Bitmap_createFromParcel()
835 if (nativeBitmap) { in Bitmap_createFromParcel()
836 memcpy(nativeBitmap->pixels(), buffer.get(), size); in Bitmap_createFromParcel()
851 nativeBitmap = in Bitmap_createFromParcel()
859 if (!nativeBitmap) { in Bitmap_createFromParcel()
864 return createBitmap(env, nativeBitmap.release(), getPremulBitmapCreateFlags(isMutable), nullptr, in Bitmap_createFromParcel()