Add SettingsIntelligenceLogwriter
Bug: 124701288 Test: robolectric, manual Change-Id: Iea446ae600d22ed62c5ee45afd1cd27a89b5de34
This commit is contained in:
@@ -5,4 +5,13 @@ java_library_static {
|
||||
type: "lite",
|
||||
},
|
||||
srcs: ["contextual_card_list.proto"],
|
||||
}
|
||||
|
||||
java_library_static {
|
||||
name: "settings-log-bridge-protos-lite",
|
||||
host_supported: true,
|
||||
proto: {
|
||||
type: "lite",
|
||||
},
|
||||
srcs: ["settings_log_bridge.proto"],
|
||||
}
|
37
protos/settings_log_bridge.proto
Normal file
37
protos/settings_log_bridge.proto
Normal file
@@ -0,0 +1,37 @@
|
||||
syntax = "proto2";
|
||||
|
||||
package com.android.settings.intelligence;
|
||||
option java_outer_classname = "LogProto";
|
||||
|
||||
message SettingsLog {
|
||||
/**
|
||||
* Where this SettingsUIChange event comes from. For example, if
|
||||
* it's a PAGE_VISIBLE event, where the page is opened from.
|
||||
*/
|
||||
optional int32 attribution = 1;
|
||||
|
||||
/**
|
||||
* What the UI action is.
|
||||
*/
|
||||
optional int32 action = 2;
|
||||
|
||||
/**
|
||||
* Where the action is happening
|
||||
*/
|
||||
optional int32 page_id = 3;
|
||||
|
||||
/**
|
||||
* What preference changed in this event.
|
||||
*/
|
||||
optional string changed_preference_key = 4;
|
||||
|
||||
/**
|
||||
* The new value of the changed preference.
|
||||
*/
|
||||
optional int32 changed_preference_int_value = 5;
|
||||
|
||||
/**
|
||||
* The timestamp of a log event
|
||||
*/
|
||||
optional string timestamp = 6;
|
||||
}
|
Reference in New Issue
Block a user