Lines Matching refs:device
74 scoped_refptr<Device> Manager::GetAvailableDevice() {
75 for (const auto& device : devices_) {
76 // Look for an unused device with AP interface mode support.
77 if (!device->GetInUse() && !device->GetPreferredApInterface().empty()) {
78 return device;
84 scoped_refptr<Device> Manager::GetDeviceFromInterfaceName(
86 for (const auto& device : devices_) {
87 if (device->InterfaceExists(interface_name)) {
88 return device;
94 void Manager::RegisterDevice(const scoped_refptr<Device>& device) {
95 LOG(INFO) << "Manager::RegisterDevice: registering device "
96 << device->GetDeviceName();
97 devices_.push_back(device);