/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/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/skia/src/gpu/ops/ |
D | GrMSAAPathRenderer.cpp | 31 static const float kTolerance = 0.5f; variable 292 converter.computeQuads(pts, weight, kTolerance); in ComputeWorstCasePointCount() 303 GrPathUtils::convertCubicToQuads(pts, kTolerance, &quadPts); in ComputeWorstCasePointCount() 521 const SkPoint* quadPts = converter.computeQuads(pts, weight, kTolerance); in createGeom() 534 GrPathUtils::convertCubicToQuads(pts, kTolerance, &quadPts); in createGeom()
|
/external/skia/src/utils/ |
D | SkCurveMeasure.h | 63 const SkScalar kTolerance = 0.0001f;
|
D | SkCurveMeasure.cpp | 265 if ((std::abs(lengthDiff) < kTolerance) || in getTime() 266 (std::abs(prevT - currentT) < kTolerance)) { in getTime()
|
D | SkShadowTessellator.cpp | 776 static constexpr auto kTolerance = 1.0e-2f; in SkSpotShadowTessellator() local 777 if (minDistSq < (radius + kTolerance)*(radius + kTolerance)) { in SkSpotShadowTessellator() 779 SkScalar newRadius = SkScalarSqrt(minDistSq) - kTolerance; in SkSpotShadowTessellator()
|
/external/pdfium/xfa/fde/ |
D | cfde_txtedtpage.cpp | 23 const double kTolerance = 0.1f; variable 78 NormalizePt2Rect(ptF, m_rtPageContents, kTolerance); in GetCharIndex() 101 NormalizePt2Rect(ptF, rtLine, kTolerance); in GetCharIndex()
|