Home
last modified time | relevance | path

Searched refs:cras_shm_buff_for_idx (Results 1 – 3 of 3) sorted by relevance

/external/adhd/cras/src/common/
Dcras_shm.h174 static inline uint8_t *cras_shm_buff_for_idx(const struct cras_audio_shm *shm, in cras_shm_buff_for_idx() function
244 return cras_shm_buff_for_idx(shm, i); in cras_shm_get_read_buffer_base()
253 return cras_shm_buff_for_idx(shm, i); in cras_shm_get_write_buffer_base()
275 return cras_shm_buff_for_idx(shm, buf_idx) + write_offset; in cras_shm_get_writeable_frames()
306 return cras_shm_buff_for_idx(shm, buf_idx) + final_offset; in cras_shm_get_readable_frames()
391 memset(cras_shm_buff_for_idx(shm, write_buf_idx), 0, used_size); in cras_shm_check_write_overrun()
/external/adhd/cras/src/tests/
Dshm_unittest.cc97 EXPECT_EQ(cras_shm_buff_for_idx(&shm_, 0) + (used_size / 4), (uint8_t*)buf_); in TEST_F()
100 EXPECT_EQ(cras_shm_buff_for_idx(&shm_, 1), (uint8_t*)buf_); in TEST_F()
118 EXPECT_EQ(cras_shm_buff_for_idx(&shm_, 0) + (used_size / 4), (uint8_t*)buf_); in TEST_F()
121 EXPECT_EQ(cras_shm_buff_for_idx(&shm_, 1), (uint8_t*)buf_); in TEST_F()
141 EXPECT_EQ(cras_shm_buff_for_idx(&shm_, buf_idx) + (used_size / 4), in TEST_F()
146 EXPECT_EQ(cras_shm_buff_for_idx(&shm_, 0), (uint8_t*)buf_); in TEST_F()
308 EXPECT_EQ(cras_shm_buff_for_idx(&shm_, 0) + shm_.header->read_offset[0], in TEST_F()
312 EXPECT_EQ(cras_shm_buff_for_idx(&shm_, 1), (uint8_t*)buf_); in TEST_F()
Dcras_client_unittest.cc145 EXPECT_EQ(cras_shm_buff_for_idx(shm, 0), samples_ready_samples_value); in TEST_F()