Home
last modified time | relevance | path

Searched refs:getColorSpace (Results 1 – 25 of 27) sorted by relevance

12

/cts/tests/tests/graphics/src/android/graphics/cts/
DParcelableColorSpaceTest.java65 assertEquals(inParcelable.getColorSpace(), outParcelable.getColorSpace()); in testNamedReadWrite()
67 assertSame(colorSpace, outParcelable.getColorSpace()); in testNamedReadWrite()
86 assertEquals(inParcelable.getColorSpace(), outParcelable.getColorSpace()); in testReadWriteCustom()
87 assertSame(colorSpace, inParcelable.getColorSpace()); in testReadWriteCustom()
88 assertNotSame(colorSpace, outParcelable.getColorSpace()); in testReadWriteCustom()
109 assertEquals(colorSpace, new ParcelableColorSpace(colorSpace).getColorSpace()); in testIsParcelableNamed()
118 assertEquals(colorSpace, new ParcelableColorSpace(colorSpace).getColorSpace()); in testIsParceableCustom()
134 Bitmap.Config.RGBA_F16, false, parcelableColorSpace.getColorSpace()); in testIsColorSpaceContainer()
136 ColorSpace bitmapColorSpace = bitmap.getColorSpace(); in testIsColorSpaceContainer()
139 assertEquals(parcelableColorSpace.getColorSpace(), bitmapColorSpace); in testIsColorSpaceContainer()
DBitmapColorSpaceTest.java95 ColorSpace cs = b.getColorSpace(); in createWithColorSpace()
108 ColorSpace cs = b.getColorSpace(); in createWithColorSpace()
124 ColorSpace cs = b.getColorSpace(); in createWithColorSpace()
138 assertNull(bitmap.getColorSpace()); in createAlpha8ColorSpace()
142 assertNull(bitmap.getColorSpace()); in createAlpha8ColorSpace()
154 assertSame(sRGB, bitmap.getColorSpace()); in createDefaultColorSpace()
194 assertSame(orig.getColorSpace(), cropped.getColorSpace()); in createFromSourceWithColorSpace()
196 assertNull(cropped.getColorSpace()); in createFromSourceWithColorSpace()
206 assertSame(ColorSpace.get(ColorSpace.Named.SRGB), rotated.getColorSpace()); in createFromSourceWithColorSpace()
213 orig.getColorSpace(), rotated.getColorSpace()); in createFromSourceWithColorSpace()
[all …]
DColor_ColorLongTest.java139 assertTrue(color1.getColorSpace().isSrgb()); in testValueOf()
146 assertTrue(color2.getColorSpace().isSrgb()); in testValueOf()
153 assertTrue(color3.getColorSpace().isSrgb()); in testValueOf()
160 assertFalse(color4.getColorSpace().isSrgb()); in testValueOf()
161 assertEquals(p3, color4.getColorSpace()); in testValueOf()
168 assertFalse(color5.getColorSpace().isSrgb()); in testValueOf()
169 assertEquals(p3, color5.getColorSpace()); in testValueOf()
176 assertTrue(color6.getColorSpace().isSrgb()); in testValueOf()
183 assertTrue(color7.getColorSpace().isSrgb()); in testValueOf()
191 assertTrue(color8.getColorSpace().isSrgb()); in testValueOf()
[all …]
DBitmapRegionDecoderTest.java487 assertSame(expected, region.getColorSpace()); in testOutColorSpace()
509 assertEquals(ColorSpace.get(ColorSpace.Named.SRGB), region.getColorSpace()); in testReusedColorSpace()
516 assertEquals(ColorSpace.get(ColorSpace.Named.DISPLAY_P3), region.getColorSpace()); in testReusedColorSpace()
535 assertEquals(ColorSpace.get(ColorSpace.Named.SRGB), region.getColorSpace()); in testReusedColorSpaceCropped()
543 assertEquals(ColorSpace.get(ColorSpace.Named.DISPLAY_P3), region.getColorSpace()); in testReusedColorSpaceCropped()
560 assertSame(opts.outColorSpace, region.getColorSpace()); in testInColorSpace()
576 assertSame(ColorSpace.get(ColorSpace.Named.ADOBE_RGB), region.getColorSpace()); in testInColorSpaceRGBA16F()
591 assertSame(ColorSpace.get(ColorSpace.Named.ADOBE_RGB), region.getColorSpace()); in testInColorSpace565()
DBitmapTest.java640 assertNotNull(bitmap.getColorSpace()); in testCreateBitmap_Picture_immutable()
961 bitmapColorSpace = mBitmap.getColorSpace(); in testGetColor()
970 if (mBitmap.getColorSpace().equals(sRGB)) { in testGetColor()
1407 ColorSpace actual = mBitmap.getColorSpace(); in testSetColorSpace()
1421 + cs.getName(), c.convert(mBitmap.getColorSpace()), in testSetColorSpace()
1461 assertNull(mBitmap.getColorSpace()); in testSetColorSpaceAlpha8()
1473 assertSame(aces, mBitmap.getColorSpace()); in testSetColorSpaceReducedRange()
1483 assertSame(mBitmap.getColorSpace(), extended); in testSetColorSpaceNotReducedRange()
1492 assertSame(mBitmap.getColorSpace(), linearExtended); in testSetColorSpaceNotReducedRangeLinear()
1501 assertSame(mBitmap.getColorSpace(), linearExtended); in testSetColorSpaceIncreasedRange()
[all …]
DAImageDecoderTest.java159 record.isF16, nativeDataSpace(record.getColorSpace())); in testCreateBuffer()
172 record.isF16, nativeDataSpace(record.getColorSpace())); in testCreateFd()
183 record.isF16, nativeDataSpace(record.getColorSpace())); in testCreateAsset()
521 assertNull(bm.getColorSpace());
538 assertNull(bm.getColorSpace());
1017 bm.getColorSpace().getDataSpace());
1152 assertEquals(colorSpace, bm.getColorSpace());
DGainmapTest.java123 assertEquals(ColorSpace.Named.SRGB.ordinal(), bitmap.getColorSpace().getId()); in checkGainmap()
152 assertEquals(ColorSpace.Named.SRGB.ordinal(), bitmap.getColorSpace().getId()); in checkFountainGainmap()
446 assertEquals(gainmapData.getColorSpace(), unparceledGainmapData.getColorSpace()); in testWriteToParcel()
DImageDecoderTest.java409 assertSame(record.colorSpace, info.getColorSpace()); in testInfo()
1834 assertNull(bm.getColorSpace()); in testAlphaPlusSetTargetColorSpace()
1946 assertNull(bm.getColorSpace()); in testAlphaMask()
2421 public ColorSpace getColorSpace() {
2487 record.checkColorSpace(null, info.getColorSpace());
2491 record.checkColorSpace(null, bm.getColorSpace());
2513 record.checkColorSpace(cs, bm.getColorSpace());
2536 ColorSpace actual = bm.getColorSpace(); in testTargetColorSpaceNoF16HARDWARE()
2584 assertNull(bm.getColorSpace()); in testTargetColorSpaceUpconvert()
2586 assertSame(cs, bm.getColorSpace()); in testTargetColorSpaceUpconvert()
[all …]
DRadialGradientTest.java83 final ColorSpace bitmapColorSpace = bitmap.getColorSpace(); in testColorLong()
DYuvImageTest.java230 assertEquals(defaultColorSpace, imageSRGB.getColorSpace()); in testGetColorSpace()
231 assertEquals(expectedColorSpace, imageBT709.getColorSpace()); in testGetColorSpace()
DLinearGradientTest.java91 final ColorSpace bitmapColorSpace = b.getColorSpace();
DSweepGradientTest.java270 final ColorSpace bitmapColorSpace = bitmap.getColorSpace(); in testColorLong()
DBitmapFactoryTest.java987 assertNull(alpha8.getColorSpace()); in decodeConfigs()
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/
DSamplePointWideGamutVerifier.java42 + "wide gamut: " + bitmap.getColorSpace(), bitmap.getColorSpace().isWideGamut()); in verify()
49 Color actual = bitmap.getColor(p.x, p.y).convert(expected.getColorSpace()); in verify()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DColorUtils.java92 if (!expected.getColorSpace().equals(observed.getColorSpace())) { in verifyColor()
/cts/tests/tests/transition/src/android/transition/cts/
DSharedElementCallbackTest.java75 assertSame(cs, finalBitmap.getColorSpace()); in testSnapshot()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DWideColorGamutTests.java155 final ColorSpace cs = a.getColorSpace(); in plus()
156 Assert.assertSame(cs, b.getColorSpace()); in plus()
DGainmapTests.java108 result.getColorSpace()); in assertChannels()
135 if (result.getColorSpace().getId() == ColorSpace.Named.BT2020_PQ.ordinal()) { in toleranceForResult()
/cts/tests/tests/view/src/android/view/cts/
DTextureViewTest.java392 textureViewScreenshot.setColorSpace(surfaceViewScreenshot.getColorSpace()); in testSDRFromSurfaceViewAndTextureView()
705 ColorSpace getColorSpace(); in getColorSpace() method
720 public ColorSpace getColorSpace() { in getColorSpace() method in TextureViewTest.FP16Compare
732 final ColorSpace dstSpace = getColorSpace(); in verify()
756 public ColorSpace getColorSpace() { in getColorSpace() method in TextureViewTest.SRGBCompare
798 compareFunction.getColorSpace()); in testGetBitmap()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityTakeScreenshotTest.java391 screenshot.getColorSpace()).copy(Bitmap.Config.ARGB_8888, false); in doesScreenshotContainColor()
426 final ColorSpace colorSpace = screenshot.getColorSpace(); in verifyScreenshotResult()
/cts/tests/framework/base/windowmanager/src/android/server/wm/animations/
DActivityTransitionTests.java665 if (!rawColor.getColorSpace().equals(ColorSpace.get(ColorSpace.Named.SRGB))) { in getIsAppRegionOfScreenOfColorResult()
772 if (!rawColor.getColorSpace().equals(ColorSpace.get(ColorSpace.Named.SRGB))) { in assertColorChangeXIndex()
/cts/tests/app/WallpaperTest/src/android/app/cts/wallpapers/
DWallpaperManagerTest.java888 assertThat(mWallpaperManager.getBitmap().getColorSpace()).isEqualTo(srgb); in testWideGamutWallpaper()
893 final boolean isDisplayP3 = mWallpaperManager.getBitmap().getColorSpace().equals(p3); in testWideGamutWallpaper()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DAnimatedImageDrawableTest.java515 expected.hasAlpha(), expected.getColorSpace()); in testExif()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/
DCameraTestUtils.java2783 ColorSpace bitmapColorSpace = bitmapImage.getColorSpace(); in validateJpegData()
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dtest-current.txt1627 method @Nullable public android.graphics.ColorSpace getColorSpace();

12