From 498a583e09dc55ff06a8c79a2fa435a974f95efe Mon Sep 17 00:00:00 2001 From: hai007 Date: Sun, 23 May 2021 01:48:47 -0700 Subject: [PATCH] Internal change PiperOrigin-RevId: 375330391 --- proto/sharing_enums.proto | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/proto/sharing_enums.proto b/proto/sharing_enums.proto index f6803167..4c4612ea 100644 --- a/proto/sharing_enums.proto +++ b/proto/sharing_enums.proto @@ -163,6 +163,11 @@ enum EventType { // User starts a consent. LAUNCH_CONSENT = 42; + + // After receiving payloads, Nearby Share still needs to transfer the payloads + // to correct attachment formats and move files attachments from temporary + // directory to final destination. + PROCESS_RECEIVED_ATTACHMENTS_END = 43; } // Event category to differentiate whether this comes from sender or receiver, @@ -222,6 +227,18 @@ enum AttachmentTransmissionStatus { FAILED_WRITE_INTRODUCTION = 16; } +// The status of processing attachments after receiver received payloads +// successfully. +enum ProcessReceivedAttachmentsStatus { + PROCESSING_STATUS_UNKNOWN = 0; + + PROCESSING_STATUS_COMPLETE_PROCESSING_ATTACHMENTS = 1; + PROCESSING_STATUS_FAILED_MOVING_FILES = 2; + PROCESSING_STATUS_FAILED_RECEIVING_APK = 3; + PROCESSING_STATUS_FAILED_RECEIVING_TEXT = 4; + PROCESSING_STATUS_FAILED_RECEIVING_WIFI_CREDENTIALS = 5; +} + // The status of advertising and discovering sessions. Used by // SCAN_FOR_SHARE_TARGETS and ADVERTISE_DEVICE_PRESENCE. enum SessionStatus {