Home
last modified time | relevance | path

Searched refs:jbitmap (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/native/graphics/jni/
Dbitmap.cpp20 int AndroidBitmap_getInfo(JNIEnv* env, jobject jbitmap, in AndroidBitmap_getInfo() argument
22 if (NULL == env || NULL == jbitmap) { in AndroidBitmap_getInfo()
27 android::bitmap::imageInfo(env, jbitmap, info); in AndroidBitmap_getInfo()
32 int AndroidBitmap_lockPixels(JNIEnv* env, jobject jbitmap, void** addrPtr) { in AndroidBitmap_lockPixels() argument
33 if (NULL == env || NULL == jbitmap) { in AndroidBitmap_lockPixels()
37 void* addr = android::bitmap::lockPixels(env, jbitmap); in AndroidBitmap_lockPixels()
48 int AndroidBitmap_unlockPixels(JNIEnv* env, jobject jbitmap) { in AndroidBitmap_unlockPixels() argument
49 if (NULL == env || NULL == jbitmap) { in AndroidBitmap_unlockPixels()
53 bool unlocked = android::bitmap::unlockPixels(env, jbitmap); in AndroidBitmap_unlockPixels()
/frameworks/base/packages/PrintSpooler/jni/
Dcom_android_printspooler_util_BitmapSerializeUtils.cpp89 static void readBitmapPixels(JNIEnv* env, jclass /* clazz */, jobject jbitmap, jint fd) { in readBitmapPixels() argument
100 int result = AndroidBitmap_getInfo(env, jbitmap, &targetInfo); in readBitmapPixels()
116 result = AndroidBitmap_lockPixels(env, jbitmap, &pixels); in readBitmapPixels()
131 result = AndroidBitmap_unlockPixels(env, jbitmap); in readBitmapPixels()
137 static void writeBitmapPixels(JNIEnv* env, jclass /* clazz */, jobject jbitmap, jint fd) { in writeBitmapPixels() argument
140 int result = AndroidBitmap_getInfo(env, jbitmap, &info); in writeBitmapPixels()
155 result = AndroidBitmap_lockPixels(env, jbitmap, &pixels); in writeBitmapPixels()
170 result = AndroidBitmap_unlockPixels(env, jbitmap); in writeBitmapPixels()
/frameworks/native/include/android/
Dbitmap.h83 int AndroidBitmap_getInfo(JNIEnv* env, jobject jbitmap,
99 int AndroidBitmap_lockPixels(JNIEnv* env, jobject jbitmap, void** addrPtr);
104 int AndroidBitmap_unlockPixels(JNIEnv* env, jobject jbitmap);
/frameworks/base/core/jni/
Dandroid_graphics_Canvas.cpp50 static jlong initRaster(JNIEnv* env, jobject, jobject jbitmap) { in initRaster() argument
52 if (jbitmap != NULL) { in initRaster()
53 GraphicsJNI::getSkBitmap(env, jbitmap, &bitmap); in initRaster()
60 static void setBitmap(JNIEnv* env, jobject, jlong canvasHandle, jobject jbitmap) { in setBitmap() argument
62 if (jbitmap != NULL) { in setBitmap()
63 GraphicsJNI::getSkBitmap(env, jbitmap, &bitmap); in setBitmap()
380 static void drawBitmap(JNIEnv* env, jobject, jlong canvasHandle, jobject jbitmap, in drawBitmap() argument
384 Bitmap& bitmap = android::bitmap::toBitmap(env, jbitmap); in drawBitmap()
415 static void drawBitmapMatrix(JNIEnv* env, jobject, jlong canvasHandle, jobject jbitmap, in drawBitmapMatrix() argument
419 Bitmap& bitmap = android::bitmap::toBitmap(env, jbitmap); in drawBitmapMatrix()
[all …]
Dandroid_view_ThreadedRenderer.cpp743 jlong proxyPtr, jlong layerPtr, jobject jbitmap) { in android_view_ThreadedRenderer_copyLayerInto() argument
747 GraphicsJNI::getSkBitmap(env, jbitmap, &bitmap); in android_view_ThreadedRenderer_copyLayerInto()
852 jint right, jint bottom, jobject jbitmap) { in android_view_ThreadedRenderer_copySurfaceInto() argument
854 GraphicsJNI::getSkBitmap(env, jbitmap, &bitmap); in android_view_ThreadedRenderer_copySurfaceInto()
/frameworks/base/core/jni/android/graphics/
DNinePatch.cpp90 static jlong getTransparentRegion(JNIEnv* env, jobject, jobject jbitmap, in getTransparentRegion() argument
96 GraphicsJNI::getSkBitmap(env, jbitmap, &bitmap); in getTransparentRegion()
DShader.cpp63 static jlong BitmapShader_constructor(JNIEnv* env, jobject o, jlong matrixPtr, jobject jbitmap, in BitmapShader_constructor() argument
67 if (jbitmap) { in BitmapShader_constructor()
70 image = android::bitmap::toBitmap(env, jbitmap).makeImage(); in BitmapShader_constructor()
DGraphics.cpp361 SkPixelRef* GraphicsJNI::refSkPixelRef(JNIEnv* env, jobject jbitmap) { in refSkPixelRef() argument
362 android::Bitmap& bitmap = android::bitmap::toBitmap(env, jbitmap); in refSkPixelRef()
/frameworks/base/core/jni/android/graphics/pdf/
DPdfRenderer.cpp79 jobject jbitmap, jint clipLeft, jint clipTop, jint clipRight, jint clipBottom, in nativeRenderPage() argument
84 GraphicsJNI::getSkBitmap(env, jbitmap, &skBitmap); in nativeRenderPage()
/frameworks/base/core/jni/android/opengl/
Dutil.cpp681 jobject jbitmap) in util_getInternalFormat() argument
684 GraphicsJNI::getSkBitmap(env, jbitmap, &nativeBitmap); in util_getInternalFormat()
689 jobject jbitmap) in util_getType() argument
692 GraphicsJNI::getSkBitmap(env, jbitmap, &nativeBitmap); in util_getType()
698 jobject jbitmap, jint type, jint border) in util_texImage2D() argument
701 GraphicsJNI::getSkBitmap(env, jbitmap, &bitmap); in util_texImage2D()
725 jobject jbitmap, jint format, jint type) in util_texSubImage2D() argument
728 GraphicsJNI::getSkBitmap(env, jbitmap, &bitmap); in util_texSubImage2D()
/frameworks/rs/support/jni/
Dandroid_renderscript_RenderScript.cpp1062 static size_t GetBitmapSize(JNIEnv *env, jobject jbitmap) { in GetBitmapSize() argument
1065 AndroidBitmap_getInfo(env, jbitmap, &info); in GetBitmapSize()
1077 jobject jbitmap, jint usage) in nAllocationCreateFromBitmap() argument
1081 AndroidBitmap_lockPixels(_env, jbitmap, &pixels); in nAllocationCreateFromBitmap()
1088 GetBitmapSize(_env, jbitmap), in nAllocationCreateFromBitmap()
1090 AndroidBitmap_unlockPixels(_env, jbitmap); in nAllocationCreateFromBitmap()
1097 jint mip, jobject jbitmap, jint usage) in nAllocationCreateBitmapBackedAllocation() argument
1101 AndroidBitmap_lockPixels(_env, jbitmap, &pixels); in nAllocationCreateBitmapBackedAllocation()
1109 AndroidBitmap_unlockPixels(_env, jbitmap); in nAllocationCreateBitmapBackedAllocation()
1116 jint mip, jobject jbitmap, jint usage) in nAllocationCubeCreateFromBitmap() argument
[all …]
/frameworks/base/rs/jni/
Dandroid_renderscript_RenderScript.cpp1323 jobject jbitmap, jint usage) in nAllocationCreateFromBitmap() argument
1326 GraphicsJNI::getSkBitmap(_env, jbitmap, &bitmap); in nAllocationCreateFromBitmap()
1337 jint mip, jobject jbitmap, jint usage) in nAllocationCreateBitmapBackedAllocation() argument
1340 GraphicsJNI::getSkBitmap(_env, jbitmap, &bitmap); in nAllocationCreateBitmapBackedAllocation()
1351 jobject jbitmap, jint usage) in nAllocationCubeCreateFromBitmap() argument
1354 GraphicsJNI::getSkBitmap(_env, jbitmap, &bitmap); in nAllocationCubeCreateFromBitmap()
1364 nAllocationCopyFromBitmap(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jobject jbitmap) in nAllocationCopyFromBitmap() argument
1367 GraphicsJNI::getSkBitmap(_env, jbitmap, &bitmap); in nAllocationCopyFromBitmap()
1378 nAllocationCopyToBitmap(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jobject jbitmap) in nAllocationCopyToBitmap() argument
1381 GraphicsJNI::getSkBitmap(_env, jbitmap, &bitmap); in nAllocationCopyToBitmap()