/external/webrtc/webrtc/modules/audio_processing/beamformer/ |
D | covariance_matrix_generator_unittest.cc | 28 const float kTolerance = 0.0001f; in TEST() local 41 EXPECT_NEAR(actual_els[0][0].real(), 1.f, kTolerance); in TEST() 42 EXPECT_NEAR(actual_els[0][1].real(), 0.9998f, kTolerance); in TEST() 43 EXPECT_NEAR(actual_els[1][0].real(), 0.9998f, kTolerance); in TEST() 44 EXPECT_NEAR(actual_els[1][1].real(), 1.f, kTolerance); in TEST() 46 EXPECT_NEAR(actual_els[0][0].imag(), 0.f, kTolerance); in TEST() 47 EXPECT_NEAR(actual_els[0][1].imag(), 0.f, kTolerance); in TEST() 48 EXPECT_NEAR(actual_els[1][0].imag(), 0.f, kTolerance); in TEST() 49 EXPECT_NEAR(actual_els[1][1].imag(), 0.f, kTolerance); in TEST() 56 const float kTolerance = 0.0001f; in TEST() local [all …]
|
D | matrix_test_helpers.h | 19 const float kTolerance = 0.001f; variable 53 EXPECT_NEAR(expected_elements[i][j], actual_elements[i][j], kTolerance); in ValidateMatrixEqualityFloat() 70 kTolerance); in ValidateMatrixEqualityComplexFloat() 73 kTolerance); in ValidateMatrixEqualityComplexFloat()
|
/external/tensorflow/tensorflow/core/example/ |
D | feature_util_test.cc | 26 const float kTolerance = 1e-5; variable 114 EXPECT_NEAR(3.14, values.Get(0), kTolerance); in TEST() 126 EXPECT_NEAR(3.14, tag.Get(0), kTolerance); in TEST() 135 EXPECT_NEAR(3.14, feature.float_list().value(0), kTolerance); in TEST() 147 kTolerance); in TEST() 161 EXPECT_NEAR(3.14, tag_ro.Get(0), kTolerance); in TEST() 175 EXPECT_NEAR(3.14, tag_ro.Get(0), kTolerance); in TEST() 242 EXPECT_NEAR(1.1, tag_ro.Get(0), kTolerance); in TEST() 243 EXPECT_NEAR(2.2, tag_ro.Get(1), kTolerance); in TEST() 244 EXPECT_NEAR(3.3, tag_ro.Get(2), kTolerance); in TEST() [all …]
|
/external/webrtc/webrtc/base/ |
D | profiler_unittest.cc | 19 const double kTolerance = 0.1; variable 40 EXPECT_NEAR(kWaitSec, event->mean(), kTolerance * 3); in TEST() 46 EXPECT_NEAR(kWaitSec, event->mean(), kTolerance); in TEST() 47 EXPECT_NEAR(kWaitSec * 2, event->total_time(), kTolerance * 2); in TEST() 71 EXPECT_NEAR(kWaitSec, event1->mean(), kTolerance); in TEST() 85 EXPECT_NEAR(kEvent2WaitSec, event2->mean(), kTolerance * 4); in TEST() 97 EXPECT_NEAR(kWaitSec, event1->mean(), kTolerance); in TEST() 98 EXPECT_NEAR(kWaitSec * 2, event1->total_time(), kTolerance * 2); in TEST()
|
/external/webrtc/webrtc/modules/audio_processing/transient/ |
D | wpd_node_unittest.cc | 21 static const float kTolerance = 0.0001f; variable 51 EXPECT_NEAR(0.1f, node.data()[0], kTolerance); in TEST() 52 EXPECT_NEAR(0.2f, node.data()[1], kTolerance); in TEST() 53 EXPECT_NEAR(0.18f, node.data()[2], kTolerance); in TEST() 54 EXPECT_NEAR(0.56f, node.data()[3], kTolerance); in TEST() 55 EXPECT_NEAR(0.94f, node.data()[4], kTolerance); in TEST()
|
D | moving_moments_unittest.cc | 18 static const float kTolerance = 0.0001f; variable 55 EXPECT_NEAR(expected_mean[i], output_mean_[i], kTolerance); in CalculateMomentsAndVerify() 56 EXPECT_NEAR(expected_mean_squares[i], output_mean_squares_[i], kTolerance); in CalculateMomentsAndVerify()
|
D | transient_detector_unittest.cc | 83 const float kTolerance = 0.02f; in TEST() local 99 EXPECT_NEAR(file_value, detector_value, kTolerance) << "Frame: " in TEST()
|
D | wpd_tree_unittest.cc | 141 const float kTolerance = 0.03f; in TEST() local 176 EXPECT_NEAR(matlab_buffer[j], node_data[j], kTolerance) in TEST()
|
/external/skia/tests/ |
D | SkColor4fTest.cpp | 19 const float kTolerance = 1.0f / (1 << 20); variable 21 static bool nearly_equal(float a, float b, float tol = kTolerance) { in nearly_equal()
|
D | Float16Test.cpp | 20 const float kTolerance = 1.0f / (1 << (8 + 10)); in eq_within_half_float() local 26 return fabsf(a2 - b2) <= kTolerance; in eq_within_half_float()
|
/external/skqp/tests/ |
D | SkColor4fTest.cpp | 19 const float kTolerance = 1.0f / (1 << 20); variable 21 static bool nearly_equal(float a, float b, float tol = kTolerance) { in nearly_equal()
|
D | Float16Test.cpp | 20 const float kTolerance = 1.0f / (1 << (8 + 10)); in eq_within_half_float() local 26 return fabsf(a2 - b2) <= kTolerance; in eq_within_half_float()
|
/external/skia/src/gpu/ops/ |
D | GrMSAAPathRenderer.cpp | 30 static const float kTolerance = 0.5f; variable 287 SkScalar tolerance = GrPathUtils::scaleToleranceToSrc(kTolerance, m, path.getBounds()); in ComputeWorstCasePointCount() 506 const SkScalar tolerance = GrPathUtils::scaleToleranceToSrc(kTolerance, m, in createGeom()
|
/external/skqp/src/gpu/ops/ |
D | GrMSAAPathRenderer.cpp | 30 static const float kTolerance = 0.5f; variable 287 SkScalar tolerance = GrPathUtils::scaleToleranceToSrc(kTolerance, m, path.getBounds()); in ComputeWorstCasePointCount() 506 const SkScalar tolerance = GrPathUtils::scaleToleranceToSrc(kTolerance, m, in createGeom()
|
/external/skqp/src/core/ |
D | SkICC.cpp | 326 static constexpr float kTolerance = 1.0f / (1 << 11); in nearly_equal() local 327 return ::fabsf(x - y) <= kTolerance; in nearly_equal()
|
/external/skia/src/core/ |
D | SkICC.cpp | 326 static constexpr float kTolerance = 1.0f / (1 << 11); in nearly_equal() local 327 return ::fabsf(x - y) <= kTolerance; in nearly_equal()
|
/external/skqp/src/utils/ |
D | SkShadowTessellator.cpp | 868 static constexpr auto kTolerance = 1.0e-2f; in SkSpotShadowTessellator() local 869 if (minDistSq < (radius + kTolerance)*(radius + kTolerance)) { in SkSpotShadowTessellator() 871 SkScalar newRadius = SkScalarSqrt(minDistSq) - kTolerance; in SkSpotShadowTessellator()
|
/external/skia/src/utils/ |
D | SkShadowTessellator.cpp | 888 static constexpr auto kTolerance = 1.0e-2f; in SkSpotShadowTessellator() local 889 if (minDistSq < (radius + kTolerance)*(radius + kTolerance)) { in SkSpotShadowTessellator() 891 SkScalar newRadius = SkScalarSqrt(minDistSq) - kTolerance; in SkSpotShadowTessellator()
|
/external/tensorflow/tensorflow/core/kernels/ |
D | quantization_utils_test.cc | 711 const double kTolerance = .5 / 128.0; in TestQuantizedTensorToFloat() local 712 test::ExpectTensorNear<float>(expected, output32, kTolerance); in TestQuantizedTensorToFloat()
|