Lines Matching refs:events

49 int SimpleLooperCallback::handleEvent(int fd, int events, void* data) {  in handleEvent()  argument
50 return mCallback(fd, events, data); in handleEvent()
146 eventItem.events = EPOLLIN; in rebuildEpollLocked()
183 int events = response.events; in pollOnce() local
188 this, ident, fd, events, data); in pollOnce()
191 if (outEvents != nullptr) *outEvents = events; in pollOnce()
280 uint32_t epollEvents = eventItems[i].events; in pollInner()
290 int events = 0; in pollInner() local
291 if (epollEvents & EPOLLIN) events |= EVENT_INPUT; in pollInner()
292 if (epollEvents & EPOLLOUT) events |= EVENT_OUTPUT; in pollInner()
293 if (epollEvents & EPOLLERR) events |= EVENT_ERROR; in pollInner()
294 if (epollEvents & EPOLLHUP) events |= EVENT_HANGUP; in pollInner()
295 pushResponse(events, mRequests.valueAt(requestIndex)); in pollInner()
346 int events = response.events; in pollInner() local
350 this, response.request.callback.get(), fd, events, data); in pollInner()
355 int callbackResult = response.request.callback->handleEvent(fd, events, data); in pollInner()
419 void Looper::pushResponse(int events, const Request& request) { in pushResponse() argument
421 response.events = events; in pushResponse()
426 int Looper::addFd(int fd, int ident, int events, Looper_callbackFunc callback, void* data) { in addFd() argument
427 return addFd(fd, ident, events, callback ? new SimpleLooperCallback(callback) : nullptr, data); in addFd()
430 int Looper::addFd(int fd, int ident, int events, const sp<LooperCallback>& callback, void* data) { in addFd() argument
433 events, callback.get(), data); in addFd()
456 request.events = events; in addFd()
661 if (events & EVENT_INPUT) epollEvents |= EPOLLIN; in initEventItem()
662 if (events & EVENT_OUTPUT) epollEvents |= EPOLLOUT; in initEventItem()
665 eventItem->events = epollEvents; in initEventItem()