[6.0][Bluetooth] Representation of binary data unification
Currently binary data is passed to functions and received in return as different types.
This API change has been designed to unify binary data handling across Bluetooth module.
Adding type:
typedef (byte[] or DOMString or Uint8Array) Bytes;
Adding functions:
byte[] toByteArray(Bytes);
DOMString toDOMString(Bytes);
Uint8Array toUint8Array(Bytes);
Changing functions signatures:
BluetoothLEServiceData(DOMString uuid, Bytes data);
BluetoothLEManufacturerData(DOMString uuid, Bytes data);
void BluetoothGATTCharacteristic::writeValue (Bytes value, optional SuccessCallback? successCallback, optional ErrorCallback? errorCallback);
void BluetoothGATTDescriptor::writeValue (Bytes value, optional SuccessCallback? successCallback, optional ErrorCallback? errorCallback);
unsigned long BluetoothSocket::writeData(Bytes);
[ACR]
https://code.sec.samsung.net/jira/browse/TWDAPI-259
[Verification]
Automatic bluetooth tct pass rate 100%
Unit tests for new functions added
Change-Id: I31e436149ecab6c4b7223ba493d13638cd707851
Signed-off-by: Arkadiusz Pietraszek <a.pietraszek@samsung.com>