Searched defs:now (Results 1 - 25 of 67) sorted by relevance

123

/hardware/ril/librilutils/
H A Dlibrilutils.c21 struct timespec now; local
22 clock_gettime(CLOCK_MONOTONIC, &now);
23 return now.tv_sec * 1000000000LL + now.tv_nsec;
/hardware/interfaces/radio/config/1.0/vts/functional/
H A Dradio_config_hidl_hal_test.cpp58 auto now = std::chrono::system_clock::now(); local
60 status = cv_.wait_until(lock, now + std::chrono::seconds(TIMEOUT_PERIOD));
/hardware/interfaces/radio/1.0/vts/functional/
H A Dsap_hidl_hal_test.cpp46 auto now = std::chrono::system_clock::now(); local
48 status = cv.wait_until(lock, now + std::chrono::seconds(TIMEOUT_PERIOD));
H A Dradio_hidl_hal_test.cpp61 auto now = std::chrono::system_clock::now(); local
63 status = cv.wait_until(lock, now + std::chrono::seconds(sec));
/hardware/interfaces/radio/1.2/vts/functional/
H A Dradio_hidl_hal_test.cpp72 auto now = std::chrono::system_clock::now(); local
74 status = cv_.wait_until(lock, now + std::chrono::seconds(TIMEOUT_PERIOD));
/hardware/interfaces/radio/1.1/vts/functional/
H A Dradio_hidl_hal_test.cpp66 auto now = std::chrono::system_clock::now(); local
68 status = cv.wait_until(lock, now + std::chrono::seconds(sec));
/hardware/interfaces/confirmationui/1.0/default/
H A DPlatformSpecifics.cpp30 MonotonicClockTimeStamper::TimeStamp MonotonicClockTimeStamper::now() { function in class:android::hardware::confirmationui::V1_0::implementation::MonotonicClockTimeStamper
/hardware/intel/img/hwcomposer/merrifield/common/observers/
H A DSoftVsyncObserver.cpp126 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 DSoftVsyncObserver.cpp122 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 Dlocal_time_hw.c41 uint64_t now; local
51 now = (((uint64_t)ts.tv_sec) * 1000000000ull) +
54 return (int64_t)now;
/hardware/qcom/wlan/qcwcn/wifi_hal/
H A Dsync.h69 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;
H A Drb_wrapper.cpp152 void rb_check_for_timeout(struct rb_info *rb_info, struct timeval *now) argument
157 if (now->tv_sec >=
/hardware/interfaces/automotive/vehicle/2.0/default/common/include/vhal_v2_0/
H A DRecurrentTimer.h57 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 DInputDevice_test.cpp103 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 DVtsHalUsbV1_0TargetTest.cpp136 auto now = std::chrono::system_clock::now(); local
139 usb_cv.wait_until(lock, now + std::chrono::seconds(TIMEOUT_PERIOD));
/hardware/google/av/media/codecs/base/
H A DSimpleC2Component.cpp335 nsecs_t now = systemTime(); local
336 if (now >= deadline) {
339 status_t err = queue.waitForConditionRelative(queue->mCondition, deadline - now);
418 ALOGD("work form old generation: was %" PRIu64 " now %" PRIu64,
/hardware/intel/img/hwcomposer/merrifield/common/base/
H A DHwcLayer.cpp265 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 DEvsCamera.cpp102 // 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 DVtsHalGnssV1_0TargetTest.cpp131 auto now = std::chrono::system_clock::now(); local
133 status = cv_.wait_until(lock, now + std::chrono::seconds(timeoutSeconds));
/hardware/interfaces/wifi/1.0/vts/functional/
H A Dwifi_nan_iface_hidl_test.cpp101 auto now = std::chrono::system_clock::now(); local
103 status = cv_.wait_until(lock, now + std::chrono::seconds(TIMEOUT_PERIOD));
/hardware/interfaces/wifi/1.2/vts/functional/
H A Dwifi_nan_iface_hidl_test.cpp111 auto now = std::chrono::system_clock::now(); local
114 now + std::chrono::seconds(TIMEOUT_PERIOD));
/hardware/qcom/gps/loc_api/libloc_api_50001/
H A Dloc_eng_nmea.cpp61 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 Dloc_eng_nmea.cpp61 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 Dloc_log.cpp172 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 Dloc_eng_nmea.cpp57 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.

Completed in 574 milliseconds

123