Add App Usage atom to atoms.proto
Test: m -j
Bug: 156041159
Change-Id: Ie0fd99df5b1d8776b6e3c29f7fb2da4759bb465d
Merged-In: Ie0fd99df5b1d8776b6e3c29f7fb2da4759bb465d
(cherry picked from commit ee7dd8f2b2)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user