/system/extras/tests/timetest/ |
D | timetest.c | 15 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/ |
D | log_time.h | 44 log_time(const timespec& T) in log_time() 53 static const timespec EPOCH; 59 timespec T; in log_time() 76 bool operator==(const timespec& T) const { 80 bool operator!=(const timespec& T) const { 83 bool operator<(const timespec& T) const { 88 bool operator>=(const timespec& T) const { 91 bool operator>(const timespec& T) const { 96 bool operator<=(const timespec& T) const { 101 log_time operator-=(const timespec& T); [all …]
|
/system/core/liblog/include_vndk/log/ |
D | log_time.h | 44 log_time(const timespec& T) in log_time() 53 static const timespec EPOCH; 59 timespec T; in log_time() 76 bool operator==(const timespec& T) const { 80 bool operator!=(const timespec& T) const { 83 bool operator<(const timespec& T) const { 88 bool operator>=(const timespec& T) const { 91 bool operator>(const timespec& T) const { 96 bool operator<=(const timespec& T) const { 101 log_time operator-=(const timespec& T); [all …]
|
/system/extras/tests/include/ |
D | testUtil.h | 28 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/ |
D | clock_nanosleep.h | 32 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()
|
D | fifo.h | 273 const struct timespec *timeout = NULL) = 0; 375 ssize_t write(const void *buffer, size_t count, const struct timespec *timeout = NULL); 379 const struct timespec *timeout = NULL); 501 ssize_t read(void *buffer, size_t count, const struct timespec *timeout = NULL, 506 const struct timespec *timeout = NULL); 520 ssize_t obtain(audio_utils_iovec iovec[2], size_t count, const struct timespec *timeout,
|
D | clock.h | 85 static inline int64_t audio_utils_ns_from_timespec(const struct timespec *ts) in audio_utils_ns_from_timespec() 98 struct timespec now_ts; in audio_utils_get_real_time_ns()
|
D | fifo_index.h | 65 int wait(int op, uint32_t expected, const struct timespec *timeout); 183 int wait(int op, const struct timespec *timeout);
|
/system/extras/tests/lib/testUtil/ |
D | testUtil.c | 46 double ts2double(const struct timespec *val) in ts2double() 68 struct timespec double2ts(double amt) in double2ts() 70 struct timespec rv; in double2ts() 102 struct timespec tsDelta(const struct timespec *first, in tsDelta() 103 const struct timespec *second) in tsDelta() 105 struct timespec rv; in tsDelta() 265 struct timespec start, current, delta; in testDelay() 266 struct timespec remaining; in testDelay() 291 struct timespec start, current, delta; in testDelaySpin()
|
/system/connectivity/wifilogd/ |
D | raw_os.h | 39 NONNULL struct timespec* tspec) const; 45 virtual int Nanosleep(NONNULL const struct timespec* req, 46 struct timespec* rem);
|
D | raw_os.cpp | 34 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()
|
D | os.cpp | 53 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/ |
D | mock_raw_os.h | 34 int(clockid_t clock_id, struct timespec* tspec)); 37 int(const struct timespec* req, struct timespec* rem));
|
D | os_unittest.cpp | 31 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/sdcard/ |
D | stopwatch.h | 79 struct timespec mTime; 126 double timespecToDouble(const struct timespec& time); 133 struct timespec mStart;
|
/system/extras/tests/suspend_stress/ |
D | suspend_stress.cpp | 35 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/update_engine/common/ |
D | clock.cc | 28 struct timespec now_ts; in GetMonotonicTime() 44 struct timespec now_ts; in GetBootTime()
|
/system/bt/osi/test/ |
D | time_test.cc | 79 struct timespec delay; in TEST_F() 100 struct timespec delay; in TEST_F() 140 struct timespec delay; in TEST_F()
|
/system/core/liblog/ |
D | log_time.cpp | 27 LIBLOG_ABI_PRIVATE const timespec log_time::EPOCH = { 0, 0 }; 137 LIBLOG_ABI_PRIVATE log_time log_time::operator-=(const timespec& T) { in operator -=() 154 LIBLOG_ABI_PRIVATE log_time log_time::operator+=(const timespec& T) { in operator +=()
|
D | fake_writer.c | 30 static int fakeWrite(log_id_t log_id, struct timespec* ts, struct iovec* vec, 75 static int fakeWrite(log_id_t log_id, struct timespec* ts __unused, in fakeWrite()
|
D | logprint.c | 1229 static char* readSeconds(char* e, struct timespec* t) { in readSeconds() 1244 static struct timespec* sumTimespec(struct timespec* left, in sumTimespec() 1245 struct timespec* right) { in sumTimespec() 1255 static struct timespec* subTimespec(struct timespec* result, in subTimespec() 1256 struct timespec* left, in subTimespec() 1257 struct timespec* right) { in subTimespec() 1267 static long long nsecTimespec(struct timespec* now) { in nsecTimespec() 1272 static void convertMonotonic(struct timespec* result, in convertMonotonic() 1277 struct timespec time; in convertMonotonic() 1278 struct timespec convert; in convertMonotonic() [all …]
|
/system/core/base/ |
D | properties.cpp | 104 static void DurationToTimeSpec(timespec& ts, std::chrono::nanoseconds d) { in DurationToTimeSpec() 113 static void UpdateTimeSpec(timespec& ts, in UpdateTimeSpec() 141 timespec ts; in WaitForPropertyCreation() 159 timespec ts; in WaitForProperty()
|
/system/media/audio_utils/ |
D | fifo_index.cpp | 35 int audio_utils_fifo_index::wait(int op, uint32_t expected, const struct timespec *timeout) in wait() 154 int RefIndexCachedLoadAcquireDeferredWait::wait(int op, const struct timespec *timeout) in wait()
|
/system/chre/platform/linux/ |
D | system_time.cc | 29 struct timespec timeNow; in getMonotonicTime()
|
/system/core/liblog/tests/ |
D | log_time_test.cpp | 30 struct timespec ts; in TEST()
|