Home
last modified time | relevance | path

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

/system/media/audio_utils/tests/
Dchannels_tests.cpp110 std::vector<uint16_t> u16ref(size); in TEST() local
115 for (size_t i = 0; i < u16ref.size(); ++i) { in TEST()
116 u16ref[i] = i; in TEST()
121 u16ref.data() /*in_buff*/, in TEST()
125 sizeof(u16ref[0]) /*sample_size_in_bytes*/, in TEST()
126 sizeof(u16ref[0]) * u16ref.size() /*num_in_bytes*/); in TEST()
141 expectEq(u16ary, u16ref); in TEST()
146 std::vector<uint16_t> u16ref(size); in TEST() local
151 for (size_t i = 0; i < u16ref.size(); ++i) { in TEST()
152 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 …]