Home
last modified time | relevance | path

Searched refs:timespec (Results 1 – 25 of 114) sorted by relevance

12345

/system/extras/tests/timetest/
Dtimetest.c15 struct timespec t; in nanotime()
26 static struct timespec ts_sub(struct timespec a, struct timespec b) in ts_sub()
28 struct timespec r; in ts_sub()
42 static struct timespec ts_min(struct timespec a, struct timespec b) in ts_min()
50 static struct timespec ts_max(struct timespec a, struct timespec b) in ts_max()
61 struct timespec t1, dtmin, dtminp, dtmax; in main()
80 struct timespec t, dt; in main()
/system/core/liblog/include/log/
Dlog_time.h50 static const timespec EPOCH;
53 explicit log_time(const timespec& T) in log_time()
60 timespec T; in log_time()
77 bool operator==(const timespec& T) const {
81 bool operator!=(const timespec& T) const {
84 bool operator<(const timespec& T) const {
89 bool operator>=(const timespec& T) const {
92 bool operator>(const timespec& T) const {
97 bool operator<=(const timespec& T) const {
101 log_time operator-=(const timespec& T);
[all …]
/system/extras/tests/lib/testUtil/include/
DtestUtil.h28 struct timespec double2ts(double amt);
30 double ts2double(const struct timespec *val);
32 struct timespec tsDelta(const struct timespec *first,
33 const struct timespec *second);
/system/media/audio_utils/include/audio_utils/
Dclock_nanosleep.h32 int audio_utils_clock_nanosleep(clockid_t clock_id, int flags, const struct timespec *request, in audio_utils_clock_nanosleep()
33 struct timespec *remain) in audio_utils_clock_nanosleep()
48 int audio_utils_clock_nanosleep(clockid_t clock_id, int flags, const struct timespec *request, in audio_utils_clock_nanosleep()
49 struct timespec *remain) in audio_utils_clock_nanosleep()
Dfifo.h277 const struct timespec *timeout = NULL) = 0;
385 ssize_t write(const void *buffer, size_t count, const struct timespec *timeout = NULL);
389 const struct timespec *timeout = NULL);
512 ssize_t read(void *buffer, size_t count, const struct timespec *timeout = NULL,
517 const struct timespec *timeout = NULL);
531 ssize_t obtain(audio_utils_iovec iovec[2], size_t count, const struct timespec *timeout,
Dfifo_index.h66 int wait(int op, uint32_t expected, const struct timespec *timeout);
184 int wait(int op, const struct timespec *timeout);
Dclock.h104 static inline int64_t audio_utils_ns_from_timespec(const struct timespec *ts) in audio_utils_ns_from_timespec()
117 struct timespec now_ts; in audio_utils_get_real_time_ns()
/system/connectivity/wifilogd/
Draw_os.h39 NONNULL struct timespec* tspec) const;
45 virtual int Nanosleep(NONNULL const struct timespec* req,
46 struct timespec* rem);
Draw_os.cpp34 int RawOs::ClockGettime(clockid_t clock_id, struct timespec* ts) const { in ClockGettime()
42 int RawOs::Nanosleep(const struct timespec* req, struct timespec* rem) { in Nanosleep()
Dos.cpp53 struct timespec now_timespec; in GetTimestamp()
74 struct timespec sleep_timespec = { in Nanosleep()
76 SAFELY_CLAMP(sleep_time_nsec, decltype(timespec::tv_nsec), 0, kMaxNanos)}; in Nanosleep()
80 struct timespec remaining_timespec; in Nanosleep()
/system/connectivity/wifilogd/tests/
Dmock_raw_os.h34 int(clockid_t clock_id, struct timespec* tspec));
37 int(const struct timespec* req, struct timespec* rem));
Dos_unittest.cpp31 inline void PrintTo(const timespec& ts, ::std::ostream* os) { in PrintTo()
70 class TimespecMatcher : public MatcherInterface<const timespec&> {
72 explicit TimespecMatcher(const timespec& expected) : expected_(expected) {} in TimespecMatcher()
79 virtual bool MatchAndExplain(const timespec& actual, in MatchAndExplain()
86 const timespec& expected_;
89 Matcher<const timespec&> EqualsTimespec(const timespec& expected) { in EqualsTimespec()
118 constexpr struct timespec fake_time { kFakeSecs, kFakeNsecs }; in TEST_F()
154 .WillOnce(Invoke([](const timespec* /* desired */, timespec* remaining) { in TEST_F() argument
166 .WillOnce(Invoke([](const timespec* /* desired */, timespec* remaining) { in TEST_F() argument
172 .WillOnce(Invoke([](const timespec* /* desired */, timespec* remaining) { in TEST_F() argument
[all …]
/system/extras/tests/lib/testUtil/
DtestUtil.c44 double ts2double(const struct timespec *val) in ts2double()
66 struct timespec double2ts(double amt) in double2ts()
68 struct timespec rv; in double2ts()
100 struct timespec tsDelta(const struct timespec *first, in tsDelta()
101 const struct timespec *second) in tsDelta()
103 struct timespec rv; in tsDelta()
263 struct timespec start, current, delta; in testDelay()
264 struct timespec remaining; in testDelay()
289 struct timespec start, current, delta; in testDelaySpin()
/system/extras/tests/suspend_stress/
Dsuspend_stress.cpp35 long long timediff_ns(const struct timespec *a, const struct timespec *b) { in timediff_ns()
118 struct timespec expected_time; in main()
119 struct timespec actual_time; in main()
/system/netd/resolv/
Dres_send.cpp131 const struct timespec timeout);
132 static int retrying_poll(const int sock, short events, const struct timespec* finish);
143 static struct timespec evConsTime(time_t sec, long nsec) { in evConsTime()
144 struct timespec x; in evConsTime()
151 static struct timespec evAddTime(struct timespec addend1, struct timespec addend2) { in evAddTime()
152 struct timespec x; in evAddTime()
163 static struct timespec evSubTime(struct timespec minuend, struct timespec subtrahend) { in evSubTime()
164 struct timespec x; in evSubTime()
176 static int evCmpTime(struct timespec a, struct timespec b) { in evCmpTime()
187 static struct timespec evNowTime(void) { in evNowTime()
[all …]
/system/extras/simpleperf/runtest/
Drun_and_sleep.cpp9 timespec ts; in GetSystemClock()
25 struct timespec req; in SleepFunction()
/system/update_engine/common/
Dclock.cc28 struct timespec now_ts; in GetMonotonicTime()
44 struct timespec now_ts; in GetBootTime()
/system/core/liblog/
Dlog_time.cpp27 const timespec log_time::EPOCH = {0, 0};
137 log_time log_time::operator-=(const timespec& T) { in operator -=()
154 log_time log_time::operator+=(const timespec& T) { in operator +=()
Dfake_writer.cpp30 static int fakeWrite(log_id_t log_id, struct timespec* ts, struct iovec* vec, size_t nr);
74 static int fakeWrite(log_id_t log_id, struct timespec*, struct iovec* vec, size_t nr) { in fakeWrite() argument
/system/bt/common/
Dtime_util_unittest.cc70 struct timespec delay = {}; in TEST()
91 struct timespec delay = {}; in TEST()
132 struct timespec delay = {}; in TEST()
/system/core/base/
Dproperties.cpp125 static void DurationToTimeSpec(timespec& ts, const std::chrono::milliseconds d) { in DurationToTimeSpec()
135 static void UpdateTimeSpec(timespec& ts, std::chrono::milliseconds relative_timeout, in UpdateTimeSpec()
160 timespec ts; in WaitForPropertyCreation()
177 timespec ts; in WaitForProperty()
/system/media/audio_utils/
Dfifo_index.cpp36 int audio_utils_fifo_index::wait(int op, uint32_t expected, const struct timespec *timeout) in wait()
155 int RefIndexCachedLoadAcquireDeferredWait::wait(int op, const struct timespec *timeout) in wait()
/system/core/liblog/tests/
Dlog_time_test.cpp24 struct timespec ts; in TEST()
/system/core/libstats/
Dstatsd_writer.h40 int (*write)(struct timespec* ts, struct iovec* vec, size_t nr);
/system/chre/platform/linux/
Dsystem_time.cc29 struct timespec timeNow; in getMonotonicTime()

12345