Home
last modified time | relevance | path

Searched refs:NetConnClient (Results 1 - 25 of 61) sorted by relevance

123

/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()
33 int32_t NetConnClient::RegisterNetSupplierCallback(uint32_t supplierId, const sptr<NetSupplierCallbackBase> &callback) in RegisterNetSupplierCallback()
38 int32_t NetConnClient::UpdateNetSupplierInfo(uint32_t supplierId, const sptr<NetSupplierInfo> &netSupplierInfo) 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> &callback) in RegisterNetDetectionCallback()
53 int32_t NetConnClient::UnRegisterNetDetectionCallback(int32_t netId, const sptr<INetDetectionCallback> &callback) in UnRegisterNetDetectionCallback()
58 int32_t NetConnClient
[all...]
H A Dnet_conn_client.h27 class NetConnClient { class
29 static NetConnClient &GetInstance();
/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()
33 int32_t NetConnClient::RegisterNetSupplierCallback(uint32_t supplierId, const sptr<NetSupplierCallbackBase> &callback) in RegisterNetSupplierCallback()
38 int32_t NetConnClient::UpdateNetSupplierInfo(uint32_t supplierId, const sptr<NetSupplierInfo> &netSupplierInfo) 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> &callback) in RegisterNetDetectionCallback()
53 int32_t NetConnClient::UnRegisterNetDetectionCallback(int32_t netId, const sptr<INetDetectionCallback> &callback) in UnRegisterNetDetectionCallback()
58 int32_t NetConnClient
[all...]
H A Dmock_netconn_client.h26 class NetConnClient { class
28 static NetConnClient &GetInstance();
/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()
67 int32_t NetConnClient::SetInternetPermission(uint32_t uid, uint8_t allow) in SetInternetPermission()
87 int32_t NetConnClient
[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()
/foundation/communication/netmanager_base/test/netconnmanager/unittest/net_conn_multi_test/
H A Dnet_conn_client_test.cpp91 * @tc.desc: Test NetConnClient::GetDefaultNet, not applying for
99 auto ret = NetConnClient::GetInstance().GetDefaultNet(handle); in HWTEST_F()
105 * @tc.desc: Test NetConnClient::GetDefaultNet, not applying for
115 auto ret = NetConnClient::GetInstance().GetDefaultNet(handle); in HWTEST_F()
130 * @tc.desc: Test NetConnClient::HasDefaultNet,not applying for
137 auto ret = NetConnClient::GetInstance().HasDefaultNet(bFlag); in HWTEST_F()
143 * @tc.desc: Test NetConnClient::HasDefaultNet, applying for
151 auto ret = NetConnClient::GetInstance().HasDefaultNet(bFlag); in HWTEST_F()
157 * @tc.desc: Test NetConnClient::GetNetCapabilities, In the absence of
165 int32_t ret = NetConnClient in HWTEST_F()
[all...]
H A Dnet_conn_client_vnic_test.cpp71 int32_t ret = NetConnClient::GetInstance().EnableVnicNetwork(linkInfo, uids); in HWTEST_F()
84 int32_t ret = NetConnClient::GetInstance().EnableVnicNetwork(linkInfo, uids); in HWTEST_F()
110 int32_t ret = NetConnClient::GetInstance().EnableVnicNetwork(linkInfo, uids); in HWTEST_F()
117 int32_t ret = NetConnClient::GetInstance().DisableVnicNetwork(); in HWTEST_F()
/foundation/communication/netmanager_base/test/netconnmanager/unittest/net_conn_manager_test/
H A Dnet_conn_manager_test.cpp141 NetConnClient::GetInstance().GetNetCapabilities(*it, netAllCap); in LogCapabilities()
168 int32_t ret = NetConnClient::GetInstance().SetGlobalHttpProxy(httpProxy); in GlobalHttpProxyTest()
171 ret = NetConnClient::GetInstance().GetGlobalHttpProxy(httpProxy); in GlobalHttpProxyTest()
187 int32_t result = NetConnClient::GetInstance().SystemReady(); in HWTEST_F()
203 int32_t result = NetConnClient::GetInstance().RegisterNetSupplier(bearerType, ident, netCaps, supplierId); in HWTEST_F()
219 int32_t result = NetConnClient::GetInstance().RegisterNetSupplier(bearerType, ident, netCaps, supplierId); in HWTEST_F()
222 result = NetConnClient::GetInstance().UnregisterNetSupplier(supplierId); in HWTEST_F()
239 int32_t result = NetConnClient::GetInstance().RegisterNetSupplier(bearerType, ident, netCaps, supplierId); in HWTEST_F()
247 result = NetConnClient::GetInstance().UpdateNetSupplierInfo(supplierId, netSupplierInfo); in HWTEST_F()
264 int32_t result = NetConnClient in HWTEST_F()
[all...]
/foundation/communication/netmanager_ext/test/vpnmanager/unittest/conn_vpn_manager_test/
H A Dnet_conn_manager_test.cpp141 NetConnClient::GetInstance().GetNetCapabilities(*it, netAllCap); in LogCapabilities()
168 int32_t ret = NetConnClient::GetInstance().SetGlobalHttpProxy(httpProxy); in GlobalHttpProxyTest()
171 ret = NetConnClient::GetInstance().GetGlobalHttpProxy(httpProxy); in GlobalHttpProxyTest()
187 int32_t result = NetConnClient::GetInstance().SystemReady(); in HWTEST_F()
203 int32_t result = NetConnClient::GetInstance().RegisterNetSupplier(bearerType, ident, netCaps, supplierId); in HWTEST_F()
219 int32_t result = NetConnClient::GetInstance().RegisterNetSupplier(bearerType, ident, netCaps, supplierId); in HWTEST_F()
222 result = NetConnClient::GetInstance().UnregisterNetSupplier(supplierId); in HWTEST_F()
239 int32_t result = NetConnClient::GetInstance().RegisterNetSupplier(bearerType, ident, netCaps, supplierId); in HWTEST_F()
247 result = NetConnClient::GetInstance().UpdateNetSupplierInfo(supplierId, netSupplierInfo); in HWTEST_F()
264 int32_t result = NetConnClient in HWTEST_F()
[all...]
/foundation/communication/netmanager_base/test/netconnmanager/unittest/netmgr_distributed_test/
H A Dnet_conn_client_test.cpp59 int32_t ret = NetConnClient::GetInstance().EnableDistributedClientNet(virnicAddr, iif); in HWTEST_F()
63 ret = NetConnClient::GetInstance().DisableDistributedNet(isServer); in HWTEST_F()
73 int32_t ret = NetConnClient::GetInstance().EnableDistributedServerNet(iif, devIface, dstAddr); in HWTEST_F()
77 ret = NetConnClient::GetInstance().DisableDistributedNet(isServer); in HWTEST_F()
/foundation/communication/dsoftbus/tests/core/connection/wifi_direct_cpp/
H A Dnet_conn_client.h49 class NetConnClient { class
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 {
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()
/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 in OH_NetConn_RegisterAppHttpProxyCallback()
[all...]
/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()
/foundation/communication/netmanager_base/interfaces/innerkits/netconnclient/include/
H A Dnet_conn_client.h42 class NetConnClient { class
44 static NetConnClient &GetInstance();
469 explicit NetConnDeathRecipient(NetConnClient &client) : client_(client) {} in NetConnDeathRecipient()
477 NetConnClient &client_;
481 NetConnClient();
482 ~NetConnClient();
483 NetConnClient& operator=(const NetConnClient&) = delete;
484 NetConnClient(const NetConnClient
[all...]
/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()
158 auto code = NetConnClient::GetInstance().GetNetCapabilities(netHandle, capabilities); in CJ_GetNetCapabilities()
257 auto code = NetConnClient::GetInstance().GetConnectionProperties(netHandle, linkInfo); in CJ_GetConnectionProperties()
279 auto ret = NetConnClient::GetInstance().GetGlobalHttpProxy(httpProxy); in CJ_GetGlobalHttpProxy()
293 auto ret = NetConnClient::GetInstance().GetDefaultHttpProxy(httpProxy); in CJ_GetDefaultHttpProxy()
315 return NetConnClient::GetInstance().SetGlobalHttpProxy(httpProxy); in CJ_SetGlobalHttpProxy()
320 return NetConnClient::GetInstance().GetAppNet(netId); in CJ_GetAppNet()
325 return NetConnClient in CJ_SetAppNet()
[all...]
/foundation/communication/netmanager_ext/services/vpnmanager/include/
H A Dnet_vpn_impl.h86 bool RegisterNetSupplier(NetConnClient &netConnClientIns);
87 void UnregisterNetSupplier(NetConnClient &netConnClientIns);
88 bool UpdateNetSupplierInfo(NetConnClient &netConnClientIns, bool isAvailable);
90 void DelNetLinkInfo(NetConnClient &netConnClientIns);
/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_TIMEOUT_MS); in ExecSubscribe()
159 int32_t ret = NetConnClient::GetInstance().UnregisterNetConnCallback(callback); in ExecUnsubscribe()
/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()
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_self_cure/
H A Dself_cure_utils.cpp83 int32_t ret = NetConnClient::GetInstance().GetAllNets(netList); in GetWifiNetId()
90 NetConnClient::GetInstance().GetNetCapabilities(*iter, netAllCap); in GetWifiNetId()
101 NetConnClient::GetInstance().GetDefaultNet(defaultNet); in GetDefaultNetId()
/foundation/filemanagement/dfs_service/test/mock/
H A Dnet_conn_client_mock.h26 static NetManagerStandard::NetConnClient &GetInstance() in GetInstance()
28 static NetManagerStandard::NetConnClient client; in GetInstance()
/foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/
H A Dwifi_direct_ip_manager.cpp117 auto ret = OHOS::NetManagerStandard::NetConnClient::GetInstance().AddInterfaceAddress(interface, ip, IPV6_PREFIX); in ConfigIpv6()
187 ret = OHOS::NetManagerStandard::NetConnClient::GetInstance().AddInterfaceAddress(interface, ipString, prefixLength); 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, ipString, prefixLength); in DeleteInterfaceAddress()
221 return OHOS::NetManagerStandard::NetConnClient::GetInstance().AddStaticArp(ipString, macString, interface); in AddStaticArp()
227 return OHOS::NetManagerStandard::NetConnClient::GetInstance().DelStaticArp(ipString, macString, interface); in DeleteStaticArp()
/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()
167 auto ret = NetConnClient::GetInstance().GetNetCapabilities(context->netHandle_, context->capabilities_); in ExecGetNetCapabilities()
182 auto ret = NetConnClient::GetInstance().GetConnectionProperties(context->netHandle_, context->linkInfo_); in ExecGetConnectionProperties()
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 in ExecReportNetDisconnected()
[all...]
/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()

Completed in 16 milliseconds

123