Lines Matching refs:sensor

52         if (sensor == nullptr) { \
189 ASensorManager *manager, ASensor const *sensor, int channelId, int rate) { in ASensorManager_configureDirectReport() argument
193 if (sensor == nullptr) { in ASensorManager_configureDirectReport()
201 sensorHandle = static_cast<Sensor const *>(sensor)->getHandle(); in ASensorManager_configureDirectReport()
209 int ASensorEventQueue_registerSensor(ASensorEventQueue* queue, ASensor const* sensor, in ASensorEventQueue_registerSensor() argument
219 static_cast<Sensor const*>(sensor)->getHandle(), samplingPeriodUs, in ASensorEventQueue_registerSensor()
223 int ASensorEventQueue_enableSensor(ASensorEventQueue* queue, ASensor const* sensor) { in ASensorEventQueue_enableSensor() argument
228 static_cast<Sensor const*>(sensor)); in ASensorEventQueue_enableSensor()
231 int ASensorEventQueue_disableSensor(ASensorEventQueue* queue, ASensor const* sensor) { in ASensorEventQueue_disableSensor() argument
236 static_cast<Sensor const*>(sensor)); in ASensorEventQueue_disableSensor()
239 int ASensorEventQueue_setEventRate(ASensorEventQueue* queue, ASensor const* sensor, int32_t usec) { in ASensorEventQueue_setEventRate() argument
249 static_cast<Sensor const*>(sensor), us2ns(usec)); in ASensorEventQueue_setEventRate()
295 const char* ASensor_getName(ASensor const* sensor) { in ASensor_getName() argument
297 return static_cast<Sensor const*>(sensor)->getName().string(); in ASensor_getName()
300 const char* ASensor_getVendor(ASensor const* sensor) { in ASensor_getVendor() argument
302 return static_cast<Sensor const*>(sensor)->getVendor().string(); in ASensor_getVendor()
305 int ASensor_getType(ASensor const* sensor) { in ASensor_getType() argument
307 return static_cast<Sensor const*>(sensor)->getType(); in ASensor_getType()
310 float ASensor_getResolution(ASensor const* sensor) { in ASensor_getResolution() argument
312 return static_cast<Sensor const*>(sensor)->getResolution(); in ASensor_getResolution()
315 int ASensor_getMinDelay(ASensor const* sensor) { in ASensor_getMinDelay() argument
317 return static_cast<Sensor const*>(sensor)->getMinDelay(); in ASensor_getMinDelay()
320 int ASensor_getFifoMaxEventCount(ASensor const* sensor) { in ASensor_getFifoMaxEventCount() argument
322 return static_cast<Sensor const*>(sensor)->getFifoMaxEventCount(); in ASensor_getFifoMaxEventCount()
325 int ASensor_getFifoReservedEventCount(ASensor const* sensor) { in ASensor_getFifoReservedEventCount() argument
327 return static_cast<Sensor const*>(sensor)->getFifoReservedEventCount(); in ASensor_getFifoReservedEventCount()
330 const char* ASensor_getStringType(ASensor const* sensor) { in ASensor_getStringType() argument
332 return static_cast<Sensor const*>(sensor)->getStringType().string(); in ASensor_getStringType()
335 int ASensor_getReportingMode(ASensor const* sensor) { in ASensor_getReportingMode() argument
337 return static_cast<Sensor const*>(sensor)->getReportingMode(); in ASensor_getReportingMode()
340 bool ASensor_isWakeUpSensor(ASensor const* sensor) { in ASensor_isWakeUpSensor() argument
342 return static_cast<Sensor const*>(sensor)->isWakeUpSensor(); in ASensor_isWakeUpSensor()
345 bool ASensor_isDirectChannelTypeSupported(ASensor const *sensor, int channelType) { in ASensor_isDirectChannelTypeSupported() argument
347 return static_cast<Sensor const *>(sensor)->isDirectChannelTypeSupported(channelType); in ASensor_isDirectChannelTypeSupported()
350 int ASensor_getHighestDirectReportRateLevel(ASensor const *sensor) { in ASensor_getHighestDirectReportRateLevel() argument
352 return static_cast<Sensor const *>(sensor)->getHighestDirectReportRateLevel(); in ASensor_getHighestDirectReportRateLevel()
355 int ASensor_getHandle(ASensor const* sensor) { in ASensor_getHandle() argument
357 return static_cast<Sensor const*>(sensor)->getHandle(); in ASensor_getHandle()