chromium/device/fido/aoa/android_accessory_device.cc

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/351564777): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "device/fido/aoa/android_accessory_device.h"

#include <limits>
#include <optional>
#include <utility>

#include "base/functional/bind.h"
#include "base/notreached.h"
#include "base/rand_util.h"
#include "base/strings/string_number_conversions.h"
#include "components/device_event_log/device_event_log.h"

namespace device {

static constexpr unsigned kTimeoutMilliseconds =;
static constexpr unsigned kLongTimeoutMilliseconds =;

AndroidAccessoryDevice::AndroidAccessoryDevice(
    mojo::Remote<mojom::UsbDevice> device,
    uint8_t in_endpoint,
    uint8_t out_endpoint)
    :{}

AndroidAccessoryDevice::~AndroidAccessoryDevice() = default;

FidoDevice::CancelToken AndroidAccessoryDevice::DeviceTransact(
    std::vector<uint8_t> command,
    DeviceCallback callback) {}

void AndroidAccessoryDevice::OnWriteComplete(DeviceCallback callback,
                                             mojom::UsbTransferStatus result) {}

void AndroidAccessoryDevice::OnReadLengthComplete(
    DeviceCallback callback,
    mojom::UsbTransferStatus result,
    base::span<const uint8_t> payload) {}

void AndroidAccessoryDevice::OnReadComplete(DeviceCallback callback,
                                            const uint32_t length,
                                            mojom::UsbTransferStatus result,
                                            base::span<const uint8_t> payload) {}

void AndroidAccessoryDevice::Cancel(CancelToken token) {}

std::string AndroidAccessoryDevice::GetId() const {}

FidoTransportProtocol AndroidAccessoryDevice::DeviceTransport() const {}

base::WeakPtr<FidoDevice> AndroidAccessoryDevice::GetWeakPtr() {}

}  // namespace device