Lines Matching refs:sensor

38  * Structures and functions to receive and process sensor events in
55 * (keep in sync with hardware/sensor.h)
99 * A sensor event.
123 int32_t sensor;
153 int32_t sensor;
197 * Get a reference to the sensor manager. ASensorManager is a singleton.
213 * Returns the default sensor for the given type, or NULL if no sensor
219 * Returns the default sensor with the given type and wakeUp properties or NULL if no sensor
226 * Creates a new sensor event queue and associate it with a looper.
240 * Enable the selected sensor. Returns a negative error code on failure.
242 int ASensorEventQueue_enableSensor(ASensorEventQueue* queue, ASensor const* sensor);
245 * Disable the selected sensor. Returns a negative error code on failure.
247 int ASensorEventQueue_disableSensor(ASensorEventQueue* queue, ASensor const* sensor);
250 * Sets the delivery rate of events in microseconds for the given sensor.
256 int ASensorEventQueue_setEventRate(ASensorEventQueue* queue, ASensor const* sensor, int32_t usec);
260 * sensor queue. Returns 1 if the queue has events; 0 if
285 * Returns this sensor's name (non localized)
287 const char* ASensor_getName(ASensor const* sensor);
290 * Returns this sensor's vendor's name (non localized)
292 const char* ASensor_getVendor(ASensor const* sensor);
295 * Return this sensor's type
297 int ASensor_getType(ASensor const* sensor);
302 float ASensor_getResolution(ASensor const* sensor);
306 * A value of zero means that this sensor doesn't report events at a
309 int ASensor_getMinDelay(ASensor const* sensor);
312 * Returns the maximum size of batches for this sensor. Batches will often be
315 int ASensor_getFifoMaxEventCount(ASensor const* sensor);
318 * Returns the hardware batch fifo size reserved to this sensor.
320 int ASensor_getFifoReservedEventCount(ASensor const* sensor);
323 * Returns this sensor's string type.
325 const char* ASensor_getStringType(ASensor const* sensor);
328 * Returns the reporting mode for this sensor. One of AREPORTING_MODE_* constants.
330 int ASensor_getReportingMode(ASensor const* sensor);
333 * Returns true if this is a wake up sensor, false otherwise.
335 bool ASensor_isWakeUpSensor(ASensor const* sensor);