Home
last modified time | relevance | path

Searched refs:color (Results 1 – 25 of 72) sorted by relevance

123

/cts/tests/tests/renderscript/src/android/renderscript/cts/
DRsPackColorTo8888Test.java122 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 …]
Dyuv.rs63 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/
DColorVerifier.java27 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/
Dcts_result.css18 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/
DStyles.st6 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/
DCompareUtils.java9 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/
Draytrace.js162 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/
Dbootstrap.css17 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 …]
Ddocs.css14 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/
DSweepGradientTest.java93 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()
DBlurMaskFilterTest.java62 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()
DPixelXorXfermodeTest.java59 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()
DPaintFlagsDrawFilterTest.java167 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()
DShaderTest.java33 int[] color = new int[width * height]; in testAccessLocalMatrix() local
34 Bitmap bitmap = Bitmap.createBitmap(color, width, height, Bitmap.Config.RGB_565); in testAccessLocalMatrix()
DEmbossMaskFilterTest.java83 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/
DRemoteVirtualDisplayService.java67 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/
Dimagetesthandler.h41 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/
DCardPresenter.java41 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/
DMeanSquaredComparer.java96 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/
DVirtualDisplayTest.java230 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/
DTextureViewTestActivity.java112 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/
Dblur31 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/
DCodecInfo.java72 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/
DBitmapFilterTests.java45 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/
DContextTest.java185 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()

123