Home
last modified time | relevance | path

Searched refs:dataSpace (Results 1 – 7 of 7) sorted by relevance

/cts/tests/tests/graphics/jni/
Dandroid_graphics_cts_BitmapTest.cpp52 int32_t dataSpace = AndroidBitmap_getDataSpace(env, jbitmap); in validateNdkAccessFails() local
53 ASSERT_EQ(ADATASPACE_UNKNOWN, dataSpace); in validateNdkAccessFails()
124 int32_t dataSpace = AndroidBitmap_getDataSpace(env, nullptr); in testNullBitmap() local
125 ASSERT_EQ(dataSpace, ADATASPACE_UNKNOWN); in testNullBitmap()
127 dataSpace = AndroidBitmap_getDataSpace(nullptr, jbitmap); in testNullBitmap()
128 ASSERT_EQ(dataSpace, ADATASPACE_UNKNOWN); in testNullBitmap()
385 int32_t dataSpace = AndroidBitmap_getDataSpace(env, jbitmap); in testNdkCompressBadParameter() local
389 err = AndroidBitmap_compress(nullptr, dataSpace, pixels, format, 100, in testNdkCompressBadParameter()
398 err = AndroidBitmap_compress(badInfo, dataSpace, pixels, format, 100, in testNdkCompressBadParameter()
415 err = AndroidBitmap_compress(&info, dataSpace, nullptr, format, 100, in testNdkCompressBadParameter()
[all …]
Dandroid_graphics_cts_ANativeWindowTest.cpp37 jint setBuffersDataSpace(JNIEnv* env, jclass, jobject jSurface, jint dataSpace) { in setBuffersDataSpace() argument
42 int error = ANativeWindow_setBuffersDataSpace(window, dataSpace); in setBuffersDataSpace()
Dandroid_graphics_cts_AImageDecoderTest.cpp166 for (ADataSpace dataSpace : { ADATASPACE_UNKNOWN, ADATASPACE_SCRGB_LINEAR, ADATASPACE_SRGB, in testNullDecoder()
170 int result = AImageDecoder_setDataSpace(nullptr, dataSpace); in testNullDecoder()
184 jstring jMimeType, jboolean isF16, jint dataSpace) { in testInfo() argument
207 ASSERT_EQ(dataSpace, AImageDecoderHeaderInfo_getDataSpace(info)); in testInfo()
572 for (int32_t dataSpace : std::initializer_list<int32_t>{ -1, ADATASPACE_UNKNOWN, 400 }) { in testDecode()
573 result = AImageDecoder_setDataSpace(decoder, dataSpace); in testDecode()
613 for (ADataSpace dataSpace : { ADATASPACE_DCI_P3, ADATASPACE_ADOBE_RGB }) { in testDecode()
614 result = AImageDecoder_setDataSpace(decoder, dataSpace); in testDecode()
1200 jobject jbitmap, jint dataSpace) { in testDecodeSetDataSpace() argument
1204 ASSERT_EQ(dataSpace, AndroidBitmap_getDataSpace(env, jbitmap)); in testDecodeSetDataSpace()
[all …]
/cts/tests/tests/uirendering/jni/
Dandroid_uirendering_cts_AImageDecoderTest.cpp181 static jint setDataSpace(JNIEnv*, jobject, jlong decoder, jint dataSpace) { in setDataSpace() argument
183 dataSpace); in setDataSpace()
/cts/tests/tests/graphics/src/android/graphics/cts/
DAImageDecoderTest.java1017 int dataSpace = DataSpace.fromColorSpace(colorSpace);
1022 nTestInfo(aimagedecoder, width, height, toMimeType(format), false, dataSpace);
1046 int dataSpace = DataSpace.fromColorSpace(colorSpace);
1047 if (dataSpace == DataSpace.ADATASPACE_UNKNOWN) {
1061 nTestDecode(aimagedecoder, bm, dataSpace);
1209 private static native void nTestDecode(long aimagedecoder, Bitmap bm, int dataSpace);
DANativeWindowTest.java262 private static native int nSetBuffersDataSpace(Surface surface, int dataSpace); in nSetBuffersDataSpace() argument
DBitmapTest.java2668 int dataSpace = nGetDataSpace(bm); in testNdkDataSpace() local
2671 dataSpace); in testNdkDataSpace()
2682 int dataSpace = nGetDataSpace(bm); in testNdkDataSpaceAlpha8() local
2683 assertEquals(DataSpace.ADATASPACE_UNKNOWN, dataSpace); in testNdkDataSpaceAlpha8()