Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4c9cacad authored by fredc's avatar fredc Committed by Android (Google) Code Review
Browse files

Added support to get a remote device's service UUIDs

Change-Id: I9aa47ac2bb7377aca268e95fec31c518358b3065
parent 827de2d7
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -829,11 +829,9 @@ 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 sService.fetchRemoteUuids(this);
        } catch (RemoteException e) {Log.e(TAG, "", e);}
            return false;
    }

+1 −3
Original line number Diff line number Diff line
@@ -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[]