Home
last modified time | relevance | path

Searched refs:nsecs_t (Results 1 – 20 of 20) sorted by relevance

/system/core/libutils/include/utils/
DTimers.h36 typedef int64_t nsecs_t; // nano-seconds typedef
38 static CONSTEXPR inline nsecs_t seconds_to_nanoseconds(nsecs_t secs) in seconds_to_nanoseconds()
43 static CONSTEXPR inline nsecs_t milliseconds_to_nanoseconds(nsecs_t secs) in milliseconds_to_nanoseconds()
48 static CONSTEXPR inline nsecs_t microseconds_to_nanoseconds(nsecs_t secs) in microseconds_to_nanoseconds()
53 static CONSTEXPR inline nsecs_t nanoseconds_to_seconds(nsecs_t secs) in nanoseconds_to_seconds()
58 static CONSTEXPR inline nsecs_t nanoseconds_to_milliseconds(nsecs_t secs) in nanoseconds_to_milliseconds()
63 static CONSTEXPR inline nsecs_t nanoseconds_to_microseconds(nsecs_t secs) in nanoseconds_to_microseconds()
68 static CONSTEXPR inline nsecs_t s2ns(nsecs_t v) {return seconds_to_nanoseconds(v);} in s2ns()
69 static CONSTEXPR inline nsecs_t ms2ns(nsecs_t v) {return milliseconds_to_nanoseconds(v);} in ms2ns()
70 static CONSTEXPR inline nsecs_t us2ns(nsecs_t v) {return microseconds_to_nanoseconds(v);} in us2ns()
[all …]
DStopWatch.h36 nsecs_t lap();
37 nsecs_t elapsedTime() const;
46 nsecs_t soFar;
47 nsecs_t thisLap;
50 nsecs_t mStartTime;
DLooper.h360 void sendMessageDelayed(nsecs_t uptimeDelay, const sp<MessageHandler>& handler,
371 void sendMessageAtTime(nsecs_t uptime, const sp<MessageHandler>& handler,
441 MessageEnvelope(nsecs_t u, const sp<MessageHandler> h, in MessageEnvelope()
445 nsecs_t uptime;
473 nsecs_t mNextMessageUptime; // set to LLONG_MAX when none
DCondition.h71 status_t waitRelative(Mutex& mutex, nsecs_t reltime);
120 inline status_t Condition::waitRelative(Mutex& mutex, nsecs_t reltime) { in waitRelative()
DMutex.h125 status_t timedLock(nsecs_t timeoutNs) TRY_ACQUIRE(0);
192 inline status_t Mutex::timedLock(nsecs_t timeoutNs) { in timedLock()
/system/core/libutils/
DTimers.cpp27 nsecs_t systemTime(int clock) in systemTime()
39 return nsecs_t(t.tv_sec)*1000000000LL + t.tv_nsec; in systemTime()
42 nsecs_t systemTime(int /*clock*/) in systemTime()
49 return nsecs_t(t.tv_sec)*1000000000LL + nsecs_t(t.tv_usec)*1000LL; in systemTime()
53 int toMillisecondTimeoutDelay(nsecs_t referenceTime, nsecs_t timeoutTime) in toMillisecondTimeoutDelay()
55 nsecs_t timeoutDelayMillis; in toMillisecondTimeoutDelay()
DStopWatch.cpp39 nsecs_t elapsed = elapsedTime(); in ~StopWatch()
43 const nsecs_t soFar = mLaps[i].soFar; in ~StopWatch()
44 const nsecs_t thisLap = mLaps[i].thisLap; in ~StopWatch()
54 nsecs_t StopWatch::lap() in lap()
56 nsecs_t elapsed = elapsedTime(); in lap()
68 nsecs_t StopWatch::elapsedTime() const in elapsedTime()
DLooper.cpp218 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in pollInner()
307 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in pollInner()
377 nsecs_t endTime = systemTime(SYSTEM_TIME_MONOTONIC) in pollAll()
386 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in pollAll()
576 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in sendMessage()
580 void Looper::sendMessageDelayed(nsecs_t uptimeDelay, const sp<MessageHandler>& handler, in sendMessageDelayed()
582 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in sendMessageDelayed()
586 void Looper::sendMessageAtTime(nsecs_t uptime, const sp<MessageHandler>& handler, in sendMessageAtTime()
DPropertyMap.cpp128 nsecs_t startTime = systemTime(SYSTEM_TIME_MONOTONIC); in load()
133 nsecs_t elapsedTime = systemTime(SYSTEM_TIME_MONOTONIC) - startTime; in load()
DThreads.cpp466 status_t wait(WinCondition* condState, HANDLE hMutex, nsecs_t* abstime)
477 nsecs_t reltime = *abstime - systemTime();
569 status_t Condition::waitRelative(Mutex& mutex, nsecs_t reltime)
573 nsecs_t absTime = systemTime()+reltime;
DLooper_test.cpp615 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in TEST_F()
652 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in TEST_F()
671 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in TEST_F()
/system/tools/hidl/test/hidl_test/
DFooCallback.cpp32 nsecs_t start = systemTime(); in heyItsYou()
34 nsecs_t end = systemTime(); in heyItsYou()
46 nsecs_t start = systemTime(); in heyItsYouIsntIt()
50 nsecs_t end = systemTime(); in heyItsYouIsntIt()
62 nsecs_t start = systemTime(); in heyItsTheMeaningOfLife()
66 nsecs_t end = systemTime(); in heyItsTheMeaningOfLife()
79 nsecs_t leftToWaitNs = ns; in reportResults()
90 nsecs_t start = systemTime(); in reportResults()
Dhidl_test_client.cpp1178 nsecs_t now; in TEST_F()
1217 nsecs_t now; in TEST_F()
1239 const nsecs_t waitNs = in TEST_F()
1241 const nsecs_t reportResultsNs = in TEST_F()
1954 nsecs_t now = systemTime(); in TEST_F()
/system/connectivity/wificond/
Dclient_interface_impl.cpp290 nsecs_t start_time_ns = systemTime(SYSTEM_TIME_MONOTONIC); in SendMgmtFrame()
294 nsecs_t end_time_ns = systemTime(SYSTEM_TIME_MONOTONIC); in SendMgmtFrame()
/system/vold/model/
DPublicVolume.cpp215 nsecs_t start = systemTime(SYSTEM_TIME_BOOTTIME); in doMount()
220 nsecs_t now = systemTime(SYSTEM_TIME_BOOTTIME); in doMount()
DEmulatedVolume.cpp337 nsecs_t start = systemTime(SYSTEM_TIME_BOOTTIME); in doMount()
342 nsecs_t now = systemTime(SYSTEM_TIME_BOOTTIME); in doMount()
/system/vold/
DIdleMaint.cpp174 nsecs_t start = systemTime(SYSTEM_TIME_BOOTTIME); in Trim()
181 nsecs_t time = systemTime(SYSTEM_TIME_BOOTTIME) - start; in Trim()
DCheckpoint.cpp381 nsecs_t start = systemTime(SYSTEM_TIME_BOOTTIME); in cp_prepareCheckpoint()
386 nsecs_t time = systemTime(SYSTEM_TIME_BOOTTIME) - start; in cp_prepareCheckpoint()
/system/iorap/src/perfetto/
Dperfetto_consumer.cc235 looper_->sendMessageDelayed(static_cast<nsecs_t>(GetPropertyTraceTimeoutNs()), in StartTracing()
/system/connectivity/wificond/net/
Dnetlink_manager.cpp300 nsecs_t interval = systemTime(SYSTEM_TIME_MONOTONIC); in SendMessageAndGetResponses()