/external/webrtc/webrtc/modules/audio_processing/beamformer/ |
D | covariance_matrix_generator_unittest.cc | 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() 69 EXPECT_NEAR(actual_els[0][0].real(), 1.f, kTolerance); in TEST() 70 EXPECT_NEAR(actual_els[0][1].real(), 0.9573f, kTolerance); in TEST() [all …]
|
D | matrix_test_helpers.h | 53 EXPECT_NEAR(expected_elements[i][j], actual_elements[i][j], kTolerance); in ValidateMatrixEqualityFloat() 68 EXPECT_NEAR(expected_elements[i][j].real(), in ValidateMatrixEqualityComplexFloat() 71 EXPECT_NEAR(expected_elements[i][j].imag(), in ValidateMatrixEqualityComplexFloat() 89 EXPECT_NEAR(expected_elements[i][j].real(), in ValidateMatrixNearEqualityComplexFloat() 92 EXPECT_NEAR(expected_elements[i][j].imag(), in ValidateMatrixNearEqualityComplexFloat()
|
/external/webrtc/webrtc/common_audio/ |
D | real_fourier_unittest.cc | 88 EXPECT_NEAR(this->cplx_buffer_[0].real(), 10.0f, 1e-8f); in TYPED_TEST() 89 EXPECT_NEAR(this->cplx_buffer_[0].imag(), 0.0f, 1e-8f); in TYPED_TEST() 90 EXPECT_NEAR(this->cplx_buffer_[1].real(), -2.0f, 1e-8f); in TYPED_TEST() 91 EXPECT_NEAR(this->cplx_buffer_[1].imag(), 2.0f, 1e-8f); in TYPED_TEST() 92 EXPECT_NEAR(this->cplx_buffer_[2].real(), -2.0f, 1e-8f); in TYPED_TEST() 93 EXPECT_NEAR(this->cplx_buffer_[2].imag(), 0.0f, 1e-8f); in TYPED_TEST() 103 EXPECT_NEAR(this->real_buffer_[0], 1.0f, 1e-8f); in TYPED_TEST() 104 EXPECT_NEAR(this->real_buffer_[1], 2.0f, 1e-8f); in TYPED_TEST() 105 EXPECT_NEAR(this->real_buffer_[2], 3.0f, 1e-8f); in TYPED_TEST() 106 EXPECT_NEAR(this->real_buffer_[3], 4.0f, 1e-8f); in TYPED_TEST()
|
/external/webrtc/webrtc/modules/remote_bitrate_estimator/test/ |
D | bwe_unittest.cc | 122 EXPECT_NEAR(loss_account_.LossRatio(), static_cast<float>(kLost) / kTotal, in TEST_F() 128 EXPECT_NEAR(loss_account_.LossRatio(), 0.0f, 0.001f); in TEST_F() 158 EXPECT_NEAR(bwe_receiver_.RecentKbps(), kReceivingRateKbps, in TEST_F() 177 EXPECT_NEAR(bwe_receiver_.RecentKbps(), kReceivingRateKbps, in TEST_F() 256 EXPECT_NEAR(bwe_receiver_.RecentPacketLossRatio(), 1.0f / (kNumPackets + 1), in TEST_F() 273 EXPECT_NEAR(bwe_receiver_.RecentPacketLossRatio(), 0.5f, 0.01f); in TEST_F() 290 EXPECT_NEAR(bwe_receiver_.RecentPacketLossRatio(), 1.0f / kPeriod, in TEST_F() 303 EXPECT_NEAR(bwe_receiver_.RecentPacketLossRatio(), 0.998f, 0.0001f); in TEST_F() 310 EXPECT_NEAR(bwe_receiver_.RecentPacketLossRatio(), 0.99994f, 0.00001f); in TEST_F() 347 EXPECT_NEAR(bwe_receiver_.RecentKbps(), in TEST_F() [all …]
|
D | metric_recorder_unittest.cc | 55 EXPECT_NEAR( in TEST_F() 90 EXPECT_NEAR(metric_recorder_.AverageBitrateKbps(0), in TEST_F() 98 EXPECT_NEAR(metric_recorder_.DelayStdDev(), sqrt(var), kNumPackets / 1000.0); in TEST_F()
|
/external/webrtc/webrtc/base/ |
D | profiler_unittest.cc | 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()
|
D | rollingaccumulator_unittest.cc | 41 EXPECT_NEAR(2.26666, accum.ComputeWeightedMean(kLearningRate), 0.01); in TEST() 56 EXPECT_NEAR(10.0, accum.ComputeWeightedMean(kLearningRate), 0.01); in TEST() 57 EXPECT_NEAR(9.0, accum.ComputeVariance(), 1.0); in TEST() 96 EXPECT_NEAR(105.049, accum.ComputeWeightedMean(kLearningRate), 0.1); in TEST() 97 EXPECT_NEAR(229.166667, accum.ComputeVariance(), 25); in TEST() 115 EXPECT_NEAR(6.0, accum.ComputeWeightedMean(kLearningRate), 0.1); in TEST()
|
D | random_unittest.cc | 61 EXPECT_NEAR(buckets[i], samples / bucket_count, in UniformBucketTest() 144 EXPECT_NEAR(buckets[i], mean, sigma_level * sqrt(mean)); in BucketTestSignedInterval() 184 EXPECT_NEAR(buckets[i], mean, sigma_level * sqrt(mean)); in BucketTestUnsignedInterval() 236 EXPECT_NEAR(buckets[i], mean, sigma_level * sqrt(mean)); in BucketTestFloat() 298 EXPECT_NEAR(buckets[n], kN * normal_dist, 3 * sqrt(kN * normal_dist) + 1); in TEST()
|
/external/webrtc/webrtc/modules/audio_processing/transient/ |
D | wpd_node_unittest.cc | 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 | 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()
|
/external/webrtc/webrtc/modules/audio_processing/vad/ |
D | pitch_internal_unittest.cc | 45 EXPECT_NEAR(pitch_lag_hz[n], expected_pitch_lag_hz[n], 1e-6); in TEST() 46 EXPECT_NEAR(log_pitch_gain[n], expected_log_pitch_gain[n], 1e-8); in TEST() 48 EXPECT_NEAR(old_lag, expected_old_lag, 1e-6); in TEST() 49 EXPECT_NEAR(log_old_gain, expected_log_old_gain, 1e-8); in TEST()
|
/external/pdfium/fpdfsdk/ |
D | fpdftext_embeddertest.cpp | 69 EXPECT_NEAR(41.071, left, 0.001); in TEST_F() 70 EXPECT_NEAR(46.243, right, 0.001); in TEST_F() 71 EXPECT_NEAR(49.844, bottom, 0.001); in TEST_F() 72 EXPECT_NEAR(55.520, top, 0.001); in TEST_F() 91 EXPECT_NEAR(20.847, left, 0.001); in TEST_F() 92 EXPECT_NEAR(135.167, right, 0.001); in TEST_F() 93 EXPECT_NEAR(96.655, bottom, 0.001); in TEST_F() 94 EXPECT_NEAR(116.000, top, 0.001); in TEST_F() 341 EXPECT_NEAR(50.791, left, 0.001); in TEST_F() 342 EXPECT_NEAR(187.963, right, 0.001); in TEST_F() [all …]
|
/external/libyuv/files/unit_test/ |
D | color_test.cc | 124 EXPECT_NEAR(static_cast<int>(orig_pixels[i]), \ 378 EXPECT_NEAR(r0, r1, ERROR_R); in TEST_F() 379 EXPECT_NEAR(g0, g1, ERROR_G); in TEST_F() 380 EXPECT_NEAR(b0, b1, ERROR_B); in TEST_F() 384 EXPECT_NEAR(r0, r1, ERROR_R); in TEST_F() 385 EXPECT_NEAR(g0, g1, ERROR_G); in TEST_F() 386 EXPECT_NEAR(b0, b1, ERROR_B); in TEST_F() 390 EXPECT_NEAR(r0, r1, ERROR_R); in TEST_F() 391 EXPECT_NEAR(g0, g1, ERROR_G); in TEST_F() 392 EXPECT_NEAR(b0, b1, ERROR_B); in TEST_F() [all …]
|
D | math_test.cc | 64 EXPECT_NEAR(16384 * 65536 / i, libyuv::FixedDiv(16384, i), 1); in TEST_F() 83 EXPECT_NEAR(result_c[j], result_opt[j], 1); in TEST_F() 117 EXPECT_NEAR(result_c[j], result_opt[j], 1); in TEST_F() 151 EXPECT_NEAR(result_c[j], result_opt[j], 1); in TEST_F()
|
/external/webrtc/webrtc/modules/audio_processing/intelligibility/ |
D | intelligibility_enhancer_unittest.cc | 154 EXPECT_NEAR(kTestCenterFreqs[i], enh_->center_freqs_[i], kMaxTestError); in TEST_F() 157 EXPECT_NEAR(kTestFilterBank[i][j], enh_->filter_bank_[i][j], in TEST_F() 176 EXPECT_NEAR(kTestZeroVar[i], sols[i], kMaxTestError); in TEST_F() 184 EXPECT_NEAR(kTestNonZeroVarLambdaTop[i], sols[i], kMaxTestError); in TEST_F() 189 EXPECT_NEAR(kTestZeroVar[i], sols[i], kMaxTestError); in TEST_F()
|
D | intelligibility_utils_unittest.cc | 143 EXPECT_NEAR(kTestVarianceBufferNotFull, variance_array.variance()[j], in TEST() 146 EXPECT_NEAR(kTestVarianceBufferFull1, variance_array.variance()[j], in TEST() 149 EXPECT_NEAR(kTestVarianceBufferFull2, variance_array.variance()[j], in TEST()
|
/external/webrtc/webrtc/modules/rtp_rtcp/source/ |
D | time_util_unittest.cc | 32 EXPECT_NEAR(ms_diff, ntp_to_ms_diff, 1); in TEST() 48 EXPECT_NEAR(ms_diff, ntp_to_ms_diff, 1); in TEST() 60 EXPECT_NEAR(ms_diff, ntp_to_ms_diff, 1); in TEST()
|
/external/webrtc/webrtc/modules/remote_bitrate_estimator/ |
D | rate_statistics_unittest.cc | 41 EXPECT_NEAR(1200000u, stats_.Rate(now_ms), 24000u); in TEST_F() 66 EXPECT_NEAR(8000000u, bitrate, 80000u); in TEST_F() 75 EXPECT_NEAR(8000000u, bitrate, 80000u); in TEST_F()
|
D | remote_bitrate_estimator_abs_send_time_unittest.cc | 180 EXPECT_NEAR(bitrate_observer_->latest_bitrate(), 800000u, 10000); in TEST_F() 237 EXPECT_NEAR(bitrate_observer_->latest_bitrate(), 1140000, 10000); in TEST_F() 257 EXPECT_NEAR(bitrate_observer_->latest_bitrate(), 4000000u, 10000); in TEST_F() 289 EXPECT_NEAR(bitrate_observer_->latest_bitrate(), 800000u, 10000); in TEST_F()
|
D | remote_bitrate_estimator_unittest_helper.cc | 345 EXPECT_NEAR(expected_converge_bitrate, bitrate_bps, kAcceptedBitrateErrorBps); in InitialBehaviorTestHelper() 377 EXPECT_NEAR(expected_bitrate_bps, in RateIncreaseReorderingTestHelper() 395 EXPECT_NEAR(expected_bitrate_bps, in RateIncreaseReorderingTestHelper() 477 EXPECT_NEAR(kInitialCapacityBps, bitrate_bps, 110000u); in CapacityDropTestHelper() 497 EXPECT_NEAR(expected_bitrate_drop_delta, in CapacityDropTestHelper()
|
/external/webrtc/webrtc/voice_engine/test/auto_test/ |
D | voe_conference_test.cc | 165 EXPECT_NEAR(stats_0.packetsReceived, 0, 2); in TEST() 168 EXPECT_NEAR(stats_1.packetsReceived, kPackets, 2); in TEST() 169 EXPECT_NEAR(stats_2.packetsReceived, kPackets, 2); in TEST() 170 EXPECT_NEAR(stats_3.packetsReceived, kPackets, 2); in TEST()
|
/external/libtextclassifier/tests/ |
D | registry_test.cc | 48 EXPECT_NEAR(f1->Evaluate(-3), -0.9899, 0.0001); in TEST() 49 EXPECT_NEAR(f2->Evaluate(2.3), 9.9741, 0.0001); in TEST()
|
/external/webrtc/webrtc/modules/audio_coding/neteq/ |
D | dtmf_tone_generator_unittest.cc | 53 EXPECT_NEAR(x, static_cast<double>(signal[channel][n]), 25); in TestAllTones() 85 EXPECT_NEAR(attenuation_factor * ref_signal[channel][n], in TestAmplitudes()
|
/external/webrtc/webrtc/system_wrappers/source/ |
D | clock_unittest.cc | 25 EXPECT_NEAR(milliseconds, Clock::NtpToMs(seconds, fractions), 100); in TEST()
|
/external/webrtc/webrtc/modules/audio_coding/test/ |
D | target_delay_unittest.cc | 67 EXPECT_NEAR(required_delay, jittery_optimal_delay, 1); in NoTargetDelayBufferSizeChanges() 111 EXPECT_NEAR(kInterarrivalJitterPacket * kNum10msPerFrame * 10, in RequiredDelayAtCorrectRange()
|