Searched refs:cras_shm_buff_for_idx (Results 1 – 3 of 3) sorted by relevance
/external/adhd/cras/src/common/ |
D | cras_shm.h | 172 static inline uint8_t *cras_shm_buff_for_idx(const struct cras_audio_shm *shm, in cras_shm_buff_for_idx() function 242 return cras_shm_buff_for_idx(shm, i); in cras_shm_get_read_buffer_base() 251 return cras_shm_buff_for_idx(shm, i); in cras_shm_get_write_buffer_base() 273 return cras_shm_buff_for_idx(shm, buf_idx) + write_offset; in cras_shm_get_writeable_frames() 304 return cras_shm_buff_for_idx(shm, buf_idx) + final_offset; in cras_shm_get_readable_frames() 389 memset(cras_shm_buff_for_idx(shm, write_buf_idx), 0, used_size); in cras_shm_check_write_overrun()
|
/external/adhd/cras/src/tests/ |
D | shm_unittest.cc | 97 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()
|
D | cras_client_unittest.cc | 145 EXPECT_EQ(cras_shm_buff_for_idx(shm, 0), samples_ready_samples_value); in TEST_F()
|