Home
last modified time | relevance | path

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

/frameworks/opt/net/wifi/libwifi_system_iface/
Dinterface_tool.cpp36 bool GetIfState(const char* if_name, int sock, struct ifreq* ifr) { in GetIfState() argument
38 if (strlcpy(ifr->ifr_name, if_name, sizeof(ifr->ifr_name)) >= in GetIfState()
40 LOG(ERROR) << "Interface name is too long: " << if_name; in GetIfState()
45 LOG(ERROR) << "Could not read interface state for " << if_name in GetIfState()
55 bool InterfaceTool::GetUpState(const char* if_name) { in GetUpState() argument
64 if (!GetIfState(if_name, sock.get(), &ifr)) { in GetUpState()
71 bool InterfaceTool::SetUpState(const char* if_name, bool request_up) { in SetUpState() argument
80 if (!GetIfState(if_name, sock.get(), &ifr)) { in SetUpState()
96 LOG(ERROR) << "Could not set interface flags for " << if_name in SetUpState()
108 bool InterfaceTool::SetMacAddress(const char* if_name, in SetMacAddress() argument
[all …]
/frameworks/av/media/libaudiohal/2.0/
DDevicesFactoryHalLocal.cpp30 static status_t load_audio_interface(const char *if_name, audio_hw_device_t **dev) in load_audio_interface() argument
35 rc = hw_get_module_by_class(AUDIO_HARDWARE_MODULE_ID, if_name, &mod); in load_audio_interface()
38 AUDIO_HARDWARE_MODULE_ID, if_name, strerror(-rc)); in load_audio_interface()
44 AUDIO_HARDWARE_MODULE_ID, if_name, strerror(-rc)); in load_audio_interface()
/frameworks/av/media/libaudiohal/4.0/
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/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,
/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,
/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