Lines Matching refs:env

77     static jobject createBitmap(JNIEnv* env, SkBitmap* bitmap, jbyteArray buffer,
80 static jobject createBitmap(JNIEnv* env, SkBitmap* bitmap, int bitmapCreateFlags,
82 return createBitmap(env, bitmap, NULL, bitmapCreateFlags, ninePatch, NULL, density);
88 static void reinitBitmap(JNIEnv* env, jobject javaBitmap, SkBitmap* bitmap,
91 static int getBitmapAllocationByteCount(JNIEnv* env, jobject javaBitmap);
93 static jobject createRegion(JNIEnv* env, SkRegion* region);
95 static jobject createBitmapRegionDecoder(JNIEnv* env, SkBitmapRegionDecoder* bitmap);
97 static jbyteArray allocateJavaPixelRef(JNIEnv* env, SkBitmap* bitmap,
104 static bool SetPixels(JNIEnv* env, jintArray colors, int srcOffset,
113 AndroidPixelRef(JNIEnv* env, const SkImageInfo& info, void* storage, size_t rowBytes,
165 JavaHeapBitmapRef(JNIEnv *env, SkBitmap* nativeBitmap, jbyteArray buffer);
181 JavaPixelAllocator(JNIEnv* env);
216 AutoJavaFloatArray(JNIEnv* env, jfloatArray array,
233 AutoJavaIntArray(JNIEnv* env, jintArray array, int minLength = 0);
248 AutoJavaShortArray(JNIEnv* env, jshortArray array,
265 AutoJavaByteArray(JNIEnv* env, jbyteArray array, int minLength = 0);
278 void doThrowNPE(JNIEnv* env);
279 void doThrowAIOOBE(JNIEnv* env); // Array Index Out Of Bounds Exception
280 void doThrowIAE(JNIEnv* env, const char* msg = NULL); // Illegal Argument
281 void doThrowRE(JNIEnv* env, const char* msg = NULL); // Runtime
282 void doThrowISE(JNIEnv* env, const char* msg = NULL); // Illegal State
283 void doThrowOOME(JNIEnv* env, const char* msg = NULL); // Out of memory
284 void doThrowIOE(JNIEnv* env, const char* msg = NULL); // IO Exception
286 #define NPE_CHECK_RETURN_ZERO(env, object) \
287 do { if (NULL == (object)) { doThrowNPE(env); return 0; } } while (0)
289 #define NPE_CHECK_RETURN_VOID(env, object) \
290 do { if (NULL == (object)) { doThrowNPE(env); return; } } while (0)