Home
last modified time | relevance | path

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

/system/core/libutils/include/utils/
DTimers.h32 typedef int64_t nsecs_t; // nano-seconds typedef
34 static CONSTEXPR inline nsecs_t seconds_to_nanoseconds(nsecs_t secs) in seconds_to_nanoseconds()
39 static CONSTEXPR inline nsecs_t milliseconds_to_nanoseconds(nsecs_t secs) in milliseconds_to_nanoseconds()
44 static CONSTEXPR inline nsecs_t microseconds_to_nanoseconds(nsecs_t secs) in microseconds_to_nanoseconds()
49 static CONSTEXPR inline nsecs_t nanoseconds_to_seconds(nsecs_t secs) in nanoseconds_to_seconds()
54 static CONSTEXPR inline nsecs_t nanoseconds_to_milliseconds(nsecs_t secs) in nanoseconds_to_milliseconds()
59 static CONSTEXPR inline nsecs_t nanoseconds_to_microseconds(nsecs_t secs) in nanoseconds_to_microseconds()
64 static CONSTEXPR inline nsecs_t s2ns(nsecs_t v) {return seconds_to_nanoseconds(v);} in s2ns()
65 static CONSTEXPR inline nsecs_t ms2ns(nsecs_t v) {return milliseconds_to_nanoseconds(v);} in ms2ns()
66 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.h362 void sendMessageDelayed(nsecs_t uptimeDelay, const sp<MessageHandler>& handler,
373 void sendMessageAtTime(nsecs_t uptime, const sp<MessageHandler>& handler,
443 MessageEnvelope(nsecs_t u, sp<MessageHandler> h, const Message& m) in MessageEnvelope()
446 nsecs_t uptime;
474 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.cpp35 nsecs_t systemTime(int clock) { in systemTime()
43 return nsecs_t(t.tv_sec)*1000000000LL + t.tv_nsec; in systemTime()
46 nsecs_t systemTime(int clock) { in systemTime()
55 return nsecs_t(t.tv_sec)*1000000000LL + nsecs_t(t.tv_usec)*1000LL; in systemTime()
59 int toMillisecondTimeoutDelay(nsecs_t referenceTime, nsecs_t timeoutTime) in toMillisecondTimeoutDelay()
61 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.cpp467 status_t wait(WinCondition* condState, HANDLE hMutex, nsecs_t* abstime)
478 nsecs_t reltime = *abstime - systemTime();
570 status_t Condition::waitRelative(Mutex& mutex, nsecs_t reltime)
574 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.cpp1172 nsecs_t now; in TEST_F()
1211 nsecs_t now; in TEST_F()
1233 const nsecs_t waitNs = in TEST_F()
1235 const nsecs_t reportResultsNs = in TEST_F()
1948 nsecs_t now = systemTime(); in TEST_F()
/system/vold/model/
DEmulatedVolume.cpp110 nsecs_t start = systemTime(SYSTEM_TIME_BOOTTIME); in doMount()
115 nsecs_t now = systemTime(SYSTEM_TIME_BOOTTIME); in doMount()
DPublicVolume.cpp207 nsecs_t start = systemTime(SYSTEM_TIME_BOOTTIME); in doMount()
212 nsecs_t now = systemTime(SYSTEM_TIME_BOOTTIME); in doMount()
/system/extras/libperfmgr/
DNodeLooperThread.cc112 nsecs_t sleep_timeout_ns = std::numeric_limits<nsecs_t>::max(); in threadLoop()
/system/connectivity/wificond/
Dclient_interface_impl.cpp292 nsecs_t start_time_ns = systemTime(SYSTEM_TIME_MONOTONIC); in SendMgmtFrame()
296 nsecs_t end_time_ns = systemTime(SYSTEM_TIME_MONOTONIC); in SendMgmtFrame()
/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/connectivity/wificond/net/
Dnetlink_manager.cpp300 nsecs_t interval = systemTime(SYSTEM_TIME_MONOTONIC); in SendMessageAndGetResponses()