Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(100)

Unified Diff: device/bluetooth/android/java/src/org/chromium/device/bluetooth/Wrappers.java

Issue 2248913002: bluetooth: Implement RSSI and Tx Power on macOS and Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-refactor-adv-data
Patch Set: Address jyasskin's comments Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: device/bluetooth/android/java/src/org/chromium/device/bluetooth/Wrappers.java
diff --git a/device/bluetooth/android/java/src/org/chromium/device/bluetooth/Wrappers.java b/device/bluetooth/android/java/src/org/chromium/device/bluetooth/Wrappers.java
index 4c01be2bc3b26eaa52c99efb7463126aaae15c64..282faa877e3c0b4d7c62f3ee86d9f6520d49840b 100644
--- a/device/bluetooth/android/java/src/org/chromium/device/bluetooth/Wrappers.java
+++ b/device/bluetooth/android/java/src/org/chromium/device/bluetooth/Wrappers.java
@@ -237,9 +237,17 @@ class Wrappers {
return new BluetoothDeviceWrapper(mScanResult.getDevice());
}
+ public int getRssi() {
+ return mScanResult.getRssi();
+ }
+
public List<ParcelUuid> getScanRecord_getServiceUuids() {
return mScanResult.getScanRecord().getServiceUuids();
}
+
+ public int getScanRecord_getTxPowerLevel() {
+ return mScanResult.getScanRecord().getTxPowerLevel();
+ }
}
/**

Powered by Google App Engine
This is Rietveld 408576698