From 4c9cacadcc7ab20e06763746bbb41d0acdc106b5 Mon Sep 17 00:00:00 2001 From: fredc Date: Fri, 6 Apr 2012 02:08:46 -0700 Subject: [PATCH] Added support to get a remote device's service UUIDs Change-Id: I9aa47ac2bb7377aca268e95fec31c518358b3065 --- core/java/android/bluetooth/BluetoothDevice.java | 8 +++----- core/java/android/bluetooth/IBluetooth.aidl | 4 +--- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/core/java/android/bluetooth/BluetoothDevice.java b/core/java/android/bluetooth/BluetoothDevice.java index 91984adf3ad4e..dc59a7ea0a922 100755 --- a/core/java/android/bluetooth/BluetoothDevice.java +++ b/core/java/android/bluetooth/BluetoothDevice.java @@ -829,12 +829,10 @@ public final class BluetoothDevice implements Parcelable { * was started. */ public boolean fetchUuidsWithSdp() { - //TODO(BT) - /* try { - return sService.fetchRemoteUuids(this, null, null); - } catch (RemoteException e) {Log.e(TAG, "", e);}*/ - return false; + return sService.fetchRemoteUuids(this); + } catch (RemoteException e) {Log.e(TAG, "", e);} + return false; } /** @hide */ diff --git a/core/java/android/bluetooth/IBluetooth.aidl b/core/java/android/bluetooth/IBluetooth.aidl index e98795440d914..9653de2fdd31c 100644 --- a/core/java/android/bluetooth/IBluetooth.aidl +++ b/core/java/android/bluetooth/IBluetooth.aidl @@ -63,9 +63,7 @@ interface IBluetooth boolean setRemoteAlias(in BluetoothDevice device, in String name); int getRemoteClass(in BluetoothDevice device); ParcelUuid[] getRemoteUuids(in BluetoothDevice device); - //TODO(BT) - //boolean fetchRemoteUuids(in BluetoothDevice device, in ParcelUuid uuid, - // in IBluetoothCallback callback); + boolean fetchRemoteUuids(in BluetoothDevice device); boolean setPin(in BluetoothDevice device, boolean accept, int len, in byte[] pinCode); boolean setPasskey(in BluetoothDevice device, boolean accept, int len, in byte[]