Home
last modified time | relevance | path

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

/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/
DUtils.java308 public static int byteArrayToInt(byte[] valueBuf) { in byteArrayToInt() argument
309 return byteArrayToInt(valueBuf, 0); in byteArrayToInt()
312 public static short byteArrayToShort(byte[] valueBuf) { in byteArrayToShort() argument
313 ByteBuffer converter = ByteBuffer.wrap(valueBuf); in byteArrayToShort()
318 public static int byteArrayToInt(byte[] valueBuf, int offset) { in byteArrayToInt() argument
319 ByteBuffer converter = ByteBuffer.wrap(valueBuf); in byteArrayToInt()
324 public static String byteArrayToString(byte[] valueBuf) { in byteArrayToString() argument
326 for (int idx = 0; idx < valueBuf.length; idx++) { in byteArrayToString()
330 sb.append(String.format("%02x", valueBuf[idx])); in byteArrayToString()
341 public static String byteArrayToUtf8String(byte[] valueBuf) { in byteArrayToUtf8String() argument
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/
DUtilsTest.java59 byte[] valueBuf = new byte[] {0x01, 0x02}; in byteArrayToShort()
60 short s = Utils.byteArrayToShort(valueBuf); in byteArrayToShort()
66 byte[] valueBuf = new byte[] {0x01, 0x02}; in byteArrayToString()
67 String str = Utils.byteArrayToString(valueBuf); in byteArrayToString()