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

Commit 098e95bb authored by Jonathan Nguyen's avatar Jonathan Nguyen Committed by Android (Google) Code Review
Browse files

Merge "Add App Usage atom to atoms.proto" into rvc-dev

parents ec956ce5 8d8ff53c
Loading
Loading
Loading
Loading
+17 −0
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,3 +9529,19 @@ message AccessibilityServiceReported {
    // From frameworks/base/core/proto/android/stats/accessibility/accessibility_enums.proto.
    optional android.stats.accessibility.ServiceStatus service_status = 2;
}

/**
 * Logs app usage events.
 */
message AppUsageEventOccurred {
    optional int32 uid = 1 [(is_uid) = true];
    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;
}