Lines Matching refs:queue
58 if (queue == nullptr) { \
113 sp<SensorEventQueue> queue = in ASensorManager_createEventQueue() local
115 if (queue != 0) { in ASensorManager_createEventQueue()
116 ALooper_addFd(looper, queue->getFd(), ident, ALOOPER_EVENT_INPUT, callback, data); in ASensorManager_createEventQueue()
117 queue->looper = looper; in ASensorManager_createEventQueue()
118 queue->requestAdditionalInfo = false; in ASensorManager_createEventQueue()
119 queue->incStrong(manager); in ASensorManager_createEventQueue()
121 return static_cast<ASensorEventQueue*>(queue.get()); in ASensorManager_createEventQueue()
124 int ASensorManager_destroyEventQueue(ASensorManager* manager, ASensorEventQueue* queue) { in ASensorManager_destroyEventQueue() argument
128 sp<SensorEventQueue> q = static_cast<SensorEventQueue*>(queue); in ASensorManager_destroyEventQueue()
209 int ASensorEventQueue_registerSensor(ASensorEventQueue* queue, ASensor const* sensor, in ASensorEventQueue_registerSensor() argument
218 return static_cast<SensorEventQueue*>(queue)->enableSensor( in ASensorEventQueue_registerSensor()
223 int ASensorEventQueue_enableSensor(ASensorEventQueue* queue, ASensor const* sensor) { in ASensorEventQueue_enableSensor() argument
227 return static_cast<SensorEventQueue*>(queue)->enableSensor( in ASensorEventQueue_enableSensor()
231 int ASensorEventQueue_disableSensor(ASensorEventQueue* queue, ASensor const* sensor) { in ASensorEventQueue_disableSensor() argument
235 return static_cast<SensorEventQueue*>(queue)->disableSensor( in ASensorEventQueue_disableSensor()
239 int ASensorEventQueue_setEventRate(ASensorEventQueue* queue, ASensor const* sensor, int32_t usec) { in ASensorEventQueue_setEventRate() argument
248 return static_cast<SensorEventQueue*>(queue)->setEventRate( in ASensorEventQueue_setEventRate()
252 int ASensorEventQueue_hasEvents(ASensorEventQueue* queue) { in ASensorEventQueue_hasEvents() argument
256 pfd.fd = static_cast<SensorEventQueue*>(queue)->getFd(); in ASensorEventQueue_hasEvents()
271 ssize_t ASensorEventQueue_getEvents(ASensorEventQueue* queue, ASensorEvent* events, size_t count) { in ASensorEventQueue_getEvents() argument
278 SensorEventQueue* sensorQueue = static_cast<SensorEventQueue*>(queue); in ASensorEventQueue_getEvents()
287 int ASensorEventQueue_requestAdditionalInfoEvents(ASensorEventQueue* queue, bool enable) { in ASensorEventQueue_requestAdditionalInfoEvents() argument
289 queue->requestAdditionalInfo = enable; in ASensorEventQueue_requestAdditionalInfoEvents()