OSDN Git Service

Fix some potential power-draining race conditions
authorNick Vaccaro <nvaccaro@google.com>
Fri, 19 Aug 2016 19:09:50 +0000 (12:09 -0700)
committerNick Vaccaro <nvaccaro@google.com>
Sat, 20 Aug 2016 00:26:58 +0000 (17:26 -0700)
commit7510fbbcd0c007debda64780a80c6e5dae870b5c
treec905851542b01dfa00da4a6bff7e0287f6bbd41c
parentdc0735676b4e6a206b5ef7323def37a67b14b574
Fix some potential power-draining race conditions

Fixed some race conditions around wakelock and sensor control, which
if hit, would have left a sensor enabled when thought to be disabled
or possibly released a wakelock it didn't intend to release.

Bug: 30262052
Change-Id: Ieae26b2a2a7731ad299cd2c2426676295ffa768e
services/core/java/com/android/server/AnyMotionDetector.java