summaryrefslogtreecommitdiffstats
path: root/include/hardware/sensors.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix DATA_INJECTION flag in sensors.hAravind Akella2015-09-111-1/+1
| | | | | Bug: 24001171 Change-Id: Ia42934a97566f0ebe8d324e065351a3d9ed55621
* Define a flag for whether a sensor supports data_injection mode or not.Aravind Akella2015-06-221-8/+23
| | | | Change-Id: I46373bbd2e10859b84428fe32b76679ac4292607
* Remove custome sensors from sensors.hAshutosh Joshi2015-04-151-36/+14
| | | | | | Custom sensors should not be included in sensors.h Change-Id: I553fbe3dd41eaaa70628184f5a0b9499699f17bc
* Sensors HAL changesAshutosh Joshi2015-04-141-1/+68
| | | | | | | | | | | Adding HAL changes for the following i) a method to place the HAL in a special mode. Expect to use this method for data-injection. ii) a method to inject sensor data into the sensors subsystem. iii) New sensor type for a SYNC event (google custom sensor). iv) New sensor type for a nudge gesture (google custom sensor). Change-Id: Idf0479b6301c5363cf51938e23aabc790b69fa96
* Add new SENSOR_TYPE_WRIST_TILT_GESTURE sensor typeNick Vaccaro2015-02-051-0/+16
| | | | | | | Adds a new sensor type for converting the Android Wear defined wrist tilt sensor type into an official android sensor type. Change-Id: If6357aeb463a556a68a19b28931edec04f99a952
* sensors.h documentation change.Aravind Akella2014-09-051-8/+13
| | | | | | | | i) on-change sensors should set maxDelay. ii) Drivers should hold a wake_lock till poll() is called the next time when delivering events from wake-up sensors. Change-Id: I4b137843d5c857f04601618548306a710fbfbe5c
* Merge commit '38014a7c' into lmp-devGriff Hazen2014-08-281-3/+5
|\ | | | | | | | | | | | | Conflicts: include/hardware/sensors.h Change-Id: I21517f717761af7f52c003d535e86059ebb75f05
| * Adding information about the first activationVinod Krishnan2014-08-281-3/+5
| | | | | | | | Change-Id: If5759749c5e6a88dcaf5ab600c9086b056c3908a
* | Sensor HAL documentation fix.Aravind Akella2014-08-211-0/+2
| | | | | | | | Change-Id: Ibc3f643a22163f734ba0ca912f011decf55d9bfa
* | Some parameter renaming and comment update in sensors.hEtienne Le Grand2014-08-191-15/+31
| | | | | | | | | | bug: 16818625 Change-Id: Ifcda8cd4e80a7377a6b5b138b9c7a5a2275af153
* | Remove WAKE_UP_* sensor constants and stringTypes.Aravind Akella2014-07-301-111/+92
| | | | | | | | Change-Id: Iabe4bb064d88d9fcecc1a31e609cb8b77ebdd5ad
* | Fix typo in sensor type using an already defined constant.destradaa2014-07-211-1/+1
| | | | | | | | Change-Id: I209d9191456dc6c1ef2eb695c9a8348a18504a8d
* | Add glance gesture for doze mode.Jeff Brown2014-07-171-0/+25
| | | | | | | | Change-Id: I2daa13e74d2183247c314c15ee283b7a6c20bc22
* | Define SENSOR_TYPE_PICK_UP_GESTURE.Aravind Akella2014-07-171-1/+12
| | | | | | | | Change-Id: I122f37f5625a2acc3912ad37bdf8717ae2f31b6f
* | Add sensor flags for reportingMode.Aravind Akella2014-06-121-31/+54
| | | | | | | | Change-Id: Ife456dd13264bafa7cd50d72b8818526030d7a3e
* | Rewording of tilt sensorEtienne Le Grand2014-05-291-2/+2
| | | | | | | | Change-Id: I7bb0e63c3e1e6850359d7e690bfeea9e8c8fbcbf
* | Update starting gravity of tilt definitionEtienne Le Grand2014-05-281-2/+3
| | | | | | | | Change-Id: I9be79fe264b8a751757a2b6840b7ff928679028d
* | am ec9236ef: am ef2c616c: Merge "Update definition of the heart rate monitor ↵Etienne Le Grand2014-05-271-10/+26
|\ \ | |/ | | | | | | | | | | to include confidence" into klp-modular-dev * commit 'ec9236ef18e13b40a1b28aa05b4d5f483cc6ab74': Update definition of the heart rate monitor to include confidence
| * Update definition of the heart rate monitor to include confidenceEtienne Le Grand2014-05-231-10/+26
| | | | | | | | Change-Id: I88a8cddf647f77588a283c16d37f3f99ecda3115
| * DO NOT MERGE Add heart rate monitor, stringType and requiredPermissions to ↵Aravind Akella2014-04-081-4/+99
| | | | | | | | | | | | | | | | sensors.h This reverts commit d27d819897dcae794d26d604c2334a76ef8b9558. Change-Id: Ic66b792c8229867fa5ff760cdde3d7c6f3360296
| * Revert "Add heart rate monitor, stringType and requiredPermissions to sensors.h"Etienne Le Grand2014-04-051-99/+4
| | | | | | | | | | | | This reverts commit 0b8ec4f71fa31cd6db33da5fefcebf2ecb6b6d7a. Change-Id: I99051b6941cad570aef45ff568d1777f881fc33b
| * Add heart rate monitor, stringType and requiredPermissions to sensors.hEtienne Le Grand2014-04-031-4/+99
| | | | | | | | Change-Id: I376e4dbb13d64f4987d4a8be82afddb625eefa54
* | Add SENSOR_TYPE_WAKE_GESTURE in the sensor hal.Etienne Le Grand2014-05-061-0/+21
| | | | | | | | Change-Id: Ia84dfe487bfdea227d5ae856f7e44b021dac1f19
* | Define TILT sensorAravind Akella2014-05-051-4/+34
| | | | | | | | Change-Id: Ic3c223488aa4a0d66b07ae3065e59f8e2fe69ceb
* | Define new wake_up sensors in sensors.hAravind Akella2014-04-231-7/+129
| | | | | | | | | | | | | | | | | | i) Define WAKE_UP sensors. ii) Deprecate flags DRY_RUN and WAKE_UPON_FIFO_FULL. iii) Define maxDelay and isWakeUpSensor flag in sensor_t. Bug: 13251067 Change-Id: Ic474d90d05459b06e93094856423f6645b4bf58e
* | Add heart rate monitor, stringType and requiredPermissions to sensors.hAravind Akella2014-04-101-4/+99
| | | | | | | | | | | | | | | | | | Merged and resolved conflicts with Ic66b792c8229867fa5ff760cdde3d7c6f3360296 Conflicts: include/hardware/sensors.h Change-Id: I47b7e5f16b50fd5272590f6daba4a9d6833b3afb
* | Revert "Fix Merge conflict (Add heart rate monitor ...to sensors.h)"Etienne Le Grand2014-04-051-99/+4
| | | | | | | | | | | | This reverts commit c6854530e1c707d86e4c2203354e66aa2ee8fdf4. Change-Id: Idc821b6645be6bfd9878cfc777010a123f013f0a
* | Fix Merge conflict (Add heart rate monitor ...to sensors.h)JP Abgrall2014-04-041-4/+99
| | | | | | | | | | | | | | Change-Id: I376e4dbb13d64f4987d4a8be82afddb625eefa54 Conflicts: include/hardware/sensors.h
* | Docs: Removing contents now on source.android.comClay Murphy2013-12-191-682/+29
|/ | | | | | Bug: 10134622 Change-Id: Ief5a53f1b5e5eff9ade45763d895029428266980
* Define a range for device specific sensorsMathias Agopian2013-08-191-0/+11
| | | | | Bug: 9551417 Change-Id: I5412d9c063743a0e99e8839a0758337c72a8725e
* minor changes to sensor HAL interfaceMathias Agopian2013-08-061-6/+7
| | | | Change-Id: Idc415fd0a92482f4f4cd051b458a28d97f251f35
* improvements to the batch mode APIsMathias Agopian2013-08-051-1/+100
| | | | | | | - also added a flush() method to drain the FIFO before the batch timeout has expired Change-Id: I73cc450fae0a6acf73d8b5d73bcd7a225bfbfe35
* Clarify some comments in the sensor HALEtienne Le Grand2013-07-101-13/+36
| | | | | | | | | | | | | Step count can reset when android restarts When calling activate() without calling setDelay() before, use a default rate Uncalibrated magnetometer should not be low pass filtered The accelerometer can be used for the geomagnetic rotation vector When batching call retuns an error, it shouldn't change the state. In particular, it shouldn't change the rate. batch(timeout=0) must always return success Wake upon fifo full will never be specified when timeout=0 setDelay is not called when in batch mode Change-Id: I8a437eeedbdc54e5f1f3e644a92e9f781d7add0d
* be more explicit about 64 bits values in sensor eventsMathias Agopian2013-07-081-26/+32
| | | | Change-Id: I61e4832ff2c721987c38897924b1b50b758384da
* Modify sign of bias in uncalibrated magnetometerEtienne Le Grand2013-04-231-3/+3
| | | | | bug 8632692 Change-Id: If92f0030e53d41a7d0bc3c3b003f5eb939123945
* Sensor HAL updatesEtienne Le Grand2013-04-041-87/+124
| | | | | | | | | | Improve explanation of Batch mode Put the 4th component of the unit quaternion back in the rotation vector Modify rotation vector description Modify definition of uncalibrated sensor event Remove query() Change-Id: I7564073fac0e2467bcfca040b259d9d20e2688c5
* Minor fix in significant motion descriptionEtienne Le Grand2013-03-071-1/+1
| | | | Change-Id: I155181e43750948a6fd6fc246a4e0203cea7c9cb
* Add significant motion descriptionEtienne Le Grand2013-03-061-4/+17
| | | | Change-Id: I56de3f2c12243b3d25cd825b66f7685e674533ff
* Sensors HAL iterative update for jb-mr2Etienne Le Grand2013-03-041-29/+136
| | | | | | | | | | | | Specified more precisely what the uncalibrated magnetometer should be Added uncalibrated sensors event struct Specified that rotation vector and game rotation vector have to use gyroscopes Added magnetic field rotation vector Added accuracy field to rotation vector and magnetometer rotation vector Added section on comparative importance of batching different sensors Specified that one-shot sensors must deactivate themselves before sending an event. Change-Id: Ibc30ce6fc30e698af49a91930bd5a8316b6568b9
* Revert "only orientation and geomagnetic field sensors support the "status" ↵Jeff Brown2013-02-091-18/+2
| | | | | | | | field" This reverts commit fbe985ca9c8cd502ce9b8b0332dbdd639e9b723e Change-Id: I7c65fd3326fe08363b5ed491f6438e541df879d4
* only orientation and geomagnetic field sensors support the "status" fieldMathias Agopian2013-02-061-2/+18
| | | | | | enforce this in the HAL API. Change-Id: I54d2fde84a852482a96140f8f1945cc6044e628a
* improves sensors HAL documentationMathias Agopian2013-02-061-25/+73
| | | | | | | - added a period parameter to batch() - added drift-estimate to uncalibrated gyro Change-Id: I9cba8099c8906ba111d401ecbb4341e338b338a8
* renamed sensor PEDOMETER to STEP_DETECTORMathias Agopian2013-01-281-5/+5
| | | | | | pedometer was confusing. Change-Id: Ib40c8034e9038f7153299aed4ee33a0a9f1e900e
* Fix buildAndrew Hsieh2012-12-111-3/+3
| | | | Change-Id: Iaf3bba12e3f34d351890320b25aa340e75c1972c
* sensor HAL major revisionMathias Agopian2012-12-101-54/+463
| | | | | | | | | | | | | | mainly update the documentation, add new sensor types and add a batch mode. - TYPE_PEDOMETER, defines a pedometer sensor - TYPE_SIGNIFICANT_MOTION, defines a sensor that triggers an event when the device is moving "enough". This sensor must allow the SoC to go into suspend, while it is enabled. - TYPE_STEP_COUNTER, defines a pedometer but returns a step count (and looses precise timestamps, per step). Change-Id: I3e20ff165851b7cb318f3c6637a6580de156b8fe
* Add support for new sensor typesMathias Agopian2012-11-121-109/+193
| | | | | | | | - add support for SENSOR_TYPE_MAGNETIC_FIELD_UNCALIBRATED - add support for SENSOR_TYPE_GAME_ROTATION_VECTOR - add support for SENSOR_TYPE_GYROSCOPE_UNCALIBRATED Change-Id: I83048eb239d2123b5ec1f411b99f1883080a646f
* improve sensor HAL documentationMathias Agopian2011-11-081-49/+42
| | | | Change-Id: If2c1613902de6ed0e6cae8fe4755948c0f623bda
* change sensor HAL documentation to allow setting polling rate for "non ↵Mathias Agopian2011-11-011-6/+9
| | | | | | | | | | | | | continuous" sensors the current API / Documentation would not allow to set the rate of "non continuous" sensors. Most sensors HAL implementation already support changing the rate (technically they're not compliant with the doc), so it's easier to change the doc (and also allows more control). Change-Id: I4ad324ddc3b569ec61770b3cf927c06f8ff4af4e
* Merge 48e4ab6b7Jean-Baptiste Queru2011-05-181-0/+15
|\ | | | | | | Change-Id: Ie034418055ed9b10608e06fd6e35d64bddb73598
| * am 83eb0af0: Merge "support humidity sensor type"Jean-Baptiste Queru2011-05-181-0/+12
| |\ | | | | | | | | | | | | * commit '83eb0af000c80bc9d9b2a19eb15ab22bb0dddb1b': support humidity sensor type