Home
last modified time | relevance | path

Searched refs:next_cb_ts (Results 1 – 10 of 10) sorted by relevance

/external/adhd/cras/src/tests/
Dtiming_unittest.cc130 EXPECT_EQ(0, rstream->next_cb_ts.tv_sec); in TEST_F()
131 EXPECT_EQ(0, rstream->next_cb_ts.tv_nsec); in TEST_F()
210 stream1->rstream->next_cb_ts = start; in TEST_F()
213 stream2->rstream->next_cb_ts = start; in TEST_F()
214 stream2->rstream->next_cb_ts.tv_sec += 5; in TEST_F()
240 stream1->rstream->next_cb_ts = start; in TEST_F()
241 stream1->rstream->next_cb_ts.tv_sec += 2; in TEST_F()
244 stream2->rstream->next_cb_ts = start; in TEST_F()
245 stream2->rstream->next_cb_ts.tv_sec += 5; in TEST_F()
273 stream->rstream->next_cb_ts = stream_wake; in TEST_F()
[all …]
Ddev_stream_unittest.cc360 EXPECT_EQ(init_cb_ts.tv_sec, rstream_.next_cb_ts.tv_sec); in TEST_F()
361 EXPECT_EQ(init_cb_ts.tv_nsec, rstream_.next_cb_ts.tv_nsec); in TEST_F()
718 rstream_.next_cb_ts.tv_sec = 1; in TEST_F()
719 rstream_.next_cb_ts.tv_nsec = 0; in TEST_F()
772 EXPECT_EQ(expected_next_cb_ts.tv_sec, rstream_.next_cb_ts.tv_sec); in TEST_F()
773 EXPECT_EQ(expected_next_cb_ts.tv_nsec, rstream_.next_cb_ts.tv_nsec); in TEST_F()
778 rstream_.next_cb_ts.tv_sec = 1; in TEST_F()
779 rstream_.next_cb_ts.tv_nsec = 0; in TEST_F()
796 EXPECT_EQ(expected_next_cb_ts.tv_sec, rstream_.next_cb_ts.tv_sec); in TEST_F()
797 EXPECT_EQ(expected_next_cb_ts.tv_nsec, rstream_.next_cb_ts.tv_nsec); in TEST_F()
[all …]
Diodev_unittest.cc1454 rstream1.next_cb_ts.tv_sec = 2; in TEST()
1455 rstream1.next_cb_ts.tv_nsec = 0; in TEST()
1456 rstream2.next_cb_ts.tv_sec = 1; in TEST()
1457 rstream2.next_cb_ts.tv_nsec = 0; in TEST()
1458 rstream3.next_cb_ts.tv_sec = 1; in TEST()
1459 rstream3.next_cb_ts.tv_nsec = 0; in TEST()
1467 EXPECT_EQ(rstream3.next_cb_ts.tv_sec, rstream1.next_cb_ts.tv_sec); in TEST()
1468 EXPECT_EQ(rstream3.next_cb_ts.tv_nsec, rstream1.next_cb_ts.tv_nsec); in TEST()
Ddev_io_unittest.cc65 stream->rstream->next_cb_ts = start; in TEST_F()
Daudio_thread_unittest.cc577 rstream1.next_cb_ts = expect_ts; in TEST_F()
/external/adhd/cras/src/server/
Ddev_stream.c135 stream->next_cb_ts = *cb_ts; in dev_stream_create()
476 if (timespec_after(&now, &rstream->next_cb_ts)) { in check_next_wake_time()
477 rstream->next_cb_ts = now; in check_next_wake_time()
478 add_timespecs(&rstream->next_cb_ts, in check_next_wake_time()
481 rstream->next_cb_ts.tv_sec, rstream->next_cb_ts.tv_nsec); in check_next_wake_time()
495 !timespec_is_nonzero(&rstream->next_cb_ts)) { in dev_stream_update_next_wake_time()
496 clock_gettime(CLOCK_MONOTONIC_RAW, &rstream->next_cb_ts); in dev_stream_update_next_wake_time()
497 add_timespecs(&rstream->next_cb_ts, in dev_stream_update_next_wake_time()
502 add_timespecs(&rstream->next_cb_ts, &rstream->sleep_interval_ts); in dev_stream_update_next_wake_time()
519 return timespec_after(&now, &rstream->next_cb_ts); in late_enough_for_capture_callback()
[all …]
Ddev_io.c159 const struct timespec *next_cb_ts; in is_time_to_fetch() local
160 next_cb_ts = dev_stream_next_cb_ts(dev_stream); in is_time_to_fetch()
161 if (!next_cb_ts) in is_time_to_fetch()
169 if (timespec_after(&now, next_cb_ts)) in is_time_to_fetch()
1232 const struct timespec *next_cb_ts; in get_next_stream_wake_from_list() local
1240 next_cb_ts = dev_stream_next_cb_ts(dev_stream); in get_next_stream_wake_from_list()
1241 if (!next_cb_ts) in get_next_stream_wake_from_list()
1245 dev_stream->stream->stream_id, next_cb_ts->tv_sec, in get_next_stream_wake_from_list()
1246 next_cb_ts->tv_nsec); in get_next_stream_wake_from_list()
1247 if (timespec_after(min_ts, next_cb_ts)) in get_next_stream_wake_from_list()
[all …]
Ddev_stream.h218 return &dev_stream->stream->next_cb_ts; in dev_stream_next_cb_ts()
Dcras_rstream.h82 struct timespec next_cb_ts; member
Dcras_iodev.c849 earliest_next_cb_ts = out->stream->next_cb_ts; in cras_iodev_rm_stream()
852 &out->stream->next_cb_ts)) in cras_iodev_rm_stream()
853 earliest_next_cb_ts = out->stream->next_cb_ts; in cras_iodev_rm_stream()
873 out->stream->next_cb_ts = earliest_next_cb_ts; in cras_iodev_rm_stream()