Home
last modified time | relevance | path

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

123

/hardware/qcom/wlan/qcwcn/wifi_hal/
Dsync.h66 struct timeval now; in wait() local
68 gettimeofday(&now,NULL); in wait()
70 abstime.tv_sec += now.tv_sec; in wait()
71 …if(((abstime.tv_nsec + now.tv_usec*1000) > 1000*1000*1000) || (abstime.tv_nsec + now.tv_usec*1000 … in wait()
74 abstime.tv_nsec += now.tv_usec * 1000; in wait()
79 abstime.tv_nsec += now.tv_usec * 1000; in wait()
Drb_wrapper.cpp152 void rb_check_for_timeout(struct rb_info *rb_info, struct timeval *now) in rb_check_for_timeout() argument
157 if (now->tv_sec >= in rb_check_for_timeout()
/hardware/interfaces/automotive/vehicle/2.0/default/common/include/vhal_v2_0/
DRecurrentTimer.h56 TimePoint now = Clock::now(); in registerRecurrentEvent() local
59 TimePoint absoluteTime = now - Nanos(now.time_since_epoch().count() % interval.count()); in registerRecurrentEvent()
84 void updateNextEventTime(TimePoint now) { in updateNextEventTime()
87 int intervalMultiplier = (now - absoluteTime) / interval; in updateNextEventTime()
99 auto now = Clock::now(); in loop() local
108 if (event.absoluteTime <= now) { in loop()
109 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.cpp43 auto now = std::chrono::system_clock::now(); in wait() local
45 status = cv.wait_until(lock, now + std::chrono::seconds(TIMEOUT_PERIOD)); in wait()
Dradio_hidl_hal_test.cpp52 auto now = std::chrono::system_clock::now(); in wait() local
54 status = cv.wait_until(lock, now + std::chrono::seconds(TIMEOUT_PERIOD)); in wait()
/hardware/intel/img/hwcomposer/moorefield_hdmi/common/observers/
DSoftVsyncObserver.cpp122 const nsecs_t now = systemTime(CLOCK_MONOTONIC); in threadLoop() local
124 nsecs_t sleep = next_vsync - now; in threadLoop()
127 sleep = (period - ((now - next_vsync) % period)); in threadLoop()
128 next_vsync = now + sleep; in threadLoop()
/hardware/intel/img/hwcomposer/merrifield/common/observers/
DSoftVsyncObserver.cpp126 const nsecs_t now = systemTime(CLOCK_MONOTONIC); in threadLoop() local
128 nsecs_t sleep = next_vsync - now; in threadLoop()
131 sleep = (period - ((now - next_vsync) % period)); in threadLoop()
132 next_vsync = now + sleep; in threadLoop()
/hardware/qcom/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()
647 struct timespec now; in getNow() local
648 clock_gettime(CLOCK_BOOTTIME, &now); in getNow()
649 return now; in getNow()
656 struct timespec now; in getTimerWrapper() local
657 clock_gettime(CLOCK_BOOTTIME, &now); in getTimerWrapper()
658 now.tv_sec += timeout; in getTimerWrapper()
659 return now; in getTimerWrapper()
[all …]
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.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.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/msm8084/utils/
Dloc_log.cpp171 struct timeval now; /* sec and usec */ in loc_get_time() local
175 gettimeofday(&now, NULL); in loc_get_time()
176 localtime_r(&now.tv_sec, &now_tm); in loc_get_time()
179 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.cpp171 struct timeval now; /* sec and usec */ in loc_get_time() local
175 gettimeofday(&now, NULL); in loc_get_time()
176 localtime_r(&now.tv_sec, &now_tm); in loc_get_time()
179 snprintf(time_string, buf_size, "%s.%03d", hms_string, (int) (now.tv_usec / 1000)); in loc_get_time()
/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 …]
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/msm8998/utils/
DLocTimer.cpp361 struct timespec now; in expire() local
363 clock_gettime(CLOCK_BOOTTIME, &now); in expire()
364 LocTimerDelegate timerOfNow(now); in expire()
652 struct timespec now; in getNow() local
653 clock_gettime(CLOCK_BOOTTIME, &now); in getNow()
654 return now; in getNow()
661 struct timespec now; in getTimerWrapper() local
662 clock_gettime(CLOCK_BOOTTIME, &now); in getTimerWrapper()
663 now.tv_sec += timeout; in getTimerWrapper()
664 return now; in getTimerWrapper()
[all …]
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()
/hardware/libhardware/modules/local_time/
Dlocal_time_hw.c41 uint64_t now; in ltdev_get_local_time() local
51 now = (((uint64_t)ts.tv_sec) * 1000000000ull) + in ltdev_get_local_time()
54 return (int64_t)now; in ltdev_get_local_time()
/hardware/invensense/6515/libsensors_iio/software/simple_apps/playback/linux/
Dmain.c635 struct tm *now; in output_filename_datetimestamp() local
637 now = localtime(&t); in output_filename_datetimestamp()
641 now->tm_year - 100, now->tm_mon + 1, now->tm_mday, in output_filename_datetimestamp()
642 now->tm_hour, now->tm_min, now->tm_sec); in output_filename_datetimestamp()
/hardware/libhardware/modules/audio/
Daudio_hw.c128 const int64_t now = (t.tv_sec * 1000000000LL + t.tv_nsec) / 1000; in out_write() local
129 const int64_t elapsed_time_since_last_write = now - out->last_write_time_us; in out_write()
138 out->last_write_time_us = now + sleep_time; in out_write()
251 const int64_t now = (t.tv_sec * 1000000000LL + t.tv_nsec) / 1000; in in_read() local
256 0 : now - in->last_read_time_us; in in_read()
264 in->last_read_time_us = now + sleep_time; in in_read()
/hardware/intel/img/hwcomposer/merrifield/common/base/
DHwcLayer.cpp265 uint64_t now = systemTime(CLOCK_MONOTONIC); in update() local
268 mFrames.push(now); in update()
272 while (frames && now - mFrames[0] > 5000000000LL) { in update()
278 fps = frames * 1000000000.0/ (now - mFrames[0]); in update()
/hardware/libhardware_legacy/audio/
DA2dpAudioInterface.cpp318 nsecs_t now = systemTime(); in write() local
319 if ((uint32_t)ns2us(now - mLastWriteTime) < (mBufferDurationUs >> 2)) { in write()
321 usleep(mBufferDurationUs - (uint32_t)ns2us(now - mLastWriteTime)); in write()
323 mLastWriteTime = now; in write()

123