/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 | 38 nsecs_t lap(); 39 nsecs_t elapsedTime() const; 49 nsecs_t soFar; 50 nsecs_t thisLap; 53 nsecs_t mStartTime;
|
D | Looper.h | 358 void sendMessageDelayed(nsecs_t uptimeDelay, const sp<MessageHandler>& handler, 369 void sendMessageAtTime(nsecs_t uptime, const sp<MessageHandler>& handler, 439 MessageEnvelope(nsecs_t u, const sp<MessageHandler> h, in MessageEnvelope() 443 nsecs_t uptime; 471 nsecs_t mNextMessageUptime; // set to LLONG_MAX when none
|
D | Mutex.h | 78 status_t timedLock(nsecs_t timeoutNs); 141 inline status_t Mutex::timedLock(nsecs_t timeoutNs) { in timedLock()
|
D | Condition.h | 69 status_t waitRelative(Mutex& mutex, nsecs_t reltime); 118 inline status_t Condition::waitRelative(Mutex& mutex, nsecs_t reltime) { in waitRelative()
|
/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 | 42 nsecs_t elapsed = elapsedTime(); in ~StopWatch() 46 const nsecs_t soFar = mLaps[i].soFar; in ~StopWatch() 47 const nsecs_t thisLap = mLaps[i].thisLap; in ~StopWatch() 57 nsecs_t StopWatch::lap() in lap() 59 nsecs_t elapsed = elapsedTime(); in lap() 71 nsecs_t StopWatch::elapsedTime() const in elapsedTime()
|
D | Looper.cpp | 221 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in pollInner() 310 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in pollInner() 380 nsecs_t endTime = systemTime(SYSTEM_TIME_MONOTONIC) in pollAll() 389 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in pollAll() 579 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in sendMessage() 583 void Looper::sendMessageDelayed(nsecs_t uptimeDelay, const sp<MessageHandler>& handler, in sendMessageDelayed() 585 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in sendMessageDelayed() 589 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;
|
/system/vold/ |
D | Benchmark.cpp | 51 static nsecs_t benchmark(const std::string& path) { in benchmark() 87 nsecs_t start = systemTime(SYSTEM_TIME_BOOTTIME); in benchmark() 91 nsecs_t create = systemTime(SYSTEM_TIME_BOOTTIME); in benchmark() 100 nsecs_t drop = systemTime(SYSTEM_TIME_BOOTTIME); in benchmark() 104 nsecs_t run = systemTime(SYSTEM_TIME_BOOTTIME); in benchmark() 108 nsecs_t destroy = systemTime(SYSTEM_TIME_BOOTTIME); in benchmark() 120 nsecs_t create_d = create - start; in benchmark() 121 nsecs_t drop_d = drop - create; in benchmark() 122 nsecs_t run_d = run - drop; in benchmark() 123 nsecs_t destroy_d = destroy - run; in benchmark() [all …]
|
D | Benchmark.h | 29 nsecs_t BenchmarkPrivate(const std::string& path);
|
D | TrimTask.cpp | 129 nsecs_t start = systemTime(SYSTEM_TIME_BOOTTIME); in run() 134 nsecs_t delta = systemTime(SYSTEM_TIME_BOOTTIME) - start; in run()
|
D | VolumeManager.h | 123 nsecs_t benchmarkPrivate(const std::string& id);
|
D | CommandListener.cpp | 266 nsecs_t res = vm->benchmarkPrivate(id); in runCommand()
|
D | VolumeManager.cpp | 445 nsecs_t VolumeManager::benchmarkPrivate(const std::string& id) { in benchmarkPrivate()
|
/system/tools/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 | 922 nsecs_t now; in TEST_F() 961 nsecs_t now; in TEST_F() 983 const nsecs_t waitNs = in TEST_F() 985 const nsecs_t reportResultsNs = in TEST_F()
|
/system/extras/tests/memtest/ |
D | fptest.cpp | 34 typedef long long nsecs_t; typedef 35 static nsecs_t gTime; 38 static nsecs_t system_time() in system_time() 43 return nsecs_t(t.tv_sec)*1000000000LL + t.tv_nsec; in system_time() 53 nsecs_t t = system_time() - gTime; in endTime()
|
D | memtest.h | 20 typedef long long nsecs_t; typedef 23 nsecs_t system_time();
|
D | memtest.cpp | 31 nsecs_t system_time() { in system_time() 35 return nsecs_t(t.tv_sec)*1000000000LL + t.tv_nsec; in system_time()
|
D | bandwidth.h | 45 nsecs_t t = system_time(); in run()
|
D | bandwidth.cpp | 241 nsecs_t t = system_time(); in processThreadArgs()
|
/system/core/libutils/tests/ |
D | Looper_test.cpp | 561 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in TEST_F() 598 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in TEST_F() 617 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in TEST_F()
|
/system/connectivity/wificond/net/ |
D | netlink_manager.cpp | 277 nsecs_t interval = systemTime(SYSTEM_TIME_MONOTONIC); in SendMessageAndGetResponses()
|