Skip to content
Commit 5e488443 authored by Kevin Gabayan's avatar Kevin Gabayan
Browse files

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
parent 522e28e9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment