OSDN Git Service

Add a timeout for releasing SensorService wake_lock.
authorAravind Akella <aakella@google.com>
Thu, 30 Oct 2014 00:55:20 +0000 (17:55 -0700)
committerAravind Akella <aakella@google.com>
Sun, 2 Nov 2014 01:19:25 +0000 (18:19 -0700)
commitb4373ac9f53e3a6edee915715101d535e1a851a1
treeccdf5aa6d93f623f2513a22728bb9bd800e61db8
parent70ec2941530766bdca09ef2983a3ff794c028ee6
Add a timeout for releasing SensorService wake_lock.

 If SensorService is holding a wake_lock and there are no acknowledgements
 from ANY app within 5 seconds, release the wake_lock and reset the wake_lock
 refcounts for all connections.

Bug: 16874240
Change-Id: I5e950dd393c20173c439cbd5a4ba614ee09d61f4
services/sensorservice/SensorService.cpp
services/sensorservice/SensorService.h