Home
last modified time | relevance | path

Searched refs:if_name (Results 1 – 5 of 5) sorted by relevance

/frameworks/opt/net/wifi/libwifi_system_iface/
Dinterface_tool.cpp37 bool GetIfState(const char* if_name, int sock, struct ifreq* ifr) { in GetIfState() argument
39 if (strlcpy(ifr->ifr_name, if_name, sizeof(ifr->ifr_name)) >= in GetIfState()
41 LOG(ERROR) << "Interface name is too long: " << if_name; in GetIfState()
46 LOG(ERROR) << "Could not read interface state for " << if_name in GetIfState()
56 bool InterfaceTool::GetUpState(const char* if_name) { in GetUpState() argument
65 if (!GetIfState(if_name, sock.get(), &ifr)) { in GetUpState()
72 bool InterfaceTool::SetUpState(const char* if_name, bool request_up) { in SetUpState() argument
81 if (!GetIfState(if_name, sock.get(), &ifr)) { in SetUpState()
97 LOG(ERROR) << "Could not set interface flags for " << if_name in SetUpState()
109 bool InterfaceTool::SetMacAddress(const char* if_name, in SetMacAddress() argument
[all …]
/frameworks/opt/net/wifi/libwifi_system_iface/include/wifi_system/
Dinterface_tool.h34 virtual bool GetUpState(const char* if_name);
38 virtual bool SetUpState(const char* if_name, bool request_up);
47 virtual bool SetMacAddress(const char* if_name,
51 virtual std::array<uint8_t, ETH_ALEN> GetFactoryMacAddress(const char* if_name);
/frameworks/opt/net/wifi/libwifi_system_iface/testlib/include/wifi_system_test/
Dmock_interface_tool.h30 MOCK_METHOD1(GetUpState, bool(const char* if_name));
31 MOCK_METHOD2(SetUpState, bool(const char* if_name, bool request_up));
33 MOCK_METHOD2(SetMacAddress, bool(const char* if_name,
35 MOCK_METHOD1(GetFactoryMacAddress, std::array<uint8_t, ETH_ALEN>(const char* if_name));
/frameworks/av/media/libaudiohal/impl/
DDevicesFactoryHalLocal.cpp31 static status_t load_audio_interface(const char *if_name, audio_hw_device_t **dev) in load_audio_interface() argument
36 rc = hw_get_module_by_class(AUDIO_HARDWARE_MODULE_ID, if_name, &mod); in load_audio_interface()
39 AUDIO_HARDWARE_MODULE_ID, if_name, strerror(-rc)); in load_audio_interface()
45 AUDIO_HARDWARE_MODULE_ID, if_name, strerror(-rc)); in load_audio_interface()
/frameworks/base/proto/src/
Dipconnectivity.proto137 optional string if_name = 1 [deprecated = true]; field
304 optional string if_name = 1 [deprecated = true]; field
440 optional string if_name = 1 [deprecated = true]; field
560 // Present if the link_layer field was not inferred from the if_name on
563 optional string if_name = 17; field