summaryrefslogtreecommitdiffstats
path: root/services/sensorservice/SensorDevice.h
Commit message (Collapse)AuthorAgeFilesLines
* Add body sensors app op - framework nativeSvetoslav2015-05-011-1/+1
| | | | Change-Id: I727a2bb1e28ae9158f2df9c74dd0aee977dfd47f
* Enable data injection mode in SensorService.Aravind Akella2015-04-231-0/+2
| | | | Change-Id: I0cd32a017235c31c54816e4a357ce3b988350ed6
* Support restricted mode in SensorService.Aravind Akella2015-03-241-1/+11
| | | | | | | In restricted mode, only CTS tests can register for sensors or call flush() on them. The requests from other applications will be ignored. Change-Id: Ieb923df3e0cfe3390fe2d052af776da79589744b
* Sensor batching. Changes to the native code.Aravind Akella2013-09-031-9/+43
| | | | | Bug: 10109508 Change-Id: I7333f3aac76125a8226a4c99c901fb904588df04
* resolved conflicts for merge of 00aea5c5 to masterMathias Agopian2013-07-121-1/+1
|\ | | | | | | Change-Id: Ie1769be863ee2d411eae451907a928db57882e14
| * fix a dead-lock in sensorserviceMathias Agopian2013-07-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | sensorservice would deadlock if for some reason a sensor failed to enable. simplifed the code a bit, and made it behave a little closer to mr1.1 -- I couldn't convince myself that some changes in how locks were used were correct. Bug: 9794362 Change-Id: I6110f5dbb67e543f1c71d127de2299232badb36a
* | improve sensorservice's dumpsysMathias Agopian2013-07-081-1/+1
|/ | | | | | | it now displays the reported trigger mode properly, as well as the number and type of the last received data Change-Id: I2ff64b32ab71f1332bc2e09671c8c02bb9550490
* Fix activation issue with auto disabled sensors.Jaikumar Ganesh2013-04-171-0/+1
| | | | | | | | | | Auto disabled sensors get auto disabled after trigger. An activation after this wasn't working because the state was not being reset. b/8609561 Change-Id: If72c9f27345e91671d7ad0a7a066f6dc3d255b78
* Sensor changes.Jaikumar Ganesh2013-04-121-0/+1
| | | | | | | | | | 1. Some sensors can wake up the AP. Add wakelocks. 2. Handle backward compatibility for rotation vector heading accuracy. 3. Cleanup auto disabled sensors. 4. Fix race condition between enable and dispatch. Change-Id: I39dddf12e208d83cd288201986ee994312555820
* improve sensorservice dumpsysMathias Agopian2012-06-271-2/+5
| | | | Change-Id: I8b53d5cab884c3aca16d95df5fbf288368d52e8b
* fix [3237242] sensormanager sensor active count gets out of syncMathias Agopian2012-06-271-2/+1
| | | | | | | | | | | | | | | | | | whether a physical sensor needed to be active or not was managed by a simpe reference counter; unfortunatelly nothing prevented it to get out of sync if a sensor was disabled more than once. sensorservice already maintainted a list of all the "clients" connected to a physical sensor; we now use that list to determine if a sensor should be enabled. This can never be "out-of-sync" since this is the only data structure linking a sensor to a user of that sensor. also removed the isEnabled() method, which was never used and implemented wrongly (since it didn't take into account that a sensor could be disabled for a client but not of another). Change-Id: I789affb877728ca957e99f7ba749def37c4db1c7
* Add support for virtual sensors.Mathias Agopian2012-06-271-0/+62
Rework sensorservice to allow "virtual sensors", that is sensors that report a synthetized value based on real sensors. the main change to sensorservice is around managing which real sensor need to be activated and which rate to use. The logic for all this has been moved into SensorDevice, which essentially wraps the sensor HAL but adds two features to it: - it keeps track of which sensors need to be activated - it keeps track of what rate needs to be used For this purpose an "identity" is associated with each real sensor activation, so we can track them. On start-up we check for gravity, linear-acceleration and rotation-vector sensors, if they're not present in the HAL, we synthetize them in sensor-service. Change-Id: I841db2c1b37ef127ed571efa21732ecc5adf1800