Home
last modified time | relevance | path

Searched refs:dataSpace (Results 1 – 12 of 12) 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.cpp43 jint setBuffersDataSpace(JNIEnv* env, jclass, jobject jSurface, jint dataSpace) { in setBuffersDataSpace() argument
48 int error = ANativeWindow_setBuffersDataSpace(window, dataSpace); in setBuffersDataSpace()
Dandroid_graphics_cts_AImageDecoderTest.cpp172 for (ADataSpace dataSpace : { ADATASPACE_UNKNOWN, ADATASPACE_SCRGB_LINEAR, ADATASPACE_SRGB, in testNullDecoder()
176 int result = AImageDecoder_setDataSpace(nullptr, dataSpace); in testNullDecoder()
190 jstring jMimeType, jboolean isF16, jint dataSpace) { in testInfo() argument
213 ASSERT_EQ(dataSpace, AImageDecoderHeaderInfo_getDataSpace(info)); in testInfo()
579 for (int32_t dataSpace : std::initializer_list<int32_t>{ -1, ADATASPACE_UNKNOWN, 400 }) { in testDecode()
580 result = AImageDecoder_setDataSpace(decoder, dataSpace); in testDecode()
619 for (ADataSpace dataSpace : { ADATASPACE_DCI_P3, ADATASPACE_ADOBE_RGB }) { in testDecode()
620 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/hardware/src/android/hardware/cts/
DDataSpaceTest.java147 int dataSpace = DataSpace.pack(DataSpace.STANDARD_BT709, in getDataSpace() local
153 inputImage.setDataSpace(dataSpace); in getDataSpace()
154 assertEquals(dataSpace, inputImage.getDataSpace()); in getDataSpace()
161 assertEquals(dataSpace, outDataSpace); in getDataSpace()
241 int dataSpace = DataSpace.pack(DataSpace.STANDARD_BT601_625, in getDataSpaceFromImageReaderNextImage() local
249 outputImage.setDataSpace(dataSpace); in getDataSpaceFromImageReaderNextImage()
250 assertEquals(dataSpace, outputImage.getDataSpace()); in getDataSpaceFromImageReaderNextImage()
255 assertEquals(dataSpace, nextImage.getDataSpace()); in getDataSpaceFromImageReaderNextImage()
/cts/tests/tests/view/src/android/view/cts/
DTextureViewTest.java295 public void testSDRFromSurfaceViewAndTextureView(int dataSpace) throws Throwable { in testSDRFromSurfaceViewAndTextureView() argument
297 long converted = Color.convert(grayishYellow, ColorSpace.getFromDataSpace(dataSpace)); in testSDRFromSurfaceViewAndTextureView()
317 .setDataSpace(dataSpace) in testSDRFromSurfaceViewAndTextureView()
325 assertEquals(dataSpace, image.getDataSpace()); in testSDRFromSurfaceViewAndTextureView()
333 ColorSpace.getFromDataSpace(dataSpace)); in testSDRFromSurfaceViewAndTextureView()
375 .setDataSpace(dataSpace) in testSDRFromSurfaceViewAndTextureView()
378 assertEquals(dataSpace, image.getDataSpace()); in testSDRFromSurfaceViewAndTextureView()
381 Bitmap.Config.ARGB_8888, true, ColorSpace.getFromDataSpace(dataSpace)); in testSDRFromSurfaceViewAndTextureView()
/cts/tests/camera/src/android/hardware/camera2/cts/
DImageWriterTest.java233 final int dataSpace = DataSpace.DATASPACE_JFIF; in testWriterWithImageFormatOverride() local
248 assertEquals(dataSpace, reader.getDataSpace()); in testWriterWithImageFormatOverride()
251 assertEquals(dataSpace, writer.getDataSpace()); in testWriterWithImageFormatOverride()
257 assertEquals(dataSpace, outputImage.getDataSpace()); in testWriterWithImageFormatOverride()
/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.java1113 int dataSpace = colorSpace.getDataSpace();
1118 nTestInfo(aimagedecoder, width, height, toMimeType(format), false, dataSpace);
1142 int dataSpace = colorSpace.getDataSpace();
1143 if (dataSpace == DataSpace.ADATASPACE_UNKNOWN) {
1157 nTestDecode(aimagedecoder, bm, dataSpace);
1305 private static native void nTestDecode(long aimagedecoder, Bitmap bm, int dataSpace);
DANativeWindowTest.java342 private static native int nSetBuffersDataSpace(Surface surface, int dataSpace); in nSetBuffersDataSpace() argument
DBitmapTest.java2650 int dataSpace = nGetDataSpace(bm); in testNdkDataSpace() local
2653 dataSpace); in testNdkDataSpace()
2664 int dataSpace = nGetDataSpace(bm); in testNdkDataSpaceAlpha8() local
2665 assertEquals(DataSpace.ADATASPACE_UNKNOWN, dataSpace); in testNdkDataSpaceAlpha8()
/cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/
DSurfaceControlTest.java207 int width, int height, int color, int dataSpace) { in setSolidBuffer() argument
212 .setDataSpace(surfaceControl, dataSpace) in setSolidBuffer()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/
DCameraTestUtils.java1778 int dataSpace = image.getDataSpace(); in checkImage() local
1779 ColorSpace actualColorSpace = ColorSpace.getFromDataSpace(dataSpace); in checkImage()
1781 + format + ", dataSpace " + dataSpace, actualColorSpace); in checkImage()