Lines Matching refs:start
184 struct timespec start; in TEST_F() local
185 clock_gettime(CLOCK_MONOTONIC_RAW, &start); in TEST_F()
189 SingleInputDevNextWake(4800000, 0, &start, &format, streams); in TEST_F()
192 add_timespecs(&start, &add_millis); in TEST_F()
193 EXPECT_EQ(start.tv_sec, dev_time.tv_sec); in TEST_F()
194 EXPECT_EQ(start.tv_nsec, dev_time.tv_nsec); in TEST_F()
206 struct timespec start; in TEST_F() local
207 clock_gettime(CLOCK_MONOTONIC_RAW, &start); in TEST_F()
210 stream1->rstream->next_cb_ts = start; in TEST_F()
213 stream2->rstream->next_cb_ts = start; in TEST_F()
221 SingleInputDevNextWake(480000, 0, &start, &format, streams); in TEST_F()
223 EXPECT_EQ(start.tv_sec + 5, dev_time.tv_sec); in TEST_F()
224 EXPECT_EQ(start.tv_nsec, dev_time.tv_nsec); in TEST_F()
236 struct timespec start; in TEST_F() local
237 clock_gettime(CLOCK_MONOTONIC_RAW, &start); in TEST_F()
240 stream1->rstream->next_cb_ts = start; in TEST_F()
244 stream2->rstream->next_cb_ts = start; in TEST_F()
251 SingleInputDevNextWake(480000, 0, &start, &format, streams); in TEST_F()
253 EXPECT_EQ(start.tv_sec + 2, dev_time.tv_sec); in TEST_F()
254 EXPECT_EQ(start.tv_nsec, dev_time.tv_nsec); in TEST_F()
266 struct timespec start, stream_wake; in TEST_F() local
267 clock_gettime(CLOCK_MONOTONIC_RAW, &start); in TEST_F()
271 stream_wake = start; in TEST_F()
280 timespec wake_time = SingleInputDevNextWake(240, 0, &start, &format, streams); in TEST_F()
297 struct timespec start; in TEST_F() local
298 clock_gettime(CLOCK_MONOTONIC_RAW, &start); in TEST_F()
306 timespec dev_time = SingleInputDevNextWake(240, 0, &start, &format, streams); in TEST_F()
310 add_timespecs(&start, &add_millis); in TEST_F()
311 EXPECT_EQ(start.tv_sec, dev_time.tv_sec); in TEST_F()
312 EXPECT_EQ(start.tv_nsec, dev_time.tv_nsec); in TEST_F()
323 struct timespec start; in TEST_F() local
324 clock_gettime(CLOCK_MONOTONIC_RAW, &start); in TEST_F()
327 stream->rstream->next_cb_ts = start; in TEST_F()
334 timespec dev_time = SingleInputDevNextWake(4800, 0, &start, &format, streams); in TEST_F()
339 add_timespecs(&start, &add_millis); in TEST_F()
340 EXPECT_EQ(start.tv_sec, dev_time.tv_sec); in TEST_F()
341 EXPECT_EQ(start.tv_nsec, dev_time.tv_nsec); in TEST_F()
353 struct timespec start; in TEST_F() local
354 clock_gettime(CLOCK_MONOTONIC_RAW, &start); in TEST_F()
362 timespec dev_time = SingleInputDevNextWake(600, 0, &start, &format, streams); in TEST_F()
367 add_timespecs(&start, &ten_millis); in TEST_F()
370 EXPECT_EQ(start.tv_sec, dev_time.tv_sec); in TEST_F()
371 EXPECT_EQ(start.tv_nsec, dev_time.tv_nsec); in TEST_F()
383 struct timespec start; in TEST_F() local
384 clock_gettime(CLOCK_MONOTONIC_RAW, &start); in TEST_F()
394 SingleInputDevNextWake(480, 480, &start, &format, streams); in TEST_F()
397 EXPECT_EQ(start.tv_sec, dev_time.tv_sec); in TEST_F()
398 EXPECT_EQ(start.tv_nsec, dev_time.tv_nsec); in TEST_F()
410 struct timespec start; in TEST_F() local
411 clock_gettime(CLOCK_MONOTONIC_RAW, &start); in TEST_F()
414 stream->rstream->next_cb_ts = start; in TEST_F()
420 timespec dev_time = SingleInputDevNextWake(600, 0, &start, &format, streams); in TEST_F()
425 add_timespecs(&start, &add_millis); in TEST_F()
426 EXPECT_EQ(start.tv_sec, dev_time.tv_sec); in TEST_F()
427 EXPECT_EQ(start.tv_nsec, dev_time.tv_nsec); in TEST_F()
437 struct timespec start; in TEST_F() local
438 clock_gettime(CLOCK_MONOTONIC_RAW, &start); in TEST_F()
441 timespec dev_time = SingleInputDevNextWake(480, 0, &start, &format, streams); in TEST_F()
444 add_timespecs(&start, &add_millis); in TEST_F()
445 EXPECT_EQ(start.tv_sec, dev_time.tv_sec); in TEST_F()
446 EXPECT_EQ(start.tv_nsec, dev_time.tv_nsec); in TEST_F()
458 struct timespec start; in TEST_F() local
459 clock_gettime(CLOCK_MONOTONIC_RAW, &start); in TEST_F()
462 stream->rstream->next_cb_ts = start; in TEST_F()
468 SingleInputDevNextWake(480, 480, &start, &format, streams); in TEST_F()
471 add_timespecs(&start, &add_millis); in TEST_F()
472 EXPECT_EQ(start.tv_sec, dev_time.tv_sec); in TEST_F()
473 EXPECT_EQ(start.tv_nsec, dev_time.tv_nsec); in TEST_F()
487 struct timespec start; in TEST_F() local
488 clock_gettime(CLOCK_MONOTONIC_RAW, &start); in TEST_F()
489 stream->rstream->next_cb_ts = start; in TEST_F()
495 SingleInputDevNextWake(cb_threshold, 0, &start, &format, streams); in TEST_F()
500 add_timespecs(&start, &ten_millis); in TEST_F()
501 EXPECT_EQ(start.tv_sec, streams[0]->rstream->next_cb_ts.tv_sec); in TEST_F()
502 EXPECT_EQ(start.tv_nsec, streams[0]->rstream->next_cb_ts.tv_nsec); in TEST_F()
520 struct timespec start; in TEST_F() local
521 clock_gettime(CLOCK_MONOTONIC_RAW, &start); in TEST_F()
522 stream->rstream->next_cb_ts = start; in TEST_F()
527 &start, &format, streams); in TEST_F()
530 subtract_timespecs(&dev_time, &start, &delta); in TEST_F()
551 struct timespec start; in TEST_F() local
552 clock_gettime(CLOCK_MONOTONIC_RAW, &start); in TEST_F()
553 stream->rstream->next_cb_ts = start; in TEST_F()
558 &start, &format, streams); in TEST_F()
561 subtract_timespecs(&dev_time, &start, &delta); in TEST_F()
579 struct timespec start; in TEST_F() local
580 clock_gettime(CLOCK_MONOTONIC_RAW, &start); in TEST_F()
581 stream->rstream->next_cb_ts = start; in TEST_F()
587 SingleInputDevNextWake(480, 0, &start, &dev_format, streams); in TEST_F()
591 subtract_timespecs(&dev_time, &start, &delta); in TEST_F()
608 struct timespec start; in TEST_F() local
609 clock_gettime(CLOCK_MONOTONIC_RAW, &start); in TEST_F()
610 stream1->rstream->next_cb_ts = start; in TEST_F()
616 stream2->rstream->next_cb_ts = start; in TEST_F()
623 SingleInputDevNextWake(cb_threshold, 0, &start, &format, streams); in TEST_F()
627 subtract_timespecs(&dev_time, &start, &delta2); in TEST_F()
643 struct timespec start; in TEST_F() local
644 clock_gettime(CLOCK_MONOTONIC_RAW, &start); in TEST_F()
645 stream1->rstream->next_cb_ts = start; in TEST_F()
649 stream2->rstream->next_cb_ts = start; in TEST_F()
656 SingleInputDevNextWake(441, 0, &start, &s1_format, streams); in TEST_F()
661 subtract_timespecs(&dev_time, &start, &delta2); in TEST_F()
674 struct timespec start; in TEST_F() local
675 clock_gettime(CLOCK_MONOTONIC_RAW, &start); in TEST_F()
679 stream1->rstream->next_cb_ts = start; in TEST_F()
685 stream2->rstream->next_cb_ts = start; in TEST_F()
694 SingleInputDevNextWake(441, 441, &start, &s1_format, streams); in TEST_F()
698 subtract_timespecs(&dev_time, &start, &delta2); in TEST_F()
710 struct timespec start, delay; in TEST_F() local
711 clock_gettime(CLOCK_MONOTONIC_RAW, &start); in TEST_F()
715 stream->rstream->next_cb_ts = start; in TEST_F()
726 timespec dev_time = SingleInputDevNextWake(4096, 0, &start, &fmt, streams); in TEST_F()
728 subtract_timespecs(&dev_time, &start, &delta); in TEST_F()
742 struct timespec start; in TEST_F() local
743 clock_gettime(CLOCK_MONOTONIC_RAW, &start); in TEST_F()
747 stream->rstream->next_cb_ts = start; in TEST_F()
756 timespec dev_time = SingleInputDevNextWake(4096, 7000, &start, &fmt, streams, in TEST_F()
764 subtract_timespecs(&dev_time, &start, &delta); in TEST_F()
781 struct timespec start; in TEST_F() local
782 clock_gettime(CLOCK_MONOTONIC_RAW, &start); in TEST_F()
786 stream->rstream->next_cb_ts = start; in TEST_F()
795 timespec dev_time = SingleInputDevNextWake(4096, 7000, &start, &fmt, streams); in TEST_F()
802 subtract_timespecs(&dev_time, &start, &delta); in TEST_F()
905 struct timespec start; in TEST_F() local
906 clock_gettime(CLOCK_MONOTONIC_RAW, &start); in TEST_F()
914 EXPECT_EQ(start.tv_sec, rstream->next_cb_ts.tv_sec); in TEST_F()
915 EXPECT_EQ(start.tv_nsec, rstream->next_cb_ts.tv_nsec); in TEST_F()
935 struct timespec start; in TEST_F() local
936 clock_gettime(CLOCK_MONOTONIC_RAW, &start); in TEST_F()
938 iodev_stub_valid_frames(iodev, 960, start); in TEST_F()
949 add_timespecs(&start, &add_millis); in TEST_F()
950 EXPECT_EQ(start.tv_sec, rstream->next_cb_ts.tv_sec); in TEST_F()
951 EXPECT_EQ(start.tv_nsec, rstream->next_cb_ts.tv_nsec); in TEST_F()
987 struct timespec start; in TEST_F() local
988 clock_gettime(CLOCK_MONOTONIC_RAW, &start); in TEST_F()
991 stream->rstream->next_cb_ts = start; in TEST_F()
997 struct timespec dev_wake_ts = start; in TEST_F()
1001 SingleOutputDevNextWake(48000, 0, &start, &format, streams, &dev_wake_ts); in TEST_F()
1003 EXPECT_EQ(start.tv_sec + 1, dev_time.tv_sec); in TEST_F()
1004 EXPECT_EQ(start.tv_nsec, dev_time.tv_nsec); in TEST_F()
1012 struct timespec start; in TEST_F() local
1013 clock_gettime(CLOCK_MONOTONIC_RAW, &start); in TEST_F()
1016 stream->rstream->next_cb_ts = start; in TEST_F()
1022 struct timespec dev_wake_ts = start; in TEST_F()
1026 SingleOutputDevNextWake(48000, 0, &start, &format, streams, &dev_wake_ts); in TEST_F()
1028 EXPECT_EQ(start.tv_sec + 1, dev_time.tv_sec); in TEST_F()
1029 EXPECT_EQ(start.tv_nsec, dev_time.tv_nsec); in TEST_F()
1038 struct timespec start; in TEST_F() local
1039 clock_gettime(CLOCK_MONOTONIC_RAW, &start); in TEST_F()
1042 stream1->rstream->next_cb_ts = start; in TEST_F()
1048 stream2->rstream->next_cb_ts = start; in TEST_F()
1055 struct timespec dev_wake_ts = start; in TEST_F()
1059 SingleOutputDevNextWake(48000, 0, &start, &format, streams, &dev_wake_ts); in TEST_F()
1061 EXPECT_EQ(start.tv_sec + 5, dev_time.tv_sec); in TEST_F()
1062 EXPECT_EQ(start.tv_nsec, dev_time.tv_nsec); in TEST_F()
1071 struct timespec start; in TEST_F() local
1072 clock_gettime(CLOCK_MONOTONIC_RAW, &start); in TEST_F()
1075 stream1->rstream->next_cb_ts = start; in TEST_F()
1080 stream2->rstream->next_cb_ts = start; in TEST_F()
1087 struct timespec dev_wake_ts = start; in TEST_F()
1091 SingleOutputDevNextWake(48000, 0, &start, &format, streams, &dev_wake_ts); in TEST_F()
1093 EXPECT_EQ(start.tv_sec + 5, dev_time.tv_sec); in TEST_F()
1094 EXPECT_EQ(start.tv_nsec, dev_time.tv_nsec); in TEST_F()
1103 struct timespec start; in TEST_F() local
1104 clock_gettime(CLOCK_MONOTONIC_RAW, &start); in TEST_F()
1107 stream1->rstream->next_cb_ts = start; in TEST_F()
1112 stream2->rstream->next_cb_ts = start; in TEST_F()
1119 struct timespec dev_wake_ts = start; in TEST_F()
1123 SingleOutputDevNextWake(48000, 0, &start, &format, streams, &dev_wake_ts); in TEST_F()
1125 EXPECT_EQ(start.tv_sec + 5, dev_time.tv_sec); in TEST_F()
1126 EXPECT_EQ(start.tv_nsec, dev_time.tv_nsec); in TEST_F()
1134 struct timespec start; in TEST_F() local
1135 clock_gettime(CLOCK_MONOTONIC_RAW, &start); in TEST_F()
1138 stream1->rstream->next_cb_ts = start; in TEST_F()
1142 stream2->rstream->next_cb_ts = start; in TEST_F()
1149 struct timespec dev_wake_ts = start; in TEST_F()
1153 SingleOutputDevNextWake(48000, 0, &start, &format, streams, &dev_wake_ts); in TEST_F()
1155 EXPECT_EQ(start.tv_sec + 2, dev_time.tv_sec); in TEST_F()
1156 EXPECT_EQ(start.tv_nsec, dev_time.tv_nsec); in TEST_F()
1168 struct timespec start; in TEST_F() local
1169 clock_gettime(CLOCK_MONOTONIC_RAW, &start); in TEST_F()
1170 stream->rstream->next_cb_ts = start; in TEST_F()
1184 add_timespecs(&start, &ten_millis); in TEST_F()
1185 EXPECT_EQ(start.tv_sec, stream->rstream->next_cb_ts.tv_sec); in TEST_F()
1186 EXPECT_EQ(start.tv_nsec, stream->rstream->next_cb_ts.tv_nsec); in TEST_F()