/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/interfaces/radio/1.0/vts/functional/ |
H A D | sap_hidl_hal_test.cpp | 43 auto now = std::chrono::system_clock::now(); local 45 status = cv.wait_until(lock, now + std::chrono::seconds(TIMEOUT_PERIOD));
|
H A D | radio_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/interfaces/radio/1.1/vts/functional/ |
H A D | radio_hidl_hal_test.cpp | 59 auto now = std::chrono::system_clock::now(); local 61 status = cv.wait_until(lock, now + std::chrono::seconds(TIMEOUT_PERIOD));
|
/hardware/qcom/wlan/qcwcn/wifi_hal/ |
H A D | sync.h | 66 struct timeval now; local 68 gettimeofday(&now,NULL); 70 abstime.tv_sec += now.tv_sec; 71 if(((abstime.tv_nsec + now.tv_usec*1000) > 1000*1000*1000) || (abstime.tv_nsec + now.tv_usec*1000 < 0)) 74 abstime.tv_nsec += now.tv_usec * 1000; 79 abstime.tv_nsec += now.tv_usec * 1000;
|
H A D | rb_wrapper.cpp | 152 void rb_check_for_timeout(struct rb_info *rb_info, struct timeval *now) argument 157 if (now->tv_sec >=
|
/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/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/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/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...] |
/hardware/interfaces/usb/1.0/vts/functional/ |
H A D | VtsHalUsbV1_0TargetTest.cpp | 122 auto now = std::chrono::system_clock::now(); local 125 usb_cv.wait_until(lock, now + std::chrono::seconds(TIMEOUT_PERIOD));
|
/hardware/intel/img/hwcomposer/merrifield/common/base/ |
H A D | HwcLayer.cpp | 265 uint64_t now = systemTime(CLOCK_MONOTONIC); local 268 mFrames.push(now); 272 while (frames && now - mFrames[0] > 5000000000LL) { 278 fps = frames * 1000000000.0/ (now - mFrames[0]);
|
/hardware/interfaces/automotive/evs/1.0/default/ |
H A D | EvsCamera.cpp | 102 // is going to own the underlying camera now 397 // Can't do anything right now -- skip this frame 458 const nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local 459 const nsecs_t workTimeUs = (now - startTime) / 1000;
|
/hardware/interfaces/gnss/1.0/vts/functional/ |
H A D | VtsHalGnssV1_0TargetTest.cpp | 114 auto now = std::chrono::system_clock::now(); local 116 status = cv_.wait_until(lock, now + std::chrono::seconds(timeoutSeconds));
|
/hardware/interfaces/wifi/1.0/vts/functional/ |
H A D | wifi_nan_iface_hidl_test.cpp | 101 auto now = std::chrono::system_clock::now(); local 103 status = cv_.wait_until(lock, now + std::chrono::seconds(TIMEOUT_PERIOD));
|
/hardware/libhardware/modules/vehicle/ |
H A D | vehicle.c | 400 struct timespec now; local 401 clock_gettime(CLOCK_REALTIME, &now); 402 now.tv_sec += 1; // sleep for one sec 403 pthread_cond_timedwait(&sub->cond, &sub->lock, &now);
|
/hardware/qcom/gps/loc_api/libloc_api_50001/ |
H A D | loc_eng_nmea.cpp | 61 int64_t now = tv.tv_sec * 1000LL + tv.tv_usec / 1000; local 63 loc_eng_data_p->nmea_cb(now, pNmea, length); 817 // now to be sent during position report.
|
/hardware/qcom/gps/msm8084/loc_api/libloc_api_50001/ |
H A D | loc_eng_nmea.cpp | 61 int64_t now = tv.tv_sec * 1000LL + tv.tv_usec / 1000; local 63 loc_eng_data_p->nmea_cb(now, pNmea, length); 814 // now to be sent during position report.
|
/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/loc_api/libloc_api_50001/ |
H A D | loc_eng_nmea.cpp | 57 int64_t now = tv.tv_sec * 1000LL + tv.tv_usec / 1000; local 59 loc_eng_data_p->nmea_cb(now, pNmea, length); 792 // now to be sent during position report.
|
/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));
|
/hardware/qcom/gps/msm8960/loc_api/libloc_api_50001/ |
H A D | loc_eng_nmea.cpp | 58 int64_t now = tv.tv_sec * 1000LL + tv.tv_usec / 1000; local 59 loc_eng_data_p->nmea_cb(now, pNmea, length); 706 // now to be sent during position report.
|
/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/loc_api/libloc_api_50001/ |
H A D | loc_eng_nmea.cpp | 61 int64_t now = tv.tv_sec * 1000LL + tv.tv_usec / 1000; local 64 loc_eng_data_p->nmea_cb(now, pNmea, length); 818 // now to be sent during position report.
|