Home
last modified time | relevance | path

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

/cts/tests/tests/graphics/jni/
Dandroid_graphics_cts_BitmapTest.cpp34 static void validateBitmapInfo(JNIEnv* env, jclass, jobject jbitmap, jint width, jint height, in validateBitmapInfo() argument
38 err = AndroidBitmap_getInfo(env, jbitmap, &info); in validateBitmapInfo()
47 static void validateNdkAccessFails(JNIEnv* env, jclass, jobject jbitmap) { in validateNdkAccessFails() argument
49 int err = AndroidBitmap_lockPixels(env, jbitmap, &pixels); in validateNdkAccessFails()
52 int32_t dataSpace = AndroidBitmap_getDataSpace(env, jbitmap); in validateNdkAccessFails()
56 err = AndroidBitmap_getHardwareBuffer(env, jbitmap, &buffer); in validateNdkAccessFails()
84 static jint getFormat(JNIEnv* env, jclass, jobject jbitmap) { in getFormat() argument
88 err = AndroidBitmap_getInfo(env, jbitmap, &info); in getFormat()
96 static void testNullBitmap(JNIEnv* env, jclass, jobject jbitmap) { in testNullBitmap() argument
102 err = AndroidBitmap_getInfo(env, jbitmap, nullptr); in testNullBitmap()
[all …]
Dandroid_graphics_cts_AImageDecoderTest.cpp470 static bool bitmapsEqual(JNIEnv* env, jobject jbitmap, int32_t androidBitmapFormat, in bitmapsEqual() argument
474 int bitmapResult = AndroidBitmap_getInfo(env, jbitmap, &jInfo); in bitmapsEqual()
495 bitmapResult = AndroidBitmap_lockPixels(env, jbitmap, &jPixels); in bitmapsEqual()
500 bitmapResult = AndroidBitmap_unlockPixels(env, jbitmap); in bitmapsEqual()
507 jint androidBitmapFormat, jboolean unpremul, jobject jbitmap) { in testDecode() argument
525 ASSERT_EQ(nullptr, jbitmap); in testDecode()
566 ASSERT_NE(jbitmap, nullptr); in testDecode()
567 ASSERT_TRUE(bitmapsEqual(env, jbitmap, (AndroidBitmapFormat) androidBitmapFormat, in testDecode()
765 jobject jbitmap, jint sampleSize) { in testComputeSampledSize() argument
812 int bitmapResult = AndroidBitmap_getInfo(env, jbitmap, &jInfo); in testComputeSampledSize()
[all …]