From fd2cba8f05cad6cee84d8ea5782534d824379029 Mon Sep 17 00:00:00 2001 From: Guogang Li Date: Tue, 18 Mar 2025 11:20:13 -0700 Subject: [PATCH] Update proto files to include AWDL medium PiperOrigin-RevId: 738078567 --- connections/implementation/fake_bwu_handler.h | 4 ++-- connections/implementation/proto/offline_wire_formats.proto | 3 +++ proto/connections_enums.proto | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/connections/implementation/fake_bwu_handler.h b/connections/implementation/fake_bwu_handler.h index d87e99f2..7bb68a65 100644 --- a/connections/implementation/fake_bwu_handler.h +++ b/connections/implementation/fake_bwu_handler.h @@ -111,8 +111,7 @@ class FakeBwuHandler : public BaseBwuHandler { }; // BwuHandler: - ErrorOr> - CreateUpgradedEndpointChannel( + ErrorOr> CreateUpgradedEndpointChannel( ClientProxy* client, const std::string& service_id, const std::string& endpoint_id, const UpgradePathInfo& upgrade_path_info) final { @@ -166,6 +165,7 @@ class FakeBwuHandler : public BaseBwuHandler { case location::nearby::proto::connections::NFC: case location::nearby::proto::connections::BLE_L2CAP: case location::nearby::proto::connections::USB: + case location::nearby::proto::connections::AWDL: return ByteArray{}; } } diff --git a/connections/implementation/proto/offline_wire_formats.proto b/connections/implementation/proto/offline_wire_formats.proto index 81a0996a..134f3f66 100644 --- a/connections/implementation/proto/offline_wire_formats.proto +++ b/connections/implementation/proto/offline_wire_formats.proto @@ -85,6 +85,7 @@ message ConnectionRequestFrame { BLE_L2CAP = 10; USB = 11; WEB_RTC_NON_CELLULAR = 12; + AWDL = 13; } // LINT.ThenChange(//depot/google3/third_party/nearby/proto/connections_enums.proto) @@ -244,6 +245,7 @@ message BandwidthUpgradeNegotiationFrame { // 10 is reserved. USB = 11; WEB_RTC_NON_CELLULAR = 12; + AWDL = 13; } // Accompanies Medium.WIFI_HOTSPOT. @@ -354,6 +356,7 @@ message BandwidthUpgradeRetryFrame { BLE_L2CAP = 10; USB = 11; WEB_RTC_NON_CELLULAR = 12; + AWDL = 13; } // LINT.ThenChange(//depot/google3/third_party/nearby/proto/connections_enums.proto) diff --git a/proto/connections_enums.proto b/proto/connections_enums.proto index 9aeac96c..656d51f0 100644 --- a/proto/connections_enums.proto +++ b/proto/connections_enums.proto @@ -90,6 +90,7 @@ enum Medium { BLE_L2CAP = 10; USB = 11; WEB_RTC_NON_CELLULAR = 12; + AWDL = 13; } // LINT.ThenChange( // //depot/google3/java/com/google/android/gmscore/integ/client/nearby/src/com/google/android/gms/nearby/connection/Medium.java,