History log of /frameworks/base/core/java/android/hardware/SystemSensorManager.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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