Home
last modified time | relevance | path

Searched refs:jbitmap (Results 1 – 4 of 4) 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/rs/support/jni/
Dandroid_renderscript_RenderScript.cpp1064 static size_t GetBitmapSize(JNIEnv *env, jobject jbitmap) { in GetBitmapSize() argument
1067 AndroidBitmap_getInfo(env, jbitmap, &info); in GetBitmapSize()
1079 jobject jbitmap, jint usage) in nAllocationCreateFromBitmap() argument
1083 AndroidBitmap_lockPixels(_env, jbitmap, &pixels); in nAllocationCreateFromBitmap()
1090 GetBitmapSize(_env, jbitmap), in nAllocationCreateFromBitmap()
1092 AndroidBitmap_unlockPixels(_env, jbitmap); in nAllocationCreateFromBitmap()
1099 jint mip, jobject jbitmap, jint usage) in nAllocationCreateBitmapBackedAllocation() argument
1103 AndroidBitmap_lockPixels(_env, jbitmap, &pixels); in nAllocationCreateBitmapBackedAllocation()
1111 AndroidBitmap_unlockPixels(_env, jbitmap); in nAllocationCreateBitmapBackedAllocation()
1118 jint mip, jobject jbitmap, jint usage) in nAllocationCubeCreateFromBitmap() argument
[all …]