Searched refs:unsignedByteToInt (Results 1 – 1 of 1) sorted by relevance
509 return unsignedByteToInt(mValue[offset]); in getIntValue()518 return unsignedToSigned(unsignedByteToInt(mValue[offset]), 8); in getIntValue()696 private int unsignedByteToInt(byte b) { in unsignedByteToInt() method in BluetoothGattCharacteristic704 return (unsignedByteToInt(b0) + (unsignedByteToInt(b1) << 8)); in unsignedBytesToInt()711 return (unsignedByteToInt(b0) + (unsignedByteToInt(b1) << 8)) in unsignedBytesToInt()712 + (unsignedByteToInt(b2) << 16) + (unsignedByteToInt(b3) << 24); in unsignedBytesToInt()719 int mantissa = unsignedToSigned(unsignedByteToInt(b0) in bytesToFloat()720 + ((unsignedByteToInt(b1) & 0x0F) << 8), 12); in bytesToFloat()721 int exponent = unsignedToSigned(unsignedByteToInt(b1) >> 4, 4); in bytesToFloat()729 int mantissa = unsignedToSigned(unsignedByteToInt(b0) in bytesToFloat()[all …]