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 /packages/SystemUI/src/com | |
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 'packages/SystemUI/src/com')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java index 88aa071..1e78f66 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java @@ -3907,7 +3907,7 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, public void wakeUpIfDozing(long time, MotionEvent event) { if (mDozing && mDozeScrimController.isPulsing()) { PowerManager pm = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE); - pm.wakeUp(time); + pm.wakeUp(time, "com.android.systemui:NODOZE"); mScreenOnComingFromTouch = true; mScreenOnTouchLocation = new PointF(event.getX(), event.getY()); mNotificationPanel.setTouchDisabled(false); |