Lines Matching refs:used_frames

91   uint32_t used_frames = used_size / cras_shm_frame_bytes(&shm_);  in TEST_F()  local
96 EXPECT_EQ(used_frames / 4, frames_); in TEST_F()
99 EXPECT_EQ(used_frames / 2, frames_); in TEST_F()
102 cras_shm_buffer_read(&shm_, (used_frames / 2) + (used_frames / 4) - 10); in TEST_F()
104 EXPECT_EQ(((used_frames / 2) - 10) * shm_.config.frame_bytes, in TEST_F()
112 uint32_t used_frames = used_size / cras_shm_frame_bytes(&shm_); in TEST_F() local
117 EXPECT_EQ(used_frames / 4, frames_); in TEST_F()
120 EXPECT_EQ(used_frames / 2, frames_); in TEST_F()
123 cras_shm_buffer_read(&shm_, (used_frames / 2) + (used_frames / 4)); in TEST_F()
132 uint32_t used_frames = used_size / cras_shm_frame_bytes(&shm_); in TEST_F() local
140 EXPECT_EQ(used_frames / 4, frames_); in TEST_F()
145 EXPECT_EQ(used_frames / 2, frames_); in TEST_F()
148 cras_shm_buffer_read(&shm_, (used_frames / 2) + (used_frames / 4) - 10); in TEST_F()
150 EXPECT_EQ(((used_frames / 2) - 10) * shm_.config.frame_bytes, in TEST_F()
296 uint32_t used_frames = 24; in TEST_F() local
297 uint32_t used_size = used_frames * frame_bytes; in TEST_F()
302 shm_.header->read_offset[0] = (used_frames / 4) * shm_.config.frame_bytes; in TEST_F()
303 shm_.header->write_offset[0] = (used_frames / 2) * shm_.config.frame_bytes; in TEST_F()
305 shm_.header->write_offset[1] = (used_frames / 3) * shm_.config.frame_bytes; in TEST_F()
307 EXPECT_EQ(used_frames / 4, frames_); in TEST_F()
311 EXPECT_EQ(used_frames / 3, frames_); in TEST_F()
314 cras_shm_buffer_read(&shm_, (used_frames / 4) + (used_frames / 3) - 5); in TEST_F()
316 EXPECT_EQ(((used_frames / 3) - 5) * shm_.config.frame_bytes, in TEST_F()
322 uint32_t used_frames = 24; in TEST_F() local
323 uint32_t used_size = used_frames * frame_bytes; in TEST_F()
341 frames_ = MIN(10 + i, used_frames); in TEST_F()
367 frames_ = MIN(3 + 2 * i, used_frames); in TEST_F()
390 frames_ = MIN(3 + 2 * i, used_frames); in TEST_F()