Home
last modified time | relevance | path

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

/frameworks/layoutlib/bridge/src/android/graphics/
DBitmap_Delegate.java295 /*package*/ static void nativeRecycle(long nativeBitmap) { in nativeRecycle() argument
300 /*package*/ static void nativeReconfigure(long nativeBitmap, int width, int height, in nativeReconfigure() argument
307 /*package*/ static boolean nativeCompress(long nativeBitmap, int format, int quality, in nativeCompress() argument
315 /*package*/ static void nativeErase(long nativeBitmap, int color) { in nativeErase() argument
317 Bitmap_Delegate delegate = sManager.getDelegate(nativeBitmap); in nativeErase()
335 /*package*/ static void nativeErase(long nativeBitmap, long colorSpacePtr, long color) { in nativeErase() argument
336 nativeErase(nativeBitmap, Color.toArgb(color)); in nativeErase()
340 /*package*/ static int nativeRowBytes(long nativeBitmap) { in nativeRowBytes() argument
342 Bitmap_Delegate delegate = sManager.getDelegate(nativeBitmap); in nativeRowBytes()
351 /*package*/ static int nativeConfig(long nativeBitmap) { in nativeConfig() argument
[all …]
DBaseCanvas_Delegate.java428 /*package*/ static void nDrawNinePatch(long nativeCanvas, long nativeBitmap, long ninePatch, in nDrawNinePatch() argument
433 final Bitmap_Delegate bitmapDelegate = Bitmap_Delegate.getDelegate(nativeBitmap); in nDrawNinePatch()
/frameworks/base/graphics/java/android/graphics/
DBitmap.java130 Bitmap(long nativeBitmap, int width, int height, int density, in Bitmap() argument
133 this(nativeBitmap, width, height, density, requestPremultiplied, ninePatchChunk, in Bitmap()
138 Bitmap(long nativeBitmap, int width, int height, int density, in Bitmap() argument
141 if (nativeBitmap == 0) { in Bitmap()
155 mNativePtr = nativeBitmap; in Bitmap()
166 registry.registerNativeAllocation(this, nativeBitmap); in Bitmap()
2224 private static native void nativeRecycle(long nativeBitmap); in nativeRecycle() argument
2226 private static native void nativeReconfigure(long nativeBitmap, int width, int height, in nativeReconfigure() argument
2229 private static native boolean nativeCompress(long nativeBitmap, int format, in nativeCompress() argument
2232 private static native void nativeErase(long nativeBitmap, int color); in nativeErase() argument
[all …]
DBaseCanvas.java722 private static native void nDrawNinePatch(long nativeCanvas, long nativeBitmap, long ninePatch, in nDrawNinePatch() argument
DBaseRecordingCanvas.java658 private static native void nDrawNinePatch(long nativeCanvas, long nativeBitmap, long ninePatch, in nDrawNinePatch() argument
/frameworks/base/core/jni/android/graphics/
DImageDecoder.cpp289 sk_sp<Bitmap> nativeBitmap; in ImageDecoder_nDecodeBitmap() local
294 nativeBitmap = Bitmap::allocateAshmemBitmap(&bm); in ImageDecoder_nDecodeBitmap()
296 nativeBitmap = Bitmap::allocateHeapBitmap(&bm); in ImageDecoder_nDecodeBitmap()
298 if (!nativeBitmap) { in ImageDecoder_nDecodeBitmap()
418 nativeBitmap = std::move(scaledPixelRef); in ImageDecoder_nDecodeBitmap()
453 nativeBitmap->setAlphaType(newAlphaType); in ImageDecoder_nDecodeBitmap()
483 nativeBitmap->setImmutable(); in ImageDecoder_nDecodeBitmap()
485 return bitmap::createBitmap(env, nativeBitmap.release(), bitmapCreateFlags, ninePatchChunk, in ImageDecoder_nDecodeBitmap()
DBitmap.cpp363 sk_sp<Bitmap> nativeBitmap = Bitmap::allocateHeapBitmap(&bitmap); in Bitmap_creator() local
364 if (!nativeBitmap) { in Bitmap_creator()
374 return createBitmap(env, nativeBitmap.release(), getPremulBitmapCreateFlags(isMutable)); in Bitmap_creator()
725 sk_sp<Bitmap> nativeBitmap; in Bitmap_createFromParcel() local
746 nativeBitmap = Bitmap::createFrom(bitmap->info(), bitmap->rowBytes(), dupFd, in Bitmap_createFromParcel()
748 if (!nativeBitmap) { in Bitmap_createFromParcel()
772 nativeBitmap = Bitmap::allocateHeapBitmap(bitmap.get()); in Bitmap_createFromParcel()
773 if (!nativeBitmap) { in Bitmap_createFromParcel()
784 return createBitmap(env, nativeBitmap.release(), in Bitmap_createFromParcel()
/frameworks/base/core/jni/android/opengl/
Dutil.cpp708 SkBitmap nativeBitmap; in util_getInternalFormat() local
709 bitmap::toBitmap(bitmapPtr).getSkBitmap(&nativeBitmap); in util_getInternalFormat()
710 return getInternalFormat(nativeBitmap.colorType()); in util_getInternalFormat()
716 SkBitmap nativeBitmap; in util_getType() local
717 bitmap::toBitmap(bitmapPtr).getSkBitmap(&nativeBitmap); in util_getType()
718 return getType(nativeBitmap.colorType()); in util_getType()