diff options
author | Dianne Hackborn <hackbod@google.com> | 2015-07-13 14:48:08 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2015-07-15 09:59:07 -0700 |
commit | 280a64e793d081847c5dcea23ed9be38aa5332d2 (patch) | |
tree | a9ea0a4aca5e578efb1b9e252477cedfa79c547f /services/core/java/com/android/server/hdmi | |
parent | 18709f9a0095afe6dba11f9dd71e3210c5f4e1db (diff) | |
download | frameworks_base-280a64e793d081847c5dcea23ed9be38aa5332d2.zip frameworks_base-280a64e793d081847c5dcea23ed9be38aa5332d2.tar.gz frameworks_base-280a64e793d081847c5dcea23ed9be38aa5332d2.tar.bz2 |
Improve tracking of screen on reasons.
- New screen on app op to record the last time each app has
caused the screen to be turned on.
- New battery stats event that tells us the reason the screen
has been asked to turn on.
- Propagate out power manager API to specify the reason a caller
is asking to have the screen turned on.
Note that currently the window flag to turn the screen on bypasses
much of this because it is being handled in the window manager by
just directly telling the power manager to turn the screen on. To
make this better we need a new API where it can specify who it is
calling the API for.
Change-Id: I667e56cb1f80508d054da004db667efbcc22e971
Diffstat (limited to 'services/core/java/com/android/server/hdmi')
-rw-r--r-- | services/core/java/com/android/server/hdmi/HdmiControlService.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/hdmi/HdmiControlService.java b/services/core/java/com/android/server/hdmi/HdmiControlService.java index c37f619..cfc5f7d 100644 --- a/services/core/java/com/android/server/hdmi/HdmiControlService.java +++ b/services/core/java/com/android/server/hdmi/HdmiControlService.java @@ -1969,7 +1969,7 @@ public final class HdmiControlService extends SystemService { void wakeUp() { assertRunOnServiceThread(); mWakeUpMessageReceived = true; - mPowerManager.wakeUp(SystemClock.uptimeMillis()); + mPowerManager.wakeUp(SystemClock.uptimeMillis(), "android.server.hdmi:WAKE"); // PowerManger will send the broadcast Intent.ACTION_SCREEN_ON and after this gets // the intent, the sequence will continue at onWakeUp(). } |