Home
last modified time | relevance | path

Searched refs:colorSpace (Results 1 – 24 of 24) sorted by relevance

/cts/tests/tests/graphics/src/android/graphics/cts/
DParcelableColorSpaceTest.java55 public void testNamedReadWrite(ColorSpace colorSpace) { in testNamedReadWrite() argument
58 ParcelableColorSpace inParcelable = new ParcelableColorSpace(colorSpace); in testNamedReadWrite()
67 assertSame(colorSpace, outParcelable.getColorSpace()); in testNamedReadWrite()
76 ColorSpace colorSpace = new ColorSpace.Rgb("DemoSpace", xyz, 1.9); in testReadWriteCustom() local
79 ParcelableColorSpace inParcelable = new ParcelableColorSpace(colorSpace); in testReadWriteCustom()
87 assertSame(colorSpace, inParcelable.getColorSpace()); in testReadWriteCustom()
88 assertNotSame(colorSpace, outParcelable.getColorSpace()); in testReadWriteCustom()
97 ColorSpace colorSpace = new ColorSpace.Rgb("DemoSpace", xyz, in testWriteInvalid() local
100 ParcelableColorSpace inParcelable = new ParcelableColorSpace(colorSpace); in testWriteInvalid()
106 public void testIsParcelableNamed(ColorSpace colorSpace) { in testIsParcelableNamed() argument
[all …]
DColorSpaceTest.java99 ColorSpace colorSpace = ColorSpace.get(named); in testNamedColorSpaces() local
100 Log.v("ResolvedColorSpace", "ColorSpace: " + colorSpace); in testNamedColorSpaces()
101 assertNotNull(colorSpace.getName()); in testNamedColorSpaces()
102 assertNotNull(colorSpace); in testNamedColorSpaces()
103 assertEquals(named.ordinal(), colorSpace.getId()); in testNamedColorSpaces()
104 assertTrue(colorSpace.getComponentCount() >= 1); in testNamedColorSpaces()
105 assertTrue(colorSpace.getComponentCount() <= 4); in testNamedColorSpaces()
365 ColorSpace colorSpace = ColorSpace.get(e); in testIsSRGB() local
370 boolean isSrgbFallback = (colorSpace.getId() == 0 && !Flags.okLabColorspace()); in testIsSRGB()
372 assertTrue(colorSpace.isSrgb()); in testIsSRGB()
[all …]
DColor_ColorLongTest.java20 import static android.graphics.Color.colorSpace;
86 assertEquals(srgb, colorSpace(pack(0.5f, 0.7f, 1.0f))); in testColorSpace()
87 assertEquals(p3, colorSpace(pack(0.5f, 0.7f, 1.0f, 1.0f, p3))); in testColorSpace()
92 colorSpace(0xffffffffffffffffL); in testInvalidColorSpace()
97 colorSpace((long) ColorSpace.Named.values().length); in testInvalidColorSpace2()
313 ColorSpace colorSpace = new ColorSpace.Rgb("Fake", in testPackFailure() local
316 pack(0.5f, 0.0f, 1.0f, 0.25f, colorSpace); in testPackFailure()
376 assertEquals(ColorSpace.get(Named.BT709), Color.colorSpace(bt709)); in testConvertToBT709()
383 assertEquals(ColorSpace.get(Named.ADOBE_RGB), colorSpace(color)); in testConvertColorInt()
DAImageDecoderTest.java208 false /*isF16*/, nativeDataSpace(record.colorSpace)); in testCreateFdResources()
225 false /*isF16*/, nativeDataSpace(record.colorSpace)); in testCreateFdOffset()
1044 private static File createCompressedBitmap(int width, int height, ColorSpace colorSpace,
1049 File file = new File(dir, colorSpace.getName());
1061 colorSpace);
1099 public void testGetDataSpace(ColorSpace colorSpace, Bitmap.CompressFormat format) {
1100 if (colorSpace == ColorSpace.get(Named.EXTENDED_SRGB)
1101 || colorSpace == ColorSpace.get(Named.LINEAR_EXTENDED_SRGB)) {
1110 File file = createCompressedBitmap(width, height, colorSpace, format);
1113 int dataSpace = colorSpace.getDataSpace();
[all …]
DBitmapColorSpaceTest.java308 public final ColorSpace colorSpace; field in BitmapColorSpaceTest.Asset
311 this.colorSpace = ColorSpace.get(e); in Asset()
334 assertSame(asset.colorSpace, cs); in reconfigure()
339 assertSame(asset.colorSpace, cs); in reconfigure()
344 assertSame(asset.colorSpace, cs); in reconfigure()
574 @NonNull String fileName, @NonNull ColorSpace colorSpace) { in verifyColorSpaceMarshalling() argument
577 verifyParcelUnparcel(bitmapIn, colorSpace); in verifyColorSpaceMarshalling()
1050 public void testEncodeColorSpace(Bitmap.CompressFormat format, ColorSpace colorSpace) { in testEncodeColorSpace() argument
1058 decoder.setTargetColorSpace(colorSpace); in testEncodeColorSpace()
1066 if (colorSpace == ColorSpace.get(ColorSpace.Named.SRGB)) { in testEncodeColorSpace()
[all …]
DBitmapTest.java2295 final ColorSpace colorSpace = ColorSpace.get(Named.SRGB); in testWrappedHardwareBufferBitmapNotLeaking() local
2298 Bitmap bitmap = Bitmap.wrapHardwareBuffer(hwBuffer, colorSpace); in testWrappedHardwareBufferBitmapNotLeaking()
2408 public void testAsShared(Config config, ColorSpace colorSpace) { in testAsShared() argument
2411 colorSpace); in testAsShared()
2575 for (ColorSpace colorSpace : new ColorSpace[] { in testNdkDataSpaceF16Extended()
2579 Bitmap bm = Bitmap.createBitmap(10, 10, Config.RGBA_F16, false, colorSpace); in testNdkDataSpaceF16Extended()
2586 for (ColorSpace colorSpace : new ColorSpace[] { in testNdkDataSpaceF16Extended()
2590 Bitmap bm = Bitmap.createBitmap(10, 10, Config.RGBA_F16, false, colorSpace); in testNdkDataSpaceF16Extended()
2601 for (ColorSpace colorSpace : new ColorSpace[] { in testNdkDataSpaceNonExtended()
2606 Bitmap bm = Bitmap.createBitmap(10, 10, c, false, colorSpace); in testNdkDataSpaceNonExtended()
[all …]
DYuvImageTest.java500 ColorSpace colorSpace) { in generateYuvImage() argument
518 if (colorSpace != null) { in generateYuvImage()
519 image = new YuvImage(yuv, format, width, height, strides, colorSpace); in generateYuvImage()
DImageDecoderTest.java96 public final ColorSpace colorSpace; field in ImageDecoderTest.Record
99 boolean hasAlpha, ColorSpace colorSpace) { in Record() argument
106 this.colorSpace = colorSpace; in Record()
409 assertSame(record.colorSpace, info.getColorSpace()); in testInfo()
2411 boolean isGray, boolean hasAlpha, ColorSpace colorSpace) {
2418 mColorSpace = colorSpace;
2552 private boolean isExtended(ColorSpace colorSpace) { in isExtended() argument
2553 return colorSpace == ColorSpace.get(ColorSpace.Named.EXTENDED_SRGB) in isExtended()
2554 || colorSpace == ColorSpace.get(ColorSpace.Named.LINEAR_EXTENDED_SRGB); in isExtended()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DHardwareBufferRendererTests.kt90 val colorSpace = ColorSpace.get(ColorSpace.Named.SRGB) in <lambda>() constant
92 renderer.obtainRenderRequest().setColorSpace(colorSpace).draw(mExecutor) { renderResult -> in <lambda>()
99 val bitmap = Bitmap.wrapHardwareBuffer(hardwareBuffer, colorSpace)!! in <lambda>()
164 colorSpace: ColorSpace = ColorSpace.get(ColorSpace.Named.SRGB), in <lambda>()
174 renderer.obtainRenderRequest().setColorSpace(colorSpace).draw(mExecutor) { renderResult -> in <lambda>()
188 renderer.obtainRenderRequest().setColorSpace(colorSpace).draw(mExecutor) { renderResult -> in <lambda>()
195 val bitmap = Bitmap.wrapHardwareBuffer(hardwareBuffer, colorSpace)!! in <lambda>()
207 colorSpace: ColorSpace = ColorSpace.get(ColorSpace.Named.SRGB), in <lambda>()
243 .setColorSpace(colorSpace) in <lambda>()
252 val bitmap = Bitmap.wrapHardwareBuffer(hardwareBuffer, colorSpace)!! in <lambda>()
[all …]
DRenderNodeTests.java964 ColorSpace colorSpace = ColorSpace.get(ColorSpace.Named.SRGB); in assertRender() local
971 .setColorSpace(colorSpace) in assertRender()
979 Bitmap hwResult = Bitmap.wrapHardwareBuffer(buffer, colorSpace); in assertRender()
DGainmapTests.java107 ColorSpace.Connector connector = ColorSpace.connect(Color.colorSpace(expected), in assertChannels()
/cts/tests/tests/mediaparser/src/android/media/mediaparser/cts/
DMockMediaParserOutputConsumer.java269 int colorSpace = Format.NO_VALUE; in getExoPlayerColorInfo() local
274 colorSpace = C.COLOR_SPACE_BT601; in getExoPlayerColorInfo()
277 colorSpace = C.COLOR_SPACE_BT709; in getExoPlayerColorInfo()
280 colorSpace = C.COLOR_SPACE_BT2020; in getExoPlayerColorInfo()
283 colorSpace = Format.NO_VALUE; in getExoPlayerColorInfo()
320 if (colorSpace == Format.NO_VALUE in getExoPlayerColorInfo()
327 colorSpace, in getExoPlayerColorInfo()
/cts/tests/camera/src/android/hardware/camera2/cts/
DExtendedCameraCharacteristicsTest.java2235 for (ColorSpace.Named colorSpace : colorSpaces) { in testColorSpaceProfileMap()
2236 Set<Integer> imageFormats = profileMap.get(colorSpace).keySet(); in testColorSpaceProfileMap()
2237 mCollector.expectNotNull("profileMap.get(" + colorSpace + ").keySet() is null!", in testColorSpaceProfileMap()
2239 mCollector.expectTrue("profileMap.get(" + colorSpace + ").keySet() is empty!", in testColorSpaceProfileMap()
2242 Set<Long> dynamicRangeProfiles = profileMap.get(colorSpace).get(imageFormat); in testColorSpaceProfileMap()
2243 mCollector.expectNotNull("profileMap.get(" + colorSpace + ").get(" in testColorSpaceProfileMap()
2287 for (ColorSpace.Named colorSpace : supportedColorSpacesStandard) { in test8BitColorSpaceOutputCharacteristics()
2288 mCollector.expectTrue("ColorSpace " + colorSpace.ordinal() + " is not in the set" in test8BitColorSpaceOutputCharacteristics()
2289 + " of supported color spaces", sdrColorSpaces.contains(colorSpace)); in test8BitColorSpaceOutputCharacteristics()
2294 for (ColorSpace.Named colorSpace : supportedColorSpacesStandard) { in test8BitColorSpaceOutputCharacteristics()
[all …]
DImageReaderTest.java1822 ColorSpace colorSpace = null; in bufferFormatTestByCamera() local
1824 colorSpace = ColorSpace.get(params.mColorSpace); in bufferFormatTestByCamera()
1826 validateImage(sz, format, numFrameVerified, repeating, colorSpace); in bufferFormatTestByCamera()
2024 ColorSpace colorSpace) throws Exception { in validateImage() argument
2055 mDebugFileNameBase, colorSpace); in validateImage()
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/
DCamera2AndroidTestCase.java344 ColorSpace.Named colorSpace) throws Exception { in createSessionByConfigsAndColorSpace() argument
347 outputConfigs, mCameraSessionListener, mHandler, colorSpace); in createSessionByConfigsAndColorSpace()
575 List<OutputConfiguration> outputConfigs, int template, ColorSpace.Named colorSpace) in prepareCaptureRequestForColorSpace() argument
577 createSessionByConfigsAndColorSpace(outputConfigs, colorSpace); in prepareCaptureRequestForColorSpace()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityTakeScreenshotTest.java426 final ColorSpace colorSpace = screenshot.getColorSpace(); in verifyScreenshotResult() local
427 assertThat(colorSpace).isNotNull(); in verifyScreenshotResult()
428 assertThat(Bitmap.wrapHardwareBuffer(hardwareBuffer, colorSpace)).isNotNull(); in verifyScreenshotResult()
/cts/tests/tests/view/src/android/view/cts/
DTextureViewCtsActivity.java144 public Bitmap getContents(Bitmap.Config config, ColorSpace colorSpace) throws Throwable { in getContents() argument
147 this.getWindow().getDecorView().getHeight(), config, true, colorSpace); in getContents()
DTextureViewTest.java771 private void testGetBitmap(int eglColorSpace, ColorSpace colorSpace, in testGetBitmap() argument
803 compareFunction.verify(inputColor, colorSpace, bitmap); in testGetBitmap()
809 compareFunction.verify(outputColor, colorSpace, bitmap); in testGetBitmap()
DPixelCopyTest.java567 final ColorSpace colorSpace = windowManager.getDefaultDisplay() in testWideGamutWindowProducerCopyToRGBA16F() local
570 ColorSpace.get(ColorSpace.Named.PRO_PHOTO_RGB), colorSpace); in testWideGamutWindowProducerCopyToRGBA16F()
572 colorSpace, ColorSpace.get(ColorSpace.Named.EXTENDED_SRGB)); in testWideGamutWindowProducerCopyToRGBA16F()
/cts/tools/cts-device-info/src/com/android/cts/deviceinfo/
DCameraDeviceInfo.java289 for (ColorSpace.Named colorSpace : supportedColorSpaces) { in storeColorSpaceProfiles()
292 profiles.getSupportedImageFormatsForColorSpace(colorSpace); in storeColorSpaceProfiles()
293 mStore.addResult("color_space", colorSpace.ordinal()); in storeColorSpaceProfiles()
298 profiles.getSupportedDynamicRangeProfiles(colorSpace, imageFormat); in storeColorSpaceProfiles()
/cts/tests/tests/display/src/android/display/cts/
DDisplayTest.java1010 final ColorSpace colorSpace = mDefaultDisplay.getPreferredWideGamutColorSpace();
1013 assertFalse(colorSpace.isSrgb());
1014 assertTrue(colorSpace.isWideGamut());
1016 assertNull(colorSpace);
/cts/tests/camera/utils/src/android/hardware/camera2/cts/
DCameraTestUtils.java1572 ColorSpace.Named colorSpace) throws CameraAccessException { in configureCameraSessionWithColorSpace() argument
1577 sessionConfiguration.setColorSpace(colorSpace); in configureCameraSessionWithColorSpace()
1766 ColorSpace colorSpace) { in checkImage() argument
1776 if (colorSpace != null && format != ImageFormat.JPEG && format != ImageFormat.JPEG_R in checkImage()
1784 + colorSpace.getId(), colorSpace.getId(), actualColorSpace.getId()); in checkImage()
2649 String filePath, ColorSpace colorSpace) { in validateImage() argument
2650 checkImage(image, width, height, format, colorSpace); in validateImage()
2671 validateJpegData(data, width, height, filePath, colorSpace); in validateImage()
2764 ColorSpace colorSpace) { in validateJpegData() argument
2765 validateJpegData(jpegData, width, height, filePath, colorSpace, false /*gainMapPresent*/); in validateJpegData()
[all …]
/cts/tests/tests/graphics/jni/
DVulkanPreTransformTestHelpers.cpp329 .imageColorSpace = formats[formatIndex].colorSpace, in init()
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dcurrent.txt15832 method @NonNull public static android.graphics.ColorSpace colorSpace(@ColorLong long);