Home
last modified time | relevance | path

Searched refs:unsignedByteToInt (Results 1 – 3 of 3) sorted by relevance

/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothGattCharacteristic.java481 return unsignedByteToInt(mValue[offset]); in getIntValue()
490 return unsignedToSigned(unsignedByteToInt(mValue[offset]), 8); in getIntValue()
689 private static int unsignedByteToInt(byte b) { in unsignedByteToInt() method in BluetoothGattCharacteristic
695 return (unsignedByteToInt(b0) + (unsignedByteToInt(b1) << 8)); in unsignedBytesToInt()
700 return (unsignedByteToInt(b0) + (unsignedByteToInt(b1) << 8)) in unsignedBytesToInt()
701 + (unsignedByteToInt(b2) << 16) in unsignedBytesToInt()
702 + (unsignedByteToInt(b3) << 24); in unsignedBytesToInt()
708 unsignedToSigned(unsignedByteToInt(b0) + ((unsignedByteToInt(b1) & 0x0F) << 8), 12); in bytesToFloat()
709 int exponent = unsignedToSigned(unsignedByteToInt(b1) >> 4, 4); in bytesToFloat()
717 unsignedByteToInt(b0) in bytesToFloat()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/util/
DNumberUtils.java23 public static int unsignedByteToInt(byte b) { in unsignedByteToInt() method in NumberUtils
35 int value = unsignedByteToInt(bytes[i]); in littleEndianByteArrayToInt()
/packages/modules/Uwb/service/java/com/android/server/uwb/util/
DDataTypeConversionUtil.java75 v = unsignedByteToInt(response[startIndex + i]); in byteArrayToHexString()
85 public static int unsignedByteToInt(byte b) { in unsignedByteToInt() method in DataTypeConversionUtil