Home
last modified time | relevance | path

Searched refs:DataSpace (Results 1 – 16 of 16) sorted by relevance

/cts/tests/tests/hardware/src/android/hardware/cts/
DDataSpaceTest.java25 import android.hardware.DataSpace;
147 int dataSpace = DataSpace.pack(DataSpace.STANDARD_BT709, in getDataSpace()
148 DataSpace.TRANSFER_SMPTE_170M, in getDataSpace()
149 DataSpace.RANGE_LIMITED); in getDataSpace()
162 assertEquals(DataSpace.STANDARD_BT709, DataSpace.getStandard(outDataSpace)); in getDataSpace()
163 assertEquals(DataSpace.TRANSFER_SMPTE_170M, DataSpace.getTransfer(outDataSpace)); in getDataSpace()
164 assertEquals(DataSpace.RANGE_LIMITED, DataSpace.getRange(outDataSpace)); in getDataSpace()
193 assertEquals(DataSpace.DATASPACE_UNKNOWN, mSurfaceTexture.getDataSpace()); in getDataSpaceWithoutSetDataSpace()
226 assertEquals(DataSpace.DATASPACE_JFIF, mSurfaceTexture.getDataSpace()); in getDataSpaceWithFormatYV12()
241 int dataSpace = DataSpace.pack(DataSpace.STANDARD_BT601_625, in getDataSpaceFromImageReaderNextImage()
[all …]
DOWNERS2 per-file DataSpace*=file:platform/frameworks/base:/graphics/java/android/graphics/OWNERS
/cts/tests/tests/graphics/src/android/graphics/cts/
DANativeWindowTest.java222 assertEquals(nSetBuffersDataSpace(surface, DataSpace.ADATASPACE_SRGB), 0); in testSetBuffersDataSpace()
223 assertEquals(nGetBuffersDataSpace(surface), DataSpace.ADATASPACE_SRGB); in testSetBuffersDataSpace()
225 assertEquals(nSetBuffersDataSpace(null, DataSpace.ADATASPACE_SRGB), -EINVAL); in testSetBuffersDataSpace()
227 assertEquals(nGetBuffersDataSpace(surface), DataSpace.ADATASPACE_SRGB); in testSetBuffersDataSpace()
235 .setDefaultDataSpace(DataSpace.ADATASPACE_BT709) in testGetBuffersDefaultDataspace()
237 assertEquals(nGetBuffersDefaultDataSpace(reader1.getSurface()), DataSpace.ADATASPACE_BT709); in testGetBuffersDefaultDataspace()
241 .setDefaultDataSpace(DataSpace.ADATASPACE_BT2020) in testGetBuffersDefaultDataspace()
244 DataSpace.ADATASPACE_BT2020); in testGetBuffersDefaultDataspace()
251 .setDefaultDataSpace(DataSpace.ADATASPACE_BT709) in testWriteToParcel()
262 assertEquals(nGetBuffersDefaultDataSpace(outSurface), DataSpace.ADATASPACE_BT709); in testWriteToParcel()
[all …]
DDataSpace.java21 final class DataSpace { class
22 private DataSpace() { in DataSpace() method in DataSpace
DColorSpaceTest.java27 import android.hardware.DataSpace;
1042 assertEquals(DataSpace.DATASPACE_BT709, cs.getDataSpace()); in getDataSpaceFromColorSpace()
1045 assertEquals(DataSpace.DATASPACE_UNKNOWN, cs.getDataSpace()); in getDataSpaceFromColorSpace()
1050 ColorSpace cs = ColorSpace.getFromDataSpace(DataSpace.DATASPACE_SRGB); in getColorSpaceFromDataSpace()
1052 assertEquals(DataSpace.DATASPACE_SRGB, cs.getDataSpace()); in getColorSpaceFromDataSpace()
1054 assertNull(ColorSpace.getFromDataSpace(DataSpace.DATASPACE_JFIF)); in getColorSpaceFromDataSpace()
DAImageDecoderTest.java144 return DataSpace.ADATASPACE_UNKNOWN; in nativeDataSpace()
1143 if (dataSpace == DataSpace.ADATASPACE_UNKNOWN) {
1170 nTestInfo(aimagedecoder, 32, 32, "image/jpeg", false, DataSpace.ADATASPACE_UNKNOWN);
DBitmapTest.java2583 assertEquals(DataSpace.ADATASPACE_SCRGB, nGetDataSpace(bm)); in testNdkDataSpaceF16Extended()
2594 assertEquals(DataSpace.ADATASPACE_SCRGB_LINEAR, nGetDataSpace(bm)); in testNdkDataSpaceF16Extended()
2610 assertEquals(DataSpace.ADATASPACE_SRGB, nGetDataSpace(bm)); in testNdkDataSpaceNonExtended()
2623 assertEquals(DataSpace.ADATASPACE_SRGB_LINEAR, nGetDataSpace(bm)); in testNdkDataSpaceNonExtended()
2665 assertEquals(DataSpace.ADATASPACE_UNKNOWN, dataSpace); in testNdkDataSpaceAlpha8()
2670 assertEquals(DataSpace.ADATASPACE_UNKNOWN, nGetDataSpace(null)); in testNdkDataSpaceNullBitmap()
/cts/tests/camera/src/android/hardware/camera2/cts/
DImageWriterTest.java28 import android.hardware.DataSpace;
233 final int dataSpace = DataSpace.DATASPACE_JFIF; in testWriterWithImageFormatOverride()
268 .setDefaultDataSpace(DataSpace.DATASPACE_BT709) in testWriterBuilderDefault()
278 assertEquals(DataSpace.DATASPACE_BT709, reader.getDataSpace()); in testWriterBuilderDefault()
309 assertEquals(DataSpace.DATASPACE_JFIF, writer.getDataSpace()); in testWriterBuilderSetImageFormatAndSize()
312 assertEquals(DataSpace.DATASPACE_JFIF, image.getDataSpace()); in testWriterBuilderSetImageFormatAndSize()
330 .setDataSpace(DataSpace.DATASPACE_BT709) in testWriterBuilderSetHardwareBufferFormatAndDataSpace()
337 assertEquals(DataSpace.DATASPACE_BT709, writer.getDataSpace()); in testWriterBuilderSetHardwareBufferFormatAndDataSpace()
341 assertEquals(DataSpace.DATASPACE_BT709, image.getDataSpace()); in testWriterBuilderSetHardwareBufferFormatAndDataSpace()
358 .setDataSpace(DataSpace.DATASPACE_JFIF) in testWriterBuilderWithBLOB()
[all …]
DImageReaderTest.java47 import android.hardware.DataSpace;
776 .setDefaultDataSpace(DataSpace.DATASPACE_BT709) in testImageReaderBuilderSetHardwareBufferFormatAndDataSpace()
800 .setDefaultDataSpace(DataSpace.DATASPACE_HEIF) in testImageReaderBuilderWithBLOBAndHEIF()
808 assertEquals(DataSpace.DATASPACE_HEIF, reader.getDataSpace()); in testImageReaderBuilderWithBLOBAndHEIF()
811 assertEquals(DataSpace.DATASPACE_HEIF, writer.getDataSpace()); in testImageReaderBuilderWithBLOBAndHEIF()
825 .setDefaultDataSpace(DataSpace.DATASPACE_JPEG_R) in testImageReaderBuilderWithBLOBAndJpegR()
833 assertEquals(DataSpace.DATASPACE_JPEG_R, reader.getDataSpace()); in testImageReaderBuilderWithBLOBAndJpegR()
836 assertEquals(DataSpace.DATASPACE_JPEG_R, writer.getDataSpace()); in testImageReaderBuilderWithBLOBAndJpegR()
850 .setDefaultDataSpace(DataSpace.DATASPACE_JFIF) in testImageReaderBuilderWithBLOBAndJFIF()
858 assertEquals(DataSpace.DATASPACE_JFIF, reader.getDataSpace()); in testImageReaderBuilderWithBLOBAndJFIF()
[all …]
/cts/hostsidetests/media/app/MediaMetricsTest/src/android/media/metrics/cts/
DMediaMetricsAtomHostSideTests.java25 import android.hardware.DataSpace;
408 DataSpace.pack( in testEditingEndedEvent_transcodeAndClip()
409 DataSpace.STANDARD_BT2020, in testEditingEndedEvent_transcodeAndClip()
410 DataSpace.TRANSFER_HLG, in testEditingEndedEvent_transcodeAndClip()
411 DataSpace.RANGE_FULL)) in testEditingEndedEvent_transcodeAndClip()
430 DataSpace.pack( in testEditingEndedEvent_transcodeAndClip()
431 DataSpace.STANDARD_BT709, in testEditingEndedEvent_transcodeAndClip()
432 DataSpace.TRANSFER_LINEAR, in testEditingEndedEvent_transcodeAndClip()
433 DataSpace.RANGE_FULL)) in testEditingEndedEvent_transcodeAndClip()
/cts/tests/tests/view/src/android/view/cts/
DTextureViewTest.java46 import android.hardware.DataSpace;
283 DataSpace.DATASPACE_SCRGB_LINEAR, in testDataSpaces()
284 DataSpace.DATASPACE_SRGB, in testDataSpaces()
285 DataSpace.DATASPACE_SCRGB, in testDataSpaces()
286 DataSpace.DATASPACE_DISPLAY_P3, in testDataSpaces()
287 DataSpace.DATASPACE_ADOBE_RGB, in testDataSpaces()
288 DataSpace.DATASPACE_DCI_P3, in testDataSpaces()
289 DataSpace.DATASPACE_SRGB_LINEAR in testDataSpaces()
/cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/
DSurfaceControlTest.java40 import android.hardware.DataSpace;
1252 darkRed, DataSpace.DATASPACE_SRGB); in testSurfaceTransaction_setDataSpace_srgb()
1276 darkRed, DataSpace.DATASPACE_DISPLAY_P3); in testSurfaceTransaction_setDataSpace_display_p3()
1935 final int extendedDataspace = DataSpace.pack(DataSpace.STANDARD_BT709, in testSetExtendedRangeBrightness()
1936 DataSpace.TRANSFER_SRGB, DataSpace.RANGE_EXTENDED); in testSetExtendedRangeBrightness()
2019 final int dataspace = DataSpace.DATASPACE_BT2020_HLG; in testSetDesiredHdrHeadroom()
2149 image.setDataSpace(DataSpace.DATASPACE_UNKNOWN); in testDefaultDataSpaceForRGBBufferIssRGB()
2161 .setDataSpace(surfaceControl, DataSpace.DATASPACE_UNKNOWN) in testDefaultDataSpaceForRGBBufferIssRGB()
2233 image.setDataSpace(DataSpace.DATASPACE_UNKNOWN); in testDefaultDataSpaceForYUVBufferIssRGB()
2245 .setDataSpace(surfaceControl, DataSpace.DATASPACE_UNKNOWN) in testDefaultDataSpaceForYUVBufferIssRGB()
DASurfaceControlTest.java69 import android.hardware.DataSpace;
2345 final int extendedDataspace = DataSpace.pack(DataSpace.STANDARD_BT709, in testSetExtendedRangeBrightness()
2346 DataSpace.TRANSFER_SRGB, DataSpace.RANGE_EXTENDED); in testSetExtendedRangeBrightness()
2433 final int dataspace = DataSpace.DATASPACE_BT2020_HLG; in testSetDesiredHdrHeadroom()
/cts/tests/tests/display/src/android/display/cts/
DDisplayTest.java49 import android.hardware.DataSpace;
1030 DataSpace.DATASPACE_SRGB, HardwareBuffer.RGBA_8888),
1032 DataSpace.DATASPACE_SRGB, HardwareBuffer.RGBA_8888));
1049 .isCombinationSupported(DataSpace.DATASPACE_SRGB, HardwareBuffer.RGBA_8888));
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DSurfaceViewTests.java30 import android.hardware.DataSpace;
902 Color.GREEN, DataSpace.DATASPACE_BT2020_HLG);
961 Color.GREEN, DataSpace.DATASPACE_BT2020_HLG);
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dcurrent.txt18461 public final class DataSpace {