/system/media/audio_utils/tests/ |
D | statistics_tests.cpp | 34 android::audio_utils::for_each(datum, [&](T &value) { return value = dis(gen);}); in initUniform() 50 android::audio_utils::for_each(datum, [&](T &value) { return value = dis(gen);}); in initNormal() 61 , mMax{android::audio_utils::max(a)} 62 , mMin{android::audio_utils::min(a)} 63 , mMean{android::audio_utils::sum(a) / mN} 64 , mM2{android::audio_utils::sumSqDiff(a, mMean)} 66 , mPopStdDev{android::audio_utils::sqrt_constexpr(mPopVariance)} 68 , mStdDev{android::audio_utils::sqrt_constexpr(mVariance)} 144 double rssum = android::audio_utils::sum<double, double>(simple); in TEST() 147 android::audio_utils::sum<double, android::audio_utils::KahanSum<double>>(simple); in TEST() [all …]
|
D | variadic_tests.cpp | 47 using namespace android::audio_utils; in TEST() 57 using android::audio_utils::equivalent; in TEST() 70 EXPECT_FALSE(android::audio_utils::is_variadic<double>::value); in TEST() 74 EXPECT_TRUE(android::audio_utils::is_variadic<tuple_t>::value); in TEST() 75 EXPECT_TRUE(android::audio_utils::is_tuple<tuple_t>::value); in TEST() 76 EXPECT_FALSE(android::audio_utils::is_pair<tuple_t>::value); in TEST() 77 EXPECT_FALSE(android::audio_utils::is_array<tuple_t>::value); in TEST() 82 EXPECT_TRUE(android::audio_utils::is_variadic<pair_t>::value); in TEST() 83 EXPECT_FALSE(android::audio_utils::is_tuple<pair_t>::value); in TEST() 84 EXPECT_TRUE(android::audio_utils::is_pair<pair_t>::value); in TEST() [all …]
|
D | intrinsic_tests.cpp | 32 ASSERT_EQ(result, android::audio_utils::intrinsics::vadd(a, b)); in TYPED_TEST() 37 ASSERT_EQ(value, android::audio_utils::intrinsics::vdupn<TypeParam>(value)); in TYPED_TEST() 42 ASSERT_EQ(value, android::audio_utils::intrinsics::vld1<TypeParam>(&value)); in TYPED_TEST() 50 ASSERT_EQ(result, android::audio_utils::intrinsics::vmla(c, a, b)); in TYPED_TEST() 57 ASSERT_EQ(result, android::audio_utils::intrinsics::vmul(a, b)); in TYPED_TEST() 62 ASSERT_EQ(-value, android::audio_utils::intrinsics::vneg(value)); in TYPED_TEST() 68 android::audio_utils::intrinsics::vst1( in TYPED_TEST() 69 &destination, android::audio_utils::intrinsics::vdupn<TypeParam>(value)); in TYPED_TEST() 77 ASSERT_EQ(result, android::audio_utils::intrinsics::vsub(a, b)); in TYPED_TEST()
|
D | balance_tests.cpp | 23 android::audio_utils::Balance balance(false /* ramp */); in TEST() 50 android::audio_utils::Balance balance(false /* ramp */); 77 android::audio_utils::Balance balance(false /* ramp */); in TEST()
|
D | channelmix_tests.cpp | 129 std::vector<android::audio_utils::Statistics<T>> result(channels); in channelStatistics() 156 using namespace ::android::audio_utils::channels; in testBalance() 353 using StereoDownMix = android::audio_utils::channels::ChannelMix<AUDIO_CHANNEL_OUT_STEREO>; 355 using namespace ::android::audio_utils::channels; in TEST()
|
D | channels_tests.cpp | 55 using namespace android::audio_utils::channels; in TEST() 70 using namespace android::audio_utils::channels; in TEST() 88 using namespace android::audio_utils::channels; in TEST()
|
D | fdtostring_tests.cpp | 24 using namespace android::audio_utils;
|
D | biquad_filter.cpp | 26 using namespace android::audio_utils;
|
/system/media/audio_utils/benchmarks/ |
D | statistics_benchmark.cpp | 73 BM_MeanVariance<android::audio_utils::Statistics<float, float, float>>(state, in BM_MeanVariance_float_float_float() 81 BM_MeanVariance<android::audio_utils::ReferenceStatistics<float, float>>(state, in BM_RefMeanVariance_float_float() 89 BM_MeanVariance<android::audio_utils::Statistics<float, double, double>>(state, in BM_MeanVariance_float_double_double() 97 BM_MeanVariance<android::audio_utils::ReferenceStatistics<float, double>>(state, in BM_RefMeanVariance_float_double() 105 BM_MeanVariance<android::audio_utils::Statistics<float, float, in BM_MeanVariance_float_float_Kahan() 106 android::audio_utils::KahanSum<float>>>(state, in BM_MeanVariance_float_float_Kahan() 114 BM_MeanVariance<android::audio_utils::Statistics<float, float, in BM_MeanVariance_float_float_Neumaier() 115 android::audio_utils::NeumaierSum<float>>>(state, in BM_MeanVariance_float_float_Neumaier() 134 BM_MeanVariance<android::audio_utils::Statistics<float, float, float>>(state, in BM_MeanVariance_float_float_float_alpha() 142 BM_MeanVariance<android::audio_utils::Statistics<float, double, double>>(state, in BM_MeanVariance_float_double_double_alpha()
|
D | biquad_filter_benchmark.cpp | 40 using android::audio_utils::BiquadFilter; in BM_BiquadFilter1D() 47 std::array<float, android::audio_utils::kBiquadNumCoefs> coefs; in BM_BiquadFilter1D() 58 android::audio_utils::BiquadFilter parallel(filters, coefs); in BM_BiquadFilter1D() 411 : public android::audio_utils::details::DefaultBiquadConstOptions 415 using FilterType = android::audio_utils::BiquadStateSpace< 427 std::array<F, android::audio_utils::kBiquadNumCoefs> coefs; in BM_BiquadFilter() 440 android::audio_utils::BiquadFilter< in BM_BiquadFilter() 475 int j = (1 << android::audio_utils::kBiquadNumCoefs) - 1; // Full in BiquadFilterQuickArgs() 486 for (int j = 1; j < (1 << android::audio_utils::kBiquadNumCoefs); ++j) { // Occupancy in BiquadFilterFullArgs() 498 int j = (1 << android::audio_utils::kBiquadNumCoefs) - 1; // Full in BiquadFilterDoubleArgs()
|
D | intrinsic_benchmark.cpp | 30 using namespace android::audio_utils::intrinsics; in BM_Intrinsic() 34 using vec = android::audio_utils::intrinsics::internal_array_t<D, SIMD_LENGTH>; in BM_Intrinsic()
|
D | Android.bp | 1 // Build the benchmarks for audio_utils
|
D | channelmix_benchmark.cpp | 151 using namespace ::android::audio_utils::channels; in BenchmarkChannelMix()
|
/system/media/audio_utils/include/audio_utils/ |
D | Balance.h | 26 namespace android::audio_utils { 180 std::vector<android::audio_utils::channels::AUDIO_GEOMETRY_SIDE> mSides;
|
D | TimestampVerifier.h | 241 constexpr const audio_utils::Statistics<double> & getJitterMs() const { in getJitterMs() 280 audio_utils::Statistics<double> mJitterMs{kDefaultAlphaJitter}; 290 audio_utils::LinearLeastSquaresFit<double> mTimestampEstimator{kDefaultAlphaEstimator}; 293 audio_utils::Statistics<double> mCorrectedJitterMs{kDefaultAlphaJitter};
|
D | safe_math.h | 17 namespace android::audio_utils {
|
D | Statistics.h | 31 namespace audio_utils { 277 mMax = audio_utils::max(mMax, value); // order important: reject NaN 278 mMin = audio_utils::min(mMin, value); // order important: reject NaN 350 return android::audio_utils::sqrt(getVariance()); 354 return android::audio_utils::sqrt(getPopVariance()); 603 audio_utils::outerProduct_UT_array<std::array<T, 2>>> 612 audio_utils::outerProduct_UT_array<std::array<T, 2>>>(alpha) { }
|
D | Histogram.h | 25 namespace android::audio_utils {
|
D | FdToString.h | 30 namespace audio_utils {
|
D | MelAggregator.h | 24 namespace android::audio_utils {
|
D | variadic_utils.h | 27 namespace audio_utils { 467 return T{audio_utils::FUNCTION(std::get<I>(t))...}; \ 472 return audio_utils::FUNCTION(t, std::make_index_sequence<std::tuple_size<T>::value>()); \ 487 return T1{audio_utils::FUNCTION(std::get<I>(t1), std::get<I>(t2))...}; \ 494 return audio_utils::FUNCTION( \
|
/system/media/audio_utils/ |
D | Balance.cpp | 19 namespace android::audio_utils { namespace 23 using namespace ::android::audio_utils::channels; in setChannelMask() 151 using namespace ::android::audio_utils::channels; in setBalance()
|
D | ChannelMix.cpp | 19 namespace android::audio_utils::channels { namespace
|
/system/media/audio_utils/fuzz/metadata_fuzzer/ |
D | metadata_fuzzer.cpp | 19 using namespace android::audio_utils::metadata;
|
/system/media/audio_utils/fuzz/fdtostring_fuzzer/ |
D | fdtostring_fuzzer.cpp | 22 using namespace android::audio_utils;
|