7510fbbcd0c007debda64780a80c6e5dae870b5c |
|
19-Aug-2016 |
Nick Vaccaro <nvaccaro@google.com> |
Fix some potential power-draining race conditions Fixed some race conditions around wakelock and sensor control, which if hit, would have left a sensor enabled when thought to be disabled or possibly released a wakelock it didn't intend to release. Bug: 30262052 Change-Id: Ieae26b2a2a7731ad299cd2c2426676295ffa768e
/frameworks/base/services/core/java/com/android/server/AnyMotionDetector.java
|
dcf4701d37ca2ececaa3592f29254150a6da3d27 |
|
08-Jul-2016 |
Kevin Gabayan <gabayan@google.com> |
Wakelock timeout for AnyMotionDetector. Bug: 29959125 Change-Id: I7260fd1640b87884bb550ff428eb9cd1dc111512
/frameworks/base/services/core/java/com/android/server/AnyMotionDetector.java
|
b070577d35436ca0f5463e6ed19a28ae431cfbfb |
|
10-Jun-2016 |
Kevin Gabayan <gabayan@google.com> |
Compute AnyMotionDetector angle using atan2. Bug: 29232136 Change-Id: Ie57d0228eb42246c4ac1d7a01e2782a621b7e78f
/frameworks/base/services/core/java/com/android/server/AnyMotionDetector.java
|
5e48844381e41c999a7147ec28f075d440177c2d |
|
24-Mar-2016 |
Kevin Gabayan <gabayan@google.com> |
AnyMotionDetector holds wakelock until conclusive. Bug: 27821976 AMD held wakelock only during accelerometer data acquisition, which allowed sleep to occur between its two orientation measurements (http://go/anymotiondetector). We now hold wakelock for its entire measurement, from checkForAnyMotion() until it returns either STATIONARY or MOVING or stop() is called. Change-Id: Ib9c90de2c581d92f25212b91b9cc5e23642b5c77
/frameworks/base/services/core/java/com/android/server/AnyMotionDetector.java
|
23d681bb90a4c70d47da895c883b1fdc0854d49a |
|
28-Aug-2015 |
Joe LaPenna <jlapenna@google.com> |
Device Idle: Android wear support - Provide config param: autoPowerModeThresholdAngle allowing us to adjust the tilt threshold on a per-device basis. - Provide config param: autoPowerModePrefetchLocation allowing us to skip location prefectching on a per-device basis. - Provide config param: autoPowerModeAnyMotionSensor allowing us to use a device-specific sensor on to detect additional types of movement that would trigger exiting device idle. - PRovide config param: autoPowerModePreferWristTilt allows us to use the wrist tilt detector in lieu of the SMD if an anymotion sensor isn't specified. - Allow DeviceIdleController to use wrist tilt sensors if the device provides one. - Use wrist tilt or SMD when an "any motion" sensor isn't available. - Fix bugs where DeviceIdleController would crash on devices that did not have a location and/or gps provider (some android wear devices). BUG: 22661021 Change-Id: Ib9f7cdf8f16483ba8f466b7b5c97bdf0494ba228
/frameworks/base/services/core/java/com/android/server/AnyMotionDetector.java
|
42df4fbe10b5a537fa93ea83f12716300ba0bcdc |
|
15-Aug-2015 |
Dianne Hackborn <hackbod@google.com> |
Fix issue #23214751: Get a GPS fix before going in to doze This introduces a new phase of device idle mode, immediately before going idle (once we are sure the device is not moving), try to collect a location for the device so that any later requests for it will have a good chance of having an accurate value. We do this with two location requests: one a single-shot as accurate as possible location, and a second longer-running attempt to get an accurate location from the GPS. There is a limit on how long we will try to collect the location (default is 30 seconds), and we stop collection once we reach a desired accuracy (default is 20 meters). Also cleanup various transition paths out of the normal state flow to clean up any active state we may have running. Change-Id: Ibd3d2e9a720fbfd9640755baf5547180dd409f6a
/frameworks/base/services/core/java/com/android/server/AnyMotionDetector.java
|
89ecf82f8ecfe328ef5b7ebf140580c8cad868ba |
|
18-May-2015 |
Kevin Gabayan <gabayan@google.com> |
simple AnyMotionDetector Change-Id: I9d49aab83a47c0667a1a059fcb8c7cfddedeb896
/frameworks/base/services/core/java/com/android/server/AnyMotionDetector.java
|