Lines Matching refs:tv
82 int setTime(struct timeval *tv);
121 int AlarmImpl::setTime(struct timeval *tv)
128 res = settimeofday(tv, NULL);
147 gmtime_res = gmtime_r(&tv->tv_sec, &tm);
203 struct timeval tv;
210 tv.tv_sec = (time_t) (millis / 1000LL);
211 tv.tv_usec = (suseconds_t) ((millis % 1000LL) * 1000LL);
213 ALOGD("Setting time of day to sec=%d\n", (int) tv.tv_sec);
215 ret = impl->setTime(&tv);
218 ALOGW("Unable to set rtc to %ld: %s\n", tv.tv_sec, strerror(errno));