/frameworks/base/native/graphics/jni/ |
D | bitmap.cpp | 20 int AndroidBitmap_getInfo(JNIEnv* env, jobject jbitmap, in AndroidBitmap_getInfo() argument 22 if (NULL == env || NULL == jbitmap) { in AndroidBitmap_getInfo() 26 SkBitmap* bm = GraphicsJNI::getNativeBitmap(env, jbitmap); in AndroidBitmap_getInfo() 58 int AndroidBitmap_lockPixels(JNIEnv* env, jobject jbitmap, void** addrPtr) { in AndroidBitmap_lockPixels() argument 59 if (NULL == env || NULL == jbitmap) { in AndroidBitmap_lockPixels() 63 SkBitmap* bm = GraphicsJNI::getNativeBitmap(env, jbitmap); in AndroidBitmap_lockPixels() 81 int AndroidBitmap_unlockPixels(JNIEnv* env, jobject jbitmap) { in AndroidBitmap_unlockPixels() argument 82 if (NULL == env || NULL == jbitmap) { in AndroidBitmap_unlockPixels() 86 SkBitmap* bm = GraphicsJNI::getNativeBitmap(env, jbitmap); in AndroidBitmap_unlockPixels()
|
/frameworks/base/packages/PrintSpooler/jni/ |
D | com_android_printspooler_util_BitmapSerializeUtils.cpp | 82 static void readBitmapPixels(JNIEnv* env, jclass clazz, jobject jbitmap, jint fd) { in readBitmapPixels() argument 93 int result = AndroidBitmap_getInfo(env, jbitmap, &targetInfo); in readBitmapPixels() 109 result = AndroidBitmap_lockPixels(env, jbitmap, &pixels); in readBitmapPixels() 124 result = AndroidBitmap_unlockPixels(env, jbitmap); in readBitmapPixels() 130 static void writeBitmapPixels(JNIEnv* env, jclass clazz, jobject jbitmap, jint fd) { in writeBitmapPixels() argument 133 int result = AndroidBitmap_getInfo(env, jbitmap, &info); in writeBitmapPixels() 148 result = AndroidBitmap_lockPixels(env, jbitmap, &pixels); in writeBitmapPixels() 163 result = AndroidBitmap_unlockPixels(env, jbitmap); in writeBitmapPixels()
|
/frameworks/native/include/android/ |
D | bitmap.h | 55 int AndroidBitmap_getInfo(JNIEnv* env, jobject jbitmap, 71 int AndroidBitmap_lockPixels(JNIEnv* env, jobject jbitmap, void** addrPtr); 76 int AndroidBitmap_unlockPixels(JNIEnv* env, jobject jbitmap);
|
/frameworks/support/v8/renderscript/jni/ |
D | android_renderscript_RenderScript.cpp | 341 static size_t GetBitmapSize(JNIEnv *env, jobject jbitmap) { in GetBitmapSize() argument 344 AndroidBitmap_getInfo(env, jbitmap, &info); in GetBitmapSize() 355 …itmap(JNIEnv *_env, jobject _this, RsContext con, jint type, jint mip, jobject jbitmap, jint usage) in nAllocationCreateFromBitmap() argument 359 AndroidBitmap_lockPixels(_env, jbitmap, &pixels); in nAllocationCreateFromBitmap() 364 pixels, GetBitmapSize(_env, jbitmap), usage); in nAllocationCreateFromBitmap() 365 AndroidBitmap_unlockPixels(_env, jbitmap); in nAllocationCreateFromBitmap() 371 …ation(JNIEnv *_env, jobject _this, RsContext con, jint type, jint mip, jobject jbitmap, jint usage) in nAllocationCreateBitmapBackedAllocation() argument 375 AndroidBitmap_lockPixels(_env, jbitmap, &pixels); in nAllocationCreateBitmapBackedAllocation() 381 AndroidBitmap_unlockPixels(_env, jbitmap); in nAllocationCreateBitmapBackedAllocation() 387 …itmap(JNIEnv *_env, jobject _this, RsContext con, jint type, jint mip, jobject jbitmap, jint usage) in nAllocationCubeCreateFromBitmap() argument [all …]
|
/frameworks/base/core/jni/android/opengl/ |
D | util.cpp | 630 jobject jbitmap) in util_getInternalFormat() argument 633 (SkBitmap const *)env->GetLongField(jbitmap, nativeBitmapID); in util_getInternalFormat() 638 jobject jbitmap) in util_getType() argument 641 (SkBitmap const *)env->GetLongField(jbitmap, nativeBitmapID); in util_getType() 647 jobject jbitmap, jint type, jint border) in util_texImage2D() argument 650 (SkBitmap const *)env->GetLongField(jbitmap, nativeBitmapID); in util_texImage2D() 696 jobject jbitmap, jint format, jint type) in util_texSubImage2D() argument 699 (SkBitmap const *)env->GetLongField(jbitmap, nativeBitmapID); in util_texSubImage2D()
|
/frameworks/base/rs/jni/ |
D | android_renderscript_RenderScript.cpp | 595 …omBitmap(JNIEnv *_env, jobject _this, jlong con, jlong type, jint mip, jobject jbitmap, jint usage) in nAllocationCreateFromBitmap() argument 598 (SkBitmap const *)_env->GetLongField(jbitmap, gNativeBitmapID); in nAllocationCreateFromBitmap() 611 …location(JNIEnv *_env, jobject _this, jlong con, jlong type, jint mip, jobject jbitmap, jint usage) in nAllocationCreateBitmapBackedAllocation() argument 614 (SkBitmap const *)_env->GetLongField(jbitmap, gNativeBitmapID); in nAllocationCreateBitmapBackedAllocation() 627 …omBitmap(JNIEnv *_env, jobject _this, jlong con, jlong type, jint mip, jobject jbitmap, jint usage) in nAllocationCubeCreateFromBitmap() argument 630 (SkBitmap const *)_env->GetLongField(jbitmap, gNativeBitmapID); in nAllocationCubeCreateFromBitmap() 643 nAllocationCopyFromBitmap(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jobject jbitmap) in nAllocationCopyFromBitmap() argument 646 (SkBitmap const *)_env->GetLongField(jbitmap, gNativeBitmapID); in nAllocationCopyFromBitmap() 660 nAllocationCopyToBitmap(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jobject jbitmap) in nAllocationCopyToBitmap() argument 663 (SkBitmap const *)_env->GetLongField(jbitmap, gNativeBitmapID); in nAllocationCopyToBitmap()
|