Home
last modified time | relevance | path

Searched refs:netHandle (Results 1 - 25 of 66) sorted by relevance

123

/foundation/communication/netmanager_base/test/netconnmanager/unittest/net_conn_add_test/
H A Dnetworkshare_upstreammonitor_test.cpp55 sptr<NetHandle> netHandle = std::make_unique<NetHandle>(netId).release(); in HWTEST_F() local
61 int32_t result = monitor->defaultNetworkCallback_->NetAvailable(netHandle); in HWTEST_F()
63 result = monitor->defaultNetworkCallback_->NetCapabilitiesChange(netHandle, netAllCap); in HWTEST_F()
65 result = monitor->defaultNetworkCallback_->NetConnectionPropertiesChange(netHandle, info); in HWTEST_F()
67 result = monitor->defaultNetworkCallback_->NetLost(netHandle); in HWTEST_F()
71 result = monitor->defaultNetworkCallback_->NetBlockStatusChange(netHandle, true); in HWTEST_F()
88 sptr<NetHandle> netHandle = nullptr; in HWTEST_F() local
89 int32_t result = monitor->defaultNetworkCallback_->NetAvailable(netHandle); in HWTEST_F()
90 netHandle = std::make_unique<NetHandle>(netId).release(); in HWTEST_F()
91 result = monitor->defaultNetworkCallback_->NetAvailable(netHandle); in HWTEST_F()
104 sptr<NetHandle> netHandle = nullptr; HWTEST_F() local
134 sptr<NetHandle> netHandle = nullptr; HWTEST_F() local
166 sptr<NetHandle> netHandle = nullptr; HWTEST_F() local
197 sptr<NetHandle> netHandle = nullptr; HWTEST_F() local
[all...]
/foundation/communication/netmanager_ext/test/networksharemanager/unittest/networkshare_manager_test/
H A Dnetworkshare_upstreammonitor_test.cpp56 sptr<NetHandle> netHandle = std::make_unique<NetHandle>(netId).release(); in HWTEST_F() local
62 int32_t result = monitor->defaultNetworkCallback_->NetAvailable(netHandle); in HWTEST_F()
64 result = monitor->defaultNetworkCallback_->NetCapabilitiesChange(netHandle, netAllCap); in HWTEST_F()
66 result = monitor->defaultNetworkCallback_->NetConnectionPropertiesChange(netHandle, info); in HWTEST_F()
68 result = monitor->defaultNetworkCallback_->NetLost(netHandle); in HWTEST_F()
72 result = monitor->defaultNetworkCallback_->NetBlockStatusChange(netHandle, true); in HWTEST_F()
89 sptr<NetHandle> netHandle = nullptr; in HWTEST_F() local
90 int32_t result = monitor->defaultNetworkCallback_->NetAvailable(netHandle); in HWTEST_F()
91 netHandle = std::make_unique<NetHandle>(netId).release(); in HWTEST_F()
92 result = monitor->defaultNetworkCallback_->NetAvailable(netHandle); in HWTEST_F()
105 sptr<NetHandle> netHandle = nullptr; HWTEST_F() local
135 sptr<NetHandle> netHandle = nullptr; HWTEST_F() local
167 sptr<NetHandle> netHandle = nullptr; HWTEST_F() local
198 sptr<NetHandle> netHandle = nullptr; HWTEST_F() local
[all...]
/foundation/communication/netmanager_ext/services/networksharemanager/src/
H A Dnetworkshare_upstreammonitor.cpp35 int32_t NetworkShareUpstreamMonitor::NetConnectionCallback::NetAvailable(sptr<NetHandle> &netHandle) in NetAvailable() argument
37 ffrtQueue.submit([weakMonitor = std::weak_ptr(this->NetworkMonitor_), netHandle]() mutable { in NetAvailable()
40 networkMonitor->HandleNetAvailable(netHandle); in NetAvailable()
46 int32_t NetworkShareUpstreamMonitor::NetConnectionCallback::NetCapabilitiesChange(sptr<NetHandle> &netHandle, in NetCapabilitiesChange() argument
49 ffrtQueue.submit([weakMonitor = std::weak_ptr(this->NetworkMonitor_), netHandle, netAllCap]() mutable { in NetCapabilitiesChange()
52 networkMonitor->HandleNetCapabilitiesChange(netHandle, netAllCap); in NetCapabilitiesChange()
58 int32_t NetworkShareUpstreamMonitor::NetConnectionCallback::NetConnectionPropertiesChange(sptr<NetHandle> &netHandle, in NetConnectionPropertiesChange() argument
61 ffrtQueue.submit([weakMonitor = std::weak_ptr(this->NetworkMonitor_), netHandle, info]() mutable { in NetConnectionPropertiesChange()
64 networkMonitor->HandleConnectionPropertiesChange(netHandle, info); in NetConnectionPropertiesChange()
70 int32_t NetworkShareUpstreamMonitor::NetConnectionCallback::NetLost(sptr<NetHandle> &netHandle) in NetLost() argument
86 NetBlockStatusChange(sptr<NetHandle> &netHandle, bool blocked) NetBlockStatusChange() argument
198 HandleNetAvailable(sptr<NetHandle> &netHandle) HandleNetAvailable() argument
216 HandleNetCapabilitiesChange(sptr<NetHandle> &netHandle, const sptr<NetAllCapabilities> &newNetAllCap) HandleNetCapabilitiesChange() argument
233 HandleConnectionPropertiesChange(sptr<NetHandle> &netHandle, const sptr<NetLinkInfo> &newNetLinkInfo) HandleConnectionPropertiesChange() argument
265 HandleNetLost(sptr<NetHandle> &netHandle) HandleNetLost() argument
[all...]
/foundation/communication/netmanager_base/frameworks/js/napi/connection/observer/include/
H A Dnet_conn_callback_observer.h27 int32_t NetAvailable(sptr<NetHandle> &netHandle) override;
29 int32_t NetCapabilitiesChange(sptr<NetHandle> &netHandle, const sptr<NetAllCapabilities> &netAllCap) override;
31 int32_t NetConnectionPropertiesChange(sptr<NetHandle> &netHandle, const sptr<NetLinkInfo> &info) override;
33 int32_t NetLost(sptr<NetHandle> &netHandle) override;
37 int32_t NetBlockStatusChange(sptr<NetHandle> &netHandle, bool blocked) override;
40 static napi_value CreateNetHandle(napi_env env, NetHandle &netHandle);
46 static napi_value CreateNetAvailableParam(napi_env env, NetHandle &netHandle);
48 static napi_value CreateNetCapabilitiesChangeParam(napi_env env, NetHandle &netHandle,
51 static napi_value CreateNetConnectionPropertiesChangeParam(napi_env env, NetHandle &netHandle,
54 static napi_value CreateNetLostParam(napi_env env, NetHandle &netHandle);
[all...]
/foundation/communication/netmanager_base/frameworks/js/napi/connection/observer/src/
H A Dnet_conn_callback_observer.cpp24 int32_t NetConnCallbackObserver::NetAvailable(sptr<NetHandle> &netHandle) in NetAvailable() argument
26 if (netHandle == nullptr) { in NetAvailable()
48 auto network = *netHandle; in NetAvailable()
58 int32_t NetConnCallbackObserver::NetCapabilitiesChange(sptr<NetHandle> &netHandle, in NetCapabilitiesChange() argument
61 if (netHandle == nullptr || netAllCap == nullptr) { in NetCapabilitiesChange()
82 auto network = *netHandle; in NetCapabilitiesChange()
94 int32_t NetConnCallbackObserver::NetConnectionPropertiesChange(sptr<NetHandle> &netHandle, in NetConnectionPropertiesChange() argument
97 if (netHandle == nullptr || info == nullptr) { in NetConnectionPropertiesChange()
118 auto network = *netHandle; in NetConnectionPropertiesChange()
130 int32_t NetConnCallbackObserver::NetLost(sptr<NetHandle> &netHandle) in NetLost() argument
192 NetBlockStatusChange(sptr<NetHandle> &netHandle, bool blocked) NetBlockStatusChange() argument
227 napi_value netHandle = ConnectionExec::CreateNetHandle(env, &handle); CreateNetHandle() local
243 CreateNetAvailableParam(napi_env env, NetHandle &netHandle) CreateNetAvailableParam() argument
251 napi_value netHandle = CreateNetHandle(env, handle); CreateNetCapabilitiesChangeParam() local
262 napi_value netHandle = CreateNetHandle(env, handle); CreateNetConnectionPropertiesChangeParam() local
270 CreateNetLostParam(napi_env env, NetHandle &netHandle) CreateNetLostParam() argument
282 napi_value netHandle = CreateNetHandle(env, handle); CreateNetBlockStatusChangeParam() local
[all...]
/foundation/communication/netmanager_base/test/netconnmanager/unittest/net_conn_manager_test/
H A Dnet_conn_callback_test.cpp45 int32_t NetConnCallbackTest::NetAvailable(sptr<NetHandle> &netHandle) in NetAvailable() argument
47 if (netHandle != nullptr) { in NetAvailable()
51 NETMGR_LOG_D("NetAvailable: netId = %{public}d", netHandle->GetNetId()); in NetAvailable()
57 sptr<NetHandle> &netHandle, const sptr<NetAllCapabilities> &netAllCap) in NetCapabilitiesChange()
59 if (netHandle == nullptr || netAllCap == nullptr) { in NetCapabilitiesChange()
63 NETMGR_LOG_D("NetCapabilitiesChange: netId = [%{public}d]", netHandle->GetNetId()); in NetCapabilitiesChange()
69 int32_t NetConnCallbackTest::NetConnectionPropertiesChange(sptr<NetHandle> &netHandle, in NetConnectionPropertiesChange() argument
72 if (netHandle == nullptr || info == nullptr) { in NetConnectionPropertiesChange()
75 NETMGR_LOG_D("NetConnectionPropertiesChange: netId = %{public}d info = %{public}s", netHandle->GetNetId(), in NetConnectionPropertiesChange()
81 int32_t NetConnCallbackTest::NetLost(sptr<NetHandle> &netHandle) in NetLost() argument
56 NetCapabilitiesChange( sptr<NetHandle> &netHandle, const sptr<NetAllCapabilities> &netAllCap) NetCapabilitiesChange() argument
98 NetBlockStatusChange(sptr<NetHandle> &netHandle, bool blocked) NetBlockStatusChange() argument
[all...]
H A Dnet_conn_callback_test.h30 int32_t NetAvailable(sptr<NetHandle> &netHandle) override;
31 int32_t NetCapabilitiesChange(sptr<NetHandle> &netHandle, const sptr<NetAllCapabilities> &netAllCap) override;
32 int32_t NetConnectionPropertiesChange(sptr<NetHandle> &netHandle, const sptr<NetLinkInfo> &info) override;
33 int32_t NetLost(sptr<NetHandle> &netHandle) override;
35 int32_t NetBlockStatusChange(sptr<NetHandle> &netHandle, bool blocked) override;
/foundation/communication/netmanager_base/test/commonduplicatedcode/
H A Dcommon_net_conn_callback_test.h32 int32_t NetAvailable(sptr<NetHandle> &netHandle) in NetAvailable() argument
37 int32_t NetCapabilitiesChange(sptr<NetHandle> &netHandle, const sptr<NetAllCapabilities> &netAllCap) in NetCapabilitiesChange() argument
42 int32_t NetConnectionPropertiesChange(sptr<NetHandle> &netHandle, const sptr<NetLinkInfo> &info) in NetConnectionPropertiesChange() argument
47 int32_t NetLost(sptr<NetHandle> &netHandle) in NetLost() argument
57 int32_t NetBlockStatusChange(sptr<NetHandle> &netHandle, bool blocked) in NetBlockStatusChange() argument
118 int32_t NetAvailable(sptr<NetHandle> &netHandle) override
123 int32_t NetCapabilitiesChange(sptr<NetHandle> &netHandle, const sptr<NetAllCapabilities> &netAllCap) override
128 int32_t NetConnectionPropertiesChange(sptr<NetHandle> &netHandle, const sptr<NetLinkInfo> &info) override
133 int32_t NetLost(sptr<NetHandle> &netHandle) override
143 int32_t NetBlockStatusChange(sptr<NetHandle> &netHandle, boo
[all...]
/foundation/filemanagement/dfs_service/test/unittests/cloudsync_sa/sync_rule/
H A Dnet_conn_callback_observer_test.cpp70 sptr<NetManagerStandard::NetHandle> netHandle = sptr(new NetManagerStandard::NetHandle()); in HWTEST_F() local
71 int res = oberverPtr_->NetAvailable(netHandle); in HWTEST_F()
85 sptr<NetManagerStandard::NetHandle> netHandle = sptr(new NetManagerStandard::NetHandle()); in HWTEST_F() local
87 int res = oberverPtr_->NetCapabilitiesChange(netHandle, netAllCap); in HWTEST_F()
101 sptr<NetManagerStandard::NetHandle> netHandle = sptr(new NetManagerStandard::NetHandle()); in HWTEST_F() local
103 int res = oberverPtr_->NetConnectionPropertiesChange(netHandle, info); in HWTEST_F()
117 sptr<NetManagerStandard::NetHandle> netHandle = sptr(new NetManagerStandard::NetHandle()); in HWTEST_F() local
118 int res = oberverPtr_->NetLost(netHandle); in HWTEST_F()
146 sptr<NetManagerStandard::NetHandle> netHandle = sptr(new NetManagerStandard::NetHandle()); in HWTEST_F() local
148 int res = oberverPtr_->NetBlockStatusChange(netHandle, blocke in HWTEST_F()
[all...]
/foundation/communication/netmanager_base/services/netconnmanager/src/stub/
H A Dnet_conn_callback_proxy.cpp28 int32_t NetConnCallbackProxy::NetAvailable(sptr<NetHandle> &netHandle) in NetAvailable() argument
30 if (netHandle == nullptr) { in NetAvailable()
31 NETMGR_LOG_E("netHandle is null"); in NetAvailable()
41 if (!data.WriteInt32(netHandle->GetNetId())) { in NetAvailable()
63 sptr<NetHandle> &netHandle, const sptr<NetAllCapabilities> &netAllCap) in NetCapabilitiesChange()
71 if (netHandle == nullptr || netAllCap == nullptr) { in NetCapabilitiesChange()
75 if (!data.WriteInt32(netHandle->GetNetId()) || !data.WriteUint32(netAllCap->linkUpBandwidthKbps_) || in NetCapabilitiesChange()
115 int32_t NetConnCallbackProxy::NetConnectionPropertiesChange(sptr<NetHandle> &netHandle, const sptr<NetLinkInfo> &info) in NetConnectionPropertiesChange() argument
117 if (netHandle == nullptr || info == nullptr) { in NetConnectionPropertiesChange()
128 if (!data.WriteInt32(netHandle in NetConnectionPropertiesChange()
62 NetCapabilitiesChange( sptr<NetHandle> &netHandle, const sptr<NetAllCapabilities> &netAllCap) NetCapabilitiesChange() argument
155 NetLost(sptr<NetHandle> &netHandle) NetLost() argument
214 NetBlockStatusChange(sptr<NetHandle> &netHandle, bool blocked) NetBlockStatusChange() argument
[all...]
/foundation/communication/netmanager_base/frameworks/cj/connection/include/
H A Dnet_connection_callback.h25 int32_t NetAvailable(sptr<NetHandle> &netHandle) override;
27 int32_t NetCapabilitiesChange(sptr<NetHandle> &netHandle, const sptr<NetAllCapabilities> &netAllCap) override;
29 int32_t NetConnectionPropertiesChange(sptr<NetHandle> &netHandle, const sptr<NetLinkInfo> &info) override;
31 int32_t NetLost(sptr<NetHandle> &netHandle) override;
35 int32_t NetBlockStatusChange(sptr<NetHandle> &netHandle, bool blocked) override;
/foundation/communication/netmanager_base/interfaces/kits/c/netconnclient/include/
H A Dnet_connection_adapter.h31 int32_t Conv2NetHandle(NetHandle &netHandleObj, NetConn_NetHandle *netHandle);
33 int32_t Conv2NetHandleObj(NetConn_NetHandle *netHandle, NetHandle &netHandleObj);
51 int32_t NetAvailable(sptr<NetHandle> &netHandle) override;
52 int32_t NetCapabilitiesChange(sptr<NetHandle> &netHandle, const sptr<NetAllCapabilities> &netAllCap) override;
53 int32_t NetConnectionPropertiesChange(sptr<NetHandle> &netHandle, const sptr<NetLinkInfo> &info) override;
54 int32_t NetLost(sptr<NetHandle> &netHandle) override;
56 int32_t NetBlockStatusChange(sptr<NetHandle> &netHandle, bool blocked) override;
H A Dnet_connection.h66 * @param netHandle Pointer to the network handle that contains the network ID.
75 int32_t OH_NetConn_GetDefaultNet(NetConn_NetHandle *netHandle);
94 * @param netHandle Pointer to the network handle that contains the network ID.
104 int32_t OH_NetConn_GetConnectionProperties(NetConn_NetHandle *netHandle, NetConn_ConnectionProperties *prop);
109 * @param netHandle Pointer to the network handle that contains the network ID.
119 int32_t OH_NetConn_GetNetCapabilities(NetConn_NetHandle *netHandle, NetConn_NetCapabilities *netCapabilities);
243 * @param netHandle Pointer to the network handle that contains the network ID.
252 int32_t OH_NetConn_BindSocket(int32_t socketFd, NetConn_NetHandle *netHandle);
/foundation/communication/netmanager_ext/services/networksharemanager/include/
H A Dnetworkshare_upstreammonitor.h46 int32_t NetAvailable(sptr<NetHandle> &netHandle) override;
47 int32_t NetCapabilitiesChange(sptr<NetHandle> &netHandle, const sptr<NetAllCapabilities> &netAllCap) override;
48 int32_t NetConnectionPropertiesChange(sptr<NetHandle> &netHandle, const sptr<NetLinkInfo> &info) override;
49 int32_t NetLost(sptr<NetHandle> &netHandle) override;
51 int32_t NetBlockStatusChange(sptr<NetHandle> &netHandle, bool blocked) override;
99 void HandleNetAvailable(sptr<NetHandle> &netHandle);
100 void HandleNetCapabilitiesChange(sptr<NetHandle> &netHandle, const sptr<NetAllCapabilities> &newNetAllCap);
101 void HandleConnectionPropertiesChange(sptr<NetHandle> &netHandle, const sptr<NetLinkInfo> &newNetLinkInfo);
102 void HandleNetLost(sptr<NetHandle> &netHandle);
/foundation/communication/netmanager_base/interfaces/innerkits/netconnclient/include/proxy/
H A Di_net_conn_callback.h35 virtual int32_t NetAvailable(sptr<NetHandle> &netHandle) = 0;
36 virtual int32_t NetCapabilitiesChange(sptr<NetHandle> &netHandle, const sptr<NetAllCapabilities> &netAllCap) = 0;
37 virtual int32_t NetConnectionPropertiesChange(sptr<NetHandle> &netHandle, const sptr<NetLinkInfo> &info) = 0;
38 virtual int32_t NetLost(sptr<NetHandle> &netHandle) = 0;
40 virtual int32_t NetBlockStatusChange(sptr<NetHandle> &netHandle, bool blocked) = 0;
H A Dnet_conn_callback_stub.h35 int32_t NetAvailable(sptr<NetHandle> &netHandle) override;
36 int32_t NetCapabilitiesChange(sptr<NetHandle> &netHandle, const sptr<NetAllCapabilities> &netAllCap) override;
37 int32_t NetConnectionPropertiesChange(sptr<NetHandle> &netHandle, const sptr<NetLinkInfo> &info) override;
38 int32_t NetLost(sptr<NetHandle> &netHandle) override;
40 int32_t NetBlockStatusChange(sptr<NetHandle> &netHandle, bool blocked) override;
/foundation/filemanagement/dfs_service/interfaces/inner_api/native/cloud_file_kit_inner/
H A Dnet_conn_callback_observer.h27 int32_t NetAvailable(sptr<NetManagerStandard::NetHandle> &netHandle) override;
29 int32_t NetCapabilitiesChange(sptr<NetManagerStandard::NetHandle> &netHandle,
32 int32_t NetConnectionPropertiesChange(sptr<NetManagerStandard::NetHandle> &netHandle,
35 int32_t NetLost(sptr<NetManagerStandard::NetHandle> &netHandle) override;
39 int32_t NetBlockStatusChange(sptr<NetManagerStandard::NetHandle> &netHandle, bool blocked) override;
/foundation/communication/netmanager_base/services/netconnmanager/include/stub/
H A Dnet_conn_callback_proxy.h31 int32_t NetAvailable(sptr<NetHandle> &netHandle) override;
32 int32_t NetCapabilitiesChange(sptr<NetHandle> &netHandle, const sptr<NetAllCapabilities> &netAllCap) override;
33 int32_t NetConnectionPropertiesChange(sptr<NetHandle> &netHandle, const sptr<NetLinkInfo> &info) override;
34 int32_t NetLost(sptr<NetHandle> &netHandle) override;
36 int32_t NetBlockStatusChange(sptr<NetHandle> &netHandle, bool blocked) override;
/foundation/filemanagement/dfs_service/frameworks/native/cloud_file_kit_inner/src/sync_rule/
H A Dnet_conn_callback_observer.cpp29 int32_t NetConnCallbackObserver::NetAvailable(sptr<NetHandle> &netHandle) in NetAvailable() argument
35 int32_t NetConnCallbackObserver::NetCapabilitiesChange(sptr<NetHandle> &netHandle, in NetCapabilitiesChange() argument
58 int32_t NetConnCallbackObserver::NetConnectionPropertiesChange(sptr<NetHandle> &netHandle, in NetConnectionPropertiesChange() argument
64 int32_t NetConnCallbackObserver::NetLost(sptr<NetHandle> &netHandle) in NetLost() argument
76 int32_t NetConnCallbackObserver::NetBlockStatusChange(sptr<NetHandle> &netHandle, bool blocked) in NetBlockStatusChange() argument
/foundation/communication/netmanager_base/frameworks/native/netconnclient/src/proxy/
H A Dnet_conn_callback_stub.cpp72 sptr<NetHandle> netHandle = std::make_unique<NetHandle>(netId).release(); in OnNetAvailable() local
73 int32_t result = NetAvailable(netHandle); in OnNetAvailable()
122 sptr<NetHandle> netHandle = std::make_unique<NetHandle>(netId).release(); in OnNetCapabilitiesChange() local
123 int32_t result = NetCapabilitiesChange(netHandle, netAllCap); in OnNetCapabilitiesChange()
143 sptr<NetHandle> netHandle = std::make_unique<NetHandle>(netId).release(); in OnNetConnectionPropertiesChange() local
144 int32_t result = NetConnectionPropertiesChange(netHandle, info); in OnNetConnectionPropertiesChange()
163 sptr<NetHandle> netHandle = std::make_unique<NetHandle>(netId).release(); in OnNetLost() local
164 int32_t result = NetLost(netHandle); in OnNetLost()
202 sptr<NetHandle> netHandle = std::make_unique<NetHandle>(netId).release(); in OnNetBlockStatusChange() local
203 int32_t result = NetBlockStatusChange(netHandle, blocke in OnNetBlockStatusChange()
211 NetAvailable(sptr<NetHandle> &netHandle) NetAvailable() argument
216 NetCapabilitiesChange(sptr<NetHandle> &netHandle, const sptr<NetAllCapabilities> &netAllCap) NetCapabilitiesChange() argument
222 NetConnectionPropertiesChange(sptr<NetHandle> &netHandle, const sptr<NetLinkInfo> &info) NetConnectionPropertiesChange() argument
227 NetLost(sptr<NetHandle> &netHandle) NetLost() argument
237 NetBlockStatusChange(sptr<NetHandle> &netHandle, bool blocked) NetBlockStatusChange() argument
[all...]
/foundation/communication/netmanager_base/frameworks/cj/connection/src/
H A Dnet_connection_callback.cpp22 int32_t ConnectionCallbackObserver::NetAvailable(sptr<NetHandle> &netHandle) in NetAvailable() argument
24 if (netHandle == nullptr) { in NetAvailable()
37 int32_t id = netHandle->GetNetId(); in NetAvailable()
75 int32_t ConnectionCallbackObserver::NetCapabilitiesChange(sptr<NetHandle> &netHandle, in NetCapabilitiesChange() argument
78 if (netHandle == nullptr || netAllCap == nullptr) { in NetCapabilitiesChange()
93 int32_t id = netHandle->GetNetId(); in NetCapabilitiesChange()
110 CNetCapabilityInfo info = {.netHandle = id, .netCap = capabilities}; in NetCapabilitiesChange()
166 int32_t ConnectionCallbackObserver::NetConnectionPropertiesChange(sptr<NetHandle> &netHandle, in NetConnectionPropertiesChange() argument
169 if (netHandle == nullptr || info == nullptr) { in NetConnectionPropertiesChange()
183 int32_t id = netHandle in NetConnectionPropertiesChange()
201 NetLost(sptr<NetHandle> &netHandle) NetLost() argument
243 NetBlockStatusChange(sptr<NetHandle> &netHandle, bool blocked) NetBlockStatusChange() argument
[all...]
/foundation/communication/netmanager_base/frameworks/js/napi/network/observer/include/
H A Dnetwork_observer.h31 int32_t NetAvailable(sptr<NetHandle> &netHandle) override;
33 int32_t NetCapabilitiesChange(sptr<NetHandle> &netHandle, const sptr<NetAllCapabilities> &netAllCap) override;
35 int32_t NetConnectionPropertiesChange(sptr<NetHandle> &netHandle, const sptr<NetLinkInfo> &info) override;
37 int32_t NetLost(sptr<NetHandle> &netHandle) override;
41 int32_t NetBlockStatusChange(sptr<NetHandle> &netHandle, bool blocked) override;
/foundation/communication/netmanager_base/interfaces/kits/c/netconnclient/src/
H A Dnet_connection.cpp127 int32_t OH_NetConn_GetDefaultNet(NetConn_NetHandle *netHandle) in OH_NetConn_GetDefaultNet() argument
129 if (netHandle == nullptr) { in OH_NetConn_GetDefaultNet()
136 int32_t retConv = Conv2NetHandle(netHandleObj, netHandle); in OH_NetConn_GetDefaultNet()
156 int32_t OH_NetConn_GetConnectionProperties(NetConn_NetHandle *netHandle, NetConn_ConnectionProperties *prop) in OH_NetConn_GetConnectionProperties() argument
158 if (netHandle == nullptr || prop == nullptr) { in OH_NetConn_GetConnectionProperties()
164 int32_t retConv = Conv2NetHandleObj(netHandle, netHandleObj); in OH_NetConn_GetConnectionProperties()
177 int32_t OH_NetConn_GetNetCapabilities(NetConn_NetHandle *netHandle, NetConn_NetCapabilities *netAllCapabilities) in OH_NetConn_GetNetCapabilities() argument
179 if (netHandle == nullptr || netAllCapabilities == nullptr) { in OH_NetConn_GetNetCapabilities()
185 int32_t retConv = Conv2NetHandleObj(netHandle, netHandleObj); in OH_NetConn_GetNetCapabilities()
254 int32_t OH_NetConn_BindSocket(int32_t socketFd, NetConn_NetHandle *netHandle) in OH_NetConn_BindSocket() argument
[all...]
H A Dnet_connection_adapter.cpp108 int32_t Conv2NetHandle(NetHandle &netHandleObj, NetConn_NetHandle *netHandle) in Conv2NetHandle() argument
110 netHandle->netId = netHandleObj.GetNetId(); in Conv2NetHandle()
114 int32_t Conv2NetHandleObj(NetConn_NetHandle *netHandle, NetHandle &netHandleObj) in Conv2NetHandleObj() argument
116 netHandleObj.SetNetId(netHandle->netId); in Conv2NetHandleObj()
293 int32_t NetConnCallbackStubAdapter::NetAvailable(sptr<NetHandle> &netHandle) in NetAvailable() argument
295 if (this->callback_.onNetworkAvailable == nullptr || netHandle == nullptr) { in NetAvailable()
299 int32_t ret = Conv2NetHandle(*netHandle, &netHandleInner); in NetAvailable()
308 int32_t NetConnCallbackStubAdapter::NetCapabilitiesChange(sptr<NetHandle> &netHandle, in NetCapabilitiesChange() argument
311 if (this->callback_.onNetCapabilitiesChange == nullptr || netHandle == nullptr || netAllCap == nullptr) { in NetCapabilitiesChange()
316 int32_t ret = Conv2NetHandle(*netHandle, in NetCapabilitiesChange()
329 NetConnectionPropertiesChange(sptr<NetHandle> &netHandle, const sptr<NetLinkInfo> &info) NetConnectionPropertiesChange() argument
350 NetLost(sptr<NetHandle> &netHandle) NetLost() argument
374 NetBlockStatusChange(sptr<NetHandle> &netHandle, bool blocked) NetBlockStatusChange() argument
[all...]
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_common/
H A Dwifi_net_observer.cpp116 sptr<NetHandle> netHandle = GetWifiNetworkHandle(); in StartWifiDetection() local
117 if (netHandle == nullptr) { in StartWifiDetection()
121 int32_t res = NetConnClient::GetInstance().NetDetection(*netHandle); in StartWifiDetection()
131 sptr<NetHandle> netHandle = GetWifiNetworkHandle(); in GetWifiNetId() local
132 if (netHandle != nullptr) { in GetWifiNetId()
133 return netHandle->GetNetId(); in GetWifiNetId()

Completed in 14 milliseconds

123