Home
last modified time | relevance | path

Searched refs:NetConnClient (Results 1 – 25 of 73) sorted by relevance

123

/ohos5.0/foundation/communication/netmanager_base/test/netconnmanager/unittest/net_conn_manager_test/
H A Dnet_conn_client_test.cpp99 auto ret = NetConnClient::GetInstance().GetDefaultNet(handle);
137 auto ret = NetConnClient::GetInstance().HasDefaultNet(bFlag);
151 auto ret = NetConnClient::GetInstance().HasDefaultNet(bFlag);
622 ret = NetConnClient::GetInstance().SetAppNet(cancelNetId);
756 auto ret = NetConnClient::GetInstance().SetAppNet(netId);
769 auto ret = NetConnClient::GetInstance().SetAppNet(netId);
786 auto ret = NetConnClient::GetInstance().SetAppNet(netId);
790 NetConnClient::GetInstance().GetAppNet(getNetId);
932 auto &client = NetConnClient::GetInstance();
948 auto &client = NetConnClient::GetInstance();
[all …]
H A Dnet_conn_manager_test.cpp141 NetConnClient::GetInstance().GetNetCapabilities(*it, netAllCap); in LogCapabilities()
171 ret = NetConnClient::GetInstance().GetGlobalHttpProxy(httpProxy); in GlobalHttpProxyTest()
332 auto &client = NetConnClient::GetInstance();
408 result = NetConnClient::GetInstance().NetDetection(netHError);
492 result = NetConnClient::GetInstance().GetAllNets(netList);
517 result = NetConnClient::GetInstance().GetAllNets(netList);
571 int32_t result = NetConnClient::GetInstance().GetAllNets(netList); in CheckNetListRemainWhenConnected()
607 return NetConnClient::GetInstance().GetAllNets(netList); in RollbackForNetConnManager()
612 NetConnClient::GetInstance().UnregisterNetSupplier(supplierId); in CheckNetListWhenUnregistered()
627 auto &client = NetConnClient::GetInstance();
[all …]
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_sta/Mock/
H A Dnet_conn_client.cpp22 NetConnClient &NetConnClient::GetInstance() in GetInstance()
24 static NetConnClient gNetConnClient; in GetInstance()
28 int32_t NetConnClient::UnregisterNetSupplier(uint32_t supplierId) in UnregisterNetSupplier()
38 int32_t NetConnClient::UpdateNetSupplierInfo(uint32_t supplierId, const sptr<NetSupplierInfo> &netS… in UpdateNetSupplierInfo()
43 int32_t NetConnClient::UpdateNetLinkInfo(uint32_t supplierId, const sptr<NetLinkInfo> &netLinkInfo) in UpdateNetLinkInfo()
48 int32_t NetConnClient::RegisterNetDetectionCallback(int32_t netId, const sptr<INetDetectionCallback… in RegisterNetDetectionCallback()
58 int32_t NetConnClient::GetAllNets(std::list<sptr<NetHandle>> &netList) in GetAllNets()
63 int32_t NetConnClient::GetNetCapabilities(const NetHandle &netHandle, NetAllCapabilities &netAllCap) in GetNetCapabilities()
68 int32_t NetConnClient::NetDetection(const NetHandle &netHandle) in NetDetection()
73 int32_t NetConnClient::RegisterNetInterfaceCallback(const sptr<INetInterfaceStateCallback> &callbac… in RegisterNetInterfaceCallback()
[all …]
/ohos5.0/foundation/communication/wifi/wifi/test/fuzztest/fuzz_common_func/
H A Dmock_netconn_client.cpp22 NetConnClient &NetConnClient::GetInstance() in GetInstance()
24 static NetConnClient gNetConnClient; in GetInstance()
28 int32_t NetConnClient::UnregisterNetSupplier(uint32_t supplierId) in UnregisterNetSupplier()
38 int32_t NetConnClient::UpdateNetSupplierInfo(uint32_t supplierId, const sptr<NetSupplierInfo> &netS… in UpdateNetSupplierInfo()
43 int32_t NetConnClient::UpdateNetLinkInfo(uint32_t supplierId, const sptr<NetLinkInfo> &netLinkInfo) in UpdateNetLinkInfo()
48 int32_t NetConnClient::RegisterNetDetectionCallback(int32_t netId, const sptr<INetDetectionCallback… in RegisterNetDetectionCallback()
53 int32_t NetConnClient::UnRegisterNetDetectionCallback(int32_t netId, const sptr<INetDetectionCallba… in UnRegisterNetDetectionCallback()
58 int32_t NetConnClient::GetAllNets(std::list<sptr<NetHandle>> &netList) in GetAllNets()
63 int32_t NetConnClient::GetNetCapabilities(const NetHandle &netHandle, NetAllCapabilities &netAllCap) in GetNetCapabilities()
68 int32_t NetConnClient::NetDetection(const NetHandle &netHandle) in NetDetection()
[all …]
/ohos5.0/foundation/communication/netmanager_base/frameworks/native/netconnclient/src/
H A Dnet_conn_client.cpp41 NetConnClient::NetConnClient() : NetConnService_(nullptr), deathRecipient_(nullptr) in NetConnClient() function in OHOS::NetManagerStandard::NetConnClient
46 NetConnClient::~NetConnClient() in ~NetConnClient()
51 NetConnClient &NetConnClient::GetInstance() in GetInstance()
53 static NetConnClient gInstance; in GetInstance()
57 int32_t NetConnClient::SystemReady() in SystemReady()
99 int32_t NetConnClient::DisableVnicNetwork() in DisableVnicNetwork()
305 int32_t NetConnClient::HasDefaultNet(bool &flag) in HasDefaultNet()
421 sptr<INetConnService> NetConnClient::GetProxy() in GetProxy()
666 int32_t NetConnClient::SetAppNet(int32_t netId) in SetAppNet()
685 int32_t NetConnClient::GetAppNet(int32_t &netId) in GetAppNet()
[all …]
H A Dnet_handle.cpp34 return NetConnClient::GetInstance().GetAddressesByName(host, netId_, addrList); in GetAddressesByName()
43 return NetConnClient::GetInstance().GetAddressByName(host, netId_, addr); in GetAddressByName()
52 return NetConnClient::GetInstance().BindSocket(socketFd, netId_); in BindSocket()
/ohos5.0/foundation/communication/netmanager_base/interfaces/innerkits/netconnclient/
H A Dlibnetconn_kits.map32 "OHOS::NetManagerStandard::NetConnClient::HasDefaultNet(bool&)";
34 "OHOS::NetManagerStandard::NetConnClient::GetInstance()";
39 "OHOS::NetManagerStandard::NetConnClient::SetAirplaneMode(bool)";
47 "OHOS::NetManagerStandard::NetConnClient::GetAppNet(int&)";
48 "OHOS::NetManagerStandard::NetConnClient::SetAppNet(int)";
55 "OHOS::NetManagerStandard::NetConnClient::BindSocket(int, int)";
57 "OHOS::NetManagerStandard::NetConnClient::NetConnClient()";
58 "OHOS::NetManagerStandard::NetConnClient::~NetConnClient()";
67 "OHOS::NetManagerStandard::NetConnClient::DisableVnicNetwork()";
77 "OHOS::NetManagerStandard::NetConnClient::SystemReady()";
[all …]
/ohos5.0/foundation/communication/netmanager_base/interfaces/kits/c/netconnclient/src/
H A Dnet_connection.cpp106 int32_t ret = NetConnClient::GetInstance().GetAllNets(netHandleObjList); in OH_NetConn_GetAllNets()
122 int32_t ret = NetConnClient::GetInstance().HasDefaultNet(flagBool); in OH_NetConn_HasDefaultNet()
135 int32_t ret = NetConnClient::GetInstance().GetDefaultNet(netHandleObj); in OH_NetConn_GetDefaultNet()
151 int32_t ret = NetConnClient::GetInstance().IsDefaultNetMetered(flagBool); in OH_NetConn_IsDefaultNetMetered()
169 int32_t ret = NetConnClient::GetInstance().GetConnectionProperties(netHandleObj, infoObj); in OH_NetConn_GetConnectionProperties()
190 int32_t ret = NetConnClient::GetInstance().GetNetCapabilities(netHandleObj, netAllCapsObj); in OH_NetConn_GetNetCapabilities()
206 int32_t ret = NetConnClient::GetInstance().GetDefaultHttpProxy(httpProxyObj); in OH_NetConn_GetDefaultHttpProxy()
269 int32_t ret = NetConnClient::GetInstance().BindSocket(socketFd, netHandle->netId); in OH_NetConn_BindSocket()
340 int32_t ret = NetConnClient::GetInstance().SetAppHttpProxy(httpProxyObj); in OH_NetConn_SetAppHttpProxy()
364 NetConnClient::GetInstance().RegisterAppHttpProxyCallback(opration, id); in OH_NetConn_RegisterAppHttpProxyCallback()
[all …]
/ohos5.0/foundation/communication/dsoftbus/tests/core/connection/wifi_direct_cpp/
H A Dnet_conn_client.cpp17 int32_t OHOS::NetManagerStandard::NetConnClient::AddStaticArp( in AddStaticArp()
27 int32_t OHOS::NetManagerStandard::NetConnClient::DelStaticArp( in DelStaticArp()
37 int32_t OHOS::NetManagerStandard::NetConnClient::AddNetworkRoute( in AddNetworkRoute()
47 int32_t OHOS::NetManagerStandard::NetConnClient::RemoveNetworkRoute( in RemoveNetworkRoute()
57 int32_t OHOS::NetManagerStandard::NetConnClient::AddInterfaceAddress( in AddInterfaceAddress()
67 int32_t OHOS::NetManagerStandard::NetConnClient::DelInterfaceAddress( in DelInterfaceAddress()
H A Dnet_conn_client.h49 class NetConnClient {
51 NetConnClient() = default;
52 virtual ~NetConnClient() = default;
53 static NetConnClient &GetInstance() in GetInstance()
55 static NetConnClient client; in GetInstance()
69 class MockNetConnClient : public NetManagerStandard::NetConnClient {
/ohos5.0/base/web/webview/test/unittest/ohos_adapter/net_proxy_adapter_test/
H A Dnet_proxy_adapter_test.cpp51 class NetConnClientMock : public NetConnClient {
57 NetConnClient &NetConnClient::GetInstance() in GetInstance()
204 int32_t ret = NetConnClient::GetInstance().SetGlobalHttpProxy(httpProxy);
253 NetManagerStandard::NetConnClient::GetInstance().SetAppHttpProxy(httpProxy);
255 NetManagerStandard::NetConnClient::GetInstance().SetAppHttpProxy(httpProxy);
257 NetManagerStandard::NetConnClient::GetInstance().SetAppHttpProxy(httpProxy);
266 NetManagerStandard::NetConnClient::GetInstance().appHttpProxy_.SetHost("web_test");
273 NetManagerStandard::NetConnClient::GetInstance().appHttpProxy_.SetHost("NONE");
278 NetManagerStandard::NetConnClient::GetInstance().appHttpProxy_ = proxy;
285 NetManagerStandard::NetConnClient::GetInstance().SetAppHttpProxy(httpProxy);
/ohos5.0/foundation/communication/netmanager_base/interfaces/innerkits/netconnclient/include/
H A Dnet_conn_client.h42 class NetConnClient {
44 static NetConnClient &GetInstance();
463 explicit NetConnDeathRecipient(NetConnClient &client) : client_(client) {} in NetConnDeathRecipient()
471 NetConnClient &client_;
475 NetConnClient();
476 ~NetConnClient();
477 NetConnClient& operator=(const NetConnClient&) = delete;
478 NetConnClient(const NetConnClient&) = delete;
/ohos5.0/base/web/webview/ohos_adapter/net_connect_adapter/src/
H A Dnet_connect_adapter_impl.cpp39 int32_t ret = NetConnClient::GetInstance().RegisterNetConnCallback(callbackImpl); in RegisterNetConnCallback()
63 int32_t ret = NetConnClient::GetInstance().UnregisterNetConnCallback(it->second); in UnregisterNetConnCallback()
77 int32_t ret = NetConnClient::GetInstance().GetDefaultNet(netHandle); in GetDefaultNetConnect()
85 ret = NetConnClient::GetInstance().GetNetCapabilities(netHandle, netAllCap); in GetDefaultNetConnect()
121 int32_t ret = NetConnClient::GetInstance().GetConnectionProperties(netHandle, info); in GetDnsServersInternal()
140 int32_t ret = NetConnClient::GetInstance().GetDefaultNet(netHandle); in GetDnsServers()
157 int32_t ret = NetConnClient::GetInstance().GetAllNets(netHandleList); in GetDnsServersByNetId()
/ohos5.0/base/telephony/cellular_data/services/src/utils/
H A Dcellular_data_net_agent.cpp48 auto& netManager = NetConnClient::GetInstance(); in RegisterNetSupplier()
97 auto& netManager = NetConnClient::GetInstance(); in UnregisterNetSupplier()
109 auto& netManager = NetConnClient::GetInstance(); in UnregisterNetSupplierForSimUpdate()
121 int32_t result = NetConnClient::GetInstance().UnregisterNetSupplier(netSupplier.supplierId); in UnregisterAllNetSupplier()
156 … int32_t result = NetConnClient::GetInstance().UpdateNetSupplierInfo(supplierId, netSupplierInfo); in UpdateNetSupplierInfo()
164 int32_t result = NetConnClient::GetInstance().UpdateNetLinkInfo(supplierId, netLinkInfo); in UpdateNetLinkInfo()
192 int32_t result = NetConnClient::GetInstance().RegisterSlotType(supplierId, radioTech); in RegisterSlotType()
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_common/
H A Dwifi_net_observer.cpp49 int32_t ret = NetManagerStandard::NetConnClient::GetInstance().RegisterNetDetectionCallback( in StartNetStateObserver()
61 int32_t ret = NetManagerStandard::NetConnClient::GetInstance().UnRegisterNetDetectionCallback( in StopNetStateObserver()
97 int32_t ret = NetConnClient::GetInstance().GetAllNets(netList); in GetWifiNetworkHandle()
104 NetConnClient::GetInstance().GetNetCapabilities(*iter, netAllCap); in GetWifiNetworkHandle()
121 int32_t res = NetConnClient::GetInstance().NetDetection(*netHandle); in StartWifiDetection()
/ohos5.0/foundation/communication/netmanager_ext/services/vpnmanager/include/
H A Dnet_vpn_impl.h75 bool RegisterNetSupplier(NetConnClient &netConnClientIns);
76 void UnregisterNetSupplier(NetConnClient &netConnClientIns);
77 bool UpdateNetSupplierInfo(NetConnClient &netConnClientIns, bool isAvailable);
78 bool UpdateNetLinkInfo(NetConnClient &netConnClientIns);
79 void DelNetLinkInfo(NetConnClient &netConnClientIns);
/ohos5.0/foundation/communication/netmanager_base/frameworks/cj/connection/src/
H A Dnet_connection_ffi.cpp72 auto ret = NetConnClient::GetInstance().GetDefaultNet(netHandle); in CJ_GetDefaultNet()
145 return NetConnClient::GetInstance().IsDefaultNetMetered(ret); in CJ_IsDefaultNetMetered()
151 return NetConnClient::GetInstance().HasDefaultNet(ret); in CJ_HasDefaultNet()
315 return NetConnClient::GetInstance().SetGlobalHttpProxy(httpProxy); in CJ_SetGlobalHttpProxy()
320 return NetConnClient::GetInstance().GetAppNet(netId); in CJ_GetAppNet()
325 return NetConnClient::GetInstance().SetAppNet(netId); in CJ_SetAppNet()
331 auto code = NetConnClient::GetInstance().GetAllNets(netList); in CJ_GetAllNets()
359 return NetConnClient::GetInstance().SetAirplaneMode(true); in CJ_EnableAirplaneMode()
364 return NetConnClient::GetInstance().SetAirplaneMode(false); in CJ_DisableAirplaneMode()
370 return NetConnClient::GetInstance().NetDetection(netHandle); in CJ_ReportNetConnected()
[all …]
/ohos5.0/foundation/communication/netmanager_base/frameworks/js/napi/network/network_exec/src/
H A Dnetwork_exec.cpp45 int32_t ret = NetConnClient::GetInstance().GetSlotType(type); in MakeNetworkResponse()
63 auto ret = NetConnClient::GetInstance().GetDefaultNet(handle); in ExecGetType()
74 ret = NetConnClient::GetInstance().GetNetCapabilities(handle, cap); in ExecGetType()
125 NetConnClient::GetInstance().UnregisterNetConnCallback(callback); in ExecSubscribe()
126 …int32_t ret = NetConnClient::GetInstance().RegisterNetConnCallback(specifier, callback, DEFAULT_TI… in ExecSubscribe()
159 int32_t ret = NetConnClient::GetInstance().UnregisterNetConnCallback(callback); in ExecUnsubscribe()
/ohos5.0/foundation/communication/netmanager_ext/services/ethernetmanager/src/
H A Dethernet_lan_management.cpp89 ret += NetConnClient::GetInstance().DelInterfaceAddress(newNetLinkInfo.ifaceName_, in ReleaseLanNetLink()
98 … ret += NetConnClient::GetInstance().RemoveNetworkRoute(LOCAL_NET_ID, route.iface_, destAddress, in ReleaseLanNetLink()
121 auto ret = NetConnClient::GetInstance().AddInterfaceAddress(newNetLinkInfo.ifaceName_, in SetIp()
144 auto ret = NetConnClient::GetInstance().DelInterfaceAddress(netLinkInfo_.ifaceName_, in DelIp()
163 … auto ret = NetConnClient::GetInstance().AddNetworkRoute(LOCAL_NET_ID, route.iface_, destAddress, in SetRoute()
182 …auto ret = NetConnClient::GetInstance().RemoveNetworkRoute(LOCAL_NET_ID, route.iface_, destAddress, in DelRoute()
/ohos5.0/foundation/communication/netmanager_base/frameworks/js/napi/connection/connection_exec/src/
H A Dconnection_exec.cpp118 auto ret = NetConnClient::GetInstance().GetDefaultNet(context->netHandle_); in ExecGetDefaultNet()
133 auto ret = NetConnClient::GetInstance().HasDefaultNet(context->hasDefaultNet_); in ExecHasDefaultNet()
149 auto ret = NetConnClient::GetInstance().IsDefaultNetMetered(context->isMetered_); in ExecIsDefaultNetMetered()
194 int32_t ret = NetConnClient::GetInstance().GetAllNets(context->netHandleList_); in ExecGetAllNets()
214 int32_t res = NetConnClient::GetInstance().SetAirplaneMode(true); in ExecEnableAirplaneMode()
229 int32_t res = NetConnClient::GetInstance().SetAirplaneMode(false); in ExecDisableAirplaneMode()
247 int32_t res = NetConnClient::GetInstance().NetDetection(context->netHandle_); in ExecReportNetConnected()
265 int32_t res = NetConnClient::GetInstance().NetDetection(context->netHandle_); in ExecReportNetDisconnected()
367 int32_t errorCode = NetConnClient::GetInstance().GetAppNet(netId); in ExecGetAppNet()
523 int32_t errorCode = NetConnClient::GetInstance().FactoryResetNetwork(); in ExecFactoryResetNetwork()
[all …]
/ohos5.0/base/web/webview/test/unittest/net_connect_adapter_impl_test/
H A Dnet_connect_adapter_impl_test.cpp47 int32_t NetConnClient::RegisterNetConnCallback(const sptr<INetConnCallback> callback) in RegisterNetConnCallback()
51 int32_t NetConnClient::UnregisterNetConnCallback(const sptr<INetConnCallback> &callback) in UnregisterNetConnCallback()
55 int32_t NetConnClient::GetDefaultNet(NetHandle &nethamdle) in GetDefaultNet()
59 int32_t NetConnClient::GetNetCapabilities(const NetHandle &nethamdle, NetAllCapabilities &netAllCap) in GetNetCapabilities()
65 int32_t NetConnClient::GetConnectionProperties(const NetHandle &nethandle, NetLinkInfo &netLinkInfo) in GetConnectionProperties()
80 int32_t NetConnClient::GetAllNets(std::list<sptr<NetHandle>> &netList) in GetAllNets()
/ohos5.0/foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/
H A Dwifi_direct_ip_manager.cpp117 …auto ret = OHOS::NetManagerStandard::NetConnClient::GetInstance().AddInterfaceAddress(interface, i… in ConfigIpv6()
187 …ret = OHOS::NetManagerStandard::NetConnClient::GetInstance().AddInterfaceAddress(interface, ipStri… in AddInterfaceAddress()
190 ret = OHOS::NetManagerStandard::NetConnClient::GetInstance().AddNetworkRoute( in AddInterfaceAddress()
206 ret = OHOS::NetManagerStandard::NetConnClient::GetInstance().RemoveNetworkRoute( in DeleteInterfaceAddress()
211 …ret = OHOS::NetManagerStandard::NetConnClient::GetInstance().DelInterfaceAddress(interface, ipStri… in DeleteInterfaceAddress()
221 …return OHOS::NetManagerStandard::NetConnClient::GetInstance().AddStaticArp(ipString, macString, in… in AddStaticArp()
227 …return OHOS::NetManagerStandard::NetConnClient::GetInstance().DelStaticArp(ipString, macString, in… in DeleteStaticArp()
/ohos5.0/base/telephony/cellular_data/services/src/
H A Dtraffic_management.cpp52 …int32_t ret = NetConnClient::GetInstance().GetNetIdByIdentifier(IDENT_PREFIX + std::to_string(simI… in GetIfaceName()
58 int32_t result = NetConnClient::GetInstance().GetAllNets(netList); in GetIfaceName()
69 NetConnClient::GetInstance().GetConnectionProperties(*netHandle, info); in GetIfaceName()
/ohos5.0/foundation/communication/netmanager_ext/services/vpnmanager/src/
H A Dnet_vpn_impl.cpp79 auto &netConnClientIns = NetConnClient::GetInstance(); in SetUp()
153 auto &netConnClientIns = NetConnClient::GetInstance(); in Destroy()
163 bool NetVpnImpl::RegisterNetSupplier(NetConnClient &netConnClientIns) in RegisterNetSupplier()
182 void NetVpnImpl::UnregisterNetSupplier(NetConnClient &netConnClientIns) in UnregisterNetSupplier()
193 bool NetVpnImpl::UpdateNetSupplierInfo(NetConnClient &netConnClientIns, bool isAvailable) in UpdateNetSupplierInfo()
208 bool NetVpnImpl::UpdateNetLinkInfo(NetConnClient &netConnClientIns) in UpdateNetLinkInfo()
278 void NetVpnImpl::DelNetLinkInfo(NetConnClient &netConnClientIns) in DelNetLinkInfo()
/ohos5.0/foundation/filemanagement/dfs_service/frameworks/native/cloud_file_kit_inner/src/sync_rule/
H A Dnetwork_status.cpp43 int nRet = NetConnClient::GetInstance().RegisterNetConnCallback(observer); in RegisterNetConnCallback()
54 int ret = NetConnClient::GetInstance().GetDefaultNet(netHandle); in GetDefaultNet()
64 ret = NetConnClient::GetInstance().GetNetCapabilities(netHandle, netAllCap); in GetDefaultNet()

123