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

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: Merge TOT 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 4ae298d746a5e1732a78913396f455c55530c37b..fb493875015e464b635f30a21f0e5fce9e4fb8db 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;
@@ -208,6 +209,10 @@ class Wrappers {
public BluetoothDeviceWrapper getDevice() {
return new BluetoothDeviceWrapper(mScanResult.getDevice());
}
+
+ public List<ParcelUuid> getScanRecord_getServiceUuids() {
+ return mScanResult.getScanRecord().getServiceUuids();
+ }
}
/**
@@ -224,6 +229,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