Home
last modified time | relevance | path

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

123

/cts/tests/tests/renderscript/src/android/renderscript/cts/
DRsPackColorTo8888Test.java123 private byte[] rs_PackColorTo8888(Float3 color) { in rs_PackColorTo8888() argument
124 color.x *= 255.f; in rs_PackColorTo8888()
125 color.y *= 255.f; in rs_PackColorTo8888()
126 color.z *= 255.f; in rs_PackColorTo8888()
127 color.x += 0.5f; in rs_PackColorTo8888()
128 color.y += 0.5f; in rs_PackColorTo8888()
129 color.z += 0.5f; in rs_PackColorTo8888()
131 (byte) color.x, (byte) color.y, (byte) color.z, (byte) 255 in rs_PackColorTo8888()
136 private byte[] rs_PackColorTo8888(Float4 color) { in rs_PackColorTo8888() argument
137 color.x *= 255.f; in rs_PackColorTo8888()
[all …]
/cts/apps/CtsVerifier/lib/colorchecker/
Dimagetesthandler.cpp61 void ImageTestHandler::drawPoint(int row, int column, const Vec3i &color) { in drawPoint() argument
64 mDebugOutput[(row*mDebugWidth + column) * 4] = color.r(); in drawPoint()
65 mDebugOutput[(row*mDebugWidth + column) * 4+1] = color.g(); in drawPoint()
66 mDebugOutput[(row*mDebugWidth + column) * 4+2] = color.b(); in drawPoint()
72 void ImageTestHandler::drawPoint(const Vec2i &point, const Vec3i &color) { in drawPoint() argument
73 drawPoint((int) point.y(), (int) point.x(), color); in drawPoint()
77 void ImageTestHandler::drawLine(int angle, int radius, const Vec3i &color) { in drawLine() argument
78 const int r = color.r(); in drawLine()
79 const int g = color.g(); in drawLine()
80 const int b = color.b(); in drawLine()
[all …]
Dcolorcheckertest.cpp401 Vec3i color(verticalLines.size() * 20, 0, 0); in houghLineDetection() local
402 drawLine(line[0], line[1], color); in houghLineDetection()
405 Vec3i color(0, horizontalLines.size() * 20, 0); in houghLineDetection() local
406 drawLine(line[0], line[1], color); in houghLineDetection()
490 Vec3i* color = new Vec3i(); in findCheckerBoards() local
494 pointCenter, color)) { in findCheckerBoards()
496 mCandidateColors[j].push_back(color); in findCheckerBoards()
497 ALOGV("Color at (%d, %d) is (%d, %d, %d)", j, i,color->r(), color->g(), color->b()); in findCheckerBoards()
502 delete color; in findCheckerBoards()
540 Vec3i* color) { in verifyPointPair() argument
[all …]
/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/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/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/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()
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 mPresentation.doRendering(color); in render()
158 public void doRendering(final int color) { in doRendering() argument
162 mPresentation.doRendering(color); in doRendering()
186 public void doRendering(int color) { in doRendering() argument
187 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/tests/display/src/android/display/cts/
DVirtualDisplayTest.java189 final int color, final int windowType, final int windowFlags) { in assertDisplayCanShowPresentation() argument
192 mImageListener.getColor() != color); in assertDisplayCanShowPresentation()
201 color, windowType, windowFlags); in assertDisplayCanShowPresentation()
208 mImageListener.waitForColor(color, TIMEOUT)); in assertDisplayCanShowPresentation()
255 int color, int windowType, int windowFlags) { in TestPresentation() argument
257 mColor = color; in TestPresentation()
292 public boolean waitForColor(int color, long timeoutMillis) { in waitForColor() argument
295 while (mColor != color) { in waitForColor()
323 int color = scanImage(image); in onImageAvailable() local
325 if (mColor != color) { in onImageAvailable()
[all …]
/cts/tests/tests/textureview/src/android/textureview/cts/
DTextureViewTestActivity.java89 private final float[][] color = field in TextureViewTestActivity.GLRendererImpl
98 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/tests/tests/graphics/src/android/graphics/drawable/cts/
DGradientDrawableTest.java40 int[] color = new int[] {1, 2, 3}; in testConstructor() local
43 new GradientDrawable(GradientDrawable.Orientation.BL_TR, color); in testConstructor()
76 int color = 3; in testSetStroke1() local
81 gradientDrawable.setStroke(width, color, dashWidth, dashGap); in testSetStroke1()
84 color = -3; in testSetStroke1()
87 gradientDrawable.setStroke(width, color, dashWidth, dashGap); in testSetStroke1()
DTransitionDrawableTest.java196 private void assertColorFillRect(Bitmap bmp, int x, int y, int w, int h, int color) { in assertColorFillRect() argument
199 assertEquals(color, bmp.getPixel(i, j)); in assertColorFillRect()
204 private void assertColorNotFillRect(Bitmap bmp, int x, int y, int w, int h, int color) { in assertColorNotFillRect() argument
207 assertTrue(color != bmp.getPixel(i, j)); in assertColorNotFillRect()
/cts/tests/tests/opengl/src/android/opengl/cts/
DNativeRendererOneColorBufferTest.java61 public NativeRendererOneColorBufferTest(Context context, float[] color, CountDownLatch latch) { in NativeRendererOneColorBufferTest() argument
63 this.mVertexColor = color; in NativeRendererOneColorBufferTest()
DGL2JniLibOne.java26 public static native float[] draw(int category, int subcategory, float[] color); in draw() argument
/cts/tests/tests/holo/src/android/holo/cts/
DLayoutTestActivity.java245 int color; in saveDiffBitmap()
250 color = color1 == color2 ? color1 : Color.RED; in saveDiffBitmap()
252 color = Color.BLUE; in saveDiffBitmap()
254 color = Color.GREEN; in saveDiffBitmap()
256 color = Color.MAGENTA; in saveDiffBitmap()
258 diff.setPixel(i, j, color); in saveDiffBitmap()
/cts/tests/tests/opengl/libopengltest/
Dcolor_one.h28 float* drawColorOne(float color[]);
/cts/suite/cts/deviceTests/videoperf/src/com/android/cts/videoperf/
DCodecInfo.java57 for (int color : cap.colorFormats) { in getSupportedFormatInfo()
58 if (color == CodecCapabilities.COLOR_FormatYUV420SemiPlanar) { in getSupportedFormatInfo()
61 if (color == CodecCapabilities.COLOR_FormatYUV420Planar) { in getSupportedFormatInfo()

123