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

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

Issue 1215303006: bluetooth: android: Initial BluetoothDeviceAndroid implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bta-discovery-
Patch Set: Created 5 years, 5 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 f8c45fe5d013c88647598c83ed5567b7c8605018..0becad1bfac3b59255fdc943d43d72c131307b9c 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
@@ -16,6 +16,7 @@ import android.bluetooth.le.ScanSettings;
import android.content.Context;
import android.content.pm.PackageManager;
import android.os.Build;
+import android.os.ParcelUuid;
import org.chromium.base.CalledByNative;
import org.chromium.base.JNINamespace;
@@ -186,6 +187,10 @@ class Wrappers {
public BluetoothDeviceWrapper getDevice() {
return new BluetoothDeviceWrapper(mScanResult.getDevice());
}
+
+ public List<ParcelUuid> getScanRecord_getServiceUuids() {
+ return mScanResult.getScanRecord().getServiceUuids();
+ }
}
/**
@@ -202,6 +207,14 @@ class Wrappers {
return mDevice.getAddress();
}
+ public int getBluetoothClass_getDeviceClass() {
+ return mDevice.getBluetoothClass().getDeviceClass();
+ }
+
+ public int getBondState() {
+ return mDevice.getBondState();
+ }
+
public String getName() {
return mDevice.getName();
}

Powered by Google App Engine
This is Rietveld 408576698