From 71c298f2702f67bb25e1cd899b66f1e5e77cd1b9 Mon Sep 17 00:00:00 2001 From: hai007 Date: Fri, 18 Aug 2023 02:09:59 -0700 Subject: [PATCH] [Nearby Sharing] log connection lost for connection/transfer phase PiperOrigin-RevId: 558083193 --- proto/sharing_enums.proto | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/proto/sharing_enums.proto b/proto/sharing_enums.proto index bd99d73b..196adf2f 100644 --- a/proto/sharing_enums.proto +++ b/proto/sharing_enums.proto @@ -288,6 +288,7 @@ enum EstablishConnectionStatus { CONNECTION_STATUS_FAILED_WRITE_INTRODUCTION = 6; CONNECTION_STATUS_FAILED_NULL_CONNECTION = 7; CONNECTION_STATUS_FAILED_NO_TRANSFER_UPDATE_CALLBACK = 8; + CONNECTION_STATUS_LOST_CONNECTIVITY = 9; } // The status of sending and receiving attachments. Used by SEND_ATTACHMENTS. @@ -333,10 +334,13 @@ enum AttachmentTransmissionStatus { FAILED_UNKNOWN_REMOTE_RESPONSE_TRANSMISSION_STATUS = 26; // Connection failed due to Wifi is disconnected or Bluetooth setting is off // or user turn on airplane mode. - NO_RESPONSE_FRAME_CONNECTION_CLOSED_LOST_CONNECTIVITY_TRANSMISSION_STATUS = - 27; + NO_RESPONSE_FRAME_CONNECTION_CLOSED_LOST_CONNECTIVITY_TRANSMISSION_STATUS = 27 + [deprecated = true]; // Unexpected connection failure due to no response frame. NO_RESPONSE_FRAME_CONNECTION_CLOSED_TRANSMISSION_STATUS = 28; + // Connection failed due to Wifi is disconnected or Bluetooth setting is off + // or user turn on airplane mode. + LOST_CONNECTIVITY_TRANSMISSION_STATUS = 29; } // Generic result status of NearbyConnections API calls.