Home
last modified time | relevance | path

Searched refs:u16ref (Results 1 – 2 of 2) sorted by relevance

/system/media/audio_utils/tests/
Dchannels_tests.cpp56 std::vector<uint16_t> u16ref(size); in TEST() local
61 for (size_t i = 0; i < u16ref.size(); ++i) { in TEST()
62 u16ref[i] = i; in TEST()
67 u16ref.data() /*in_buff*/, in TEST()
71 sizeof(u16ref[0]) /*sample_size_in_bytes*/, in TEST()
72 sizeof(u16ref[0]) * u16ref.size() /*num_in_bytes*/); in TEST()
87 expectEq(u16ary, u16ref); in TEST()
92 std::vector<uint16_t> u16ref(size); in TEST() local
97 for (size_t i = 0; i < u16ref.size(); ++i) { in TEST()
98 u16ref[i] = i; in TEST()
[all …]
Dprimitives_tests.cpp365 uint16_t *u16ref = new uint16_t[65536]; in TEST() local
369 u16ref[i] = i; in TEST()
375 memset(u16ary, 0x99, 65536 * sizeof(u16ref[0])); in TEST()
376 memcpy_by_channel_mask(u16ary, dst_mask, u16ref, src_mask, sizeof(u16ref[0]), in TEST()
383 memset(u16ary, 0, 65536 * sizeof(u16ref[0])); in TEST()
384 memcpy_by_channel_mask(u16ary, dst_mask, u16ref, src_mask, sizeof(u16ref[0]), in TEST()
390 memset(u16ary, 0x99, 65536 * sizeof(u16ref[0])); in TEST()
391 memcpy_by_channel_mask(u16ary, dst_mask, u16ref, src_mask, sizeof(u16ref[0]), 555); in TEST()
392 EXPECT_EQ(0, memcmp(u16ary, u16ref, 555 * sizeof(u16ref[0]) * __builtin_popcount(dst_mask))); in TEST()
399 memcpy_by_channel_mask(u16ary, dst_mask, u16ref, src_mask, sizeof(u16ref[0]), in TEST()
[all …]