/hardware/google/pixel/power-libperfmgr/aidl/tests/ |
D | UClampVoterTest.cpp | 36 auto tNow = std::chrono::steady_clock::now(); in TEST() 42 auto tNow = std::chrono::steady_clock::now(); in TEST() 54 const auto tNow = std::chrono::steady_clock::now(); in TEST() 64 const auto tNow = std::chrono::steady_clock::now(); in TEST() 76 const auto tNow = std::chrono::steady_clock::now(); in TEST() 97 const auto tNow = std::chrono::steady_clock::now(); in TEST() 134 const auto tNow = std::chrono::steady_clock::now(); in TEST() 156 const auto tNow = std::chrono::steady_clock::now(); in TEST() 178 const auto tNow = std::chrono::steady_clock::now(); in TEST() 205 const auto now = std::chrono::steady_clock::now(); in TEST() local [all …]
|
D | SessionTaskMapTest.cpp | 38 sv.lastUpdatedTime = std::chrono::steady_clock::now(); in makeSession() 196 auto tNow = std::chrono::steady_clock::now(); in TEST() 210 auto tNow = std::chrono::steady_clock::now(); in TEST() 239 const auto t0 = std::chrono::steady_clock::now(); in TEST() 270 const auto t0 = std::chrono::steady_clock::now(); in TEST() 294 const auto tNow = std::chrono::steady_clock::now(); in TEST() 333 const auto now = std::chrono::steady_clock::now(); in TEST() local 342 .lastUpdatedTime = now, in TEST() 349 m.addGpuVote(session_id1, gpu_vote_id, Cycles(222), now, 400ms); in TEST() 350 EXPECT_EQ(m.getSessionsGpuCapacity(now + 1ms), Cycles(222)); in TEST() [all …]
|
D | BackgroundWorkerTest.cpp | 56 vec.push_back({packageId, std::chrono::steady_clock::now()}); in TEST() 60 const auto tNow = std::chrono::steady_clock::now(); in TEST() 88 vec.push_back({i, std::chrono::steady_clock::now()}); in TEST() 94 const auto tNow = std::chrono::steady_clock::now(); in TEST() 122 vec.push_back({i, std::chrono::steady_clock::now()}); in TEST() 130 vec.push_back({atoi(s.c_str()), std::chrono::steady_clock::now()}); in TEST() 136 const auto tNow = std::chrono::steady_clock::now(); in TEST()
|
/hardware/qcom/wlan/legacy/qcwcn/wifi_hal/ |
D | sync.h | 69 struct timeval now; in wait() local 72 gettimeofday(&now,NULL); in wait() 74 abstime.tv_sec += now.tv_sec; in wait() 75 …if(((abstime.tv_nsec + now.tv_usec*1000) > 1000*1000*1000) || (abstime.tv_nsec + now.tv_usec*1000 … in wait() 78 abstime.tv_nsec += now.tv_usec * 1000; in wait() 83 abstime.tv_nsec += now.tv_usec * 1000; in wait()
|
/hardware/qcom/wlan/wcn6740/qcwcn/wifi_hal/ |
D | sync.h | 69 struct timeval now; in wait() local 72 gettimeofday(&now,NULL); in wait() 74 abstime.tv_sec += now.tv_sec; in wait() 75 …if(((abstime.tv_nsec + now.tv_usec*1000) > 1000*1000*1000) || (abstime.tv_nsec + now.tv_usec*1000 … in wait() 78 abstime.tv_nsec += now.tv_usec * 1000; in wait() 83 abstime.tv_nsec += now.tv_usec * 1000; in wait()
|
/hardware/interfaces/automotive/vehicle/2.0/default/common/include/vhal_v2_0/ |
D | RecurrentTimer.h | 57 TimePoint now = Clock::now(); in registerRecurrentEvent() local 60 TimePoint absoluteTime = now - Nanos(now.time_since_epoch().count() % interval.count()); in registerRecurrentEvent() 85 void updateNextEventTime(TimePoint now) { in updateNextEventTime() 88 int intervalMultiplier = (now - absoluteTime) / interval; in updateNextEventTime() 100 auto now = Clock::now(); in loop() local 109 if (event.absoluteTime <= now) { in loop() 110 event.updateNextEventTime(now); in loop()
|
/hardware/ril/librilutils/ |
D | librilutils.c | 21 struct timespec now; in ril_nano_time() local 22 clock_gettime(CLOCK_MONOTONIC, &now); in ril_nano_time() 23 return now.tv_sec * 1000000000LL + now.tv_nsec; in ril_nano_time()
|
/hardware/google/pixel/power-libperfmgr/libperfmgr/ |
D | RequestGroup.cc | 50 ReqTime now = std::chrono::steady_clock::now(); in GetExpireTime() local 56 it->second - now); in GetExpireTime() 70 ReqTime now = std::chrono::steady_clock::now(); in DumpToFd() local 74 now); in DumpToFd()
|
/hardware/ril/libril/ |
D | ril_event.cpp | 162 struct timeval now; in processTimeouts() local 166 getNow(&now); in processTimeouts() 169 dlog("~~~~ Looking for timers <= %ds + %dus ~~~~", (int)now.tv_sec, (int)now.tv_usec); in processTimeouts() 170 while ((tev != &timer_list) && (timercmp(&now, &tev->timeout, >))) { in processTimeouts() 218 struct timeval now; in calcNextTimeout() local 220 getNow(&now); in calcNextTimeout() 228 dlog("~~~~ now = %ds + %dus ~~~~", (int)now.tv_sec, (int)now.tv_usec); in calcNextTimeout() 231 if (timercmp(&tev->timeout, &now, >)) { in calcNextTimeout() 232 timersub(&tev->timeout, &now, tv); in calcNextTimeout() 297 struct timeval now; in ril_timer_add() local [all …]
|
/hardware/google/pixel/powerstats/ |
D | DisplayStateResidencyDataProvider.cpp | 77 uint64_t now = std::chrono::duration_cast<std::chrono::milliseconds>( in getResults() local 78 ::android::base::boot_clock::now().time_since_epoch()) in getResults() 87 now - result.stateResidencyData[mCurState].lastEntryTimestampMs; in getResults() 110 uint64_t now = std::chrono::duration_cast<std::chrono::milliseconds>( in updateStats() local 111 ::android::base::boot_clock::now().time_since_epoch()) in updateStats() 131 now - mResidencies[mCurState].lastEntryTimestampMs; in updateStats() 137 mResidencies[i].lastEntryTimestampMs = now; in updateStats()
|
/hardware/interfaces/biometrics/common/util/include/util/ |
D | Util.h | 51 timespec now; in getSystemNanoTime() local 52 clock_gettime(CLOCK_MONOTONIC, &now); in getSystemNanoTime() 53 return now.tv_sec * 1000000000LL + now.tv_nsec; in getSystemNanoTime() 57 auto now = getSystemNanoTime(); in hasElapsed() local 58 if (now < start) return true; in hasElapsed() 60 return ((now - start) / 1000000LL) > durationMillis; in hasElapsed()
|
/hardware/google/pixel/powerstats/dataproviders/ |
D | DisplayStateResidencyDataProvider.cpp | 76 uint64_t now = std::chrono::duration_cast<std::chrono::milliseconds>( in getStateResidencies() local 77 ::android::base::boot_clock::now().time_since_epoch()) in getStateResidencies() 84 result[mCurState].totalTimeInStateMs += now - result[mCurState].lastEntryTimestampMs; in getStateResidencies() 108 uint64_t now = std::chrono::duration_cast<std::chrono::milliseconds>( in updateStats() local 109 ::android::base::boot_clock::now().time_since_epoch()) in updateStats() 137 now - mResidencies[mCurState].lastEntryTimestampMs; in updateStats() 143 mResidencies[i].lastEntryTimestampMs = now; in updateStats()
|
/hardware/google/graphics/common/libhwc2.1/libvrr/ |
D | Utils.cpp | 29 std::chrono::steady_clock::now().time_since_epoch()) in getSteadyClockTimeMs() 35 std::chrono::steady_clock::now().time_since_epoch()) in getSteadyClockTimeNs() 41 ::android::base::boot_clock::now().time_since_epoch()) in getBootClockTimeMs() 47 ::android::base::boot_clock::now().time_since_epoch()) in getBootClockTimeNs()
|
/hardware/interfaces/tv/tuner/aidl/default/ |
D | Timer.h | 5 Timer() { start_time = steady_clock::now(); } in Timer() 7 ~Timer() { stop_time = steady_clock::now(); } in ~Timer() 10 auto current_time = std::chrono::steady_clock::now(); in get_elapsed_time_ms()
|
/hardware/libhardware/tests/input/evdev/ |
D | InputDevice_test.cpp | 72 auto now = systemTime(SYSTEM_TIME_MONOTONIC); in TEST_F() local 76 InputEvent event = { now + s2ns(60), EV_KEY, KEY_HOME, 1 }; in TEST_F() 78 device->processInput(event, now); in TEST_F() 80 EXPECT_NEAR(now, event.when, ms2ns(TIMING_TOLERANCE_MS)); in TEST_F() 88 auto now = systemTime(SYSTEM_TIME_MONOTONIC); in TEST_F() local 91 InputEvent event = { now, EV_KEY, KEY_HOME, 1 }; in TEST_F() 95 device->processInput(event, now - s2ns(11)); in TEST_F() 97 EXPECT_NEAR(now, event.when, ms2ns(TIMING_TOLERANCE_MS)); in TEST_F()
|
/hardware/google/gfxstream/guest/mesa/src/c11/impl/ |
D | time.c | 76 LARGE_INTEGER now; in c23_timespec_get() local 79 QueryPerformanceCounter(&now); in c23_timespec_get() 80 sec = now.QuadPart / frequency.QuadPart; in c23_timespec_get() 81 nsec = (now.QuadPart - sec * frequency.QuadPart) in c23_timespec_get()
|
/hardware/google/pixel/power-libperfmgr/libperfmgr/tests/ |
D | RequestGroupTest.cc | 41 auto start = std::chrono::steady_clock::now(); in TEST() 63 ReqTime::max() - std::chrono::steady_clock::now()); in TEST() 73 auto start = std::chrono::steady_clock::now(); in TEST() 89 auto start = std::chrono::steady_clock::now(); in TEST() 118 auto start = std::chrono::steady_clock::now(); in TEST() 133 auto start = std::chrono::steady_clock::now(); in TEST() 150 auto start = std::chrono::steady_clock::now(); in TEST()
|
/hardware/interfaces/radio/config/1.1/vts/functional/ |
D | radio_config_hidl_hal_test.cpp | 53 auto now = std::chrono::system_clock::now(); in wait() local 55 status = cv_.wait_until(lock, now + std::chrono::seconds(TIMEOUT_PERIOD)); in wait()
|
/hardware/interfaces/radio/config/1.2/vts/functional/ |
D | radio_config_hidl_hal_test.cpp | 53 auto now = std::chrono::system_clock::now(); in wait() local 55 status = cv_.wait_until(lock, now + std::chrono::seconds(TIMEOUT_PERIOD)); in wait()
|
/hardware/interfaces/radio/config/1.0/vts/functional/ |
D | radio_config_hidl_hal_test.cpp | 54 auto now = std::chrono::system_clock::now(); in wait() local 56 status = cv_.wait_until(lock, now + std::chrono::seconds(TIMEOUT_PERIOD)); in wait()
|
/hardware/interfaces/power/stats/aidl/default/ |
D | FakeEnergyMeter.h | 89 uint64_t now = std::chrono::time_point_cast<std::chrono::milliseconds>( in update() local 90 ::android::base::boot_clock::now()) in update() 93 measurement->timestampMs = now; in update() 94 measurement->durationMs = now; in update()
|
D | FakeEnergyConsumer.h | 60 uint64_t now = std::chrono::time_point_cast<std::chrono::milliseconds>( in update() local 61 ::android::base::boot_clock::now()) in update() 64 result->timestampMs = now; in update()
|
/hardware/qcom/gps/msm8996/utils/ |
D | LocTimer.cpp | 362 struct timespec now; in expire() local 364 clock_gettime(CLOCK_BOOTTIME, &now); in expire() 365 LocTimerDelegate timerOfNow(now); in expire() 648 struct timespec now; in getNow() local 649 clock_gettime(CLOCK_BOOTTIME, &now); in getNow() 650 return now; in getNow() 657 struct timespec now; in getTimerWrapper() local 658 clock_gettime(CLOCK_BOOTTIME, &now); in getTimerWrapper() 659 now.tv_sec += timeout; in getTimerWrapper() 660 return now; in getTimerWrapper() [all …]
|
/hardware/interfaces/biometrics/fingerprint/aidl/default/ |
D | FakeLockoutTracker.cpp | 73 auto now = Util::getSystemNanoTime(); in getLockoutTimeLeft() local 74 auto elapsed = (now - mLockoutTimedStart) / 1000000LL; in getLockoutTimeLeft() 76 LOG(INFO) << "elapsed=" << elapsed << " now = " << now in getLockoutTimeLeft()
|
/hardware/interfaces/radio/1.0/vts/functional/ |
D | sap_hidl_hal_test.cpp | 74 auto now = std::chrono::system_clock::now(); in wait() local 76 status = cv.wait_until(lock, now + std::chrono::seconds(TIMEOUT_PERIOD)); in wait()
|