Searched refs:uuidBytes (Results 1 – 5 of 5) sorted by relevance
257 public static ParcelUuid parseUuidFrom(@Nullable byte[] uuidBytes) { in parseUuidFrom() argument258 if (uuidBytes == null) { in parseUuidFrom()261 int length = uuidBytes.length; in parseUuidFrom()269 ByteBuffer buf = ByteBuffer.wrap(uuidBytes).order(ByteOrder.LITTLE_ENDIAN); in parseUuidFrom()279 shortUuid = uuidBytes[0] & 0xFF; in parseUuidFrom()280 shortUuid += (uuidBytes[1] & 0xFF) << 8; in parseUuidFrom()282 shortUuid = uuidBytes[0] & 0xFF; in parseUuidFrom()283 shortUuid += (uuidBytes[1] & 0xFF) << 8; in parseUuidFrom()284 shortUuid += (uuidBytes[2] & 0xFF) << 16; in parseUuidFrom()285 shortUuid += (uuidBytes[3] & 0xFF) << 24; in parseUuidFrom()[all …]
47 byte[] uuidBytes = new byte[16]; in getByteArrayFromUUID()49 uuidBytes[i] = (byte)(msb >>> (8 * (7 - i))); in getByteArrayFromUUID()50 uuidBytes[8 + i] = (byte)(lsb >>> (8 * (7 - i))); in getByteArrayFromUUID()53 return uuidBytes; in getByteArrayFromUUID()
225 byte[] uuidBytes = getSupportedCryptoSchemesNative(); in getSupportedCryptoSchemes()226 return getUUIDsFromByteArray(uuidBytes); in getSupportedCryptoSchemes()233 byte[] uuidBytes = new byte[16]; in getByteArrayFromUUID()235 uuidBytes[i] = (byte)(msb >>> (8 * (7 - i))); in getByteArrayFromUUID()236 uuidBytes[8 + i] = (byte)(lsb >>> (8 * (7 - i))); in getByteArrayFromUUID()239 return uuidBytes; in getByteArrayFromUUID()242 private static final UUID getUUIDFromByteArray(@NonNull byte[] uuidBytes, int off) { in getUUIDFromByteArray() argument247 msb = (msb << 8) | (0xffl & uuidBytes[off + i]); in getUUIDFromByteArray()248 lsb = (lsb << 8) | (0xffl & uuidBytes[off + i + 8]); in getUUIDFromByteArray()254 private static final List<UUID> getUUIDsFromByteArray(@NonNull byte[] uuidBytes) { in getUUIDsFromByteArray() argument[all …]
5748 byte[] uuidBytes = new byte[16]; in getByteArrayFromUUID()5750 uuidBytes[i] = (byte)(msb >>> (8 * (7 - i))); in getByteArrayFromUUID()5751 uuidBytes[8 + i] = (byte)(lsb >>> (8 * (7 - i))); in getByteArrayFromUUID()5754 return uuidBytes; in getByteArrayFromUUID()
349 byte[] uuidBytes = extractBytes(scanRecord, currentPos, in parseServiceUuid()351 serviceUuids.add(BluetoothUuid.parseUuidFrom(uuidBytes)); in parseServiceUuid()364 byte[] uuidBytes = extractBytes(scanRecord, currentPos, uuidLength); in parseServiceSolicitationUuid()365 serviceSolicitationUuids.add(BluetoothUuid.parseUuidFrom(uuidBytes)); in parseServiceSolicitationUuid()