/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | SweepGradientTest.java | 68 final int[] colors = new int[] { Color.GREEN, Color.RED }; in test2Colors() local 70 Shader shader = new SweepGradient(CENTER, CENTER, colors[0], colors[1]); in test2Colors() 73 verifyColors(colors, positions, TOLERANCE); in test2Colors() 78 final int[] colors = new int[] { Color.GREEN, Color.RED, Color.BLUE }; in testColorArray() local 80 Shader shader = new SweepGradient(CENTER, CENTER, colors, positions); in testColorArray() 84 verifyColors(colors, positions, TOLERANCE); in testColorArray() 89 final int[] colors = new int[] { Color.GREEN, Color.RED, Color.BLUE, Color.GREEN }; in testMultiColor() local 92 Shader shader = new SweepGradient(CENTER, CENTER, colors, positions); in testMultiColor() 96 verifyColors(colors, positions, TOLERANCE); in testMultiColor() 99 private void verifyColors(int[] colors, float[] positions, int tolerance) { in verifyColors() argument [all …]
|
D | LinearGradientTest.java | 86 long[] colors = new long[] { blue, green, red }; 89 LinearGradient lg = new LinearGradient(0, 0, 0, 40, colors, positions, TileMode.CLAMP); 162 int[] colors = null; 163 new LinearGradient(0.5f, 0, 1.5f, 0, colors, null, TileMode.CLAMP); 168 long[] colors = null; 169 new LinearGradient(0.5f, 0, 1.5f, 0, colors, null, TileMode.CLAMP); 194 long[] colors = new long[2]; 195 colors[0] = Color.pack(Color.BLUE); 196 colors[1] = Color.pack(.5f, .5f, .5f, 1.0f, ColorSpace.get(ColorSpace.Named.DISPLAY_P3)); 197 new LinearGradient(0.5f, 0, 1.5f, 0, colors, null, TileMode.CLAMP); [all …]
|
D | RadialGradientTest.java | 140 int[] colors = null; in testNullColorInts() local 141 new RadialGradient(0.5f, 0.5f, 1, colors, null, TileMode.CLAMP); in testNullColorInts() 146 long[] colors = null; in testNullColorLongs() local 147 new RadialGradient(0.5f, 0.5f, 1, colors, null, TileMode.CLAMP); in testNullColorLongs() 172 long[] colors = new long[2]; in testMismatchColorLongs() local 173 colors[0] = Color.pack(Color.BLUE); in testMismatchColorLongs() 174 colors[1] = Color.pack(.5f, .5f, .5f, 1.0f, ColorSpace.get(ColorSpace.Named.DISPLAY_P3)); in testMismatchColorLongs() 175 new RadialGradient(0.5f, 0.5f, 1, colors, null, TileMode.CLAMP); in testMismatchColorLongs() 197 long[] colors = new long[2]; in testInvalidColorLongs() local 198 colors[0] = -1L; in testInvalidColorLongs() [all …]
|
/cts/tests/app/WallpaperTest/src/android/app/cts/wallpapers/ |
D | WallpaperColorsTest.java | 47 WallpaperColors colors = new WallpaperColors(colorList.get(0), colorList.get(1), in getWallpaperColorsTest() local 49 Assert.assertSame(colors.getPrimaryColor(), colorList.get(0)); in getWallpaperColorsTest() 50 Assert.assertSame(colors.getSecondaryColor(), colorList.get(1)); in getWallpaperColorsTest() 51 Assert.assertSame(colors.getTertiaryColor(), colorList.get(2)); in getWallpaperColorsTest() 87 WallpaperColors colors = WallpaperColors.fromBitmap(bmp); in fromBitmapTest() local 88 Assert.assertNotNull(colors.getPrimaryColor()); in fromBitmapTest() 89 Assert.assertNull(colors.getSecondaryColor()); in fromBitmapTest() 97 WallpaperColors colors = WallpaperColors.fromDrawable(drawable); in fromDrawableTest() local 98 Assert.assertNotNull(colors.getPrimaryColor()); in fromDrawableTest() 99 Assert.assertNull(colors.getSecondaryColor()); in fromDrawableTest()
|
/cts/tests/surfacecontrol/surfacevalidator/src/android/view/cts/surfacevalidator/ |
D | MultiFramePixelChecker.java | 31 public MultiFramePixelChecker(int[] colors) { in MultiFramePixelChecker() argument 32 mPixelColors = new PixelColor[colors.length]; in MultiFramePixelChecker() 33 for (int i = 0; i < colors.length; i++) { in MultiFramePixelChecker() 34 mPixelColors[i] = new PixelColor(colors[i]); in MultiFramePixelChecker()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | BitmapBlendModeTest.java | 50 int[] colors = {Color.RED, Color.RED, Color.RED, Color.RED, Color.RED}; in testClearBlendMode() local 55 .runWithVerifier(new SamplePointVerifier(SAMPLE_POINTS, colors)); in testClearBlendMode() 64 int[] colors = {Color.WHITE, Color.WHITE, Color.WHITE, Color.WHITE, Color.RED}; in testDstOutBlendMode() local 69 .runWithVerifier(new SamplePointVerifier(SAMPLE_POINTS, colors)); in testDstOutBlendMode()
|
D | CanvasTests.java | 105 int[] colors = { in testDrawDoubleRoundRect() local 131 .runWithVerifier(new SamplePointVerifier(testPoints, colors)); in testDrawDoubleRoundRect() 146 int[] colors = { in testDrawDoubleRoundRectWithRadii() local 185 .runWithVerifier(new SamplePointVerifier(testPoints, colors)); in testDrawDoubleRoundRectWithRadii() 201 int[] colors = { in testDrawWithConcatenatedMatrix44() local 227 .runWithVerifier(new SamplePointVerifier(testPoints, colors)); in testDrawWithConcatenatedMatrix44() 589 final int[] colors = new int[10]; in testDrawVerticesTooFewVerts() local 597 verts, 8, texs, 0, colors, 0, indices, in testDrawVerticesTooFewVerts() 605 final int[] colors = new int[10]; in testDrawVerticesTooFewTexs() local 613 verts, 0, texs, 30, colors, 0, indices, in testDrawVerticesTooFewTexs() [all …]
|
D | PaintTests.kt | 185 val colors = intArrayOf(Color.BLACK, Color.BLACK, Color.BLACK) in <lambda>() constant 187 null, 0, colors, 0, null, 0, 0, paint) in <lambda>() 195 val colors = intArrayOf(Color.BLUE, Color.GREEN, Color.YELLOW) in <lambda>() constant 196 bitmapPaint.shader = LinearGradient(0f, 0f, 400f, 400f, colors, null, in <lambda>()
|
/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() local 56 .runWithVerifier(new SamplePointVerifier(SAMPLE_POINTS, colors)); in testClearBlendMode() 65 int[] colors = {Color.WHITE, Color.WHITE, Color.WHITE, Color.WHITE, Color.RED}; in testDstOutBlendMode() local 70 .runWithVerifier(new SamplePointVerifier(SAMPLE_POINTS, colors)); in testDstOutBlendMode()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | GradientDrawableTest.java | 356 int[] colors; in testSetColors() local 358 colors = new int[] { Color.RED }; in testSetColors() 359 gradientDrawable.setColors(colors); in testSetColors() 360 assertArrayEquals("Color was set to " + Arrays.toString(colors), in testSetColors() 361 colors, gradientDrawable.getColors()); in testSetColors() 363 colors = null; in testSetColors() 364 gradientDrawable.setColors(colors); in testSetColors() 365 assertArrayEquals("Color was set to " + Arrays.toString(colors), in testSetColors() 366 colors, gradientDrawable.getColors()); in testSetColors() 710 int[] colors = drawable.getColors(); in testInflationWithThemeAndNonThemeResources() local [all …]
|
/cts/tests/tests/text/src/android/text/cts/ |
D | HtmlTest.java | 168 ForegroundColorSpan[] colors = s.getSpans(0, s.length(), type); in testColor() local 169 if (colors.length == 0) { in testColor() 172 int actualColor = colors[0].getForegroundColor(); in testColor() 203 ForegroundColorSpan[] colors = s.getSpans(0, s.length(), type); in testColorInvalid() local 204 if (colors.length > 0) { in testColorInvalid() 206 + Integer.toHexString(colors[0].getForegroundColor())); in testColorInvalid() 208 assertEquals(0, colors.length); in testColorInvalid() 217 ForegroundColorSpan[] colors = s.getSpans(0, s.length(), type); in testUseCssColor() local 218 assertEquals(0xFF008000, colors[0].getForegroundColor()); in testUseCssColor() 221 colors = s.getSpans(0, s.length(), type); in testUseCssColor() [all …]
|
/cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/ |
D | ASurfaceControlBackPressureTest.java | 219 int[] colors = new int[]{Color.RED, Color.GREEN, Color.BLUE}; in testSurfaceTransaction_setEnableBackPressure() local 228 DEFAULT_LAYOUT_HEIGHT, colors[i % colors.length]); in testSurfaceTransaction_setEnableBackPressure() 234 MultiFramePixelChecker pixelChecker = new MultiFramePixelChecker(colors) { in testSurfaceTransaction_setEnableBackPressure() 249 int[] colors = new int[]{Color.RED, Color.GREEN, Color.BLUE}; in testSurfaceTransaction_defaultBackPressureDisabled() local 258 DEFAULT_LAYOUT_HEIGHT, colors[i % colors.length]); in testSurfaceTransaction_defaultBackPressureDisabled() 264 MultiFramePixelChecker pixelChecker = new MultiFramePixelChecker(colors) { in testSurfaceTransaction_defaultBackPressureDisabled()
|
/cts/apps/CameraITS/utils/ |
D | noise_model_constants.py | 17 import matplotlib.colors 93 COLOR_NORM = matplotlib.colors.Normalize(vmin=0, vmax=12)
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/cube/ |
D | Cube.java | 44 int colors[] = { in Cube() local 78 ByteBuffer cbb = ByteBuffer.allocateDirect(colors.length*4); in Cube() 81 mColorBuffer.put(colors); in Cube()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | MenuItemTest.java | 94 ColorStateList colors = ColorStateList.valueOf(Color.RED); in testAccessIconTint() local 96 firstItem.setIconTintList(colors); in testAccessIconTint() 100 assertSame(colors, firstItem.getIconTintList()); in testAccessIconTint() 106 assertSame(colors, firstItem.getIconTintList()); in testAccessIconTint()
|
/cts/tests/tests/content/src/android/content/res/cts/ |
D | ColorStateListTest.java | 53 final int[] colors = new int[]{Color.RED, Color.BLUE}; in testConstructor() local 54 final ColorStateList c = new ColorStateList(state, colors); in testConstructor() 106 final int[] colors = new int[]{Color.RED, Color.BLUE}; in testWithAlpha() local 107 final ColorStateList c = new ColorStateList(state, colors); in testWithAlpha() 119 final int[] colors = new int[]{Color.RED, Color.BLUE}; in testWithLStar() local 120 final ColorStateList c = new ColorStateList(state, colors); in testWithLStar()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | SwitchTest.java | 109 ColorStateList colors = ColorStateList.valueOf(Color.RED); in testAccessThumbTint() local 110 mSwitch.setThumbTintList(colors); in testAccessThumbTint() 113 assertSame(colors, mSwitch.getThumbTintList()); in testAccessThumbTint() 126 ColorStateList colors = ColorStateList.valueOf(Color.RED); in testAccessThumbTintBlendMode() local 127 mSwitch.setThumbTintList(colors); in testAccessThumbTintBlendMode() 130 assertSame(colors, mSwitch.getThumbTintList()); in testAccessThumbTintBlendMode() 143 ColorStateList colors = ColorStateList.valueOf(Color.RED); in testAccessTrackTint() local 144 mSwitch.setTrackTintList(colors); in testAccessTrackTint() 147 assertSame(colors, mSwitch.getTrackTintList()); in testAccessTrackTint() 160 ColorStateList colors = ColorStateList.valueOf(Color.RED); in testAccessTrackTintBlendMode() local [all …]
|
/cts/hostsidetests/appsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/ |
D | TestThemeHelper.java | 101 final int[] colors = getThemeColors(themeColors); in assertThemeValues() local 103 assertThat(mCustomColor).isEqualTo(colors[0]); in assertThemeValues() 104 assertThat(mNavigationBarColor).isEqualTo(colors[1]); in assertThemeValues() 105 assertThat(mStatusBarColor).isEqualTo(colors[2]); in assertThemeValues()
|
/cts/tests/mediapc/src/android/mediapc/cts/ |
D | TextureRender.java | 278 int[] colors = new int[pixelCount]; in saveFrame() local 279 buf.asIntBuffer().get(colors); in saveFrame() 281 int c = colors[i]; in saveFrame() 282 colors[i] = (c & 0xff00ff00) | ((c & 0x00ff0000) >> 16) | ((c & 0x000000ff) << 16); in saveFrame() 288 Bitmap bmp = Bitmap.createBitmap(colors, width, height, Bitmap.Config.ARGB_8888); in saveFrame()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | CtsMediaTextureRender.java | 282 int[] colors = new int[pixelCount]; in saveFrame() local 283 buf.asIntBuffer().get(colors); in saveFrame() 285 int c = colors[i]; in saveFrame() 286 colors[i] = (c & 0xff00ff00) | ((c & 0x00ff0000) >> 16) | ((c & 0x000000ff) << 16); in saveFrame() 292 Bitmap bmp = Bitmap.createBitmap(colors, width, height, Bitmap.Config.ARGB_8888); in saveFrame()
|
/cts/suite/cts/utils/ |
D | grapher.py | 29 colors = { variable 68 clr = colors.get(name, "#%06X" % (hash(name) % 0xFFFFFF))
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | OrganizationInfoTest.java | 36 final int[] colors = { in testSetOrganizationColor() local 45 for (int color : colors) { in testSetOrganizationColor()
|
/cts/tests/tests/graphics/assets/shaders/ |
D | tri.frag | 23 vec3 colors; 26 uFragColor = vec4(colorData.colors, 1.0);
|
/cts/tests/tests/media/common/src/android/media/cts/ |
D | TextureRender.java | 289 int[] colors = new int[pixelCount]; in saveFrame() local 290 buf.asIntBuffer().get(colors); in saveFrame() 292 int c = colors[i]; in saveFrame() 293 colors[i] = (c & 0xff00ff00) | ((c & 0x00ff0000) >> 16) | ((c & 0x000000ff) << 16); in saveFrame() 299 Bitmap bmp = Bitmap.createBitmap(colors, width, height, Bitmap.Config.ARGB_8888); in saveFrame()
|
/cts/tests/media/common/src/android/mediav2/common/cts/ |
D | TextureRender.java | 312 int[] colors = new int[pixelCount]; in saveFrame() local 313 buf.asIntBuffer().get(colors); in saveFrame() 315 int c = colors[i]; in saveFrame() 316 colors[i] = (c & 0xff00ff00) | ((c & 0x00ff0000) >> 16) | ((c & 0x000000ff) << 16); in saveFrame() 322 Bitmap bmp = Bitmap.createBitmap(colors, width, height, Bitmap.Config.ARGB_8888); in saveFrame()
|