Home
last modified time | relevance | path

Searched refs:almost_equal (Results 1 – 7 of 7) sorted by relevance

/external/skqp/tests/
DColorSpaceTest.cpp25 static bool almost_equal(float a, float b) { in almost_equal() function
40 REPORTER_ASSERT(r, almost_equal(ref[i][0], mat.vals[0][i])); in test_space()
41 REPORTER_ASSERT(r, almost_equal(ref[i][1], mat.vals[1][i])); in test_space()
42 REPORTER_ASSERT(r, almost_equal(ref[i][2], mat.vals[2][i])); in test_space()
197 if (!almost_equal(a.vals[r][c], b.vals[r][c])) { in matrix_almost_equal()
DImageTest.cpp1204 auto almost_equal = [](int a, int b) { return SkTAbs(a - b) <= 2; }; in DEF_TEST() local
1207 REPORTER_ASSERT(r, almost_equal(0x28, SkGetPackedR32(*p3Bitmap.getAddr32(0, 0)))); in DEF_TEST()
1208 REPORTER_ASSERT(r, almost_equal(0x40, SkGetPackedG32(*p3Bitmap.getAddr32(0, 0)))); in DEF_TEST()
1209 REPORTER_ASSERT(r, almost_equal(0x5E, SkGetPackedB32(*p3Bitmap.getAddr32(0, 0)))); in DEF_TEST()
1215 REPORTER_ASSERT(r, almost_equal(0x21, SkGetPackedR32(*adobeBitmap.getAddr32(0, 0)))); in DEF_TEST()
1216 REPORTER_ASSERT(r, almost_equal(0x31, SkGetPackedG32(*adobeBitmap.getAddr32(0, 0)))); in DEF_TEST()
1217 REPORTER_ASSERT(r, almost_equal(0x4C, SkGetPackedB32(*adobeBitmap.getAddr32(0, 0)))); in DEF_TEST()
1223 REPORTER_ASSERT(r, almost_equal(0x8B, SkGetPackedR32(*p3Bitmap.getAddr32(0, 0)))); in DEF_TEST()
1224 REPORTER_ASSERT(r, almost_equal(0x82, SkGetPackedG32(*p3Bitmap.getAddr32(0, 0)))); in DEF_TEST()
1225 REPORTER_ASSERT(r, almost_equal(0x77, SkGetPackedB32(*p3Bitmap.getAddr32(0, 0)))); in DEF_TEST()
/external/skia/tests/
DColorSpaceTest.cpp26 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()
DImageTest.cpp1228 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()
/external/tensorflow/tensorflow/python/eager/
Dops_test.py70 almost_equal = math_ops.approximate_equal(
72 self.assertTrue(almost_equal)
Dcore_test.py725 almost_equal = execute(
730 self.assertTrue(almost_equal)
/external/skqp/src/core/
DSkPath.cpp2313 static bool almost_equal(SkScalar compA, SkScalar compB) { in almost_equal() function
2409 if (!almost_equal(largest, largest + cross)) { in directionChange()
2600 static bool almost_equal(SkScalar compA, SkScalar compB) { in almost_equal() function
2734 if (almost_equal(largest, largest + cross)) { in directionChange()