Searched refs:now (Results 1 - 25 of 80) sorted by relevance

1234

/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/bsp/intel/peripheral/libupm/examples/javascript/
H A Dtm1637.js36 var now = new Date();
37 console.log("System time: " + now.getHours() + ":" + ("0" + now.getMinutes()).slice(-2));
42 now = new Date();
43 var time = now.getHours().toString() + ("0" + now.getMinutes().toString()).slice(-2);
H A Dldt0028.js79 var startTime = Date.now();
80 while (Date.now() - startTime < milliseconds);
/hardware/bsp/intel/peripheral/libupm/examples/java/
H A DTM1637Sample.java53 LocalDateTime now;
55 now = LocalDateTime.now();
56 int hour = now.getHour();
57 int min = now.getMinute();
58 int sec = now.getSecond();
/hardware/qcom/wlan/qcwcn/wifi_hal/
H A Dsync.h66 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 Drb_wrapper.h50 void rb_check_for_timeout(struct rb_info *rb_info, struct timeval *now);
/hardware/bsp/intel/peripheral/libupm/src/groveehr/
H A Dgroveehr.cxx61 struct timeval elapsed, now; local
65 gettimeofday(&now, NULL);
68 if( (elapsed.tv_usec = now.tv_usec - m_startTime.tv_usec) < 0 )
71 elapsed.tv_sec = now.tv_sec - m_startTime.tv_sec - 1;
75 elapsed.tv_sec = now.tv_sec - m_startTime.tv_sec;
/hardware/bsp/intel/peripheral/libupm/src/grovewfs/
H A Dgrovewfs.cxx65 struct timeval elapsed, now; local
69 gettimeofday(&now, NULL);
72 if( (elapsed.tv_usec = now.tv_usec - m_startTime.tv_usec) < 0 )
75 elapsed.tv_sec = now.tv_sec - m_startTime.tv_sec - 1;
79 elapsed.tv_sec = now.tv_sec - m_startTime.tv_sec;
/hardware/bsp/intel/peripheral/libupm/src/ta12200/
H A Dta12200.cxx58 struct timeval elapsed, now; local
62 gettimeofday(&now, NULL);
65 if( (elapsed.tv_usec = now.tv_usec - m_startTime.tv_usec) < 0 )
68 elapsed.tv_sec = now.tv_sec - m_startTime.tv_sec - 1;
72 elapsed.tv_sec = now.tv_sec - m_startTime.tv_sec;
/hardware/bsp/intel/peripheral/libupm/src/wheelencoder/
H A Dwheelencoder.cxx54 struct timeval elapsed, now; local
58 gettimeofday(&now, NULL);
61 if( (elapsed.tv_usec = now.tv_usec - m_startTime.tv_usec) < 0 )
64 elapsed.tv_sec = now.tv_sec - m_startTime.tv_sec - 1;
68 elapsed.tv_sec = now.tv_sec - m_startTime.tv_sec;
/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/ril/libril/
H A Dril_event.cpp162 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/libhardware/modules/local_time/
H A Dlocal_time_hw.c38 uint64_t now; local
48 now = (((uint64_t)ts.tv_sec) * 1000000000ull) +
51 return (int64_t)now;
/hardware/qcom/gps/msm8084/utils/
H A Dloc_log.cpp171 struct timeval now; /* sec and usec */ local
175 gettimeofday(&now, NULL);
176 localtime_r(&now.tv_sec, &now_tm);
179 snprintf(time_string, buf_size, "%s.%03d", hms_string, (int) (now.tv_usec / 1000));
/hardware/qcom/gps/msm8909/utils/
H A Dloc_log.cpp173 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));
H A DLocTimer.cpp288 // if tree is empty now, we remove poll and disarm timer
361 struct timespec now; local
362 // get time spec of now
363 clock_gettime(CLOCK_BOOTTIME, &now);
364 LocTimerDelegate timerOfNow(now);
365 // pop everything in the heap that outRanks now, i.e. has time older than now
647 struct timespec now; local
648 clock_gettime(CLOCK_BOOTTIME, &now);
649 return now;
656 struct timespec now; local
673 struct timespec now = getTimerWrapper(0); local
[all...]
/hardware/qcom/gps/msm8960/utils/
H A Dloc_log.cpp171 struct timeval now; /* sec and usec */ local
175 gettimeofday(&now, NULL);
176 localtime_r(&now.tv_sec, &now_tm);
179 snprintf(time_string, buf_size, "%s.%03d", hms_string, (int) (now.tv_usec / 1000));
/hardware/qcom/gps/msm8994/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/msm8996/utils/
H A Dloc_log.cpp173 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));
H A DLocTimer.cpp288 // if tree is empty now, we remove poll and disarm timer
361 struct timespec now; local
362 // get time spec of now
363 clock_gettime(CLOCK_BOOTTIME, &now);
364 LocTimerDelegate timerOfNow(now);
365 // pop everything in the heap that outRanks now, i.e. has time older than now
647 struct timespec now; local
648 clock_gettime(CLOCK_BOOTTIME, &now);
649 return now;
656 struct timespec now; local
673 struct timespec now = getTimerWrapper(0); local
[all...]
/hardware/qcom/gps/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/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/bsp/intel/peripheral/libupm/src/grovemd/
H A Dgrovemd.cxx189 struct timeval elapsed, now; local
193 gettimeofday(&now, NULL);
196 if( (elapsed.tv_usec = now.tv_usec - m_startTime.tv_usec) < 0 )
199 elapsed.tv_sec = now.tv_sec - m_startTime.tv_sec - 1;
203 elapsed.tv_sec = now.tv_sec - m_startTime.tv_sec;
/hardware/bsp/intel/peripheral/libupm/src/uln200xa/
H A Duln200xa.cxx91 struct timeval elapsed, now; local
95 gettimeofday(&now, NULL);
98 if( (elapsed.tv_usec = now.tv_usec - m_startTime.tv_usec) < 0 )
101 elapsed.tv_sec = now.tv_sec - m_startTime.tv_sec - 1;
105 elapsed.tv_sec = now.tv_sec - m_startTime.tv_sec;

Completed in 2119 milliseconds

1234