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

Commit ee7dd8f2 authored by Jonathan Nguyen's avatar Jonathan Nguyen
Browse files

Add App Usage atom to atoms.proto

Test: m -j
Change-Id: Ie0fd99df5b1d8776b6e3c29f7fb2da4759bb465d
parent 6ec3a6fc
Loading
Loading
Loading
Loading
+17 −1
Original line number Diff line number Diff line
@@ -428,6 +428,7 @@ message Atom {
            266 [(module) = "framework"];
        AccessibilityServiceReported accessibility_service_reported = 267 [(module) = "settings"];
        DocsUIDragAndDropReported docs_ui_drag_and_drop_reported = 268 [(module) = "docsui"];
        AppUsageEventOccurred app_usage_event_occurred = 269 [(module) = "framework"];
        SdkExtensionStatus sdk_extension_status = 354;

        // StatsdStats tracks platform atoms with ids upto 500.
@@ -9528,7 +9529,6 @@ message AccessibilityServiceReported {
    optional android.stats.accessibility.ServiceStatus service_status = 2;
}


message DisplayWakeReason {
    // Wake_up_reason code
    // If LOWORD(wake_up_reason) = 0
@@ -9539,3 +9539,19 @@ message DisplayWakeReason {
    // Count of wake up by reason
    optional int32 wake_times = 2;
}

/**
 * Logs app usage events.
 */
message AppUsageEventOccurred {
    optional int32 uid = 1;
    optional string package_name = 2;
    optional string class_name = 3;

    enum EventType {
        NONE = 0;
        MOVE_TO_FOREGROUND = 1;
        MOVE_TO_BACKGROUND = 2;
    }
    optional EventType event_type = 4;
}