/external/skia/tests/ |
D | ColorSpaceTest.cpp | 25 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()
|
D | ImageTest.cpp | 1204 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/ |
D | ColorSpaceTest.cpp | 25 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()
|
D | ImageTest.cpp | 1204 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/ |
D | ops_test.py | 68 almost_equal = math_ops.approximate_equal( 70 self.assertTrue(almost_equal)
|
D | core_test.py | 377 almost_equal = execute( 382 self.assertTrue(almost_equal)
|
/external/skqp/src/core/ |
D | SkPath.cpp | 2313 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/ |
D | SkPath.cpp | 2313 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()
|