#include "device/bluetooth/bluetooth_discovery_filter.h"
#include <algorithm>
#include <memory>
#include "base/check.h"
#include "base/memory/ptr_util.h"
#include "device/bluetooth/bluetooth_common.h"
namespace device {
BluetoothDiscoveryFilter::BluetoothDiscoveryFilter() { … }
BluetoothDiscoveryFilter::BluetoothDiscoveryFilter(
BluetoothTransport transport) { … }
BluetoothDiscoveryFilter::~BluetoothDiscoveryFilter() = default;
BluetoothDiscoveryFilter::DeviceInfoFilter::DeviceInfoFilter() = default;
BluetoothDiscoveryFilter::DeviceInfoFilter::DeviceInfoFilter(
const DeviceInfoFilter& other) = default;
BluetoothDiscoveryFilter::DeviceInfoFilter::~DeviceInfoFilter() = default;
bool BluetoothDiscoveryFilter::DeviceInfoFilter::operator==(
const BluetoothDiscoveryFilter::DeviceInfoFilter& other) const { … }
bool BluetoothDiscoveryFilter::DeviceInfoFilter::operator<(
const BluetoothDiscoveryFilter::DeviceInfoFilter& other) const { … }
bool BluetoothDiscoveryFilter::GetRSSI(int16_t* out_rssi) const { … }
void BluetoothDiscoveryFilter::SetRSSI(int16_t rssi) { … }
bool BluetoothDiscoveryFilter::GetPathloss(uint16_t* out_pathloss) const { … }
void BluetoothDiscoveryFilter::SetPathloss(uint16_t pathloss) { … }
BluetoothTransport BluetoothDiscoveryFilter::GetTransport() const { … }
void BluetoothDiscoveryFilter::SetTransport(BluetoothTransport transport) { … }
void BluetoothDiscoveryFilter::GetUUIDs(
std::set<device::BluetoothUUID>& out_uuids) const { … }
void BluetoothDiscoveryFilter::AddDeviceFilter(
const BluetoothDiscoveryFilter::DeviceInfoFilter& device_filter) { … }
const base::flat_set<BluetoothDiscoveryFilter::DeviceInfoFilter>*
BluetoothDiscoveryFilter::GetDeviceFilters() const { … }
void BluetoothDiscoveryFilter::ClearDeviceFilters() { … }
void BluetoothDiscoveryFilter::CopyFrom(
const BluetoothDiscoveryFilter& filter) { … }
std::unique_ptr<device::BluetoothDiscoveryFilter>
BluetoothDiscoveryFilter::Merge(
const device::BluetoothDiscoveryFilter* filter_a,
const device::BluetoothDiscoveryFilter* filter_b) { … }
bool BluetoothDiscoveryFilter::Equals(
const BluetoothDiscoveryFilter& other) const { … }
bool BluetoothDiscoveryFilter::IsDefault() const { … }
}