Home
last modified time | relevance | path

Searched refs:now (Results 1 – 25 of 150) sorted by relevance

123456

/hardware/qcom/wlan/qcwcn/wifi_hal/
Dsync.h69 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/
DRecurrentTimer.h57 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/
Dlibrilutils.c21 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/ril/libril/
Dril_event.cpp162 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/
DInputDevice_test.cpp103 auto now = systemTime(SYSTEM_TIME_MONOTONIC); in TEST_F() local
107 InputEvent event = { now + s2ns(60), EV_KEY, KEY_HOME, 1 }; in TEST_F()
109 device->processInput(event, now); in TEST_F()
111 EXPECT_NEAR(now, event.when, ms2ns(TIMING_TOLERANCE_MS)); in TEST_F()
119 auto now = systemTime(SYSTEM_TIME_MONOTONIC); in TEST_F() local
122 InputEvent event = { now, EV_KEY, KEY_HOME, 1 }; in TEST_F()
126 device->processInput(event, now - s2ns(11)); in TEST_F()
128 EXPECT_NEAR(now, event.when, ms2ns(TIMING_TOLERANCE_MS)); in TEST_F()
/hardware/interfaces/radio/1.0/vts/functional/
Dsap_hidl_hal_test.cpp46 auto now = std::chrono::system_clock::now(); in wait() local
48 status = cv.wait_until(lock, now + std::chrono::seconds(TIMEOUT_PERIOD)); in wait()
/hardware/qcom/gps/msm8996/utils/
DLocTimer.cpp362 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/radio/config/1.0/vts/functional/
Dradio_config_hidl_hal_test.cpp58 auto now = std::chrono::system_clock::now(); in wait() local
60 status = cv_.wait_until(lock, now + std::chrono::seconds(TIMEOUT_PERIOD)); in wait()
/hardware/interfaces/radio/config/1.1/vts/functional/
Dradio_config_hidl_hal_test.cpp57 auto now = std::chrono::system_clock::now(); in wait() local
59 status = cv_.wait_until(lock, now + std::chrono::seconds(TIMEOUT_PERIOD)); in wait()
/hardware/interfaces/radio/config/1.2/vts/functional/
Dradio_config_hidl_hal_test.cpp57 auto now = std::chrono::system_clock::now(); in wait() local
59 status = cv_.wait_until(lock, now + std::chrono::seconds(TIMEOUT_PERIOD)); in wait()
/hardware/qcom/gps/msm8960/utils/
Dloc_log.cpp172 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/
Dloc_log.cpp172 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/utils/
Dloc_log.cpp173 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/
Dloc_log.cpp172 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/
Dloc_log.cpp172 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/gps/utils/
Dloc_log.cpp173 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/msm8994/utils/
Dloc_log.cpp173 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/msm8994/utils/
Dloc_log.cpp173 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/msm8909w_3100/utils/
DLocTimer.cpp362 struct timespec now; in expire() local
364 clock_gettime(CLOCK_BOOTTIME, &now); in expire()
365 LocTimerDelegate timerOfNow(now); in expire()
661 struct timespec now; in getNow() local
662 clock_gettime(CLOCK_BOOTTIME, &now); in getNow()
663 return now; in getNow()
670 struct timespec now; in getTimerWrapper() local
671 clock_gettime(CLOCK_BOOTTIME, &now); in getTimerWrapper()
672 now.tv_sec += timeout; in getTimerWrapper()
673 return now; in getTimerWrapper()
[all …]
/hardware/qcom/gps/msm8998/utils/
DLocTimer.cpp362 struct timespec now; in expire() local
364 clock_gettime(CLOCK_BOOTTIME, &now); in expire()
365 LocTimerDelegate timerOfNow(now); in expire()
660 struct timespec now; in getNow() local
661 clock_gettime(CLOCK_BOOTTIME, &now); in getNow()
662 return now; in getNow()
669 struct timespec now; in getTimerWrapper() local
670 clock_gettime(CLOCK_BOOTTIME, &now); in getTimerWrapper()
671 now.tv_sec += timeout; in getTimerWrapper()
672 return now; in getTimerWrapper()
[all …]
/hardware/qcom/sdm845/gps/sdm845/utils/
DLocTimer.cpp364 struct timespec now; in expire() local
366 clock_gettime(CLOCK_BOOTTIME, &now); in expire()
367 LocTimerDelegate timerOfNow(now); in expire()
663 struct timespec now; in getNow() local
664 clock_gettime(CLOCK_BOOTTIME, &now); in getNow()
665 return now; in getNow()
672 struct timespec now; in getTimerWrapper() local
673 clock_gettime(CLOCK_BOOTTIME, &now); in getTimerWrapper()
674 now.tv_sec += timeout; in getTimerWrapper()
675 return now; in getTimerWrapper()
[all …]
/hardware/qcom/sdm845/gps/msm8996/utils/
DLocTimer.cpp361 struct timespec now; in expire() local
363 clock_gettime(CLOCK_BOOTTIME, &now); in expire()
364 LocTimerDelegate timerOfNow(now); in expire()
654 struct timespec now; in getNow() local
655 clock_gettime(CLOCK_BOOTTIME, &now); in getNow()
656 return now; in getNow()
663 struct timespec now; in getTimerWrapper() local
664 clock_gettime(CLOCK_BOOTTIME, &now); in getTimerWrapper()
665 now.tv_sec += timeout; in getTimerWrapper()
666 return now; in getTimerWrapper()
[all …]
/hardware/qcom/sdm845/gps/msm8909/utils/
DLocTimer.cpp362 struct timespec now; in expire() local
364 clock_gettime(CLOCK_BOOTTIME, &now); in expire()
365 LocTimerDelegate timerOfNow(now); in expire()
656 struct timespec now; in getNow() local
657 clock_gettime(CLOCK_BOOTTIME, &now); in getNow()
658 return now; in getNow()
665 struct timespec now; in getTimerWrapper() local
666 clock_gettime(CLOCK_BOOTTIME, &now); in getTimerWrapper()
667 now.tv_sec += timeout; in getTimerWrapper()
668 return now; in getTimerWrapper()
[all …]
/hardware/qcom/sdm845/gps/msm8998/utils/
DLocTimer.cpp362 struct timespec now; in expire() local
364 clock_gettime(CLOCK_BOOTTIME, &now); in expire()
365 LocTimerDelegate timerOfNow(now); in expire()
660 struct timespec now; in getNow() local
661 clock_gettime(CLOCK_BOOTTIME, &now); in getNow()
662 return now; in getNow()
669 struct timespec now; in getTimerWrapper() local
670 clock_gettime(CLOCK_BOOTTIME, &now); in getTimerWrapper()
671 now.tv_sec += timeout; in getTimerWrapper()
672 return now; in getTimerWrapper()
[all …]
/hardware/qcom/gps/msm8909/utils/
DLocTimer.cpp362 struct timespec now; in expire() local
364 clock_gettime(CLOCK_BOOTTIME, &now); in expire()
365 LocTimerDelegate timerOfNow(now); in expire()
649 struct timespec now; in getNow() local
650 clock_gettime(CLOCK_BOOTTIME, &now); in getNow()
651 return now; in getNow()
658 struct timespec now; in getTimerWrapper() local
659 clock_gettime(CLOCK_BOOTTIME, &now); in getTimerWrapper()
660 now.tv_sec += timeout; in getTimerWrapper()
661 return now; in getTimerWrapper()
[all …]

123456