commit | f2aca3b4873432a3ace1621a11c77a00f6090dac | [log] [tgz] |
---|---|---|
author | Brian Stack <bstack@google.com> | Mon Nov 05 09:37:15 2018 -0800 |
committer | Brian Stack <bstack@google.com> | Wed Nov 14 16:04:44 2018 -0800 |
tree | c039a79662d5feeb59a925c75b7b3fa058aaca6c | |
parent | 26427a6bca962a1b6f841f0b8ff1545544d0e8ee [diff] |
Acquire and Release Wake Lock Acquire a wake lock in the Sensors 2.0 Default implementation whenever there are outstanding WAKE_UP events. Release the wake lock whenever the number of oustanding WAKE_UP events is zero or at least SensorTimeout::WAKE_LOCK_SECONDS seconds have elapsed since the previous WAKE_UP event was written to the Event FMQ. Bug: 111070257 Test: Builds, wake lock is acquired and released as expected. Change-Id: I7c57724430144fd4022646d1fef1b1fa8bc4235d