public List<UUID> extractUUIDs(byte[] scanResult) {
        ScanRecord record = parseFromBytes(scanResult);
        List<ParcelUuid> uuids = record.getServiceUuids();
        if (uuids == null) {
            return new ArrayList<>();
        }
        List<UUID> uuids2 = new ArrayList<>();
        for (ParcelUuid uuid : uuids) {
            uuids2.add(uuid.getUuid());
        }
        return uuids2;
    }
Length of bytes for 128 bit UUID
rxandroidble/src/main/java/com/polidea/rxandroidble2/internal/util/ScanRecordParser.java