• Home
  • Raw
  • Download

Lines Matching full:info

14 static struct hfp_info *info;  variable
32 info = hfp_info_create(); in TEST()
33 ASSERT_NE(info, (void *)NULL); in TEST()
37 ASSERT_EQ(0, hfp_info_add_iodev(info, &dev)); in TEST()
38 ASSERT_TRUE(hfp_info_has_iodev(info)); in TEST()
41 ASSERT_EQ(0, hfp_info_rm_iodev(info, &dev)); in TEST()
42 ASSERT_FALSE(hfp_info_has_iodev(info)); in TEST()
44 hfp_info_destroy(info); in TEST()
48 info = hfp_info_create(); in TEST()
49 ASSERT_NE(info, (void *)NULL); in TEST()
54 ASSERT_NE(0, hfp_info_rm_iodev(info, &dev)); in TEST()
57 ASSERT_EQ(0, hfp_info_add_iodev(info, &dev)); in TEST()
58 ASSERT_NE(0, hfp_info_add_iodev(info, &dev)); in TEST()
60 hfp_info_destroy(info); in TEST()
69 info = hfp_info_create(); in TEST()
70 ASSERT_NE(info, (void *)NULL); in TEST()
72 hfp_info_start(1, 48, info); in TEST()
74 ASSERT_EQ(0, hfp_info_add_iodev(info, &dev)); in TEST()
77 hfp_buf_acquire(info, &dev, &samples, &buffer_frames); in TEST()
80 hfp_buf_release(info, &dev, 500); in TEST()
81 ASSERT_EQ(500, hfp_buf_queued(info, &dev)); in TEST()
86 queued = hfp_buf_queued(info, &dev); in TEST()
88 hfp_buf_acquire(info, &dev, &samples, &buffer_frames); in TEST()
89 ASSERT_GE(info->playback_buf->used_size / 2, buffer_frames + queued); in TEST()
92 buf_increment_read(info->playback_buf, queued * 2); in TEST()
94 queued = hfp_buf_queued(info, &dev); in TEST()
99 hfp_buf_acquire(info, &dev, &samples, &buffer_frames); in TEST()
100 hfp_buf_release(info, &dev, buffer_frames); in TEST()
103 hfp_buf_acquire(info, &dev, &samples, &buffer_frames2); in TEST()
104 hfp_buf_release(info, &dev, buffer_frames2); in TEST()
106 ASSERT_GE(info->playback_buf->used_size / 2, buffer_frames + buffer_frames2); in TEST()
108 hfp_info_destroy(info); in TEST()
117 info = hfp_info_create(); in TEST()
118 ASSERT_NE(info, (void *)NULL); in TEST()
120 hfp_info_start(1, 48, info); in TEST()
122 ASSERT_EQ(0, hfp_info_add_iodev(info, &dev)); in TEST()
125 buf_increment_write(info->capture_buf, 100); in TEST()
129 hfp_buf_acquire(info, &dev, &samples, &buffer_frames); in TEST()
132 hfp_buf_release(info, &dev, buffer_frames); in TEST()
133 ASSERT_EQ(0, hfp_buf_queued(info, &dev)); in TEST()
136 buf_increment_write(info->capture_buf, info->capture_buf->used_size - 100); in TEST()
137 buf_increment_write(info->capture_buf, 100); in TEST()
141 hfp_buf_acquire(info, &dev, &samples, &buffer_frames); in TEST()
142 hfp_buf_release(info, &dev, buffer_frames); in TEST()
146 hfp_buf_acquire(info, &dev, &samples, &buffer_frames2); in TEST()
147 hfp_buf_release(info, &dev, buffer_frames2); in TEST()
149 ASSERT_GE(info->capture_buf->used_size / 2, buffer_frames + buffer_frames2); in TEST()
151 hfp_info_destroy(info); in TEST()
163 info = hfp_info_create(); in TEST()
164 ASSERT_NE(info, (void *)NULL); in TEST()
167 hfp_info_start(sock[1], 48, info); in TEST()
168 ASSERT_EQ(0, hfp_info_add_iodev(info, &dev)); in TEST()
173 rc = hfp_read(info); in TEST()
176 rc = hfp_buf_queued(info, &dev); in TEST()
180 buffer_count = info->capture_buf->used_size; in TEST()
181 buf = buf_write_pointer_size(info->capture_buf, &buffer_count); in TEST()
182 buf_increment_write(info->capture_buf, buffer_count); in TEST()
185 rc = hfp_read(info); in TEST()
188 ASSERT_EQ(0, hfp_info_rm_iodev(info, &dev)); in TEST()
190 ASSERT_EQ(0, hfp_info_add_iodev(info, &dev)); in TEST()
193 rc = hfp_write(info); in TEST()
197 buf = buf_write_pointer_size(info->playback_buf, &buffer_count); in TEST()
198 buf_increment_write(info->playback_buf, buffer_count); in TEST()
200 rc = hfp_write(info); in TEST()
206 hfp_info_destroy(info); in TEST()
214 info = hfp_info_create(); in TEST()
215 ASSERT_NE(info, (void *)NULL); in TEST()
217 hfp_info_start(sock[0], 48, info); in TEST()
218 ASSERT_EQ(1, hfp_info_running(info)); in TEST()
219 ASSERT_EQ(cb_data, (void *)info); in TEST()
221 hfp_info_stop(info); in TEST()
222 ASSERT_EQ(0, hfp_info_running(info)); in TEST()
225 hfp_info_destroy(info); in TEST()
237 info = hfp_info_create(); in TEST()
238 ASSERT_NE(info, (void *)NULL); in TEST()
241 hfp_info_start(sock[1], 48, info); in TEST()
249 ASSERT_EQ(0, hfp_info_add_iodev(info, &dev)); in TEST()
252 rc = hfp_buf_queued(info, &dev); in TEST()
260 rc = hfp_buf_queued(info, &dev); in TEST()
267 hfp_info_stop(info); in TEST()
268 ASSERT_EQ(0, hfp_info_running(info)); in TEST()
270 hfp_info_destroy(info); in TEST()
280 info = hfp_info_create(); in TEST()
281 ASSERT_NE(info, (void *)NULL); in TEST()
283 hfp_info_start(sock[1], 48, info); in TEST()
291 ASSERT_EQ(0, hfp_info_add_iodev(info, &dev)); in TEST()
294 ASSERT_EQ(0, hfp_buf_queued(info, &dev)); in TEST()
297 buf_increment_write(info->playback_buf, 1008); in TEST()
303 ASSERT_EQ(480, hfp_buf_queued(info, &dev)); in TEST()
305 hfp_info_stop(info); in TEST()
306 hfp_info_destroy(info); in TEST()