Home
last modified time | relevance | path

Searched refs:uuidLen (Results 1 – 2 of 2) sorted by relevance

/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/gatt/
DAdvertiseHelper.java145 final int uuidLen = uuid.length; in advertiseDataToBytes() local
146 final int dataLen = uuidLen + (serviceData == null ? 0 : serviceData.length); in advertiseDataToBytes()
149 System.arraycopy(uuid, 0, concatenated, 0, uuidLen); in advertiseDataToBytes()
152 System.arraycopy(serviceData, 0, concatenated, uuidLen, serviceData.length); in advertiseDataToBytes()
155 if (uuidLen == BluetoothUuid.UUID_BYTES_16_BIT) { in advertiseDataToBytes()
160 } else if (uuidLen == BluetoothUuid.UUID_BYTES_32_BIT) { in advertiseDataToBytes()
/packages/modules/Bluetooth/framework/java/android/bluetooth/le/
DBluetoothLeAdvertiser.java708 final int uuidLen = BluetoothUuid.uuidToBytes(uuid).length;
709 size += OVERHEAD_BYTES_PER_FIELD + uuidLen + byteLength(serviceData);