Lines Matching refs:timeoutMillis
175 int Looper::pollOnce(int timeoutMillis, int* outFd, int* outEvents, void** outData) { in pollOnce() argument
207 result = pollInner(timeoutMillis); in pollOnce()
211 int Looper::pollInner(int timeoutMillis) { in pollInner() argument
213 ALOGD("%p ~ pollOnce - waiting: timeoutMillis=%d", this, timeoutMillis); in pollInner()
217 if (timeoutMillis != 0 && mNextMessageUptime != LLONG_MAX) { in pollInner()
221 && (timeoutMillis < 0 || messageTimeoutMillis < timeoutMillis)) { in pollInner()
222 timeoutMillis = messageTimeoutMillis; in pollInner()
226 this, mNextMessageUptime - now, timeoutMillis); in pollInner()
239 int eventCount = epoll_wait(mEpollFd.get(), eventItems, EPOLL_MAX_EVENTS, timeoutMillis); in pollInner()
369 int Looper::pollAll(int timeoutMillis, int* outFd, int* outEvents, void** outData) { in pollAll() argument
370 if (timeoutMillis <= 0) { in pollAll()
373 result = pollOnce(timeoutMillis, outFd, outEvents, outData); in pollAll()
378 + milliseconds_to_nanoseconds(timeoutMillis); in pollAll()
381 int result = pollOnce(timeoutMillis, outFd, outEvents, outData); in pollAll()
387 timeoutMillis = toMillisecondTimeoutDelay(now, endTime); in pollAll()
388 if (timeoutMillis == 0) { in pollAll()