Home
last modified time | relevance | path

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

12345678

/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/google/pixel/power-libperfmgr/libperfmgr/
DRequestGroup.cc50 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/
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.cpp72 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/
Dsap_hidl_hal_test.cpp45 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/
DRequestGroupTest.cc41 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/
Dradio_config_hidl_hal_test.cpp53 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/
Dradio_config_hidl_hal_test.cpp53 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/
Dradio_config_hidl_hal_test.cpp54 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/
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/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/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/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/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/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/interfaces/automotive/occupant_awareness/aidl/vts/functional/
DVtsHalOccupantAwarenessV1_0TargetTest.cpp75 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/
Dloc_log.cpp170 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/
Dloc_log.cpp174 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/
Dloc_log.cpp174 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/
Dloc_log.cpp169 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()

12345678