OSDN Git Service

Move power HAL interactions to PowerManagerService.
authorJeff Brown <jeffbrown@google.com>
Sat, 12 May 2012 01:42:42 +0000 (18:42 -0700)
committerJeff Brown <jeffbrown@google.com>
Sat, 12 May 2012 01:42:42 +0000 (18:42 -0700)
commit7304c343821309dd15f769b18f1de2fa43751573
tree37a1b20d78ee47ed7356c39d00bd1529989cea22
parent888da152ece9a8cfe62fad9e7d1a43e792c41e2f
Move power HAL interactions to PowerManagerService.

This refactoring sets the stage for a follow-on change that
will make use additional functions of the power HAL.

Moved functionality from android.os.Power into PowerManagerService.
None of these functions make sense being called outside of the
system server.  Moving them to the PowerManagerService makes it
easier to ensure that the power HAL is initialized exactly once.

Similarly, moved ShutdownThread out of the policy package and into
the services package where it can tie into the PowerManagerService
as needed.

Bug: 6435382
Change-Id: I958241bb124fb4410d96f5d5eb00ed68d60b29e5
17 files changed:
core/java/android/os/Power.java [deleted file]
core/java/android/os/PowerManager.java
core/java/android/view/WindowManagerPolicy.java
core/jni/Android.mk
core/jni/AndroidRuntime.cpp
core/jni/android_os_Power.cpp [deleted file]
packages/SystemUI/src/com/android/systemui/statusbar/policy/BrightnessController.java
policy/src/com/android/internal/policy/impl/GlobalActions.java
policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
services/java/com/android/server/PowerManagerService.java
services/java/com/android/server/ShutdownActivity.java
services/java/com/android/server/SystemServer.java
services/java/com/android/server/pm/ShutdownThread.java [moved from core/java/com/android/internal/app/ShutdownThread.java with 98% similarity]
services/java/com/android/server/wm/WindowManagerService.java
services/jni/Android.mk
services/jni/com_android_server_PowerManagerService.cpp
telephony/java/com/android/internal/telephony/IccCard.java