| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
negative number
Just make sure to clamp the argument to zero.
Bug: 4026375
Change-Id: I00c5f6c83659a290d5e1e191a1c8d25ec06834c2
|
|\
| |
| |
| | |
received event [external]"
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
received event [external]
increase the size of the SensorEvent pool from 1 to num_sensors*2.
and make the pool global instead of having an instance per SensorEventListener.
Change-Id: I1bcc53a9b07cd1f96fac6fe6e3b9da074e3cb1fd
|
|/
|
|
|
|
|
|
|
| |
NaN-Values [external]
make sure to not pass negative numbers to sqrt().
Change-Id: Ifd200c781ae8a94c8a3c600401b60f4cf2430be3
related-bug: 3452750
|
|
|
|
|
|
|
|
|
|
| |
- make sure to call onAccuracyChanged only when it actually changes
- only call onAccuracyChanged on Magnetic and Orientation sensors, which
are the only ones to support it.
- for other sensors, call onAccuracyChanged only once with the
SENSOR_STATUS_ACCURACY_HIGH value
Change-Id: Ic861e3d48d3b98dab74ffebe2746576f5b69f371
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
- upadte documentation for rotation vector
- update method dealing with rotation vector to deal with 4 components
- virtual rotation-vector sensor reports all four components
- improve SensorManager documentation layout
Whent he 4-th component of the rotation-vector is present, we can save
a square-root when computing the quaternion or rotation matrix from it.
Change-Id: Ia84d278dd5f0909fab1c5ba050f8df2679e2c7c8
|
|
|
|
|
|
|
|
| |
This function doesn't use the same reference coordinate system used
for the rotation matrix, unlike what the documentation previously
stated.
Change-Id: I38abeb74540d33b67f72993b54d7a00a73588dde
|
|
|
|
|
|
| |
change to be zeroall the time. The fix is to use PrevR instead of computing the difference between R and R.
Change-Id: I59cacab4c7108cfb4a17fd1021de7473e6faa74f
|
|
|
|
|
|
|
| |
- In SensorEventQueue, only bail on errors from Looper::loopOnce
- Improve sensor error logging
Change-Id: Ib3cf8d5d9fdac8513a3d753155827e0feeda1662
|
|
|
|
|
|
|
|
|
| |
w/ the same sensors
- Sensor handle can now be arbitrary instead of being limited to 0-31
- make sure to disable sensors only when no listener uses them anymore
Change-Id: If656c8c24d9827a7db1de3b3aa89961abb7def0c
|
|
|
|
| |
Change-Id: I6f4f9ebfaf1e7f461a795f717b9913e3a021e9d4
|
|
|
|
|
|
| |
more efficiently.
Change-Id: Ifbcf2caae0865eccf1c9b8060342185c22145a30
|
|
|
|
| |
Change-Id: Ie6c61fa6018e54143cec6e65978df9abb48854d9
|
|
|
|
|
|
|
| |
this is a helper function to calculate the altitude from the
pressure and pressure at sea level.
Change-Id: I3f6f14fee6190388f95afa36a66287e3d59eef9b
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
remove old sensor service and implement SensorManager
on top of the new (native) SensorManger API.
Change-Id: Iddb77d498755da3e11646473a44d651f12f40281
|
|
|
|
| |
Change-Id: I8ab79e8787402f0db572226029820b3cf605086f
|
|
|
|
|
|
| |
this pass is mostly just formating.
Change-Id: Ica7dd014c301817c93e915c08b16da99769eaabb
|
|
|
|
|
| |
Technically these APIs are deprecated, however old apps might still be using them
so we might as well make sure they work in all orientations.
|
|
|
|
|
| |
Fix the documentation to reflect reality and encourage developpers to use
SensorManager.getRotation() instead of using Sensor.TYPE_ORIENTATION
|
|
|
|
| |
Update various docs.
|
|
|
|
|
| |
Make sure we wait until the SensorThread is running an has open the sensors fd.
Also handle errors when/if this fails.
|
| |
|
|
|
|
|
| |
bump the sensor thread priority to URGENT_DISPLAY. Events will be enqueued
in the UI (or other user provided) thread, which runs at DISPLAY prio.
|
|
|
|
| |
Change-Id: I2205eebae419eaf4a0992c9f5b7cd807eb843fe1
|
|
|
|
|
|
|
|
|
| |
descriptor.
This eliminates the requirement that all sensors share a single file descriptor.
This, along with concurrent changes in other projects, fixes bugs b/1614524 and b/1614481
Signed-off-by: Mike Lockwood <lockwood@android.com>
|
| |
|
|
|
|
|
|
|
|
|
| |
parameter units are undocumented
Original author: ctate
Merged from: //branches/cupcake/...
Automated import of CL 144135
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|