commit | 20e287534396655af0d5912d8b272070ad24a93a | [log] [tgz] |
---|---|---|
author | Jeff Brown <jeffbrown@google.com> | Tue Sep 10 17:13:28 2013 -0700 |
committer | Jeff Brown <jeffbrown@google.com> | Tue Sep 10 17:17:08 2013 -0700 |
tree | f005b2a26dae5dffae7f3aec765cd909a42d34eb | |
parent | bd181bb83282571eb793d2e4a48b4d19585de7f2 [diff] |
WirelessChargerDetector: Work around bad sensor timestamps. It turns out that on some devices the sensor event timestamp may be non-monotonic. This may cause the detector to hold a wakelock indefinitely if the time jumps backwards. These timestamps are not well tested in general so there may be other artifacts as well. Use elapsed realtime instead. Bug: 9926451 Change-Id: Idb0b316e22b23aac86837bd25b953daf49f9b758