Home
last modified time | relevance | path

Searched refs:dis (Results 1 – 9 of 9) sorted by relevance

/system/media/audio_utils/benchmarks/
Dprimitives_benchmark.cpp36 std::uniform_real_distribution<> dis(-srcMax, srcMax); in BM_MemcpyToFloatFromFloatWithClamping() local
38 src[i] = dis(gen); in BM_MemcpyToFloatFromFloatWithClamping()
66 std::uniform_real_distribution<> dis; in BM_MemcpyFloat() local
68 src[i] = dis(gen); in BM_MemcpyFloat()
95 std::uniform_int_distribution<> dis(INT16_MIN, INT16_MAX); in BM_MemcpyToFloatFromI16() local
97 src[i] = dis(gen); in BM_MemcpyToFloatFromI16()
122 std::uniform_real_distribution<> dis; in BM_MemcpyToI16FromFloat() local
124 src[i] = dis(gen); in BM_MemcpyToI16FromFloat()
Dintrinsic_benchmark.cpp47 std::uniform_real_distribution<> dis(-amplitude, amplitude); in BM_Intrinsic() local
49 a[i] = dis(gen); in BM_Intrinsic()
50 b[i] = dis(gen); in BM_Intrinsic()
51 c[i] = dis(gen); in BM_Intrinsic()
Dbiquad_filter_benchmark.cpp51 std::uniform_real_distribution<> dis(-amplitude, amplitude); in BM_BiquadFilter1D() local
53 input[i] = dis(gen); in BM_BiquadFilter1D()
232 std::uniform_real_distribution<> dis(-amplitude, amplitude); in BM_BiquadFilter() local
234 input[i] = dis(gen); in BM_BiquadFilter()
Dstatistics_benchmark.cpp29 std::uniform_real_distribution<T> dis(rangeMin, rangeMax); in initUniform() local
31 datum = dis(gen); in initUniform()
/system/media/audio_utils/tests/
Dbiquad_filter_tests.cpp72 std::uniform_real_distribution<> dis(-amplitude, amplitude); in randomBuffer() local
74 buffer[i] = dis(gen); in randomBuffer()
82 std::uniform_real_distribution<> dis(-amplitude, amplitude); in randomFilter() local
83 const D p1 = (D)dis(gen); in randomFilter()
84 const D p2 = (D)dis(gen); in randomFilter()
85 return {(D)dis(gen), (D)dis(gen), (D)dis(gen), -(p1 + p2), p1 * p2}; in randomFilter()
92 std::uniform_real_distribution<> dis(-amplitude, amplitude); in randomUnstableFilter() local
94 const D p1 = (D)dis(gen); in randomUnstableFilter()
97 p2 = (D)dis(gen); in randomUnstableFilter()
100 return {(D)dis(gen), (D)dis(gen), (D)dis(gen), -(p1 + p2), p1 * p2}; in randomUnstableFilter()
Dstatistics_tests.cpp30 std::uniform_real_distribution<T> dis(rangeMin, rangeMax); in initUniform() local
34 android::audio_utils::for_each(datum, [&](T &value) { return value = dis(gen);}); in initUniform()
46 std::normal_distribution<> dis{mean, stddev}; in initNormal() local
50 android::audio_utils::for_each(datum, [&](T &value) { return value = dis(gen);}); in initNormal()
/system/update_engine/payload_generator/
Dab_generator_unittest.cc68 std::uniform_int_distribution<uint8_t> dis(0, 255); in TestSplitReplaceOrReplaceXzOperation() local
70 part_data.push_back(dis(gen)); in TestSplitReplaceOrReplaceXzOperation()
216 std::uniform_int_distribution<uint8_t> dis(0, 255); in TestMergeReplaceOrReplaceXzOperations() local
218 part_data.push_back(dis(gen)); in TestMergeReplaceOrReplaceXzOperations()
Ddelta_diff_utils_unittest.cc198 std::uniform_int_distribution<uint8_t> dis(0, 255); in TEST_F() local
200 random_data.push_back(dis(gen)); in TEST_F()
/system/incremental_delivery/incfs/tests/util/
Dmap_ptr_test.cpp150 auto dis = p1 - p2; in TEST_F() local
151 ASSERT_EQ((ptrdiff_t)5U, dis); in TEST_F()