commit | 5e48844381e41c999a7147ec28f075d440177c2d | [log] [tgz] |
---|---|---|
author | Kevin Gabayan <gabayan@google.com> | Thu Mar 24 13:05:23 2016 -0700 |
committer | Kevin Gabayan <gabayan@google.com> | Wed Apr 06 13:42:17 2016 -0700 |
tree | aaa4262d39f0e9d7b4dea8471187f44a114dee23 | |
parent | 522e28e943c5f8580de6a48d1e7f160291377ad1 [diff] |
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