/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/bsp/intel/peripheral/libupm/src/wheelencoder/ |
H A D | wheelencoder.cxx | 54 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/libhardware/modules/local_time/ |
H A D | local_time_hw.c | 38 uint64_t now; local 48 now = (((uint64_t)ts.tv_sec) * 1000000000ull) + 51 return (int64_t)now;
|
/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/bsp/intel/peripheral/libupm/src/groveehr/ |
H A D | groveehr.cxx | 61 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 D | grovewfs.cxx | 65 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 D | ta12200.cxx | 58 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/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/bsp/intel/peripheral/libupm/src/uln200xa/ |
H A D | uln200xa.cxx | 91 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;
|
/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/ti/omap4-aah/domx/mm_osal/src/ |
H A D | timm_osal_events.c | 272 struct timeval now; local 359 gettimeofday(&now, NULL); 360 timeout_us = now.tv_usec + 1000 * uTimeOutMsec; 361 timeout.tv_sec = now.tv_sec + timeout_us / 1000000;
|
/hardware/ti/omap4xxx/domx/mm_osal/src/ |
H A D | timm_osal_events.c | 272 struct timeval now; local 359 gettimeofday(&now, NULL); 360 timeout_us = now.tv_usec + 1000 * uTimeOutMsec; 361 timeout.tv_sec = now.tv_sec + timeout_us / 1000000;
|
/hardware/bsp/intel/peripheral/libupm/src/adafruitms1438/ |
H A D | adafruitms1438.cxx | 71 struct timeval elapsed, now; local 75 gettimeofday(&now, NULL); 80 if( (elapsed.tv_usec = now.tv_usec - startTime.tv_usec) < 0 ) 83 elapsed.tv_sec = now.tv_sec - startTime.tv_sec - 1; 87 elapsed.tv_sec = now.tv_sec - startTime.tv_sec; 108 // now the 2 steppers 217 // now, setup the control pins - we want both FULL ON and FULL OFF.
|
/hardware/bsp/intel/peripheral/libupm/src/grovemd/ |
H A D | grovemd.cxx | 189 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/l298/ |
H A D | l298.cxx | 148 struct timeval elapsed, now; local 152 gettimeofday(&now, NULL); 155 if( (elapsed.tv_usec = now.tv_usec - m_startTime.tv_usec) < 0 ) 158 elapsed.tv_sec = now.tv_sec - m_startTime.tv_sec - 1; 162 elapsed.tv_sec = now.tv_sec - m_startTime.tv_sec;
|
/hardware/bsp/intel/peripheral/libupm/src/sm130/ |
H A D | sm130.cxx | 80 // now the command 84 // now the data if any 94 // now add the checksum 112 // now wait for a response 155 // now, remove the 2 header bytes and the checksum, leave the length 634 // now unpack the new value, LSB first 813 struct timeval elapsed, now; local 817 gettimeofday(&now, NULL); 820 if( (elapsed.tv_usec = now.tv_usec - m_startTime.tv_usec) < 0 ) 823 elapsed.tv_sec = now [all...] |
/hardware/bsp/intel/peripheral/libupm/src/zfm20/ |
H A D | zfm20.cxx | 57 // now open the tty 228 struct timeval elapsed, now; local 232 gettimeofday(&now, NULL); 235 if( (elapsed.tv_usec = now.tv_usec - m_startTime.tv_usec) < 0 ) 238 elapsed.tv_sec = now.tv_sec - m_startTime.tv_sec - 1; 242 elapsed.tv_sec = now.tv_sec - m_startTime.tv_sec; 318 // now verify it. 333 // now read a response 350 // now read a response 378 // now rea [all...] |
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/ |
H A D | rate_hist.c | 80 const int64_t now = pkt->data.frame.pts * 1000 * local 85 hist->pts[idx] = now; 88 if (now < cfg->rc_buf_initial_sz) 91 then = now; 98 if (now - then > cfg->rc_buf_sz) 103 if (now == then) 106 avg_bitrate = sum_sz * 8 * 1000 / (now - then);
|
/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/libhardware/modules/vehicle/ |
H A D | vehicle.c | 416 struct timespec now; local 417 clock_gettime(CLOCK_REALTIME, &now); 418 now.tv_sec += 1; // sleep for one sec 419 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 64 loc_eng_data_p->nmea_cb(now, pNmea, length); 818 // 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 64 loc_eng_data_p->nmea_cb(now, pNmea, length); 815 // now to be sent during position report.
|
/hardware/qcom/gps/msm8084/utils/ |
H A D | loc_log.cpp | 171 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));
|