Lines Matching defs:events

86         result.appendFormat("\t %s 0x%08x | status: %s | pending flush events %d \n",
94 result.appendFormat("\t events recvd: %d | sent %d | cache %d | dropped %d |"
190 // already been added, remove it. This is likely to happen when ALL the events stored in the
202 // registered for wake-up sensors OR for sending events in the cache.
225 // filter out events not for this connection
235 // Setting sensor_handle to the correct sensor to ensure the sensor events per
237 // events.
268 // Keep copying events into the scratch buffer as long as they are regular
292 // Early return if there are no events for this connection.
301 // There are some events in the cache which need to be sent first. Copy this buffer to
313 // Some events need to be dropped.
345 // Write error, copy events to local cache.
383 // Allocate new cache, copy over events from the old cache & scratch, free up memory.
402 // flush complete events to be sent.
436 // Send pending flush complete events (if any)
468 ALOGD_IF(DEBUG_CONNECTIONS, "wrote %d events from cache size==%d ",
478 ALOGD_IF(DEBUG_CONNECTIONS, "wrote all events from cache size=%d ", mCacheSize);
479 // All events from the cache have been sent. Reset cache size to zero.
481 // There are no more events in the cache. We don't need to poll for write on the fd.
488 ALOGD_IF(DEBUG_CONNECTIONS, "dropping %d events ", numEventsDropped);
489 // Count flushComplete events in the events that are about to the dropped. These will be sent
490 // separately before the next batch of events.
556 int SensorService::SensorEventConnection::handleEvent(int fd, int events, void* /*data*/) {
557 if (events & ALOOPER_EVENT_HANGUP || events & ALOOPER_EVENT_ERROR) {
578 if (events & ALOOPER_EVENT_INPUT) {
632 if (events & ALOOPER_EVENT_OUTPUT) {