Home
last modified time | relevance | path

Searched refs:device_name (Results 1 – 25 of 54) sorted by relevance

123

/system/connectivity/shill/
Ddevice_claimer.cc45 bool DeviceClaimer::Claim(const string& device_name, Error* error) { in Claim() argument
47 if (claimed_device_names_.find(device_name) != claimed_device_names_.end()) { in Claim()
49 "Device " + device_name + in Claim()
55 device_info_->AddDeviceToBlackList(device_name); in Claim()
57 claimed_device_names_.insert(device_name); in Claim()
58 released_device_names_.erase(device_name); in Claim()
62 bool DeviceClaimer::Release(const std::string& device_name, in Release() argument
65 if (claimed_device_names_.find(device_name) == claimed_device_names_.end()) { in Release()
67 "Device " + device_name + in Release()
73 device_info_->RemoveDeviceFromBlackList(device_name); in Release()
[all …]
Dmock_device_claimer.h34 MOCK_METHOD2(Claim, bool(const std::string& device_name, Error* error));
35 MOCK_METHOD2(Release, bool(const std::string& device_name, Error* error));
37 MOCK_METHOD1(IsDeviceReleased, bool(const std::string& device_name));
Ddevice_claimer.h42 virtual bool Claim(const std::string& device_name, Error* error);
43 virtual bool Release(const std::string& device_name, Error* error);
51 virtual bool IsDeviceReleased(const std::string& device_name);
Dipconfig.cc63 const std::string& device_name) in IPConfig() argument
64 : device_name_(device_name), in IPConfig()
72 const std::string& device_name, in IPConfig() argument
74 : device_name_(device_name), in IPConfig()
108 SLOG(this, 2) << __func__ << " device: " << device_name(); in Init()
112 SLOG(this, 2) << __func__ << " device: " << device_name(); in ~IPConfig()
Dmock_ipconfig.cc24 const std::string& device_name) in MockIPConfig() argument
25 : IPConfig(control_interface, device_name) { in MockIPConfig()
Dmock_device_info.h45 MOCK_METHOD1(IsDeviceBlackListed, bool(const std::string& device_name));
46 MOCK_METHOD1(AddDeviceToBlackList, void(const std::string& device_name));
47 MOCK_METHOD1(RemoveDeviceFromBlackList, void(const std::string& device_name));
Dipconfig.h117 IPConfig(ControlInterface* control_interface, const std::string& device_name);
119 const std::string& device_name,
123 const std::string& device_name() const { return device_name_; } in device_name() function
/system/connectivity/shill/dhcp/
Ddhcp_config.cc55 return d->device_name(); in ObjectID()
76 const string& device_name, in DHCPConfig() argument
79 : IPConfig(control_interface, device_name, type), in DHCPConfig()
91 SLOG(this, 2) << __func__ << ": " << device_name; in DHCPConfig()
93 lease_file_suffix_ = device_name; in DHCPConfig()
98 SLOG(this, 2) << __func__ << ": " << device_name(); in ~DHCPConfig()
105 SLOG(this, 2) << __func__ << ": " << device_name(); in RequestIP()
117 SLOG(this, 2) << __func__ << ": " << device_name(); in RenewIP()
126 proxy_->Rebind(device_name()); in RenewIP()
132 SLOG(this, 2) << __func__ << ": " << device_name(); in ReleaseIP()
[all …]
Ddhcpv6_config.cc42 return d->device_name(); in ObjectID()
75 const string& device_name, in DHCPv6Config() argument
80 device_name, in DHCPv6Config()
83 SLOG(this, 2) << __func__ << ": " << device_name; in DHCPv6Config()
87 SLOG(this, 2) << __func__ << ": " << device_name(); in ~DHCPv6Config()
127 device_name().c_str())), false); in CleanupClientState()
130 base::StringPrintf(kDHCPCDPathFormatPID, device_name().c_str())), false); in CleanupClientState()
Ddhcp_provider.cc103 const string& device_name, in CreateIPv4Config() argument
107 SLOG(this, 2) << __func__ << " device: " << device_name; in CreateIPv4Config()
111 device_name, in CreateIPv4Config()
120 const string& device_name, const string& lease_file_suffix) { in CreateIPv6Config() argument
121 SLOG(this, 2) << __func__ << " device: " << device_name; in CreateIPv6Config()
125 device_name, in CreateIPv6Config()
Dmock_dhcp_config.cc24 const string& device_name) in MockDHCPConfig() argument
28 device_name, in MockDHCPConfig()
Dmock_dhcp_provider.h40 DHCPConfigRefPtr(const std::string& device_name,
45 DHCPConfigRefPtr(const std::string& device_name,
Ddhcpv4_config.cc46 return d->device_name(); in ObjectID()
100 const string& device_name, in DHCPv4Config() argument
108 device_name, in DHCPv4Config()
117 SLOG(this, 2) << __func__ << ": " << device_name; in DHCPv4Config()
121 SLOG(this, 2) << __func__ << ": " << device_name(); in ~DHCPv4Config()
218 device_name().c_str())), false); in CleanupClientState()
221 base::StringPrintf(kDHCPCDPathFormatPID, device_name().c_str())), false); in CleanupClientState()
Ddhcp_provider.h82 const std::string& device_name,
90 const std::string& device_name, const std::string& lease_file_suffix);
/system/connectivity/apmanager/
Ddevice_info.cc114 string device_name; in OnWiFiPhyInfoReceived() local
116 &device_name)) { in OnWiFiPhyInfoReceived()
121 if (GetDevice(device_name)) { in OnWiFiPhyInfoReceived()
122 LOG(INFO) << "Device " << device_name << " already enumerated."; in OnWiFiPhyInfoReceived()
127 new Device(manager_, device_name, device_identifier_++); in OnWiFiPhyInfoReceived()
187 scoped_refptr<Device> device = GetDevice(iter->second.device_name); in DelLinkMsgHandler()
298 string device_name; in OnWiFiInterfacePhyInfoReceived() local
300 &device_name)) { in OnWiFiInterfacePhyInfoReceived()
305 scoped_refptr<Device> device = GetDevice(device_name); in OnWiFiInterfacePhyInfoReceived()
309 new Device(manager_, device_name, device_identifier_++); in OnWiFiInterfacePhyInfoReceived()
[all …]
Ddevice.h47 device_name(in_device_name), in WiFiInterface()
51 std::string device_name; member
56 this->device_name == other.device_name && in Equals()
69 const std::string& device_name,
98 void SetDeviceName(const std::string& device_name);
Dfake_device_adaptor.cc25 void FakeDeviceAdaptor::SetDeviceName(const std::string& device_name) { in SetDeviceName() argument
26 device_name_ = device_name; in SetDeviceName()
Ddevice.cc34 const string& device_name, in Device() argument
40 SetDeviceName(device_name); in Device()
284 void Device::SetDeviceName(const std::string& device_name) { in SetDeviceName() argument
285 adaptor_->SetDeviceName(device_name); in SetDeviceName()
Ddevice_adaptor_interface.h28 virtual void SetDeviceName(const std::string& device_name) = 0;
/system/connectivity/shill/wifi/
Dwifi_driver_hal.cc70 char device_name[DEFAULT_WIFI_DEVICE_NAME_SIZE]; in WiFiDriverSetupInterface() local
72 (*driver->wifi_driver_set_mode)(mode, device_name, sizeof(device_name)); in WiFiDriverSetupInterface()
76 name_str = string(device_name); in WiFiDriverSetupInterface()
/system/core/crash_reporter/
Dudev_collector_test.cc90 void GenerateDevCoredump(const std::string& device_name) { in GenerateDevCoredump() argument
95 device_name.c_str())))); in GenerateDevCoredump()
99 device_name.c_str())); in GenerateDevCoredump()
108 device_name.c_str())))); in GenerateDevCoredump()
112 device_name.c_str())); in GenerateDevCoredump()
/system/connectivity/apmanager/dbus/
Ddevice_dbus_adaptor.cc48 void DeviceDBusAdaptor::SetDeviceName(const string& device_name) { in SetDeviceName() argument
49 adaptor_.SetDeviceName(device_name); in SetDeviceName()
/system/core/metricsd/
Dmetrics_library.cc67 bool MetricsLibrary::IsDeviceMounted(const char* device_name, in IsDeviceMounted() argument
98 if (device_name[match_offset] == '\0') { in IsDeviceMounted()
107 if (buffer[i] == device_name[match_offset]) { in IsDeviceMounted()
/system/bt/service/common/bluetooth/binder/
Dparcel_helpers.cpp182 bool has_name = !filter.device_name().empty(); in WriteScanFilterToParcel()
185 parcel->writeCString(filter.device_name().c_str()); in WriteScanFilterToParcel()
205 std::string device_name; in CreateScanFilterFromParcel() local
207 device_name = parcel.readCString(); in CreateScanFilterFromParcel()
224 filter->set_device_name(device_name); in CreateScanFilterFromParcel()
/system/connectivity/shill/shims/
Dcrypto_util.cc222 char device_name[100]; // A longer CN will truncate. in VerifyCredentialsImpl() local
226 device_name, in VerifyCredentialsImpl()
227 arraysize(device_name)); in VerifyCredentialsImpl()
234 string device_cn(device_name, device_name_length); in VerifyCredentialsImpl()

123