Lines Matching refs:tv
52 struct timeval tv;
64 tv.tv_sec = (time_t) (millis / 1000LL);
65 tv.tv_usec = (suseconds_t) ((millis % 1000LL) * 1000LL);
67 ALOGD("Setting time of day to sec=%d\n", (int) tv.tv_sec);
75 ts.tv_sec = tv.tv_sec;
76 ts.tv_nsec = tv.tv_usec * 1000;
79 ALOGW("Unable to set rtc to %ld: %s\n", tv.tv_sec, strerror(errno));
84 if (settimeofday(&tv, NULL) != 0) {
86 (int) tv.tv_sec, (int) tv.tv_usec, strerror(errno));