OSDN Git Service

Migrating suspend functionality to SuspendControlService
authorSantos Cordon <santoscordon@google.com>
Wed, 9 Jan 2019 16:48:25 +0000 (16:48 +0000)
committerSteven Moreland <smoreland@google.com>
Tue, 5 Feb 2019 17:59:44 +0000 (17:59 +0000)
commitd3cd97b1a3a41d923452c1f0b51dfa97a30a9609
tree719e1055a44a45761b5f0918e2897cf0a6cc586f
parent4f1098e39da56a3a3a86740657a84686f6c165a3
Migrating suspend functionality to SuspendControlService

Move most API methods (other than acquireWakeLock) from SystemSuspend to
SuspendControlService for interactions that happend solely between
suspend HAL and the system server. This allows us to tighten security
SEPolicy around methods that only system-server should be using.

Bug: 121210355
Test: SystemSuspendV1_0UnitTest
Change-Id: Ia92c42ecf069d606916854430e81f2e232d788c7
Merged-In: Ia92c42ecf069d606916854430e81f2e232d788c7
12 files changed:
suspend/1.0/Android.bp
suspend/1.0/ISystemSuspend.hal
suspend/1.0/default/Android.bp
suspend/1.0/default/SuspendControlService.cpp [new file with mode: 0644]
suspend/1.0/default/SuspendControlService.h [new file with mode: 0644]
suspend/1.0/default/SystemSuspend.cpp
suspend/1.0/default/SystemSuspend.h
suspend/1.0/default/SystemSuspendUnitTest.cpp
suspend/1.0/default/main.cpp
suspend/aidl/Android.bp [new file with mode: 0644]
suspend/aidl/android/system/suspend/ISuspendCallback.aidl [moved from suspend/1.0/ISystemSuspendCallback.hal with 66% similarity]
suspend/aidl/android/system/suspend/ISuspendControlService.aidl [new file with mode: 0644]