/system/core/libutils/include/utils/ |
D | Timers.h | 36 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 …]
|
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 | 360 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
|
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 | 26 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()
|
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 | 216 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()
|
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 | 452 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;
|
D | Looper_test.cpp | 614 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/ |
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 | 1185 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/ |
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 | 295 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/ |
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 | 343 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/ |
D | netlink_manager.cpp | 300 nsecs_t interval = systemTime(SYSTEM_TIME_MONOTONIC); in SendMessageAndGetResponses()
|