/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | ParcelableColorSpaceTest.java | 55 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 …]
|
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 | AImageDecoderTest.java | 185 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 …]
|
D | BitmapTest.java | 2309 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 …]
|
D | ImageDecoderTest.java | 91 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/ |
D | MockMediaParserOutputConsumer.java | 265 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/ |
D | AccessibilityTakeScreenshotTest.java | 271 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/ |
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 | 479 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()
|
D | PixelCopyTest.java | 462 final ColorSpace colorSpace = windowManager.getDefaultDisplay() in testWideGamutWindowProducerCopyToRGBA16F() local 465 ColorSpace.get(ColorSpace.Named.PRO_PHOTO_RGB), colorSpace); in testWideGamutWindowProducerCopyToRGBA16F() 467 colorSpace, ColorSpace.get(ColorSpace.Named.EXTENDED_SRGB)); in testWideGamutWindowProducerCopyToRGBA16F()
|
/cts/tests/tests/display/src/android/display/cts/ |
D | DisplayTest.java | 927 final ColorSpace colorSpace = mDefaultDisplay.getPreferredWideGamutColorSpace(); 930 assertFalse(colorSpace.isSrgb()); 931 assertTrue(colorSpace.isWideGamut()); 933 assertNull(colorSpace);
|
/cts/tests/tests/graphics/jni/ |
D | VulkanPreTransformTestHelpers.cpp | 321 .imageColorSpace = formats[formatIndex].colorSpace, in init()
|