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

Unified Diff: device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothAdapter.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/ChromeBluetoothAdapter.java
diff --git a/device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothAdapter.java b/device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothAdapter.java
index 683de40ea8ece0091db574b8f141aac1bd61468a..d6a3eb0644995778f1e05821469b10971ab4635c 100644
--- a/device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothAdapter.java
+++ b/device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothAdapter.java
@@ -255,7 +255,8 @@ final class ChromeBluetoothAdapter extends BroadcastReceiver {
}
nativeCreateOrUpdateDeviceOnScan(mNativeBluetoothAdapterAndroid,
- result.getDevice().getAddress(), result.getDevice(), uuid_strings);
+ result.getDevice().getAddress(), result.getDevice(), result.getRssi(),
+ uuid_strings, result.getScanRecord_getTxPowerLevel());
}
@Override
@@ -315,7 +316,8 @@ final class ChromeBluetoothAdapter extends BroadcastReceiver {
// Wrappers.BluetoothDeviceWrapper reference is not handled by jni_generator.py JavaToJni.
// http://crbug.com/505554
private native void nativeCreateOrUpdateDeviceOnScan(long nativeBluetoothAdapterAndroid,
- String address, Object bluetoothDeviceWrapper, String[] advertisedUuids);
+ String address, Object bluetoothDeviceWrapper, int rssi, String[] advertisedUuids,
+ int txPower);
// Binds to BluetoothAdapterAndroid::nativeOnAdapterStateChanged
private native void nativeOnAdapterStateChanged(

Powered by Google App Engine
This is Rietveld 408576698