Home
last modified time | relevance | path

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

/system/media/audio_utils/tests/
Dprimitives_tests.cpp366 uint16_t *u16ary = new uint16_t[65536]; in TEST() local
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()
378 EXPECT_EQ((size_t)0, nonZeroMono16((int16_t*)u16ary, 65530)); 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()
386 EXPECT_EQ((size_t)0, nonZeroMono16((int16_t*)u16ary, 65530)); 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()
[all …]
Dchannels_tests.cpp58 std::vector<uint16_t> u16ary(size); in TEST() local
81 u16ary.data() /*out_buff*/, in TEST()
87 expectEq(u16ary, u16ref); in TEST()
94 std::vector<uint16_t> u16ary(size); in TEST() local
114 for (size_t i = 0; i < u16ary.size() / 4; ++i) { in TEST()
115 u16ary[i * 4 + 2] = u16ref[i * 4 + 2]; in TEST()
116 u16ary[i * 4 + 3] = u16ref[i * 4 + 3]; in TEST()
123 u16ary.data() /*out_buff*/, in TEST()
129 expectEq(u16ary, u16ref); in TEST()