Lines Matching refs:timeoutMillis
157 int Looper::pollOnce(int timeoutMillis, int* outFd, int* outEvents, void** outData) {
189 result = pollInner(timeoutMillis);
193 int Looper::pollInner(int timeoutMillis) {
195 ALOGD("%p ~ pollOnce - waiting: timeoutMillis=%d", this, timeoutMillis);
199 if (timeoutMillis != 0 && mNextMessageUptime != LLONG_MAX) {
203 && (timeoutMillis < 0 || messageTimeoutMillis < timeoutMillis)) {
204 timeoutMillis = messageTimeoutMillis;
207 ALOGD("%p ~ pollOnce - next message in %lldns, adjusted timeout: timeoutMillis=%d",
208 this, mNextMessageUptime - now, timeoutMillis);
218 int eventCount = epoll_wait(mEpollFd, eventItems, EPOLL_MAX_EVENTS, timeoutMillis);
334 int Looper::pollAll(int timeoutMillis, int* outFd, int* outEvents, void** outData) {
335 if (timeoutMillis <= 0) {
338 result = pollOnce(timeoutMillis, outFd, outEvents, outData);
343 + milliseconds_to_nanoseconds(timeoutMillis);
346 int result = pollOnce(timeoutMillis, outFd, outEvents, outData);
352 timeoutMillis = toMillisecondTimeoutDelay(now, endTime);
353 if (timeoutMillis == 0) {