OSDN Git Service

Passing partial vs full wake lock info for ARC++
authorTri Vo <trong@google.com>
Fri, 21 Sep 2018 22:19:16 +0000 (15:19 -0700)
committerTri Vo <trong@google.com>
Tue, 25 Sep 2018 17:54:25 +0000 (10:54 -0700)
commit365b75f1572ae951054564afbf1f028691ac19e5
tree13306394042e85ce35fcdafb6b238a195135bf6b
parentb53742607af505c80e1be5506dceebd93b534681
Passing partial vs full wake lock info for ARC++

We pass an enum to acquireWakeLock(), symmetric to how it's done in libpower
interface.

The screen could be managed above (android) or below (ARC++) this HAL depending
on the device, so we don't mandate that full wake locks keep the screen alive.
Only requirement is that all wake locks block system suspend.

Bug: 115947180
Test: SystemSuspendV1_0UnitTest
Change-Id: I92c65371852ffb2f71f5d529b7020d256cb1ba76
suspend/1.0/ISystemSuspend.hal
suspend/1.0/default/SystemSuspend.cpp
suspend/1.0/default/SystemSuspend.h
suspend/1.0/default/SystemSuspendUnitTest.cpp
suspend/1.0/types.hal [new file with mode: 0644]