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

Commit 3757d85e authored by Gustav Sennton's avatar Gustav Sennton
Browse files

Add metrics logging constants for notification location.

When logging whenever smart suggestions are visible or clicked we want
to know where their notification was shown - either as a heads-up or
in the notification shade. To be able to re-use our logging for other
events we here log the location of the notification with the smart
suggestions in it, rather than just logging whether it was shown as a
heads-up or in the shade.

Bug: 120767764
Test: N/A
Change-Id: Id32e7aacf01f6a03e2b7da2dd5923951fa8b5295
parent cc249beb
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
@@ -232,6 +232,17 @@ message MetricsEvent {
    BLOCKING_HELPER_CLICK_UNDO = 7;
  }

  // The (visual) location of a Notification.
  enum NotificationLocation {
    LOCATION_UNKNOWN = 0;
    LOCATION_FIRST_HEADS_UP = 1; // visible heads-up
    LOCATION_HIDDEN_TOP = 2; // hidden/scrolled away on the top
    LOCATION_MAIN_AREA = 3; // visible in the shade
    LOCATION_BOTTOM_STACK_PEEKING = 4; // in the bottom stack, and peeking
    LOCATION_BOTTOM_STACK_HIDDEN = 5; // in the bottom stack, and hidden
    LOCATION_GONE = 6; // the view isn't laid out at all
  }

  // Known visual elements: views or controls.
  enum View {
    // Unknown view
@@ -6824,6 +6835,13 @@ message MetricsEvent {
    // OS: Q
    SETTINGS_ADAPTIVE_SLEEP = 1628;

    // Tagged data for SMART_REPLY_VISIBLE and NOTIFICATION_ITEM_ACTION.
    // The UI location of the notification containing the smart suggestions.
    // This is a NotificationLocation object (see the NotificationLocation
    // enum).
    // OS: Q
    NOTIFICATION_LOCATION = 1629;

    // ---- End Q Constants, all Q constants go above this line ----
    // Add new aosp constants above this line.
    // END OF AOSP CONSTANTS