Home
last modified time | relevance | path

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

/cts/tests/tests/graphics/src/android/graphics/cts/
DColorSpaceTest.java75 ColorSpace colorSpace = ColorSpace.get(named); in testNamedColorSpaces() local
76 assertNotNull(colorSpace.getName()); in testNamedColorSpaces()
77 assertNotNull(colorSpace); in testNamedColorSpaces()
78 assertEquals(named.ordinal(), colorSpace.getId()); in testNamedColorSpaces()
79 assertTrue(colorSpace.getComponentCount() >= 1); in testNamedColorSpaces()
80 assertTrue(colorSpace.getComponentCount() <= 4); in testNamedColorSpaces()
707 ColorSpace.Rgb colorSpace = (ColorSpace.Rgb) ColorSpace.get(ColorSpace.Named.SRGB); in testFromLinear() local
712 float[] r1 = colorSpace.fromLinear(source[0], source[1], source[2]); in testFromLinear()
718 assertSame(r2, colorSpace.fromLinear(r2)); in testFromLinear()
725 ColorSpace.Rgb colorSpace = (ColorSpace.Rgb) ColorSpace.get(ColorSpace.Named.SRGB); in testToLinear() local
[all …]
DColor_ColorLongTest.java28 import static android.graphics.Color.colorSpace;
83 assertEquals(srgb, colorSpace(pack(0.5f, 0.7f, 1.0f))); in testColorSpace()
84 assertEquals(p3, colorSpace(pack(0.5f, 0.7f, 1.0f, 1.0f, p3))); in testColorSpace()
89 colorSpace(0xffffffffffffffffL); in testInvalidColorSpace()
305 ColorSpace colorSpace = new ColorSpace.Rgb("Fake", in testPackFailure() local
308 pack(0.5f, 0.0f, 1.0f, 0.25f, colorSpace); in testPackFailure()
367 assertEquals(ColorSpace.get(Named.ADOBE_RGB), colorSpace(color)); in testConvertColorInt()
DImageDecoderTest.java83 public final ColorSpace colorSpace; field in ImageDecoderTest.Record
85 Record(int resId, int width, int height, String mimeType, ColorSpace colorSpace) { in Record() argument
90 this.colorSpace = colorSpace; in Record()
264 assertSame(record.colorSpace, info.getColorSpace()); in testInfo()
2023 AssetRecord(String name, int width, int height, boolean isF16, ColorSpace colorSpace) {
2028 mColorSpace = colorSpace;
DBitmapColorSpaceTest.java442 @NonNull String fileName, @NonNull ColorSpace colorSpace) { in verifyColorSpaceMarshalling() argument
445 verifyParcelUnparcel(bitmapIn, colorSpace); in verifyColorSpaceMarshalling()
/cts/tests/tests/view/src/android/view/cts/
DTextureViewCtsActivity.java143 public Bitmap getContents(Bitmap.Config config, ColorSpace colorSpace) throws Throwable { in getContents() argument
146 this.getWindow().getDecorView().getHeight(), config, true, colorSpace); in getContents()
DTextureViewTest.java232 private void testGetBitmap(int eglColorSpace, ColorSpace.Named colorSpace, in testGetBitmap() argument
259 compareFunction.verify(inputColor, colorSpace, bitmap); in testGetBitmap()
/cts/tests/tests/graphics/jni/
DVulkanPreTransformTestHelpers.cpp301 .imageColorSpace = formats[formatIndex].colorSpace, in init()