27900358f2f5b89e8b01516b28a916d16c99ba9b |
|
04-Jun-2014 |
Aravind Akella <aakella@google.com> |
Add java APIs for Sensor reportingMode. Change-Id: Iba6bb11f990d9966b86bf02d70ced7312f3e64a8
/frameworks/base/core/java/android/hardware/SystemSensorManager.java
|
af80510e85b301c8d8ba1e28e7edc7a0c9156a1a |
|
16-May-2014 |
Etienne Le Grand <etn@google.com> |
Add confidence to the heart rate monitor definition and clarify onAccuracyChange Change-Id: I686d07dcd603bf3c3be3c1471de8be3b4e240855
/frameworks/base/core/java/android/hardware/SystemSensorManager.java
|
4838e338129e09a37b8c8ad5e44f85ec5cd3aea1 |
|
03-Jan-2014 |
Ashok Bhat <ashok.bhat@arm.com> |
AArch64: Use long for pointers in hardware classes For storing pointers, long is used in hardware classes, as native pointers can be 64-bit. In addition, some minor changes have been done to conform with standard JNI practice (e.g. use of jint instead of int in JNI function prototypes) Change-Id: Icdeb67f9273fb2d8f6d88ca68d7f7d0950796fc1 Signed-off-by: Ashok Bhat <ashok.bhat@arm.com> Signed-off-by: Marcus Oakland <marcus.oakland@arm.com> Signed-off-by: Kévin PETIT <kevin.petit@arm.com>
/frameworks/base/core/java/android/hardware/SystemSensorManager.java
|
31d14ce57ca230588d8ffe991ee827b12d8ed17e |
|
23-Oct-2013 |
Aravind Akella <aakella@google.com> |
Fix for ClassCastException in SystemSensorManager. Bug: 11068858 Change-Id: I074798a6978b91766b37dec32f2683d8e4adf5d3
/frameworks/base/core/java/android/hardware/SystemSensorManager.java
|
4bdc37d315a6dbdcf2425e70423ec43d7b74e102 |
|
02-Oct-2013 |
Aravind Akella <aakella@google.com> |
Fix registerListener and flush bugs. 1) Fix registerListener to return false when called with a Trigger sensor. Correct java documentation. 2) Remove reservedFlags and FlushCompleteListener parameters from the public API. 3) Create SensorEventListener2 which extends SensorEventListener and has the onFlushCompleted callback. 3) Change flush(Sensor) API to flush(SensorEventListener). Change-Id: I56ce4e0b6e329483e129a14ad7e8a0cd35665ffe Bug: 10894703
/frameworks/base/core/java/android/hardware/SystemSensorManager.java
|
b4c76b18a369d940f448bcc55d7245b6b30084dd |
|
27-Jun-2013 |
Aravind Akella <aakella@google.com> |
Sensor batching. Implementation for registerListener(with batch support) and flush APIs. Bug: 10109508 Change-Id: I6dfdd986bd8c3368cb568fa7d90abf9c03de9aef
/frameworks/base/core/java/android/hardware/SystemSensorManager.java
|
2e90089766c047687662d402819018b308e83d15 |
|
11-Apr-2013 |
Jaikumar Ganesh <jaikumar@google.com> |
Fix race condition and disable call. 1. A dispatch event can happen as soon you call enabled, and we won't be ready to receive it. Also add error checks and not crash if such a thing happens. 2. Java layer shouldn't call disable on the native layer for trigger sensors. Native layer will clean up on its own. b/8165631 Change-Id: Icbe76bd1f50632c0bcb0b3b04975b2c2f20ff36b
/frameworks/base/core/java/android/hardware/SystemSensorManager.java
|
6d0c1d78f121d4f1b72973740e8b120c7def1dc0 |
|
28-Mar-2013 |
Jaikumar Ganesh <jaikumar@google.com> |
Sensor values changes. 1. Remove Sensor Event Pool. 2. Allocate fixed array values for each Sensor added. - Needed for backward compatibility. 3. Use SDK checks for backward compatibility for rotation vector. b/8165631 Change-Id: I2d2cf10d3460478ed7af8e6188343f4bb033503c
/frameworks/base/core/java/android/hardware/SystemSensorManager.java
|
9a8df4dcf9f83c1cf0cd8dedeb51d1ff8a52a2b5 |
|
13-Feb-2013 |
Jaikumar Ganesh <jaikumar@google.com> |
Add new sensor types. 1. Add uncalibrated gyros and magnetic field sensor. 2. Change max number of events from 3 to 16. 3. Add new APIs for trigger sensors. Change-Id: Ifac5c0024c8e5f88b721e5cd97ff26afaaa36717
/frameworks/base/core/java/android/hardware/SystemSensorManager.java
|
1aab1dbca5cf7386797ce609c768249247233186 |
|
13-Mar-2013 |
Jaikumar Ganesh <jaikumar@google.com> |
Revert "Add new sensor types." This reverts commit bc03a348d78326dee779a8ecc325799c9fceac98.
/frameworks/base/core/java/android/hardware/SystemSensorManager.java
|
47337efd634c25a3919ed2e8db1acff2c23e6874 |
|
13-Mar-2013 |
Jaikumar Ganesh <jaikumar@google.com> |
Revert "Add a minimum size for the event pools." This reverts commit c0ce7eeb481540e24bc45f52e604df923c507043.
/frameworks/base/core/java/android/hardware/SystemSensorManager.java
|
c0ce7eeb481540e24bc45f52e604df923c507043 |
|
13-Mar-2013 |
Justin Koh <justinkoh@google.com> |
Add a minimum size for the event pools. Add a minimum size for the event pools for devices which don't have sensors. Otherwise the system server crash loops on boot. Change-Id: Ic51c6fc26c8779d9f435f358d4274148a2ddbfb3
/frameworks/base/core/java/android/hardware/SystemSensorManager.java
|
bc03a348d78326dee779a8ecc325799c9fceac98 |
|
13-Feb-2013 |
Jaikumar Ganesh <jaikumar@google.com> |
Add new sensor types. 1. Add uncalibrated gyros and magnetic field sensor. 2. Change max number of events from 3 to 16. 3. Add new APIs for trigger sensors. Change-Id: I1957d723de2b65c31dadaee7386fd8d51ea2f7e5
/frameworks/base/core/java/android/hardware/SystemSensorManager.java
|
db772d813492517dce2bd7e6e9fbc88e42b30c02 |
|
01-Feb-2013 |
Mathias Agopian <mathias@google.com> |
rework SystemSensorManager.java - it doesn't need a dedicated thread to pull events out - events are now sent directly to the proper looper by the sensorservice this simplifies things a lot. Change-Id: Ifa32fed3eff9007a2ee03aaaa837412cb4c15e52
/frameworks/base/core/java/android/hardware/SystemSensorManager.java
|
6d7a4737643afe05034a36e6ebcd5da1085fbbdc |
|
11-Sep-2012 |
Magnus Hallqvist <magnus.hallqvist@sonymobile.com> |
Sensors could be disabled by any application In the SensorManager API unregisterListener any application could unregister any sensor. This lets any application disable a sensor which another application is using. This fix restricts the applications to only be able to unregister a sensor it has previously registered to. Change-Id: Ief926dd29f480dd97626160810dff87a8d3ac8dc
/frameworks/base/core/java/android/hardware/SystemSensorManager.java
|
4481d9c10ceaf3b886fb5cab1d20941932af5b0f |
|
17-Apr-2012 |
Jeff Brown <jeffbrown@google.com> |
Move legacy sensor support to a new class. Bug: 6339552 Change-Id: I2067b754348ac76b1e1f71608031be2c80fc31d2
/frameworks/base/core/java/android/hardware/SystemSensorManager.java
|
25157e458d6e10b027d1ba6b78b0487156c9f57a |
|
16-Apr-2012 |
Jeff Brown <jeffbrown@google.com> |
Refactor SensorManager to move non-API bits into a subclass. Changed the SensorManager class so that it only contains API-related bits including what's needed to support legacy sensors. Mostly just moved stuff around. Making the class abstract is safe because it does not have a visible constructor in the API. One minor change is that the cache of sensor type to sensor lists is now per instance of SensorManager instead of being static. We can fix this if desired. Another small change is that we bail out early from registerListener if the listener has already been registered for the particular sensor. This happened for both legacy and standard listeners. The problem is that the ListenerDelegate maintains two lists of sensors, one is a Map and the other is a List. Adding a sensor twice causes one entry to be added to the Map and two entries to be added to the List, but when the sensor is removed the next time, only one entry is removed from the List, leaving it in an inconsistent state. Removed Sensor.getLegacyType() since the value it provides is only needed in LegacyListener and we don't really save any significant computation by caching it. Removing the field makes support for legacy sensors a little more self-contained. Bug: 6339552 Change-Id: I50d41ac97cf535924f2bfa2026d28547a4d00286
/frameworks/base/core/java/android/hardware/SystemSensorManager.java
|