OSDN Git Service

Add IWakeLock::release() method.
authorTri Vo <trong@google.com>
Wed, 29 Aug 2018 20:44:37 +0000 (13:44 -0700)
committerTri Vo <trong@google.com>
Thu, 30 Aug 2018 16:32:55 +0000 (09:32 -0700)
commitd502490bace0835a882803a43f9d3d88287a2a64
tree40044da7f4315fc30c993c6a2a2fa2ba666f7a51
parenta3573abb32c561bcbdcd010e1f03da226421d695
Add IWakeLock::release() method.

Motivation:
-This should help migrate code that relied on old
acquire/release_wake_lock() methods to new API.
-Being able to release a lock before the end of the scope is consistent
with other "lock" constructs (e.g. unique_lock, shared_lock).

Bug: 78888165
Test: SystemSuspendV1_0UnitTest
Change-Id: Ibb654f523b9c255df68d93407b593deac006920b
suspend/1.0/IWakeLock.hal
suspend/1.0/default/SystemSuspend.cpp
suspend/1.0/default/SystemSuspend.h
suspend/1.0/default/SystemSuspendUnitTest.cpp