1. Log advertising power level (contains Low, High, Balance power levels).

2. Log discovering power level (only contained Low and unspecified power levels)

PiperOrigin-RevId: 497814014
This commit is contained in:
hai007
2022-12-26 09:11:27 -08:00
committed by Copybara-Service
parent e01b1ac779
commit 6ef8a4c00a
2 changed files with 23 additions and 0 deletions
@@ -399,6 +399,9 @@ message ConnectionsLog {
// The Bluetooth multiple advertisement support status.
optional bool multiple_advertisement_supported = 4;
// The power level of this advertising
optional location.nearby.proto.connections.PowerLevel power_level = 5;
}
// Some additional information to keep with the discovery phase.
@@ -411,6 +414,9 @@ message ConnectionsLog {
// The NFC (Near Field Communication) support status
optional bool supports_nfc_technology = 3;
// The power level of this discovering
optional location.nearby.proto.connections.PowerLevel power_level = 4;
}
// Some additional information to keep with the connection attempt.
+17
View File
@@ -390,3 +390,20 @@ enum LogSource {
// Represents the device for debugging.
DEBUG_DEVICES = 5;
}
// LINT.IfChange
enum PowerLevel {
UNSPECIFIED = 0;
// Set low power for the related medium operations.
LOW_POWER = 1;
// Set balance power for the related medium operations.
BALANCED_POWER = 2;
// Set high power for the related medium operations.
HIGH_POWER = 3;
}
// LINT.ThenChange(
// //depot/google3/java/com/google/android/gmscore/integ/client/nearby/src/com/google/android/gms/nearby/connection/PowerLevel.java
// )