Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0ad7a8d9 authored by Chris Wren's avatar Chris Wren Committed by Android Git Automerger
Browse files

am 4447ef90: add event logs to track heads up status.

* commit '4447ef90bbe60486f6b86607ea7393697f663704':
  add event logs to track heads up status.
parents 037caa4d 396c0793
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@ option java_package com.android.systemui;
# PhoneStatusBar.java
# ---------------------------
36000 sysui_statusbar_touch (type|1),(x|1),(y|1),(enabled|1)
36001 sysui_heads_up_status (key|3),(visible|1)

# ---------------------------
# PhoneStatusBarView.java
+3 −0
Original line number Diff line number Diff line
@@ -2969,6 +2969,9 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
    private void setHeadsUpVisibility(boolean vis) {
        if (!ENABLE_HEADS_UP) return;
        if (DEBUG) Log.v(TAG, (vis ? "showing" : "hiding") + " heads up window");
        EventLog.writeEvent(EventLogTags.SYSUI_HEADS_UP_STATUS,
                vis ? mHeadsUpNotificationView.getKey() : "",
                vis ? 1 : 0);
        mHeadsUpNotificationView.setVisibility(vis ? View.VISIBLE : View.GONE);
    }

+4 −0
Original line number Diff line number Diff line
@@ -338,6 +338,10 @@ public class HeadsUpNotificationView extends FrameLayout implements SwipeHelper.
        mBar.scheduleHeadsUpEscalation();
    }

    public String getKey() {
        return mHeadsUp == null ? null : mHeadsUp.notification.getKey();
    }

    private class EdgeSwipeHelper implements Gefingerpoken {
        private static final boolean DEBUG_EDGE_SWIPE = false;
        private final float mTouchSlop;