Home
last modified time | relevance | path

Searched refs:colorSpace (Results 1 – 15 of 15) 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.java78 ColorSpace colorSpace = ColorSpace.get(named); in testNamedColorSpaces() local
79 assertNotNull(colorSpace.getName()); in testNamedColorSpaces()
80 assertNotNull(colorSpace); in testNamedColorSpaces()
81 assertEquals(named.ordinal(), colorSpace.getId()); in testNamedColorSpaces()
82 assertTrue(colorSpace.getComponentCount() >= 1); in testNamedColorSpaces()
83 assertTrue(colorSpace.getComponentCount() <= 4); in testNamedColorSpaces()
320 ColorSpace colorSpace = ColorSpace.get(e); in testIsSRGB() local
322 assertTrue(colorSpace.isSrgb()); in testIsSRGB()
324 assertFalse("Incorrectly treating " + colorSpace + " as SRGB!", in testIsSRGB()
325 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.java185 false /*isF16*/, nativeDataSpace(record.colorSpace)); in testCreateFdResources()
202 false /*isF16*/, nativeDataSpace(record.colorSpace)); in testCreateFdOffset()
948 private static File createCompressedBitmap(int width, int height, ColorSpace colorSpace,
953 File file = new File(dir, colorSpace.getName());
965 colorSpace);
1003 public void testGetDataSpace(ColorSpace colorSpace, Bitmap.CompressFormat format) {
1004 if (colorSpace == ColorSpace.get(Named.EXTENDED_SRGB)
1005 || colorSpace == ColorSpace.get(Named.LINEAR_EXTENDED_SRGB)) {
1014 File file = createCompressedBitmap(width, height, colorSpace, format);
1017 int dataSpace = DataSpace.fromColorSpace(colorSpace);
[all …]
DBitmapColorSpaceTest.java306 public final ColorSpace colorSpace; field in BitmapColorSpaceTest.Asset
309 this.colorSpace = ColorSpace.get(e); in Asset()
332 assertSame(asset.colorSpace, cs); in reconfigure()
337 assertSame(asset.colorSpace, cs); in reconfigure()
342 assertSame(asset.colorSpace, cs); in reconfigure()
572 @NonNull String fileName, @NonNull ColorSpace colorSpace) { in verifyColorSpaceMarshalling() argument
575 verifyParcelUnparcel(bitmapIn, colorSpace); in verifyColorSpaceMarshalling()
1048 public void testEncodeColorSpace(Bitmap.CompressFormat format, ColorSpace colorSpace) { in testEncodeColorSpace() argument
1056 decoder.setTargetColorSpace(colorSpace); in testEncodeColorSpace()
1064 if (colorSpace == ColorSpace.get(ColorSpace.Named.SRGB)) { in testEncodeColorSpace()
[all …]
DBitmapTest.java2309 final ColorSpace colorSpace = ColorSpace.get(Named.SRGB); in testWrappedHardwareBufferBitmapNotLeaking() local
2312 Bitmap bitmap = Bitmap.wrapHardwareBuffer(hwBuffer, colorSpace); in testWrappedHardwareBufferBitmapNotLeaking()
2420 public void testAsShared(Config config, ColorSpace colorSpace) { in testAsShared() argument
2423 colorSpace); in testAsShared()
2593 for (ColorSpace colorSpace : new ColorSpace[] { in testNdkDataSpaceF16Extended()
2597 Bitmap bm = Bitmap.createBitmap(10, 10, Config.RGBA_F16, false, colorSpace); in testNdkDataSpaceF16Extended()
2604 for (ColorSpace colorSpace : new ColorSpace[] { in testNdkDataSpaceF16Extended()
2608 Bitmap bm = Bitmap.createBitmap(10, 10, Config.RGBA_F16, false, colorSpace); in testNdkDataSpaceF16Extended()
2619 for (ColorSpace colorSpace : new ColorSpace[] { in testNdkDataSpaceNonExtended()
2624 Bitmap bm = Bitmap.createBitmap(10, 10, c, false, colorSpace); in testNdkDataSpaceNonExtended()
[all …]
DImageDecoderTest.java91 public final ColorSpace colorSpace; field in ImageDecoderTest.Record
94 boolean hasAlpha, ColorSpace colorSpace) { in Record() argument
101 this.colorSpace = colorSpace; in Record()
283 assertSame(record.colorSpace, info.getColorSpace()); in testInfo()
2289 boolean isGray, boolean hasAlpha, ColorSpace colorSpace) {
2296 mColorSpace = colorSpace;
2426 private boolean isExtended(ColorSpace colorSpace) { in isExtended() argument
2427 return colorSpace == ColorSpace.get(ColorSpace.Named.EXTENDED_SRGB) in isExtended()
2428 || colorSpace == ColorSpace.get(ColorSpace.Named.LINEAR_EXTENDED_SRGB); in isExtended()
/cts/tests/tests/mediaparser/src/android/media/mediaparser/cts/
DMockMediaParserOutputConsumer.java265 int colorSpace = Format.NO_VALUE; in getExoPlayerColorInfo() local
270 colorSpace = C.COLOR_SPACE_BT601; in getExoPlayerColorInfo()
273 colorSpace = C.COLOR_SPACE_BT709; in getExoPlayerColorInfo()
276 colorSpace = C.COLOR_SPACE_BT2020; in getExoPlayerColorInfo()
279 colorSpace = Format.NO_VALUE; in getExoPlayerColorInfo()
316 if (colorSpace == Format.NO_VALUE in getExoPlayerColorInfo()
323 colorSpace, in getExoPlayerColorInfo()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityTakeScreenshotTest.java271 final ColorSpace colorSpace = screenshot.getColorSpace(); in verifyScreenshotResult() local
272 assertNotNull(colorSpace); in verifyScreenshotResult()
278 final Bitmap bitmap = Bitmap.wrapHardwareBuffer(hardwareBuffer, colorSpace); 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.java479 private void testGetBitmap(int eglColorSpace, ColorSpace colorSpace, in testGetBitmap() argument
511 compareFunction.verify(inputColor, colorSpace, bitmap); in testGetBitmap()
517 compareFunction.verify(outputColor, colorSpace, bitmap); in testGetBitmap()
DPixelCopyTest.java461 final ColorSpace colorSpace = windowManager.getDefaultDisplay() in testWideGamutWindowProducerCopyToRGBA16F() local
464 ColorSpace.get(ColorSpace.Named.PRO_PHOTO_RGB), colorSpace); in testWideGamutWindowProducerCopyToRGBA16F()
466 colorSpace, ColorSpace.get(ColorSpace.Named.EXTENDED_SRGB)); in testWideGamutWindowProducerCopyToRGBA16F()
/cts/tests/tests/display/src/android/display/cts/
DDisplayTest.java874 final ColorSpace colorSpace = mDefaultDisplay.getPreferredWideGamutColorSpace();
877 assertFalse(colorSpace.isSrgb());
878 assertTrue(colorSpace.isWideGamut());
880 assertNull(colorSpace);
/cts/tests/tests/graphics/jni/
DVulkanPreTransformTestHelpers.cpp321 .imageColorSpace = formats[formatIndex].colorSpace, in init()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DAImageDecoderTest.kt129 bitmap.config, true, bitmap.colorSpace!!) in <lambda>()