Add USB enum

PiperOrigin-RevId: 461149613
This commit is contained in:
xlythe
2022-07-15 01:49:46 -07:00
committed by Copybara-Service
parent 591ef0922e
commit 859a0ecb27
3 changed files with 6 additions and 1 deletions
@@ -147,6 +147,7 @@ class FakeBwuHandler : public BaseBwuHandler {
case proto::connections::NFC:
case proto::connections::WIFI_DIRECT:
case proto::connections::BLE_L2CAP:
case proto::connections::USB:
return ByteArray{};
}
}
@@ -71,6 +71,7 @@ message ConnectionRequestFrame {
WIFI_DIRECT = 8;
WEB_RTC = 9;
BLE_L2CAP = 10;
USB = 11;
}
// LINT.ThenChange(//depot/google3/third_party/nearby/proto/connections_enums.proto)
@@ -196,6 +197,8 @@ message BandwidthUpgradeNegotiationFrame {
NFC = 7;
WIFI_DIRECT = 8;
WEB_RTC = 9;
// 10 is reserved.
USB = 11;
}
// Accompanies Medium.WIFI_HOTSPOT.
+2 -1
View File
@@ -79,6 +79,7 @@ enum Medium {
WIFI_DIRECT = 8;
WEB_RTC = 9;
BLE_L2CAP = 10;
USB = 11;
}
// LINT.ThenChange(
// //depot/google3/java/com/google/android/gmscore/integ/client/nearby/src/com/google/android/gms/nearby/connection/Medium.java,
@@ -372,4 +373,4 @@ enum LogSource {
OEM_DEVICES = 4;
// Represents the device for debugging.
DEBUG_DEVICES = 5;
}
}