OSDN Git Service

Change storage metadata type to byte array
authorUgo Yu <ugoyu@google.com>
Thu, 14 Mar 2019 07:32:44 +0000 (15:32 +0800)
committerUgo Yu <ugoyu@google.com>
Mon, 8 Apr 2019 02:20:34 +0000 (02:20 +0000)
Bug: 124448651
Test: runtest bluetooth

Change-Id: I10489c4aa93c2c3463456bcba210036bc20082a4

binder/android/bluetooth/IBluetooth.aidl
binder/android/bluetooth/IBluetoothMetadataListener.aidl

index cc4c9cf..6bda14b 100644 (file)
@@ -126,8 +126,8 @@ interface IBluetooth
     // For Metadata
     boolean registerMetadataListener(in IBluetoothMetadataListener listener, in BluetoothDevice device);
     boolean unregisterMetadataListener(in BluetoothDevice device);
-    boolean setMetadata(in BluetoothDevice device, in int key, in String value);
-    String getMetadata(in BluetoothDevice device, in int key);
+    boolean setMetadata(in BluetoothDevice device, in int key, in byte[] value);
+    byte[] getMetadata(in BluetoothDevice device, in int key);
 
 
     /**
index 13b5799..765b128 100644 (file)
@@ -24,5 +24,5 @@ import android.bluetooth.BluetoothDevice;
  * @hide
  */
 oneway interface IBluetoothMetadataListener {
-    void onMetadataChanged(in BluetoothDevice devices, in int key, in String value);
+    void onMetadataChanged(in BluetoothDevice devices, in int key, in byte[] value);
 }