Home | History | Annotate | Download | only in libutils

Lines Matching full:timeoutmillis

187 int Looper::pollOnce(int timeoutMillis, int* outFd, int* outEvents, void** outData) {
219 result = pollInner(timeoutMillis);
223 int Looper::pollInner(int timeoutMillis) {
225 ALOGD("%p ~ pollOnce - waiting: timeoutMillis=%d", this, timeoutMillis);
229 if (timeoutMillis != 0 && mNextMessageUptime != LLONG_MAX) {
233 && (timeoutMillis < 0 || messageTimeoutMillis < timeoutMillis)) {
234 timeoutMillis = messageTimeoutMillis;
237 ALOGD("%p ~ pollOnce - next message in %" PRId64 "ns, adjusted timeout: timeoutMillis=%d",
238 this, mNextMessageUptime - now, timeoutMillis);
251 int eventCount = epoll_wait(mEpollFd, eventItems, EPOLL_MAX_EVENTS, timeoutMillis);
381 int Looper::pollAll(int timeoutMillis, int* outFd, int* outEvents, void** outData) {
382 if (timeoutMillis <= 0) {
385 result = pollOnce(timeoutMillis, outFd, outEvents, outData);
390 + milliseconds_to_nanoseconds(timeoutMillis);
393 int result = pollOnce(timeoutMillis, outFd, outEvents, outData);
399 timeoutMillis = toMillisecondTimeoutDelay(now, endTime);
400 if (timeoutMillis == 0) {