/third_party/flutter/skia/tests/ |
D | ColorSpaceTest.cpp | 26 static bool almost_equal(float a, float b) { in almost_equal() function 41 REPORTER_ASSERT(r, almost_equal(ref[i][0], mat.vals[0][i])); in test_space() 42 REPORTER_ASSERT(r, almost_equal(ref[i][1], mat.vals[1][i])); in test_space() 43 REPORTER_ASSERT(r, almost_equal(ref[i][2], mat.vals[2][i])); in test_space() 198 if (!almost_equal(a.vals[r][c], b.vals[r][c])) { in matrix_almost_equal()
|
D | ImageTest.cpp | 1182 auto almost_equal = [](int a, int b) { return SkTAbs(a - b) <= 2; }; in DEF_TEST() local 1185 REPORTER_ASSERT(r, almost_equal(0x28, SkGetPackedR32(*p3Bitmap.getAddr32(0, 0)))); in DEF_TEST() 1186 REPORTER_ASSERT(r, almost_equal(0x40, SkGetPackedG32(*p3Bitmap.getAddr32(0, 0)))); in DEF_TEST() 1187 REPORTER_ASSERT(r, almost_equal(0x5E, SkGetPackedB32(*p3Bitmap.getAddr32(0, 0)))); in DEF_TEST() 1193 REPORTER_ASSERT(r, almost_equal(0x21, SkGetPackedR32(*adobeBitmap.getAddr32(0, 0)))); in DEF_TEST() 1194 REPORTER_ASSERT(r, almost_equal(0x31, SkGetPackedG32(*adobeBitmap.getAddr32(0, 0)))); in DEF_TEST() 1195 REPORTER_ASSERT(r, almost_equal(0x4C, SkGetPackedB32(*adobeBitmap.getAddr32(0, 0)))); in DEF_TEST() 1201 REPORTER_ASSERT(r, almost_equal(0x8B, SkGetPackedR32(*p3Bitmap.getAddr32(0, 0)))); in DEF_TEST() 1202 REPORTER_ASSERT(r, almost_equal(0x82, SkGetPackedG32(*p3Bitmap.getAddr32(0, 0)))); in DEF_TEST() 1203 REPORTER_ASSERT(r, almost_equal(0x77, SkGetPackedB32(*p3Bitmap.getAddr32(0, 0)))); in DEF_TEST()
|
/third_party/skia/tests/ |
D | ColorSpaceTest.cpp | 26 static bool almost_equal(float a, float b) { in almost_equal() function 41 REPORTER_ASSERT(r, almost_equal(ref[i][0], mat.vals[0][i])); in test_space() 42 REPORTER_ASSERT(r, almost_equal(ref[i][1], mat.vals[1][i])); in test_space() 43 REPORTER_ASSERT(r, almost_equal(ref[i][2], mat.vals[2][i])); in test_space() 198 if (!almost_equal(a.vals[r][c], b.vals[r][c])) { in matrix_almost_equal()
|
D | ImageTest.cpp | 1228 auto almost_equal = [](int a, int b) { return SkTAbs(a - b) <= 2; }; in DEF_TEST() local 1231 REPORTER_ASSERT(r, almost_equal(0x28, SkGetPackedR32(*p3Bitmap.getAddr32(0, 0)))); in DEF_TEST() 1232 REPORTER_ASSERT(r, almost_equal(0x40, SkGetPackedG32(*p3Bitmap.getAddr32(0, 0)))); in DEF_TEST() 1233 REPORTER_ASSERT(r, almost_equal(0x5E, SkGetPackedB32(*p3Bitmap.getAddr32(0, 0)))); in DEF_TEST() 1239 REPORTER_ASSERT(r, almost_equal(0x21, SkGetPackedR32(*adobeBitmap.getAddr32(0, 0)))); in DEF_TEST() 1240 REPORTER_ASSERT(r, almost_equal(0x31, SkGetPackedG32(*adobeBitmap.getAddr32(0, 0)))); in DEF_TEST() 1241 REPORTER_ASSERT(r, almost_equal(0x4C, SkGetPackedB32(*adobeBitmap.getAddr32(0, 0)))); in DEF_TEST() 1247 REPORTER_ASSERT(r, almost_equal(0x8B, SkGetPackedR32(*p3Bitmap.getAddr32(0, 0)))); in DEF_TEST() 1248 REPORTER_ASSERT(r, almost_equal(0x82, SkGetPackedG32(*p3Bitmap.getAddr32(0, 0)))); in DEF_TEST() 1249 REPORTER_ASSERT(r, almost_equal(0x77, SkGetPackedB32(*p3Bitmap.getAddr32(0, 0)))); in DEF_TEST()
|
/third_party/libinput/test/ |
D | test-touch.c | 411 #define almost_equal(a_, b_) \ in START_TEST() macro 416 almost_equal(x, width * 0.8); in START_TEST() 417 almost_equal(y, height * 0.2); in START_TEST() 420 almost_equal(x, width * 0.8); in START_TEST() 421 almost_equal(y, height * 0.8); in START_TEST() 424 almost_equal(x, width * 0.2); in START_TEST() 425 almost_equal(y, height * 0.8); in START_TEST() 428 almost_equal(x, width * 0.2); in START_TEST() 429 almost_equal(y, height * 0.2); in START_TEST() 432 #undef almost_equal in START_TEST()
|
/third_party/flutter/skia/src/core/ |
D | SkPath.cpp | 2305 static bool almost_equal(SkScalar compA, SkScalar compB) { in almost_equal() function 2396 if (!almost_equal(largest, largest + cross)) { in directionChange() 2585 static bool almost_equal(SkScalar compA, SkScalar compB) { in almost_equal() function 2683 if (almost_equal(largest, largest + cross)) { in directionChange()
|