/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | ColorSpaceTest.java | 76 ColorSpace colorSpace = ColorSpace.get(named); in testNamedColorSpaces() local 77 assertNotNull(colorSpace.getName()); in testNamedColorSpaces() 78 assertNotNull(colorSpace); in testNamedColorSpaces() 79 assertEquals(named.ordinal(), colorSpace.getId()); in testNamedColorSpaces() 80 assertTrue(colorSpace.getComponentCount() >= 1); in testNamedColorSpaces() 81 assertTrue(colorSpace.getComponentCount() <= 4); in testNamedColorSpaces() 318 ColorSpace colorSpace = ColorSpace.get(e); in testIsSRGB() local 320 assertTrue(colorSpace.isSrgb()); in testIsSRGB() 322 assertFalse("Incorrectly treating " + colorSpace + " as SRGB!", in testIsSRGB() 323 colorSpace.isSrgb()); in testIsSRGB() [all …]
|
D | Color_ColorLongTest.java | 20 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()
|
D | BitmapColorSpaceTest.java | 304 public final ColorSpace colorSpace; field in BitmapColorSpaceTest.Asset 307 this.colorSpace = ColorSpace.get(e); in Asset() 330 assertSame(asset.colorSpace, cs); in reconfigure() 335 assertSame(asset.colorSpace, cs); in reconfigure() 340 assertSame(asset.colorSpace, cs); in reconfigure() 570 @NonNull String fileName, @NonNull ColorSpace colorSpace) { in verifyColorSpaceMarshalling() argument 573 verifyParcelUnparcel(bitmapIn, colorSpace); in verifyColorSpaceMarshalling()
|
D | ImageDecoderTest.java | 84 public final ColorSpace colorSpace; field in ImageDecoderTest.Record 86 Record(int resId, int width, int height, String mimeType, ColorSpace colorSpace) { in Record() argument 91 this.colorSpace = colorSpace; in Record() 275 assertSame(record.colorSpace, info.getColorSpace()); in testInfo() 2123 ColorSpace colorSpace) { 2129 mColorSpace = colorSpace; 2220 private boolean isExtended(ColorSpace colorSpace) { in isExtended() argument 2221 return colorSpace == ColorSpace.get(ColorSpace.Named.EXTENDED_SRGB) in isExtended() 2222 || colorSpace == ColorSpace.get(ColorSpace.Named.LINEAR_EXTENDED_SRGB); in isExtended()
|
D | BitmapTest.java | 2072 final ColorSpace colorSpace = ColorSpace.get(Named.SRGB); in testWrappedHardwareBufferBitmapNotLeaking() local 2075 Bitmap bitmap = Bitmap.wrapHardwareBuffer(hwBuffer, colorSpace); in testWrappedHardwareBufferBitmapNotLeaking()
|
/cts/tests/tests/display/src/android/display/cts/ |
D | DisplayTest.java | 381 final ColorSpace colorSpace = defaultDisplay.getPreferredWideGamutColorSpace(); 384 assertFalse(colorSpace.isSrgb()); 385 assertTrue(colorSpace.isWideGamut()); 387 assertNull(colorSpace);
|
/cts/tests/tests/view/src/android/view/cts/ |
D | TextureViewCtsActivity.java | 144 public Bitmap getContents(Bitmap.Config config, ColorSpace colorSpace) throws Throwable { in getContents() argument 147 this.getWindow().getDecorView().getHeight(), config, true, colorSpace); in getContents()
|
D | TextureViewTest.java | 454 private void testGetBitmap(int eglColorSpace, ColorSpace colorSpace, in testGetBitmap() argument 486 compareFunction.verify(inputColor, colorSpace, bitmap); in testGetBitmap() 492 compareFunction.verify(outputColor, colorSpace, bitmap); in testGetBitmap()
|
D | PixelCopyTest.java | 444 final ColorSpace colorSpace = windowManager.getDefaultDisplay() in testWideGamutWindowProducerCopyToRGBA16F() local 447 ColorSpace.get(ColorSpace.Named.PRO_PHOTO_RGB), colorSpace); in testWideGamutWindowProducerCopyToRGBA16F() 449 colorSpace, ColorSpace.get(ColorSpace.Named.EXTENDED_SRGB)); in testWideGamutWindowProducerCopyToRGBA16F()
|
/cts/tests/tests/graphics/jni/ |
D | VulkanPreTransformTestHelpers.cpp | 327 .imageColorSpace = formats[formatIndex].colorSpace, in init()
|