History log of /frameworks/base/core/java/android/hardware/Sensor.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
92053f8b28ce0d035d292fa73622200990682511 14-Jun-2013 Scott Main <smain@google.com> revise docs for new sensor types. fix markup error causing tons of code font

Change-Id: I7635bbc44e03b50faeddf5c5fe50f7f47e2cde35
/frameworks/base/core/java/android/hardware/Sensor.java
edb5242355023c6f16d46be32bdfef8471f88890 16-Apr-2013 Jaikumar Ganesh <jaikumar@google.com> Fix wrong index value.

Rotation vector was at the wrong index value.

b/8165631

Change-Id: I50662befabf80393965c94a0335359019b98eb85
/frameworks/base/core/java/android/hardware/Sensor.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/Sensor.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/Sensor.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/Sensor.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/Sensor.java
7f84c065fa1615ee9afb5c229ec9b9319ab88920 05-Feb-2013 Mathias Agopian <mathias@google.com> allow the framework to access a Sensor's handle

this is needed in another CL to fix an issue where
sensors power usage is always reported as 0.

Change-Id: Ie496b98bf4b7e69911bdc99bee14cc924e1d71e8
/frameworks/base/core/java/android/hardware/Sensor.java
6a2ef12753e5fa199463e36e23c6af9df0666093 11-Aug-2012 Jeff Brown <jeffbrown@google.com> Add a toString() method to Sensor for debugging purposes.

Also made the class final, since it cannot be instantiated
by applications.

Change-Id: I540ad56d19debd99426d37b9b63c163827b4c2fc
/frameworks/base/core/java/android/hardware/Sensor.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/Sensor.java
f76a50ce8fdc6aea22cabc77b2977a1a15a79630 09-Mar-2012 Ken Wakasa <kwakasa@google.com> Fix obvious typos under frameworks/base/core

Change-Id: Ia5fc3db1bb51824e7523885553be926bcc42d736
/frameworks/base/core/java/android/hardware/Sensor.java
c6b7a0131e92a0bdeb268cee185404ceae9b54b7 19-May-2011 Jean-Baptiste Queru <jbq@google.com> Merge 111d17ce

Change-Id: I2e0aa4328bc78eb5bcd987e7bf74b0889d2fae7f
5819051eee071d622e5cb1f32c74112b1c7b1072 29-Dec-2010 Urs Fleisch <urs.fleisch@gmail.com> support humidity sensor type

Change-Id: I4156842677e91de0f922284d196147ff61e71a70
/frameworks/base/core/java/android/hardware/Sensor.java
462db220a2986f7d9fc3d7e3e6af6615570eaa0b 23-Mar-2011 Mathias Agopian <mathias@google.com> fix [4056232] Deprecate Sensor.TYPE_TEMPERATURE and add Sensor.TYPE_AMBIENT_TEMPERATURE

Bug: 4056232
Change-Id: Idf165460fc083f856c320f0f6f8841d73661c829
/frameworks/base/core/java/android/hardware/Sensor.java
0460e26a4c9915f77c915d2cc3540969802b02fa 21-Aug-2010 Jean-Baptiste Queru <jbq@google.com> resolved conflicts for merge of 691be97f to gingerbread-plus-aosp

Change-Id: Ic095e7f9203eb1465ddf3c195ebf1200e9393124
f35fd959fe499c61ee0d97d5b0c8feb469397a42 20-Jul-2010 Kevin Powell <kpowell@invensense.com> add new sensor types for handling gyro data and device orientation
more efficiently.

Change-Id: Ie19992f6599e528a79931f4ae592898dac15412e
/frameworks/base/core/java/android/hardware/Sensor.java
050b56244ff46d43e4886018d7cd20f0b1dc02b9 30-Jul-2010 Mathias Agopian <mathias@google.com> Added SensorManager.getMinDelay()

Exposed the new "min delay" sensor property through native and
java sensor apis. This allows the caller to know what is the
maximum rate at which a sensor can return events, or, if a sensor
works in "update" mode (events returned only when the value changes).

Also augmented SensorManager.regusterSensorEvent() so that it can
accept a value in microsecond in addition to the 4 constants already
defined.

Change-Id: If425e9979892666df8c989d7de3c362230fa19e0
/frameworks/base/core/java/android/hardware/Sensor.java
0f791a799dc81d93935fd2597297cf7ac2c0a044 23-Jun-2010 Mathias Agopian <mathias@google.com> More improvements to the SensorManager documentation

Change-Id: I8ab79e8787402f0db572226029820b3cf605086f
/frameworks/base/core/java/android/hardware/Sensor.java
74cde2cee9e53006a710f4e80700cd560c2d0e4d 17-Jun-2010 Mathias Agopian <mathias@google.com> Improve SensorManager documentation

this pass is mostly just formating.

Change-Id: Ica7dd014c301817c93e915c08b16da99769eaabb
/frameworks/base/core/java/android/hardware/Sensor.java
61a449393cf29f3960b4e03ec3fad652dac51b88 27-Feb-2010 Mathias Agopian <mathias@google.com> fix [2475541] Deprecate Sensor.TYPE_ORIENTATION

It's much better to use SensorManager.getRotation() instead.
/frameworks/base/core/java/android/hardware/Sensor.java
210fc914db37b3cf77ebb3bf75b0b509a1ecb07c 26-Feb-2010 Mathias Agopian <mathias@google.com> [2472946] Sensor.TYPE_ORIENTATION returns inverted roll values

Fix the documentation to reflect reality and encourage developpers to use
SensorManager.getRotation() instead of using Sensor.TYPE_ORIENTATION
/frameworks/base/core/java/android/hardware/Sensor.java
4115c518753052add46b017bb3044da6f6169a7b 03-Nov-2009 Mike Lockwood <lockwood@android.com> Add documentation for proximity and light sensors.

Change-Id: I116424c468d1d3afe89e0e17be773ee8b80ada92
Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/core/java/android/hardware/Sensor.java
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/hardware/Sensor.java
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/hardware/Sensor.java
f013e1afd1e68af5e3b868c26a653bbfb39538f8 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
/frameworks/base/core/java/android/hardware/Sensor.java