/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | BitmapFilterTests.java | 74 bitmap.setPixel(i, j, isWhite ? Color.WHITE : Color.BLACK); in createGridBitmap() 151 Color.WHITE, Color.WHITE, Color.WHITE, Color.WHITE, Color.WHITE, 152 Color.WHITE, Color.BLACK, Color.BLACK, Color.BLACK, Color.WHITE, 153 Color.WHITE, Color.BLACK, Color.BLACK, Color.BLACK, Color.WHITE, 154 Color.WHITE, Color.BLACK, Color.BLACK, Color.BLACK, Color.WHITE, 155 Color.WHITE, Color.WHITE, Color.WHITE, Color.WHITE, Color.WHITE}, 175 .addVerifier(whiteArea, new ColorVerifier(Color.WHITE, 0))); in testDrawSnapped() 200 .addVerifier(whiteArea, new ColorVerifier(Color.WHITE, 16))); in testDrawHalfPixelFiltered()
|
D | ExactCanvasTests.java | 61 .runWithVerifier(new RectVerifier(Color.WHITE, Color.BLUE, rect)); in testBlueRect() 124 canvas.drawColor(Color.WHITE); in testDrawLine() 137 .addCanvasClient((canvas, width, height) -> canvas.drawColor(Color.WHITE)) in testDrawWhiteScreen() 148 p.setColor(Color.WHITE); in testBasicText() 217 BitmapVerifier verifier = new RectVerifier(Color.WHITE, Color.BLUE, in testBluePaddedSquare() 222 canvas.drawColor(Color.WHITE); in testBluePaddedSquare() 254 .runWithVerifier(new RectVerifier(Color.WHITE, Color.BLACK, in testSaveLayerRounding() 266 .runWithVerifier(new RectVerifier(Color.WHITE, Color.BLACK, in testUnclippedSaveLayerRounding() 304 return CompareUtils.verifyPixelWithThreshold(observedColor, Color.WHITE, 0); in testBlackTriangleVertices2() 311 return CompareUtils.verifyPixelWithThreshold(observedColor, Color.WHITE, 0); in testBlackTriangleVertices2() [all …]
|
D | BitmapBlendModeTest.java | 64 int[] colors = {Color.WHITE, Color.WHITE, Color.WHITE, Color.WHITE, Color.RED}; in testDstOutBlendMode()
|
D | ViewFadingEdgeTests.java | 102 Color.WHITE, in testCreateLeftFade() 129 Color.WHITE in testCreateRightFade() 149 Color.WHITE, in testCreateTopFade() 175 Color.WHITE in testCreateBottomFade() 197 Color.WHITE, in testCreateLeftAndRightFade() 201 Color.WHITE in testCreateLeftAndRightFade()
|
D | ShaderTests.java | 153 Color.TRANSPARENT, Color.WHITE, Shader.TileMode.REPEAT)); in testRepeatAlphaGradientShader() 155 canvas.drawColor(Color.WHITE); in testRepeatAlphaGradientShader() 159 .runWithVerifier(new ColorVerifier(Color.WHITE)); in testRepeatAlphaGradientShader() 171 Color.TRANSPARENT, Color.WHITE, Shader.TileMode.CLAMP)); in testClampAlphaGradientShader() 173 canvas.drawColor(Color.WHITE); in testClampAlphaGradientShader() 177 .runWithVerifier(new ColorVerifier(Color.WHITE)); in testClampAlphaGradientShader()
|
D | ShadowTests.java | 56 Color.WHITE, in createVerifier() 57 Color.WHITE, in createVerifier() 105 if (color == Color.WHITE) return true; in testRedSpotShadow() 121 if (color == Color.WHITE) return true; in testRedAmbientShadow() 137 if (color == Color.WHITE) return true; in testRedAmbientBlueSpotShadow()
|
D | ForceDarkTests.java | 83 .runWithVerifier(new RectVerifier(Color.BLACK, Color.WHITE, rect, 100)); in testFgRect() 100 .runWithVerifier(new RectVerifier(Color.WHITE, Color.BLACK, rect, 0)); in testFgRectDisable() 113 canvas.drawColor(Color.WHITE); in testSiblings() 123 .runWithVerifier(new RectVerifier(Color.BLACK, Color.WHITE, fgRect, 100)); in testSiblings()
|
D | PathClippingTests.java | 119 Color.WHITE, in testCircleWithPoints() 121 Color.WHITE, in testCircleWithPoints() 122 Color.WHITE, in testCircleWithPoints() 149 Color.WHITE, in testViewRotate() 150 Color.WHITE, in testViewRotate()
|
D | LayerTests.java | 174 final int expectedColor = Color.WHITE; in testLayerPaintBlend() 229 Color.WHITE, 90 * 90 - 50 * 50, 10)); in testLayerClear() 253 .runWithVerifier(new RectVerifier(Color.WHITE, 0xff8080ff, in testAlphaLayerChild() 277 .runWithVerifier(new ColorVerifier(Color.WHITE, 0 /* zero tolerance */)); in testLayerInitialSizeZero() 318 .runWithVerifier(new ColorVerifier(Color.WHITE, 0 /* zero tolerance */)); in testLayerResizeZero() 346 .runWithVerifier(new RectVerifier(Color.WHITE, Color.GREEN, new Rect(40, 40, 70, 70))); in testSaveLayerWithColorFilter() 362 .runWithVerifier(new RectVerifier(Color.WHITE, 0xffffE0E0, new Rect(40, 40, 70, 70))); in testSaveLayerWithAlpha() 572 Color.WHITE, in testWebViewWithUnclippedLayer() 612 Color.WHITE, in testWebViewWithUnclippedLayerAndComplexClip() 613 Color.WHITE, in testWebViewWithUnclippedLayerAndComplexClip()
|
D | CanvasTests.java | 87 Color.WHITE, in testDrawDoubleRoundRect() 88 Color.WHITE, in testDrawDoubleRoundRect() 89 Color.WHITE, in testDrawDoubleRoundRect() 90 Color.WHITE, in testDrawDoubleRoundRect() 99 paint.setColor(Color.WHITE); in testDrawDoubleRoundRect() 129 Color.WHITE, in testDrawDoubleRoundRectWithRadii() 130 Color.WHITE, in testDrawDoubleRoundRectWithRadii() 131 Color.WHITE, in testDrawDoubleRoundRectWithRadii() 140 paint.setColor(Color.WHITE); in testDrawDoubleRoundRectWithRadii()
|
D | LayoutTests.java | 45 new RectVerifier(Color.WHITE, Color.BLUE, new Rect(5, 5, 85, 85))); in testSimpleRectLayout() 60 Color.WHITE in testTransformChildViewLayout()
|
D | InfrastructureTests.java | 48 canvas.drawColor(canvas.isHardwareAccelerated() ? Color.BLACK : Color.WHITE); in testRenderSpecIsolation() 77 .runWithVerifier(new RectVerifier(Color.WHITE, Color.RED, clipRect)); in testViewInitializer()
|
D | PictureTest.java | 62 ).runWithVerifier(new ColorVerifier(Color.WHITE)); in testPictureRespectsClip() 75 new RectVerifier(Color.WHITE, Color.GREEN, sOffsetRect)); in testPictureRespectsTranslate()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ViewOverlayTest.java | 62 Color.WHITE, null); in testBasics() 89 Color.WHITE, colorRectangles); in testOverlayWithOneDrawable() 94 Color.WHITE, null); in testOverlayWithOneDrawable() 109 Color.WHITE, colorRectangles); in testAddTheSameDrawableTwice() 114 Color.WHITE, null); in testAddTheSameDrawableTwice() 128 Color.WHITE, colorRectangles); in testRemoveTheSameDrawableTwice() 135 Color.WHITE, null); in testRemoveTheSameDrawableTwice() 158 Color.WHITE, colorRectangles); in testOverlayWithNonOverlappingDrawables() 166 Color.WHITE, colorRectangles); in testOverlayWithNonOverlappingDrawables() 171 Color.WHITE, null); in testOverlayWithNonOverlappingDrawables() [all …]
|
D | ViewGroupOverlayTest.java | 80 Color.WHITE, null); in testBasics() 109 mViewGroupWithOverlay, Color.WHITE, colorRectangles); in testOverlayWithOneView() 114 Color.WHITE, null); in testOverlayWithOneView() 140 Color.WHITE, colorRectangles); in testOverlayWithNonOverlappingViews() 148 Color.WHITE, colorRectangles); in testOverlayWithNonOverlappingViews() 153 Color.WHITE, null); in testOverlayWithNonOverlappingViews() 173 mViewGroupWithOverlay, Color.WHITE, colorRectangles); in testOverlayWithNonOverlappingViewAndDrawable() 180 Color.WHITE, colorRectangles); in testOverlayWithNonOverlappingViewAndDrawable() 185 Color.WHITE, null); in testOverlayWithNonOverlappingViewAndDrawable() 208 Color.WHITE, colorRectangles); in testOverlayWithOverlappingViews() [all …]
|
/cts/tests/tests/uirendering27/src/android/uirendering/cts/testclasses/ |
D | BitmapBlendModeTest.java | 51 int[] colors = {Color.WHITE, Color.WHITE, Color.WHITE, Color.WHITE, Color.RED}; in testClearBlendMode() 65 int[] colors = {Color.WHITE, Color.WHITE, Color.WHITE, Color.WHITE, Color.RED}; in testDstOutBlendMode()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | ColorDrawableTest.java | 142 final ColorDrawable d = new ColorDrawable(Color.WHITE); in testSetColorFilter() 143 assertEquals(Color.WHITE, DrawableTestUtils.getPixel(d, 0, 0)); in testSetColorFilter() 154 final ColorDrawable d = new ColorDrawable(Color.WHITE); in testGetColorFilter() 163 final ColorDrawable d = new ColorDrawable(Color.WHITE); in testSetTint() 164 assertEquals(Color.WHITE, DrawableTestUtils.getPixel(d, 0, 0)); in testSetTint() 173 final ColorDrawable d = new ColorDrawable(Color.WHITE); in testDraw() 180 assertEquals(Color.WHITE, pixel); in testDraw()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | LightingColorFilterTest.java | 51 paint.setColorFilter(new LightingColorFilter(Color.WHITE, Color.BLACK)); in testLightingColorFilter() 74 paint.setColorFilter(new LightingColorFilter(Color.WHITE, Color.MAGENTA)); in testLightingColorFilter() 96 LightingColorFilter filter = new LightingColorFilter(Color.WHITE, Color.BLACK); in testGetColorAdd() 106 LightingColorFilter filter = new LightingColorFilter(Color.WHITE, Color.BLACK); in testGetColorMultiply() 107 ColorUtils.verifyColor(Color.WHITE, filter.getColorMultiply()); in testGetColorMultiply()
|
D | ComposeShaderTest.java | 135 assertEquals(Color.WHITE, bitmap.getPixel(0, 0)); in testXfermode() 165 assertEquals(Color.WHITE, bitmap.getPixel(1, 1)); in testChildLocalMatrix() 172 assertEquals(Color.WHITE, bitmap.getPixel(2, 2)); in testChildLocalMatrix() 180 assertEquals(Color.WHITE, bitmap.getPixel(2, 2)); in testChildLocalMatrix()
|
D | PaintFlagsDrawFilterTest.java | 121 int colors[] = new int [] { Color.WHITE, Color.BLACK }; in testPaintFlagsDrawFilter2() 174 if (color != Color.BLACK && color != Color.WHITE) { in verifyContainsNonBW() 190 assertTrue(color == Color.BLACK || color == Color.WHITE); in verifyContainsOnlyBlackAndWhite()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | ProgressBarTest.java | 448 Color.WHITE, tintedProgressBar.getProgressTintList().getDefaultColor()); in testProgressTint() 453 Color.WHITE, tintedProgressBar.getProgressBackgroundTintList().getDefaultColor()); in testProgressTint() 458 Color.WHITE, tintedProgressBar.getSecondaryProgressTintList().getDefaultColor()); in testProgressTint() 468 mProgressBar.setProgressBackgroundTintList(ColorStateList.valueOf(Color.WHITE)); in testProgressTint() 472 mProgressBar.setSecondaryProgressTintList(ColorStateList.valueOf(Color.WHITE)); in testProgressTint() 476 mProgressBar.setProgressTintList(ColorStateList.valueOf(Color.WHITE)); in testProgressTint() 478 verify(mockProgressDrawable, times(1)).setTintList(TestUtils.colorStateListOf(Color.WHITE)); in testProgressTint() 493 verify(mockProgressDrawable, times(1)).setTintList(TestUtils.colorStateListOf(Color.WHITE)); in testProgressTint() 502 Color.WHITE, tintedProgressBar.getProgressTintList().getDefaultColor()); in testProgressTintBlendMode() 507 Color.WHITE, tintedProgressBar.getProgressBackgroundTintList().getDefaultColor()); in testProgressTintBlendMode() [all …]
|
D | CompoundButtonTest.java | 363 Color.WHITE, tintedButton.getButtonTintList().getDefaultColor()); in testButtonTint() 373 mCompoundButton.setButtonTintList(ColorStateList.valueOf(Color.WHITE)); in testButtonTint() 375 verify(mockDrawable, times(1)).setTintList(TestUtils.colorStateListOf(Color.WHITE)); in testButtonTint() 381 verify(mockDrawable, times(1)).setTintList(TestUtils.colorStateListOf(Color.WHITE)); in testButtonTint() 390 Color.WHITE, tintedButton.getButtonTintList().getDefaultColor()); in testButtonTintBlendMode() 400 mCompoundButton.setButtonTintList(ColorStateList.valueOf(Color.WHITE)); in testButtonTintBlendMode() 402 verify(mockDrawable, times(1)).setTintList(TestUtils.colorStateListOf(Color.WHITE)); in testButtonTintBlendMode() 408 verify(mockDrawable, times(1)).setTintList(TestUtils.colorStateListOf(Color.WHITE)); in testButtonTintBlendMode()
|
D | AbsSeekBarTest.java | 312 Color.WHITE, inflatedView.getThumbTintList().getDefaultColor()); in testThumbTint() 319 verify(mockThumb, times(1)).setTintList(TestUtils.colorStateListOf(Color.WHITE)); in testThumbTint() 343 Color.WHITE, inflatedView.getThumbTintList().getDefaultColor()); in testThumbTintBlendMode() 351 .setTintList(TestUtils.colorStateListOf(Color.WHITE)); in testThumbTintBlendMode() 375 Color.WHITE, inflatedView.getTickMarkTintList().getDefaultColor()); in testTickMarkTint() 383 .setTintList(TestUtils.colorStateListOf(Color.WHITE)); in testTickMarkTint() 407 Color.WHITE, inflatedView.getTickMarkTintList().getDefaultColor()); in testTickMarkTintBlendMode() 415 .setTintList(TestUtils.colorStateListOf(Color.WHITE)); in testTickMarkTintBlendMode()
|
/cts/tests/app/src/android/app/cts/ |
D | WallpaperColorsTest.java | 43 colorList.add(Color.valueOf(Color.WHITE)); in getWallpaperColorsTest() 57 WallpaperColors colors2 = new WallpaperColors(Color.valueOf(Color.WHITE), null, null); in equalsTest() 69 WallpaperColors wallpaperColors = new WallpaperColors(Color.valueOf(Color.WHITE), in parcelTest()
|
/cts/tests/tests/appwidget/src/android/appwidget/cts/ |
D | DarkTextThemeTest.java | 147 verifyColor(mAppWidgetHostView, Color.WHITE); in testWidget_light() 181 verifyColor(listView.getChildAt(0), Color.WHITE); in testCollection_light() 182 verifyColor(listView.getChildAt(1), Color.WHITE); in testCollection_light() 183 verifyColor(listView.getChildAt(2), Color.WHITE); in testCollection_light()
|