summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabien Sanglard <sanglardf@google.com>2024-04-01 15:57:58 -0700
committerTreehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com>2024-04-09 14:27:36 +0000
commitfbe5db1043f4e2824d6eb0f01dd431c22ba1df34 (patch)
treed87a04ad5abe0236b3f0af91176de9976d619799
parent8876b5ad978545b940d29400a2d466f7a56d806e (diff)
downloadanalytics-library-fbe5db1043f4e2824d6eb0f01dd431c22ba1df34.tar.gz
Companion CL for device speed detection
Add stats needed to track USB speed detection notifications. Bug: NA Test: NA Logs-Approval: cl/622997132 Logs-Approval: cl/621950597 Change-Id: Id851797ccc40bcb48f852590b05c4b2bf69b2e14
-rw-r--r--protos/src/main/proto/studio_stats.proto29
1 files changed, 29 insertions, 0 deletions
diff --git a/protos/src/main/proto/studio_stats.proto b/protos/src/main/proto/studio_stats.proto
index ca4749f..9a7c285 100644
--- a/protos/src/main/proto/studio_stats.proto
+++ b/protos/src/main/proto/studio_stats.proto
@@ -654,6 +654,9 @@ message AndroidStudioEvent {
// set when kind = SML_COMPLETION_REQUEST_ERROR
optional SmlCompletionRequestErrorEvent sml_completion_request_error = 190;
+ // set when kind = ADB_DEVICE_CONNECTED
+ optional DeviceConnectedNotificationEvent device_connected = 191;
+
enum EventCategory {
// The event was not grouped into any specific category (default).
NO_EVENT_CATEGORY = 0;
@@ -1481,6 +1484,9 @@ message AndroidStudioEvent {
// Event related to Studio Bot completion request errors.
SML_COMPLETION_REQUEST_ERROR = 307;
+
+ // Event fired every time a device is connects to Studio
+ ADB_DEVICE_CONNECTED = 308;
}
// Represents different Performance Monitoring types.
@@ -14661,6 +14667,29 @@ message SmlCompletionRequestErrorEvent {
optional int32 grpc_error_response_code = 3;
}
+// An event fired up each time a device connects
+message DeviceConnectedNotificationEvent {
+ enum DeviceConnectionType {
+ UNKNOWN_DEVICE_CONNECTION_TYPE = 0;
+ USB = 1;
+ SOCKET = 2;
+ }
+
+ optional DeviceConnectionType type = 1;
+
+ // ADB's detected device maximum speed (Mbps)
+ optional uint64 max_speed_mbps = 2;
+
+ // ADB's detected device negotiated speed (Mbps)
+ optional uint64 negotiated_speed_mbps = 3;
+
+ // Is the notification disabled by StudioFlags
+ optional bool speed_notifications_studio_disabled = 4;
+
+ // Is the notification disabled by user preferences
+ optional bool speed_notifications_user_disabled = 5;
+}
+
message IDeviceUsageEvent {
// Identifier of the `IDevice` method
enum Method {