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.cpp26 nsecs_t systemTime(int clock) in systemTime()
38 return nsecs_t(t.tv_sec)*1000000000LL + t.tv_nsec; in systemTime()
41 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.cpp216 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in pollInner()
305 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in pollInner()
375 nsecs_t endTime = systemTime(SYSTEM_TIME_MONOTONIC) in pollAll()
384 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in pollAll()
574 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in sendMessage()
578 void Looper::sendMessageDelayed(nsecs_t uptimeDelay, const sp<MessageHandler>& handler, in sendMessageDelayed()
580 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in sendMessageDelayed()
584 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.cpp452 status_t wait(WinCondition* condState, HANDLE hMutex, nsecs_t* abstime)
463 nsecs_t reltime = *abstime - systemTime();
555 status_t Condition::waitRelative(Mutex& mutex, nsecs_t reltime)
559 nsecs_t absTime = systemTime()+reltime;
DLooper_test.cpp614 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in TEST_F()
651 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in TEST_F()
670 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.cpp1185 nsecs_t now; in TEST_F()
1224 nsecs_t now; in TEST_F()
1246 const nsecs_t waitNs = in TEST_F()
1248 const nsecs_t reportResultsNs = 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.cpp295 nsecs_t start_time_ns = systemTime(SYSTEM_TIME_MONOTONIC); in SendMgmtFrame()
299 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.cpp343 nsecs_t start = systemTime(SYSTEM_TIME_BOOTTIME); in cp_prepareCheckpoint()
348 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()