/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | RsPackColorTo8888Test.java | 122 private byte[] rs_PackColorTo8888(Float3 color) { in rs_PackColorTo8888() argument 123 color.x *= 255.f; in rs_PackColorTo8888() 124 color.y *= 255.f; in rs_PackColorTo8888() 125 color.z *= 255.f; in rs_PackColorTo8888() 126 color.x += 0.5f; in rs_PackColorTo8888() 127 color.y += 0.5f; in rs_PackColorTo8888() 128 color.z += 0.5f; in rs_PackColorTo8888() 130 (byte) color.x, (byte) color.y, (byte) color.z, (byte) 255 in rs_PackColorTo8888() 135 private byte[] rs_PackColorTo8888(Float4 color) { in rs_PackColorTo8888() argument 136 color.x *= 255.f; in rs_PackColorTo8888() [all …]
|
D | yuv.rs | 63 float4 color = (float)y * 0.003921569f; 67 color += fU * yuv_U_values; 68 color += fV * yuv_V_values; 69 color = clamp(color, 0.f, 1.f); 70 return color;
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/ |
D | ColorVerifier.java | 27 public ColorVerifier(@ColorInt int color) { in ColorVerifier() argument 28 this(color, DEFAULT_THRESHOLD); in ColorVerifier() 31 public ColorVerifier(@ColorInt int color, int colorTolerance) { in ColorVerifier() argument 33 mColor = color; in ColorVerifier() 36 public ColorVerifier(@ColorInt int color, int colorThreshold, float spatialTolerance) { in ColorVerifier() argument 38 mColor = color; in ColorVerifier()
|
/cts/tools/tradefed-host/res/report/ |
D | cts_result.css | 18 color:#000; 20 color:#333; 35 background-color: rgb(212, 233, 169); 43 background-color: #A5C639; 50 border-color: gray; 58 background-color: rgb(212, 233, 169); 65 background-color: #A5C639; 77 background-color: rgb(212, 233, 169); 80 border-color: #A5C639; 89 background-color: #A5C639; [all …]
|
/cts/tools/signature-tools/templates/ |
D | Styles.st | 6 a.default:link {color: blue; text-decoration: none} 7 a.default:hover {color: blue; text-decoration: underline;} 8 a.default:visited {color: blue; text-decoration: none} 11 a.discreet:link {color: black; text-decoration: none} 12 a.discreet:visited {color: black; text-decoration: none} 13 a.discreet:hover {color: black; text-decoration: underline;}
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/util/ |
D | CompareUtils.java | 9 public static boolean verifyPixelWithThreshold(int color, int expectedColor, int threshold) { in verifyPixelWithThreshold() argument 10 int diff = Math.abs(Color.red(color) - Color.red(expectedColor)) in verifyPixelWithThreshold() 11 + Math.abs(Color.green(color) - Color.green(expectedColor)) in verifyPixelWithThreshold() 12 + Math.abs(Color.blue(color) - Color.blue(expectedColor)); in verifyPixelWithThreshold()
|
/cts/suite/cts/deviceTests/browserbench/assets/octane/ |
D | raytrace.js | 162 distance : function(color) { argument 163 …var d = Math.abs(this.red - color.red) + Math.abs(this.green - color.green) + Math.abs(this.blue -… 199 color: null, property in Flog.RayTracer.Light 202 initialize : function(pos, color, intensity) { argument 204 this.color = color; 359 initialize : function(color, reflection, refraction, transparency, gloss) { argument 360 this.color = color; 368 return this.color; 451 info.color = this.material.getColor(0,0); 504 info.color = this.material.getColor(u,v); [all …]
|
/cts/suite/cts/deviceTests/browserbench/assets/octane/css/ |
D | bootstrap.css | 17 color: #1a1515; 26 background-color: #B8B7B6; 38 span.new {font-size:14px; color: #DE0000;} 43 color: #A2412D; 76 outline: 5px auto -webkit-focus-ring-color; 154 color: transparent; 156 background-color: transparent; 173 color: #5e3534; 174 background-color: #1a1515; 177 color: #E26128; [all …]
|
D | docs.css | 14 background-color: #fff; 29 color: #000; 122 background-color: #eeeeee; /* Old browsers */ 125 …background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f5f5f5), color-st… 152 color: #777; 153 background-color: #e9e9e9; 154 border-right-color: #ddd; 162 border-top-color: #777; 189 border-color: #d5d5d5; 232 color: #999; [all …]
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | SweepGradientTest.java | 93 int color; in checkColors() local 101 color = colors[0]; in checkColors() 104 color = colors[positions.length - 1]; in checkColors() 118 color = Color.argb(alpha, red, green, blue); in checkColors() 124 assertEquals(Color.alpha(color), Color.alpha(pixel), tolerance); in checkColors() 125 assertEquals(Color.red(color), Color.red(pixel), tolerance); in checkColors() 126 assertEquals(Color.green(color), Color.green(pixel), tolerance); in checkColors() 127 assertEquals(Color.blue(color), Color.blue(pixel), tolerance); in checkColors() 134 System.out.println(Integer.toHexString(color)); in checkColors()
|
D | BlurMaskFilterTest.java | 62 private void checkQuadrants(int color, Bitmap bitmap, int x, int y, int alphaTolerance) { in checkQuadrants() argument 66 checkColor(color, bitmap.getPixel(x, y), alphaTolerance); in checkQuadrants() 67 checkColor(color, bitmap.getPixel(right - x, y), alphaTolerance); in checkQuadrants() 68 checkColor(color, bitmap.getPixel(x, bottom - y), alphaTolerance); in checkQuadrants() 69 checkColor(color, bitmap.getPixel(right - x, bottom - y), alphaTolerance); in checkQuadrants()
|
D | PixelXorXfermodeTest.java | 59 private int alphaColor(int color, int alpha) { in alphaColor() argument 60 int red = Color.red(color); in alphaColor() 61 int green = Color.green(color); in alphaColor() 62 int blue = Color.blue(color); in alphaColor()
|
D | PaintFlagsDrawFilterTest.java | 167 int color = bitmap.getPixel(i, j); in assertContainsNonBW() local 168 if (color != Color.BLACK && color != Color.WHITE) { in assertContainsNonBW() 183 int color = bitmap.getPixel(i, j); in assertContainsOnlyBlackAndWhite() local 184 assertTrue(color == Color.BLACK || color == Color.WHITE); in assertContainsOnlyBlackAndWhite()
|
D | ShaderTest.java | 33 int[] color = new int[width * height]; in testAccessLocalMatrix() local 34 Bitmap bitmap = Bitmap.createBitmap(color, width, height, Bitmap.Config.RGB_565); in testAccessLocalMatrix()
|
D | EmbossMaskFilterTest.java | 83 long color = 0; in brightness() local 87 color += Color.red(pixel) + Color.green(pixel) + Color.blue(pixel); in brightness() 90 return color; in brightness()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | RemoteVirtualDisplayService.java | 67 int color = data.readInt(); in onCreate() 68 render(color); in onCreate() 103 private void render(int color) { in render() argument 105 Log.i(TAG, "render " + Integer.toHexString(color)); in render() 107 mPresentation.doRendering(color); in render() 160 public void doRendering(final int color) { in doRendering() argument 164 mPresentation.doRendering(color); in doRendering() 190 public void doRendering(int color) { in doRendering() argument 191 mImageView.setImageDrawable(new ColorDrawable(color)); in doRendering()
|
/cts/apps/CtsVerifier/include/colorchecker/ |
D | imagetesthandler.h | 41 void drawPoint(const Vec2i &point, const Vec3i &color); 42 void drawPoint(int row, int column, const Vec3i &color); 43 void drawLine(int angle, int radius, const Vec3i &color);
|
/cts/tests/leanbackjank/app/src/android/cts/jank/leanback/presenter/ |
D | CardPresenter.java | 41 sDefaultBackgroundColor = parent.getResources().getColor(R.color.default_background, null); in onCreateViewHolder() 43 parent.getResources().getColor(R.color.selected_background, null); in onCreateViewHolder() 61 int color = selected ? sSelectedBackgroundColor : sDefaultBackgroundColor; in updateCardBackgroundColor() local 64 view.setBackgroundColor(color); in updateCardBackgroundColor() 65 view.findViewById(R.id.info_field).setBackgroundColor(color); in updateCardBackgroundColor()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapcomparers/ |
D | MeanSquaredComparer.java | 96 private static float getColorSum(int color) { in getColorSum() argument 97 float red = Color.red(color) / 255.0f; in getColorSum() 98 float green = Color.green(color) / 255.0f; in getColorSum() 99 float blue = Color.blue(color) / 255.0f; in getColorSum()
|
/cts/tests/tests/display/src/android/display/cts/ |
D | VirtualDisplayTest.java | 230 final int color, final int windowType, final int windowFlags) { in assertDisplayCanShowPresentation() argument 233 mImageListener.getColor() != color); in assertDisplayCanShowPresentation() 242 color, windowType, windowFlags); in assertDisplayCanShowPresentation() 249 mImageListener.waitForColor(color, TIMEOUT)); in assertDisplayCanShowPresentation() 296 int color, int windowType, int windowFlags) { in TestPresentation() argument 298 mColor = color; in TestPresentation() 333 public boolean waitForColor(int color, long timeoutMillis) { in waitForColor() argument 336 while (mColor != color) { in waitForColor() 364 int color = scanImage(image); in onImageAvailable() local 366 if (mColor != color) { in onImageAvailable() [all …]
|
/cts/tests/tests/textureview/src/android/textureview/cts/ |
D | TextureViewTestActivity.java | 112 private final float[][] color = field in TextureViewTestActivity.GLRendererImpl 121 glClearColor(color[index][0], color[index][1], color[index][2], 1.0f); in drawFrame()
|
/cts/suite/cts/deviceTests/opengl/assets/fragment/ |
D | blur | 31 vec4 color = vec4(0.0, 0.0, 0.0, 0.0); 34 color += texture2D(u_Texture, coords) * weights[i]; 36 gl_FragColor = color;
|
/cts/suite/cts/deviceTests/videoperf/src/com/android/cts/videoperf/ |
D | CodecInfo.java | 72 for (int color : cap.colorFormats) { in getSupportedFormatInfo() 73 if (color == CodecCapabilities.COLOR_FormatYUV420SemiPlanar) { in getSupportedFormatInfo() 76 if (color == CodecCapabilities.COLOR_FormatYUV420Planar) { in getSupportedFormatInfo()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | BitmapFilterTests.java | 45 protected boolean verifyPixel(int x, int y, int color) { 46 int weight = Color.red(color) + Color.blue(color) + Color.green(color);
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ContextTest.java | 185 final ColorStateList colorStateList = mContext.getColorStateList(R.color.color2); in testGetColorStateList() 187 final int focusColor = colorStateList.getColorForState(focusedState, R.color.failColor); in testGetColorStateList() 199 final int color = mContext.getColor(R.color.color2); in testGetColor() local 200 assertEquals(0xffffff00, color); in testGetColor()
|