Lines Matching refs:queue
87 sp<SensorEventQueue> queue =
89 if (queue != 0) {
90 ALooper_addFd(looper, queue->getFd(), ident, ALOOPER_EVENT_INPUT, callback, data);
91 queue->looper = looper;
92 queue->incStrong(manager);
94 return static_cast<ASensorEventQueue*>(queue.get());
100 sp<SensorEventQueue> queue = static_cast<SensorEventQueue*>(inQueue);
101 ALooper_removeFd(queue->looper, queue->getFd());
102 queue->decStrong(manager);
108 int ASensorEventQueue_registerSensor(ASensorEventQueue* queue, ASensor const* sensor,
111 return static_cast<SensorEventQueue*>(queue)->enableSensor(
116 int ASensorEventQueue_enableSensor(ASensorEventQueue* queue, ASensor const* sensor)
118 return static_cast<SensorEventQueue*>(queue)->enableSensor(
122 int ASensorEventQueue_disableSensor(ASensorEventQueue* queue, ASensor const* sensor)
124 return static_cast<SensorEventQueue*>(queue)->disableSensor(
128 int ASensorEventQueue_setEventRate(ASensorEventQueue* queue, ASensor const* sensor,
131 return static_cast<SensorEventQueue*>(queue)->setEventRate(
135 int ASensorEventQueue_hasEvents(ASensorEventQueue* queue)
138 pfd.fd = static_cast<SensorEventQueue*>(queue)->getFd();
153 ssize_t ASensorEventQueue_getEvents(ASensorEventQueue* queue,
156 ssize_t actual = static_cast<SensorEventQueue*>(queue)->read(events, count);
158 static_cast<SensorEventQueue*>(queue)->sendAck(events, actual);