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

123

/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/
H A DColorVerifier.java21 * Checks to see if a bitmap is entirely a single color
27 public ColorVerifier(@ColorInt int color) { argument
28 this(color, DEFAULT_THRESHOLD);
31 public ColorVerifier(@ColorInt int color, int colorTolerance) { argument
33 mColor = color;
36 public ColorVerifier(@ColorInt int color, int colorThreshold, float spatialTolerance) { argument
38 mColor = color;
/cts/tests/tests/uirendering/src/android/uirendering/cts/util/
H A DCompareUtils.java9 public static boolean verifyPixelWithThreshold(int color, int expectedColor, int threshold) { argument
10 int diff = Math.abs(Color.red(color) - Color.red(expectedColor))
11 + Math.abs(Color.green(color) - Color.green(expectedColor))
12 + Math.abs(Color.blue(color) - Color.blue(expectedColor));
19 * @return True if the color is close enough to be a gray scale color.
21 public static boolean verifyPixelGrayScale(int color, int threshold) { argument
22 int average = Color.red(color) + Color.green(color) + Color.blue(color);
[all...]
/cts/tests/tests/renderscript/src/android/renderscript/cts/
H A DRsPackColorTo8888Test.java122 private byte[] rs_PackColorTo8888(Float3 color) { argument
123 color.x *= 255.f;
124 color.y *= 255.f;
125 color.z *= 255.f;
126 color.x += 0.5f;
127 color.y += 0.5f;
128 color.z += 0.5f;
130 (byte) color.x, (byte) color.y, (byte) color
135 rs_PackColorTo8888(Float4 color) argument
[all...]
H A 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/apps/CtsVerifier/include/colorchecker/
H A 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/common/host-side/tradefed/res/report/
H A Dcompatibility_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
[all...]
/cts/tests/tests/opengl/src/android/opengl/cts/
H A DGL2JniLibOne.java26 public static native float[] draw(int category, int subcategory, float[] color); argument
H A DNativeRendererOneColorBufferTest.java61 public NativeRendererOneColorBufferTest(Context context, float[] color, CountDownLatch latch) { argument
63 this.mVertexColor = color;
/cts/tests/openglperf2/assets/fragment/
H A 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/tools/tradefed-host/res/report/
H A 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
[all...]
/cts/hostsidetests/theme/src/android/theme/cts/
H A DComparisonTask.java77 private static int getAlphaScaledBlue(final int color) { argument
78 return (color & 0x000000FF) * getAlpha(color) / 255;
81 private static int getAlphaScaledGreen(final int color) { argument
82 return ((color & 0x0000FF00) >> 8) * getAlpha(color) / 255;
85 private static int getAlphaScaledRed(final int color) { argument
86 return ((color & 0x00FF0000) >> 16) * getAlpha(color) / 255;
89 private static int getAlpha(final int color) { argument
[all...]
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
H A DOrganizationInfoTest.java28 assertEquals("Default color returned: " + Integer.toHexString(defaultColor),
45 for (int color : colors) {
46 mDevicePolicyManager.setOrganizationColor(ADMIN_RECEIVER_COMPONENT, color);
47 assertEquals(color | 0xFF000000 /* opacity always enforced to 100% */,
51 // Put the organization color back how it was.
64 int color = mDevicePolicyManager.getOrganizationColor(null);
/cts/tests/tests/opengl/libopengltest/
H A Dcolor_one.h28 float* drawColorOne(float color[]);
/cts/tests/tests/view/src/android/view/cts/
H A DTextureViewTest.java80 int color;
81 color = waitForChange(center, Color.WHITE);
82 assertEquals(Color.GREEN, color);
86 color = waitForChange(center, color);
87 assertEquals(Color.BLUE, color);
97 private void waitForColor(Point point, int color) argument
101 if (pixel == color) {
109 private int waitForChange(Point point, int color) argument
113 if (pixel != color) {
[all...]
/cts/tests/tests/graphics/src/android/graphics/cts/
H A DShaderTest.java33 int[] color = new int[width * height];
34 Bitmap bitmap = Bitmap.createBitmap(color, width, height, Bitmap.Config.RGB_565);
H A DBlurMaskFilterTest.java49 // check that color didn't bleed (much) beyond radius
52 // check that color didn't wash out (much) in the center
55 // check blur zone, color should remain, alpha varies
62 private void checkQuadrants(int color, Bitmap bitmap, int x, int y, int alphaTolerance) { argument
66 checkColor(color, bitmap.getPixel(x, y), alphaTolerance);
67 checkColor(color, bitmap.getPixel(right - x, y), alphaTolerance);
68 checkColor(color, bitmap.getPixel(x, bottom - y), alphaTolerance);
69 checkColor(color, bitmap.getPixel(right - x, bottom - y), alphaTolerance);
H A DSweepGradientTest.java93 int color;
100 // use start color
101 color = colors[0];
103 // clamp to end color
104 color = colors[positions.length - 1];
107 int i1 = idx - 1; // index of next lower color and position
108 int i2 = idx; // index of next higher color and position
118 color = Color.argb(alpha, red, green, blue);
124 assertEquals(Color.alpha(color), Color.alpha(pixel), tolerance);
125 assertEquals(Color.red(color), Colo
[all...]
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
H A DShadowTests.java38 protected boolean verifyPixel(int color, int expectedColor) { argument
39 return super.verifyPixel(color, expectedColor)
40 && CompareUtils.verifyPixelGrayScale(color, 1);
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/presenter/
H A DCardPresenter.java41 sDefaultBackgroundColor = parent.getResources().getColor(R.color.default_background, null);
43 parent.getResources().getColor(R.color.selected_background, null);
61 int color = selected ? sSelectedBackgroundColor : sDefaultBackgroundColor;
64 view.setBackgroundColor(color);
65 view.findViewById(R.id.info_field).setBackgroundColor(color);
/cts/tests/video/src/android/video/cts/
H A DCodecInfo.java68 Log.w(TAG, "no supported color format");
74 for (int color : cap.colorFormats) {
75 if (color == CodecCapabilities.COLOR_FormatYUV420SemiPlanar) {
78 if (color == CodecCapabilities.COLOR_FormatYUV420Planar) {
/cts/tests/tests/media/src/android/media/cts/
H A DRemoteVirtualDisplayService.java45 /** argument: int color, return none */
67 int color = data.readInt();
68 render(color);
103 private void render(int color) { argument
105 Log.i(TAG, "render " + Integer.toHexString(color));
107 mPresentation.doRendering(color);
160 public void doRendering(final int color) { argument
164 mPresentation.doRendering(color);
190 public void doRendering(int color) { argument
191 mImageView.setImageDrawable(new ColorDrawable(color));
[all...]
/cts/tests/tests/textureview/src/android/textureview/cts/
H A DTextureViewTestActivity.java112 private final float[][] color = field in class:TextureViewTestActivity.GLRendererImpl
121 glClearColor(color[index][0], color[index][1], color[index][2], 1.0f);
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapcomparers/
H A DMeanSquaredComparer.java96 private static float getColorSum(int color) { argument
97 float red = Color.red(color) / 255.0f;
98 float green = Color.green(color) / 255.0f;
99 float blue = Color.blue(color) / 255.0f;
/cts/tests/tests/widget/src/android/widget/cts/util/
H A DTestUtils.java103 * Checks whether all the pixels in the specified View are of the same specified color.
105 * In case there is a color mismatch, the behavior of this method depends on the
111 @ColorInt int color, int allowedComponentVariance, boolean throwExceptionIfFails) {
122 color, allowedComponentVariance, throwExceptionIfFails);
129 * Checks whether all the pixels in the specified drawable are of the same specified color.
131 * In case there is a color mismatch, the behavior of this method depends on the
137 int drawableWidth, int drawableHeight, boolean callSetBounds, @ColorInt int color,
152 assertAllPixelsOfColor(failMessagePrefix, bitmap, drawableWidth, drawableHeight, color,
160 * Checks whether all the pixels in the specified bitmap are of the same specified color.
162 * In case there is a color mismatc
110 assertAllPixelsOfColor(String failMessagePrefix, @NonNull View view, @ColorInt int color, int allowedComponentVariance, boolean throwExceptionIfFails) argument
136 assertAllPixelsOfColor(String failMessagePrefix, @NonNull Drawable drawable, int drawableWidth, int drawableHeight, boolean callSetBounds, @ColorInt int color, int allowedComponentVariance, boolean throwExceptionIfFails) argument
167 assertAllPixelsOfColor(String failMessagePrefix, @NonNull Bitmap bitmap, int bitmapWidth, int bitmapHeight, @ColorInt int color, int allowedComponentVariance, boolean throwExceptionIfFails) argument
[all...]
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
H A DGradientDrawableTest.java49 int[] color = new int[] {1, 2, 3};
52 new GradientDrawable(GradientDrawable.Orientation.BL_TR, color);
133 private void helpTestSetStroke(int width, int color) { argument
135 gradientDrawable.setStroke(width, color);
146 private void helpTestSetStroke_WidthGap(int width, int color, argument
149 gradientDrawable.setStroke(width, color, dashWidth, dashGap);
291 int color;
293 color = Color.RED;
294 gradientDrawable.setColor(color);
295 assertEquals("Color was set to " + color, colo
[all...]

Completed in 2015 milliseconds

123