From 4ac64743b9a8dbb13dc4626c07747566eca32dbb Mon Sep 17 00:00:00 2001 From: hai007 Date: Fri, 6 Jan 2023 12:34:14 -0800 Subject: [PATCH] Include background scan type and advertising mode PiperOrigin-RevId: 500236240 --- proto/sharing_enums.proto | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/proto/sharing_enums.proto b/proto/sharing_enums.proto index b95f551f..dc78e682 100644 --- a/proto/sharing_enums.proto +++ b/proto/sharing_enums.proto @@ -405,10 +405,19 @@ enum ServerResponseState { // The type of Nearby Sharing scanning. enum ScanType { UNKNOWN_SCAN_TYPE = 0; - FOREGROUND_SCAN = 1; FOREGROUND_RETRY_SCAN = 2; DIRECT_SHARE_SCAN = 3; + BACKGROUND_SCAN = 4; +} + +// The Nearby Sharing advertising mode. +enum AdvertisingMode { + UNKNOWN_ADVERTISING_MODE = 0; + SCREEN_OFF_ADVERTISING_MODE = 1; + BACKGROUND_ADVERTISING_MODE = 2; + MIDGROUND_ADVERTISING_MODE = 3; + FOREGROUND_ADVERTISING_MODE = 4; } // The class name of chimera activity.