OSDN Git Service

Add ISystemSuspendCallback.
authorTri Vo <trong@google.com>
Fri, 31 Aug 2018 00:58:41 +0000 (17:58 -0700)
committerTri Vo <trong@google.com>
Sun, 9 Sep 2018 23:24:59 +0000 (16:24 -0700)
commitb53742607af505c80e1be5506dceebd93b534681
tree9ef211ba2481ffe19d0aa1b9e1ce85f98d1b9287
parentd502490bace0835a882803a43f9d3d88287a2a64
Add ISystemSuspendCallback.

The callback will be used to synchronously report system suspend events.

Current usage: BatteryStatsService needs to be notified about
each system suspend attempt and whether it was successful.

Bug: 78888165
Test: SystemSuspendV1_0UnitTest
Change-Id: I234f74f6f3c35e5d6bb33ceda569e11520850ccf
suspend/1.0/Android.bp
suspend/1.0/ISystemSuspend.hal
suspend/1.0/ISystemSuspendCallback.hal [new file with mode: 0644]
suspend/1.0/default/Android.bp
suspend/1.0/default/SystemSuspend.cpp
suspend/1.0/default/SystemSuspend.h
suspend/1.0/default/SystemSuspendUnitTest.cpp