/hardware/ril/librilutils/ |
H A D | librilutils.c | 21 struct timespec now; local 22 clock_gettime(CLOCK_MONOTONIC, &now); 23 return now.tv_sec * 1000000000LL + now.tv_nsec;
|
/hardware/qcom/wlan/qcwcn/wifi_hal/ |
H A D | sync.h | 69 struct timeval now; local 72 gettimeofday(&now,NULL); 74 abstime.tv_sec += now.tv_sec; 75 if(((abstime.tv_nsec + now.tv_usec*1000) > 1000*1000*1000) || (abstime.tv_nsec + now.tv_usec*1000 < 0)) 78 abstime.tv_nsec += now.tv_usec * 1000; 83 abstime.tv_nsec += now.tv_usec * 1000;
|
/hardware/interfaces/automotive/vehicle/2.0/default/common/include/vhal_v2_0/ |
H A D | RecurrentTimer.h | 57 TimePoint now = Clock::now(); local 60 TimePoint absoluteTime = now - Nanos(now.time_since_epoch().count() % interval.count()); 85 void updateNextEventTime(TimePoint now) { argument 88 int intervalMultiplier = (now - absoluteTime) / interval; 100 auto now = Clock::now(); local 109 if (event.absoluteTime <= now) { 110 event.updateNextEventTime(now); [all...] |
/hardware/interfaces/radio/1.0/vts/functional/ |
H A D | sap_hidl_hal_test.cpp | 46 auto now = std::chrono::system_clock::now(); local 48 status = cv.wait_until(lock, now + std::chrono::seconds(TIMEOUT_PERIOD));
|
H A D | radio_hidl_hal_test.cpp | 61 auto now = std::chrono::system_clock::now(); local 63 status = cv.wait_until(lock, now + std::chrono::seconds(sec));
|
/hardware/interfaces/broadcastradio/common/vts/utils/include/broadcastradio-vts-utils/ |
H A D | pointer-utils.h | 42 auto limit = steady_clock::now() + timeout; 44 if (steady_clock::now() + step > limit) {
|
/hardware/intel/img/hwcomposer/merrifield/common/observers/ |
H A D | SoftVsyncObserver.cpp | 126 const nsecs_t now = systemTime(CLOCK_MONOTONIC); local 128 nsecs_t sleep = next_vsync - now; 131 sleep = (period - ((now - next_vsync) % period)); 132 next_vsync = now + sleep;
|
/hardware/intel/img/hwcomposer/moorefield_hdmi/common/observers/ |
H A D | SoftVsyncObserver.cpp | 122 const nsecs_t now = systemTime(CLOCK_MONOTONIC); local 124 nsecs_t sleep = next_vsync - now; 127 sleep = (period - ((now - next_vsync) % period)); 128 next_vsync = now + sleep;
|
/hardware/interfaces/radio/config/1.0/vts/functional/ |
H A D | radio_config_hidl_hal_test.cpp | 58 auto now = std::chrono::system_clock::now(); local 60 status = cv_.wait_until(lock, now + std::chrono::seconds(TIMEOUT_PERIOD));
|
/hardware/ril/libril/ |
H A D | ril_event.cpp | 162 struct timeval now; local 166 getNow(&now); 167 // walk list, see if now >= ev->timeout for any events 169 dlog("~~~~ Looking for timers <= %ds + %dus ~~~~", (int)now.tv_sec, (int)now.tv_usec); 170 while ((tev != &timer_list) && (timercmp(&now, &tev->timeout, >))) { 218 struct timeval now; local 220 getNow(&now); 228 dlog("~~~~ now = %ds + %dus ~~~~", (int)now 297 struct timeval now; local [all...] |
/hardware/interfaces/radio/1.1/vts/functional/ |
H A D | radio_hidl_hal_test.cpp | 66 auto now = std::chrono::system_clock::now(); local 68 status = cv.wait_until(lock, now + std::chrono::seconds(sec));
|
/hardware/interfaces/radio/1.2/vts/functional/ |
H A D | radio_hidl_hal_test.cpp | 72 auto now = std::chrono::system_clock::now(); local 74 status = cv_.wait_until(lock, now + std::chrono::seconds(TIMEOUT_PERIOD));
|
/hardware/libhardware/modules/local_time/ |
H A D | local_time_hw.c | 41 uint64_t now; local 51 now = (((uint64_t)ts.tv_sec) * 1000000000ull) + 54 return (int64_t)now;
|
/hardware/qcom/gps/msm8084/utils/ |
H A D | loc_log.cpp | 172 struct timeval now; /* sec and usec */ local 176 gettimeofday(&now, NULL); 177 localtime_r(&now.tv_sec, &now_tm); 180 snprintf(time_string, buf_size, "%s.%03d", hms_string, (int) (now.tv_usec / 1000));
|
/hardware/qcom/gps/msm8909/utils/ |
H A D | loc_log.cpp | 174 struct timeval now; /* sec and usec */ local 178 gettimeofday(&now, NULL); 179 localtime_r(&now.tv_sec, &now_tm); 182 snprintf(time_string, buf_size, "%s.%03d", hms_string, (int) (now.tv_usec / 1000));
|
H A D | LocTimer.cpp | 289 // if tree is empty now, we remove poll and disarm timer 362 struct timespec now; local 363 // get time spec of now 364 clock_gettime(CLOCK_BOOTTIME, &now); 365 LocTimerDelegate timerOfNow(now); 366 // pop everything in the heap that outRanks now, i.e. has time older than now 649 struct timespec now; local 650 clock_gettime(CLOCK_BOOTTIME, &now); 651 return now; 658 struct timespec now; local 675 struct timespec now = getTimerWrapper(0); local [all...] |
/hardware/qcom/gps/msm8909w_3100/utils/ |
H A D | loc_log.cpp | 168 struct timeval now; /* sec and usec */ local 172 gettimeofday(&now, NULL); 173 localtime_r(&now.tv_sec, &now_tm); 176 snprintf(time_string, buf_size, "%s.%03d", hms_string, (int) (now.tv_usec / 1000));
|
H A D | LocTimer.cpp | 289 // if tree is empty now, we remove poll and disarm timer 362 struct timespec now; local 363 // get time spec of now 364 clock_gettime(CLOCK_BOOTTIME, &now); 365 LocTimerDelegate timerOfNow(now); 366 // pop everything in the heap that outRanks now, i.e. has time older than now 661 struct timespec now; local 662 clock_gettime(CLOCK_BOOTTIME, &now); 663 return now; 670 struct timespec now; local 687 struct timespec now = getTimerWrapper(0); local [all...] |
/hardware/qcom/gps/msm8960/utils/ |
H A D | loc_log.cpp | 172 struct timeval now; /* sec and usec */ local 176 gettimeofday(&now, NULL); 177 localtime_r(&now.tv_sec, &now_tm); 180 snprintf(time_string, buf_size, "%s.%03d", hms_string, (int) (now.tv_usec / 1000));
|
/hardware/qcom/gps/msm8994/utils/ |
H A D | loc_log.cpp | 173 struct timeval now; /* sec and usec */ local 177 gettimeofday(&now, NULL); 178 localtime_r(&now.tv_sec, &now_tm); 181 snprintf(time_string, buf_size, "%s.%03d", hms_string, (int) (now.tv_usec / 1000));
|
/hardware/qcom/gps/msm8996/utils/ |
H A D | loc_log.cpp | 174 struct timeval now; /* sec and usec */ local 178 gettimeofday(&now, NULL); 179 localtime_r(&now.tv_sec, &now_tm); 182 snprintf(time_string, buf_size, "%s.%03d", hms_string, (int) (now.tv_usec / 1000));
|
/hardware/qcom/gps/msm8998/utils/ |
H A D | loc_log.cpp | 170 struct timeval now; /* sec and usec */ local 174 gettimeofday(&now, NULL); 175 localtime_r(&now.tv_sec, &now_tm); 178 snprintf(time_string, buf_size, "%s.%03d", hms_string, (int) (now.tv_usec / 1000));
|
/hardware/qcom/gps/utils/ |
H A D | loc_log.cpp | 173 struct timeval now; /* sec and usec */ local 177 gettimeofday(&now, NULL); 178 localtime_r(&now.tv_sec, &now_tm); 181 snprintf(time_string, buf_size, "%s.%03d", hms_string, (int) (now.tv_usec / 1000));
|
/hardware/interfaces/broadcastradio/common/utils/ |
H A D | WorkerThread.cpp | 54 auto when = steady_clock::now() + delay; 78 if (task.when > steady_clock::now()) {
|
/hardware/libhardware/tests/input/evdev/ |
H A D | InputDevice_test.cpp | 103 auto now = systemTime(SYSTEM_TIME_MONOTONIC); local 107 InputEvent event = { now + s2ns(60), EV_KEY, KEY_HOME, 1 }; 109 device->processInput(event, now); 111 EXPECT_NEAR(now, event.when, ms2ns(TIMING_TOLERANCE_MS)); 119 auto now = systemTime(SYSTEM_TIME_MONOTONIC); local 121 // Input event from now, but will be reported as if it came early. 122 InputEvent event = { now, EV_KEY, KEY_HOME, 1 }; 126 device->processInput(event, now - s2ns(11)); 128 EXPECT_NEAR(now, event.when, ms2ns(TIMING_TOLERANCE_MS)); 145 // Eventually these mock device tests will all expect these calls. For now [all...] |