Home
last modified time | relevance | path

Searched refs:audio_utils (Results 1 – 25 of 41) sorted by relevance

12

/system/media/audio_utils/tests/
Dstatistics_tests.cpp34 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 …]
Dvariadic_tests.cpp47 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 …]
Dintrinsic_tests.cpp32 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()
Dbalance_tests.cpp23 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()
Dchannelmix_tests.cpp129 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()
Dchannels_tests.cpp55 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()
Dfdtostring_tests.cpp24 using namespace android::audio_utils;
Dbiquad_filter.cpp26 using namespace android::audio_utils;
/system/media/audio_utils/benchmarks/
Dstatistics_benchmark.cpp73 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()
Dbiquad_filter_benchmark.cpp40 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()
Dintrinsic_benchmark.cpp30 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()
DAndroid.bp1 // Build the benchmarks for audio_utils
Dchannelmix_benchmark.cpp151 using namespace ::android::audio_utils::channels; in BenchmarkChannelMix()
/system/media/audio_utils/include/audio_utils/
DBalance.h26 namespace android::audio_utils {
180 std::vector<android::audio_utils::channels::AUDIO_GEOMETRY_SIDE> mSides;
DTimestampVerifier.h241 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};
Dsafe_math.h17 namespace android::audio_utils {
DStatistics.h31 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) { }
DHistogram.h25 namespace android::audio_utils {
DFdToString.h30 namespace audio_utils {
DMelAggregator.h24 namespace android::audio_utils {
Dvariadic_utils.h27 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/
DBalance.cpp19 namespace android::audio_utils { namespace
23 using namespace ::android::audio_utils::channels; in setChannelMask()
151 using namespace ::android::audio_utils::channels; in setBalance()
DChannelMix.cpp19 namespace android::audio_utils::channels { namespace
/system/media/audio_utils/fuzz/metadata_fuzzer/
Dmetadata_fuzzer.cpp19 using namespace android::audio_utils::metadata;
/system/media/audio_utils/fuzz/fdtostring_fuzzer/
Dfdtostring_fuzzer.cpp22 using namespace android::audio_utils;

12