Home
last modified time | relevance | path

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

/cts/tests/tests/graphics/src/android/graphics/cts/
DColorSpaceTest.java76 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 …]
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()
DBitmapColorSpaceTest.java304 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()
DImageDecoderTest.java84 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()
DBitmapTest.java2072 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/
DDisplayTest.java381 final ColorSpace colorSpace = defaultDisplay.getPreferredWideGamutColorSpace();
384 assertFalse(colorSpace.isSrgb());
385 assertTrue(colorSpace.isWideGamut());
387 assertNull(colorSpace);
/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.java454 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()
DPixelCopyTest.java444 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/
DVulkanPreTransformTestHelpers.cpp327 .imageColorSpace = formats[formatIndex].colorSpace, in init()