diff options
author | Brian Stack <bstack@google.com> | 2018-11-05 09:37:15 -0800 |
---|---|---|
committer | Brian Stack <bstack@google.com> | 2018-11-14 16:04:44 -0800 |
commit | f2aca3b4873432a3ace1621a11c77a00f6090dac (patch) | |
tree | c039a79662d5feeb59a925c75b7b3fa058aaca6c /camera/common/1.0/default/CameraModule.cpp | |
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
Diffstat (limited to 'camera/common/1.0/default/CameraModule.cpp')
0 files changed, 0 insertions, 0 deletions