/hardware/qcom/wlan/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/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/interfaces/radio/1.0/vts/functional/ |
D | sap_hidl_hal_test.cpp | 45 auto now = std::chrono::system_clock::now(); in wait() local 47 status = cv.wait_until(lock, now + std::chrono::seconds(TIMEOUT_PERIOD)); in wait()
|
/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/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/qcom/gps/msm8994/utils/ |
D | loc_log.cpp | 173 struct timeval now; /* sec and usec */ in loc_get_time() local 177 gettimeofday(&now, NULL); in loc_get_time() 178 localtime_r(&now.tv_sec, &now_tm); in loc_get_time() 181 snprintf(time_string, buf_size, "%s.%03d", hms_string, (int) (now.tv_usec / 1000)); in loc_get_time()
|
/hardware/qcom/gps/msm8960/utils/ |
D | loc_log.cpp | 172 struct timeval now; /* sec and usec */ in loc_get_time() local 176 gettimeofday(&now, NULL); in loc_get_time() 177 localtime_r(&now.tv_sec, &now_tm); in loc_get_time() 180 snprintf(time_string, buf_size, "%s.%03d", hms_string, (int) (now.tv_usec / 1000)); in loc_get_time()
|
/hardware/qcom/sdm845/gps/msm8084/utils/ |
D | loc_log.cpp | 172 struct timeval now; /* sec and usec */ in loc_get_time() local 176 gettimeofday(&now, NULL); in loc_get_time() 177 localtime_r(&now.tv_sec, &now_tm); in loc_get_time() 180 snprintf(time_string, buf_size, "%s.%03d", hms_string, (int) (now.tv_usec / 1000)); in loc_get_time()
|
/hardware/qcom/sdm845/gps/msm8994/utils/ |
D | loc_log.cpp | 173 struct timeval now; /* sec and usec */ in loc_get_time() local 177 gettimeofday(&now, NULL); in loc_get_time() 178 localtime_r(&now.tv_sec, &now_tm); in loc_get_time() 181 snprintf(time_string, buf_size, "%s.%03d", hms_string, (int) (now.tv_usec / 1000)); in loc_get_time()
|
/hardware/qcom/sdm845/gps/utils/ |
D | loc_log.cpp | 173 struct timeval now; /* sec and usec */ in loc_get_time() local 177 gettimeofday(&now, NULL); in loc_get_time() 178 localtime_r(&now.tv_sec, &now_tm); in loc_get_time() 181 snprintf(time_string, buf_size, "%s.%03d", hms_string, (int) (now.tv_usec / 1000)); in loc_get_time()
|
/hardware/qcom/gps/utils/ |
D | loc_log.cpp | 173 struct timeval now; /* sec and usec */ in loc_get_time() local 177 gettimeofday(&now, NULL); in loc_get_time() 178 localtime_r(&now.tv_sec, &now_tm); in loc_get_time() 181 snprintf(time_string, buf_size, "%s.%03d", hms_string, (int) (now.tv_usec / 1000)); in loc_get_time()
|
/hardware/qcom/gps/msm8084/utils/ |
D | loc_log.cpp | 172 struct timeval now; /* sec and usec */ in loc_get_time() local 176 gettimeofday(&now, NULL); in loc_get_time() 177 localtime_r(&now.tv_sec, &now_tm); in loc_get_time() 180 snprintf(time_string, buf_size, "%s.%03d", hms_string, (int) (now.tv_usec / 1000)); in loc_get_time()
|
/hardware/qcom/sdm845/gps/msm8960/utils/ |
D | loc_log.cpp | 172 struct timeval now; /* sec and usec */ in loc_get_time() local 176 gettimeofday(&now, NULL); in loc_get_time() 177 localtime_r(&now.tv_sec, &now_tm); in loc_get_time() 180 snprintf(time_string, buf_size, "%s.%03d", hms_string, (int) (now.tv_usec / 1000)); in loc_get_time()
|
/hardware/interfaces/automotive/occupant_awareness/aidl/vts/functional/ |
D | VtsHalOccupantAwarenessV1_0TargetTest.cpp | 75 auto start = std::chrono::system_clock::now(); in TEST_P() 78 auto elapsed = std::chrono::system_clock::now() - start; in TEST_P() 169 auto start = std::chrono::system_clock::now(); in TEST_P() 171 auto elapsed = std::chrono::system_clock::now() - start; in TEST_P() 185 auto start = std::chrono::system_clock::now(); in TEST_P() 189 auto elapsed = std::chrono::system_clock::now() - start; in TEST_P()
|
/hardware/qcom/sdm845/gps/msm8998/utils/ |
D | loc_log.cpp | 170 struct timeval now; /* sec and usec */ in loc_get_time() local 174 gettimeofday(&now, NULL); in loc_get_time() 175 localtime_r(&now.tv_sec, &now_tm); in loc_get_time() 178 snprintf(time_string, buf_size, "%s.%03d", hms_string, (int) (now.tv_usec / 1000)); in loc_get_time()
|
/hardware/qcom/gps/msm8909/utils/ |
D | loc_log.cpp | 174 struct timeval now; /* sec and usec */ in loc_get_time() local 178 gettimeofday(&now, NULL); in loc_get_time() 179 localtime_r(&now.tv_sec, &now_tm); in loc_get_time() 182 snprintf(time_string, buf_size, "%s.%03d", hms_string, (int) (now.tv_usec / 1000)); in loc_get_time()
|
/hardware/qcom/sdm845/gps/msm8996/utils/ |
D | loc_log.cpp | 174 struct timeval now; /* sec and usec */ in loc_get_time() local 178 gettimeofday(&now, NULL); in loc_get_time() 179 localtime_r(&now.tv_sec, &now_tm); in loc_get_time() 182 snprintf(time_string, buf_size, "%s.%03d", hms_string, (int) (now.tv_usec / 1000)); in loc_get_time()
|
/hardware/qcom/sdm845/gps/sdm845/utils/ |
D | loc_log.cpp | 169 struct timeval now; /* sec and usec */ in loc_get_time() local 173 gettimeofday(&now, NULL); in loc_get_time() 174 localtime_r(&now.tv_sec, &now_tm); in loc_get_time() 177 snprintf(time_string, buf_size, "%s.%03d", hms_string, (int) (now.tv_usec / 1000)); in loc_get_time()
|