Skip to content

Commit ee98df7

Browse files
John Spurlockdsandler
authored andcommitted
Doze: Log screenOnFromTouch when flinging.
Bug: 17350239 Bug: 17496795 Change-Id: I4a8e26c2fc05cf4396e9c8cb58e81b4f95c531e6
1 parent bc156ba commit ee98df7

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

packages/SystemUI/src/com/android/systemui/doze/DozeLog.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,11 @@ public static void traceDozing(Context context, boolean dozing) {
9595
log("dozing " + dozing);
9696
}
9797

98-
public static void traceFling(boolean expand, boolean aboveThreshold, boolean thresholdNeeded) {
98+
public static void traceFling(boolean expand, boolean aboveThreshold, boolean thresholdNeeded,
99+
boolean screenOnFromTouch) {
99100
if (!ENABLED) return;
100101
log("fling expand=" + expand + " aboveThreshold=" + aboveThreshold + " thresholdNeeded="
101-
+ thresholdNeeded);
102+
+ thresholdNeeded + " screenOnFromTouch=" + screenOnFromTouch);
102103
}
103104

104105
public static void traceEmergencyCall() {

packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,8 @@ public boolean onTouchEvent(MotionEvent event) {
337337
boolean expand = flingExpands(vel, vectorVel);
338338
onTrackingStopped(expand);
339339
DozeLog.traceFling(expand, mTouchAboveFalsingThreshold,
340-
mStatusBar.isFalsingThresholdNeeded());
340+
mStatusBar.isFalsingThresholdNeeded(),
341+
mStatusBar.isScreenOnComingFromTouch());
341342
fling(vel, expand);
342343
mUpdateFlingOnLayout = expand && mPanelClosedOnDown && !mHasLayoutedSinceDown;
343344
if (mUpdateFlingOnLayout) {

0 commit comments

Comments
 (0)