HomeSort by relevance Sort by last modified time
    Searched refs:expectedColor (Results 1 - 23 of 23) sorted by null

  /cts/tests/tests/uirendering/src/android/uirendering/cts/util/
CompareUtils.java 9 public static boolean verifyPixelWithThreshold(int color, int expectedColor, int threshold) {
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));
  /frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/
TileColorPickerTest.java 48 final int expectedColor = mTintColorStateList.getColorForState(
51 assertEquals(expectedColor, color);
57 final int expectedColor = mTintColorStateList.getColorForState(
60 assertEquals(expectedColor, color);
66 final int expectedColor = mTintColorStateList.getColorForState(
69 assertEquals(expectedColor, color);
  /cts/tests/tests/opengl/src/android/opengl/cts/
ColorBufferTest.java 51 float[] expectedColor = {r, g, b, a};
59 compare(expectedColor, actualColor);
68 float[] expectedColor = {r, g, b, a};
77 compare(expectedColor, actualColor);
87 float[] expectedColor = {r, g, b, a};
96 compare(expectedColor, actualColor);
106 float[] expectedColor = {r, g, b, a};
115 compare(expectedColor, actualColor);
125 float[] expectedColor = {r, g, b, a};
134 compare(expectedColor, actualColor)
    [all...]
NativeColorBufferTest.java 46 float[] expectedColor = {r, g, b, a};
54 compare(expectedColor, actualColor);
63 float[] expectedColor = {r, g, b, a};
72 compare(expectedColor, actualColor);
82 float[] expectedColor = {r, g, b, a};
91 compare(expectedColor, actualColor);
101 float[] expectedColor = {r, g, b, a};
110 compare(expectedColor, actualColor);
120 float[] expectedColor = {r, g, b, a};
129 compare(expectedColor, actualColor)
    [all...]
  /external/skia/tests/
ColorFilterTest.cpp 78 SkColor expectedColor = color;
86 if (c != expectedColor) {
87 expectedColor = 0;
94 // SkDebugf("--- got [%d %x] expected [%d %x]\n", m, c, expectedMode, expectedColor);
96 REPORTER_ASSERT(reporter, c == expectedColor);
106 REPORTER_ASSERT(reporter, c2 == expectedColor);
ApplyGammaTest.cpp 40 uint32_t expectedColor = src & 0xff000000;
75 expectedColor |= expectedComponent << (c * 8);
78 *expected = expectedColor;
  /frameworks/support/v7/appcompat/tests/src/android/support/v7/widget/
AppCompatImageViewTest.java 41 final int expectedColor = mContainer.getResources().getColor(R.color.test_blue);
43 imageViewInteraction.check(matches(TestUtilsMatchers.drawable(expectedColor)));
  /cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
ShadowTests.java 40 protected boolean verifyPixel(int color, int expectedColor) {
41 return super.verifyPixel(color, expectedColor)
LayerTests.java 63 final int expectedColor = Color.rgb(255, 191, 191);
74 .runWithVerifier(new ColorVerifier(expectedColor));
80 final int expectedColor = Color.rgb(255, 128, 128);
88 .runWithVerifier(new ColorVerifier(expectedColor));
94 final int expectedColor = Color.rgb(255, 128, 128);
102 .runWithVerifier(new ColorVerifier(expectedColor));
110 final int expectedColor = Color.rgb(54, 54, 54);
119 .runWithVerifier(new ColorVerifier(expectedColor));
127 final int expectedColor = Color.WHITE;
141 .runWithVerifier(new ColorVerifier(expectedColor));
    [all...]
  /cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/
PerPixelBitmapVerifier.java 90 int expectedColor = getExpectedColor(x, y);
91 return CompareUtils.verifyPixelWithThreshold(observedColor, expectedColor, mColorTolerance);
SamplePointVerifier.java 74 protected boolean verifyPixel(int color, int expectedColor) {
75 return CompareUtils.verifyPixelWithThreshold(color, expectedColor, mTolerance);
  /cts/tests/tests/assist/service/src/android/voiceinteraction/service/
MainInteractionSession.java 180 int expectedColor = 0;
184 expectedColor += 1;
190 double colorRatio = (double) expectedColor / (expectedColor + wrongColor);
  /frameworks/support/v7/appcompat/tests/src/android/support/v7/testutils/
TestUtils.java 246 private static boolean areColorsTheSameWithTolerance(@ColorInt int expectedColor,
253 int expectedAlpha = Color.alpha(expectedColor);
254 int expectedRed = Color.red(expectedColor);
255 int expectedGreen = Color.green(expectedColor);
256 int expectedBlue = Color.blue(expectedColor);
  /cts/tests/tests/graphics/src/android/graphics/cts/
BitmapColorSpaceTest.java 345 @ColorInt int newColor, @ColorInt int expectedColor) {
355 verifySetPixel(b, newColor, expectedColor);
358 verifySetPixel(b, newColor, expectedColor);
361 verifySetPixel(b, newColor, expectedColor);
368 @ColorInt int newColor, @ColorInt int expectedColor) {
375 assertEquals(expectedColor, dst.asIntBuffer().get());
385 @ColorInt int newColor, @ColorInt int expectedColor) {
395 verifySetPixels(b, newColor, expectedColor);
398 verifySetPixels(b, newColor, expectedColor);
401 verifySetPixels(b, newColor, expectedColor);
    [all...]
  /external/deqp/modules/gles2/functional/
es2fShaderFragDataTests.cpp 64 static bool compareSingleColor (tcu::TestLog& log, const tcu::Surface& surface, tcu::RGBA expectedColor, tcu::RGBA threshold)
69 log << TestLog::Message << "Expecting " << expectedColor << " with threshold " << threshold << TestLog::EndMessage;
76 const bool isOk = compareThreshold(resultColor, expectedColor, threshold);
  /cts/tests/tests/widget/src/android/widget/cts/util/
TestUtils.java 288 private static boolean areColorsTheSameWithTolerance(@ColorInt int expectedColor,
295 int expectedAlpha = Color.alpha(expectedColor);
296 int expectedRed = Color.red(expectedColor);
297 int expectedGreen = Color.green(expectedColor);
298 int expectedBlue = Color.blue(expectedColor);
  /external/deqp/modules/gles3/functional/
es3fShaderFragDataTests.cpp 64 static bool compareSingleColor (tcu::TestLog& log, const tcu::Surface& surface, tcu::RGBA expectedColor, tcu::RGBA threshold)
69 log << TestLog::Message << "Expecting " << expectedColor << " with threshold " << threshold << TestLog::EndMessage;
76 const bool isOk = compareThreshold(resultColor, expectedColor, threshold);
  /frameworks/support/v7/appcompat/tests/src/android/support/v7/app/
LayoutInflaterFactoryTestCase.java 217 final int expectedColor = view.getResources().getColor(R.color.test_magenta);
223 expectedColor, colorAccentValue.data);
  /frameworks/base/libs/hwui/tests/unit/
BakedOpDispatcherTests.cpp 261 uint32_t expectedColor = Caches::getInstance().getOverdrawColor(glopCount - 2);
262 ASSERT_EQ(makeFloatColor(expectedColor), glop.fill.color);
  /frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
TextViewBindingAdapterTest.java 315 int expectedColor = mBinder.getRoot().getResources().getColor(
317 assertEquals(expectedColor, textView.getCurrentTextColor());
  /external/deqp/external/vulkancts/modules/vulkan/dynamic_state/
vktDynamicStateDSTests.cpp 534 const deUint32 expectedValue, const tcu::Vec4 expectedColor)
541 m_expectedColor = expectedColor;
697 const deUint32 expectedValue, const tcu::Vec4 expectedColor)
702 , m_expectedColor (expectedColor)
    [all...]
  /external/deqp/modules/gles31/functional/
es31fLayoutBindingTests.cpp 327 bool drawAndVerifyResult (const Vec4& expectedColor);
626 bool LayoutBindingRenderCase::drawAndVerifyResult (const Vec4& expectedColor)
651 tcu::clear(reference.getAccess(), expectedColor);
652 m_testCtx.getLog() << tcu::TestLog::Message << "Verifying output image, fragment output color is " << expectedColor << tcu::TestLog::EndMessage;
    [all...]
  /cts/tests/tests/provider/src/android/provider/cts/
CalendarTest.java     [all...]

Completed in 1012 milliseconds