From d1850d4db0288c86d76482f905c9011d097a6806 Mon Sep 17 00:00:00 2001 From: hai007 Date: Thu, 6 Mar 2025 01:21:57 -0800 Subject: [PATCH] [Analytics] Log event for disconnecting by the disallowed medium PiperOrigin-RevId: 734037398 --- proto/sharing_enums.proto | 2 ++ sharing/proto/analytics/nearby_sharing_log.proto | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/proto/sharing_enums.proto b/proto/sharing_enums.proto index 80ed35cb..9b7605af 100644 --- a/proto/sharing_enums.proto +++ b/proto/sharing_enums.proto @@ -435,6 +435,8 @@ enum AttachmentTransmissionStatus { // or user turn on airplane mode. LOST_CONNECTIVITY_TRANSMISSION_STATUS = 29 /*[ status_bucket = STATUS_INTERRUPTION ]*/; + // Connection failed due to the medium is not allowed. + FAILED_DISALLOWED_MEDIUM = 30; } // Generic result status of NearbyConnections API calls. diff --git a/sharing/proto/analytics/nearby_sharing_log.proto b/sharing/proto/analytics/nearby_sharing_log.proto index ff6ad2b6..8a43f23f 100644 --- a/sharing/proto/analytics/nearby_sharing_log.proto +++ b/sharing/proto/analytics/nearby_sharing_log.proto @@ -569,6 +569,10 @@ message SharingLog { // Exact transfer count stored on device, but when logging put the transfer // count in buckets, initially we use buckets: 1, 2, 3, …, 10, 11+ optional int32 lifetime_transfer_count = 13; + // The medium used for the connection. + optional int32 connection_medium = 14; + // The data usage of the user settings. + optional location.nearby.proto.sharing.DataUsage data_usage = 15; } // EventType: RECEIVE_ATTACHMENTS_START @@ -600,6 +604,10 @@ message SharingLog { // Exact transfer count stored on device, but when logging put the transfer // count in buckets, initially we use buckets: 1, 2, 3, …, 10, 11+ optional int32 lifetime_transfer_count = 8; + // The medium used for the connection. + optional int32 connection_medium = 14; + // The data usage of the user settings. + optional location.nearby.proto.sharing.DataUsage data_usage = 15; } // EventType: CANCEL_CONNECTION