Home
last modified time | relevance | path

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

/external/skia/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/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/tensorflow/tensorflow/python/eager/
Dops_test.py68 almost_equal = math_ops.approximate_equal(
70 self.assertTrue(almost_equal)
Dcore_test.py377 almost_equal = execute(
382 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()
/external/skia/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()