/system/core/libutils/include/utils/ |
D | Timers.h | 32 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 …]
|
D | StopWatch.h | 36 nsecs_t lap(); 37 nsecs_t elapsedTime() const; 46 nsecs_t soFar; 47 nsecs_t thisLap; 50 nsecs_t mStartTime;
|
D | Looper.h | 362 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
|
D | Condition.h | 71 status_t waitRelative(Mutex& mutex, nsecs_t reltime); 120 inline status_t Condition::waitRelative(Mutex& mutex, nsecs_t reltime) { in waitRelative()
|
D | Mutex.h | 125 status_t timedLock(nsecs_t timeoutNs) TRY_ACQUIRE(0); 192 inline status_t Mutex::timedLock(nsecs_t timeoutNs) { in timedLock()
|
/system/core/libutils/ |
D | Timers.cpp | 35 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()
|
D | StopWatch.cpp | 39 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()
|
D | Looper.cpp | 218 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()
|
D | PropertyMap.cpp | 128 nsecs_t startTime = systemTime(SYSTEM_TIME_MONOTONIC); in load() 133 nsecs_t elapsedTime = systemTime(SYSTEM_TIME_MONOTONIC) - startTime; in load()
|
D | Threads.cpp | 467 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;
|
D | Looper_test.cpp | 615 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/ |
D | FooCallback.cpp | 32 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()
|
D | hidl_test_client.cpp | 1172 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/ |
D | EmulatedVolume.cpp | 110 nsecs_t start = systemTime(SYSTEM_TIME_BOOTTIME); in doMount() 115 nsecs_t now = systemTime(SYSTEM_TIME_BOOTTIME); in doMount()
|
D | PublicVolume.cpp | 207 nsecs_t start = systemTime(SYSTEM_TIME_BOOTTIME); in doMount() 212 nsecs_t now = systemTime(SYSTEM_TIME_BOOTTIME); in doMount()
|
/system/extras/libperfmgr/ |
D | NodeLooperThread.cc | 112 nsecs_t sleep_timeout_ns = std::numeric_limits<nsecs_t>::max(); in threadLoop()
|
/system/connectivity/wificond/ |
D | client_interface_impl.cpp | 292 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/ |
D | IdleMaint.cpp | 174 nsecs_t start = systemTime(SYSTEM_TIME_BOOTTIME); in Trim() 181 nsecs_t time = systemTime(SYSTEM_TIME_BOOTTIME) - start; in Trim()
|
D | Checkpoint.cpp | 381 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/ |
D | netlink_manager.cpp | 300 nsecs_t interval = systemTime(SYSTEM_TIME_MONOTONIC); in SendMessageAndGetResponses()
|