Home
last modified time | relevance | path

Searched refs:read_buf_idx (Results 1 – 4 of 4) sorted by relevance

/external/adhd/cras/src/common/
Dcras_shm.h51 uint32_t read_buf_idx; /* use buffer A or B */ member
113 unsigned i = shm->area->read_buf_idx & CRAS_SHM_BUFFERS_MASK; in cras_shm_get_curr_read_frames()
131 unsigned i = shm->area->read_buf_idx & CRAS_SHM_BUFFERS_MASK; in cras_shm_get_read_buffer_base()
177 unsigned buf_idx = shm->area->read_buf_idx & CRAS_SHM_BUFFERS_MASK; in cras_shm_get_readable_frames()
239 size_t buf_idx = shm->area->read_buf_idx & CRAS_SHM_BUFFERS_MASK; in cras_shm_get_frames_in_curr_buffer()
344 size_t buf_idx = shm->area->read_buf_idx & CRAS_SHM_BUFFERS_MASK; in cras_shm_buffer_read()
367 area->read_buf_idx = buf_idx; in cras_shm_buffer_read()
376 size_t buf_idx = shm->area->read_buf_idx & CRAS_SHM_BUFFERS_MASK; in cras_shm_buffer_read_current()
385 area->read_buf_idx = buf_idx; in cras_shm_buffer_read_current()
/external/adhd/cras/src/tests/
Dshm_unittest.cc56 EXPECT_EQ(1, shm_.area->read_buf_idx); in TEST_F()
116 EXPECT_EQ(0, shm_.area->read_buf_idx); in TEST_F()
121 shm_.area->read_buf_idx = CRAS_NUM_SHM_BUFFERS - 1; in TEST_F()
123 shm_.area->write_offset[shm_.area->read_buf_idx] = in TEST_F()
125 shm_.area->read_offset[shm_.area->read_buf_idx] = in TEST_F()
131 shm_.config.used_size * shm_.area->read_buf_idx + in TEST_F()
132 shm_.area->read_offset[shm_.area->read_buf_idx]); in TEST_F()
235 shm_.area->read_buf_idx = 0; in TEST_F()
Dcras_client_unittest.cc135 shm->area->read_buf_idx = 0; in TEST_F()
146 EXPECT_EQ(1, shm->area->read_buf_idx); in TEST_F()
152 shm->area->read_buf_idx = 0; in TEST_F()
157 EXPECT_EQ(0, shm->area->read_buf_idx); in TEST_F()
161 shm->area->read_buf_idx = 0; in TEST_F()
166 EXPECT_EQ(0, shm->area->read_buf_idx); in TEST_F()
/external/adhd/cras/src/server/
Ddev_stream.c561 rstream->shm.area->read_buf_idx); in dev_stream_capture_update_rstream()