Home
last modified time | relevance | path

Searched refs:subtract_timespecs (Results 1 – 15 of 15) sorted by relevance

/external/adhd/cras/src/common/
Dcras_util.h87 static inline void subtract_timespecs(const struct timespec *end, in subtract_timespecs() function
186 subtract_timespecs(&now, beg, &time_since); in cras_frames_since_time()
200 subtract_timespecs(end, &now, &time_until); in cras_frames_until_time()
211 subtract_timespecs(a, b, &diff); in timespec_diff_shorter_than()
213 subtract_timespecs(b, a, &diff); in timespec_diff_shorter_than()
Dcras_util.c213 subtract_timespecs(&future, &now, timeout); in cras_poll()
/external/adhd/cras/src/tests/
Dserver_metrics_unittest.cc164 subtract_timespecs(&clock_gettime_retspec, &stream.start_ts, &diff_ts); in TEST()
179 subtract_timespecs(&clock_gettime_retspec, &stream.first_missed_cb_ts, in TEST()
205 subtract_timespecs(&clock_gettime_retspec, &stream.start_ts, &diff_ts); in TEST()
220 subtract_timespecs(&clock_gettime_retspec, &stream.first_missed_cb_ts, in TEST()
282 subtract_timespecs(&clock_gettime_retspec, &stream.start_ts, &diff_ts); in TEST()
294 subtract_timespecs(&clock_gettime_retspec, &stream.first_missed_cb_ts, in TEST()
Dtiming_unittest.cc530 subtract_timespecs(&dev_time, &start, &delta); in TEST_F()
561 subtract_timespecs(&dev_time, &start, &delta); in TEST_F()
591 subtract_timespecs(&dev_time, &start, &delta); in TEST_F()
627 subtract_timespecs(&dev_time, &start, &delta2); in TEST_F()
661 subtract_timespecs(&dev_time, &start, &delta2); in TEST_F()
698 subtract_timespecs(&dev_time, &start, &delta2); in TEST_F()
728 subtract_timespecs(&dev_time, &start, &delta); in TEST_F()
764 subtract_timespecs(&dev_time, &start, &delta); in TEST_F()
802 subtract_timespecs(&dev_time, &start, &delta); in TEST_F()
/external/adhd/cras/src/server/
Dcras_server_metrics.c616 subtract_timespecs(&now, &iodev->open_ts, &data.device_data.runtime); in cras_server_metrics_device_runtime()
780 subtract_timespecs(&stream->longest_fetch_interval, in cras_server_metrics_longest_fetch_delay()
827 subtract_timespecs(&now, &stream->start_ts, &time_since); in cras_server_metrics_missed_cb_frequency()
858 subtract_timespecs(&now, &stream->first_missed_cb_ts, &time_since); in cras_server_metrics_missed_cb_frequency()
898 subtract_timespecs(&stream->first_missed_cb_ts, &stream->start_ts, in cras_server_metrics_missed_cb_first_time()
929 subtract_timespecs(&now, &stream->first_missed_cb_ts, &time_since); in cras_server_metrics_missed_cb_second_time()
1011 subtract_timespecs(&now, &stream->start_ts, &data.stream_data.runtime); in cras_server_metrics_stream_runtime()
Dpolled_interval_checker.c20 subtract_timespecs(&now, last_active_ts, &diff); in get_sec_since_last_active()
Dcras_audio_thread_monitor.c123 subtract_timespecs(&now_time, last_snapshot_time, &diff_time); in handle_audio_thread_event_message()
Dcras_tm.c122 subtract_timespecs(min, &now, ts); in cras_tm_get_next_timeout()
Daudio_thread.c506 subtract_timespecs(&now, &adev->dev->open_ts, &time_since); in append_dev_dump_info()
554 subtract_timespecs(&now, &stream->stream->start_ts, &time_since); in append_stream_dump_info()
741 subtract_timespecs(&min_ts, &now, ts); in fill_next_sleep_interval()
784 subtract_timespecs(&now, &start_time, &diff); in log_busyloop()
Dcras_rstream.c368 subtract_timespecs(now, &rstream->last_fetch_ts, &ts); in cras_rstream_record_fetch_interval()
Dcras_a2dp_iodev.c457 subtract_timespecs(&now, &a2dpio->next_flush_time, &ts); in encode_and_flush()
Ddev_io.c1009 subtract_timespecs(&now, &last_io_err_time, &diff); in handle_dev_err()
1166 subtract_timespecs(ts, &adev->last_wake, in update_longest_wake()
Dcras_dsp_pipeline.c888 subtract_timespecs(&end, &begin, &delta); in cras_dsp_pipeline_apply()
Dcras_iodev_list.c432 subtract_timespecs(&min_idle_expiration, &now, &timeout); in idle_dev_check()
/external/adhd/cras/src/libcras/
Dcras_client.c3175 subtract_timespecs(sample_time, &now, delay); in cras_client_calc_playback_latency()
3190 subtract_timespecs(&now, sample_time, delay); in cras_client_calc_capture_latency()