Home
last modified time | relevance | path

Searched refs:netHandle (Results 1 – 17 of 17) sorted by relevance

/base/web/webview/ohos_adapter/net_connect_adapter/src/
Dnet_connect_callback_impl.cpp26 int32_t NetConnectCallbackImpl::NetAvailable(sptr<NetHandle> &netHandle) in NetAvailable() argument
28 if (netHandle == nullptr) { in NetAvailable()
33 WVLOG_I("NetConnCallback enter, net available, net id = %{public}d.", netHandle->GetNetId()); in NetAvailable()
41 int32_t NetConnectCallbackImpl::NetCapabilitiesChange(sptr<NetHandle> &netHandle, in NetCapabilitiesChange() argument
44 if (netHandle == nullptr || netAllCap == nullptr) { in NetCapabilitiesChange()
49 …WVLOG_I("NetConnCallback enter, NetCapabilitiesChange, net id = %{public}d.", netHandle->GetNetId(… in NetCapabilitiesChange()
78 int32_t NetConnectCallbackImpl::NetConnectionPropertiesChange(sptr<NetHandle> &netHandle, const spt… in NetConnectionPropertiesChange() argument
80 if (netHandle == nullptr || info == nullptr) { in NetConnectionPropertiesChange()
85 …WVLOG_I("NetConnCallback enter, NetConnectionPropertiesChange, net id = %{public}d.", netHandle->G… in NetConnectionPropertiesChange()
94 int32_t NetConnectCallbackImpl::NetLost(sptr<NetHandle> &netHandle) in NetLost() argument
[all …]
Dnet_connect_adapter_impl.cpp74 NetHandle netHandle; in GetDefaultNetConnect() local
75 int32_t ret = NetConnClient::GetInstance().GetDefaultNet(netHandle); in GetDefaultNetConnect()
80 WVLOG_I("get default net success, net id = %{public}d.", netHandle.GetNetId()); in GetDefaultNetConnect()
83 ret = NetConnClient::GetInstance().GetNetCapabilities(netHandle, netAllCap); in GetDefaultNetConnect()
/base/web/webview/test/unittest/net_connect_callback_impl_test/
Dnet_connect_callback_impl_test.cpp97 sptr<NetHandle> netHandle(new NetHandle);
101 EXPECT_EQ(netConnectCallbackImpl->NetAvailable(netHandle), 0);
103 EXPECT_EQ(netConnectCallbackImpl->NetConnectionPropertiesChange(netHandle, info), 0);
105 EXPECT_EQ(netConnectCallbackImpl->NetConnectionPropertiesChange(netHandle, infoNull), 0);
107 EXPECT_EQ(netConnectCallbackImpl->NetLost(netHandle), 0);
115 EXPECT_EQ(netConnectCallbackImpl->NetCapabilitiesChange(netHandle, netAllCap), 0);
117 EXPECT_EQ(netConnectCallbackImpl->NetCapabilitiesChange(netHandle, netAllCap), 0);
118 EXPECT_EQ(netConnectCallbackImpl->NetCapabilitiesChange(netHandle, nullptr), 0);
132 sptr<NetHandle> netHandle(new NetHandle);
134 EXPECT_EQ(netConnectCallbackImpl->NetAvailable(netHandle), 0);
[all …]
/base/time/time_service/services/time/include/
Dnet_conn_callback_observer.h26 int32_t NetAvailable(sptr<NetManagerStandard::NetHandle> &netHandle) override;
28 int32_t NetCapabilitiesChange(sptr<NetManagerStandard::NetHandle> &netHandle,
31 int32_t NetConnectionPropertiesChange(sptr<NetManagerStandard::NetHandle> &netHandle,
34 int32_t NetLost(sptr<NetManagerStandard::NetHandle> &netHandle) override;
38 …int32_t NetBlockStatusChange(sptr<NetManagerStandard::NetHandle> &netHandle, bool blocked) overrid…
/base/update/update_app/common/src/main/ets/util/
DNetUtils.ts32 connection.getDefaultNet().then((netHandle) => {
33 LogUtils.log('NetUtils', 'getDefaultNet data ' + JSON.stringify(netHandle));
34 connection.getNetCapabilities(netHandle).then((info) => {
55 connection.getDefaultNet().then((netHandle) => {
56 LogUtils.log('NetUtils', 'getDefaultNet data ' + JSON.stringify(netHandle));
57 connection.getNetCapabilities(netHandle).then((info) => {
/base/time/time_service/services/time/src/
Dnet_conn_callback_observer.cpp25 int32_t NetConnCallbackObserver::NetAvailable(sptr<NetHandle> &netHandle) in NetAvailable() argument
30 int32_t NetConnCallbackObserver::NetCapabilitiesChange(sptr<NetHandle> &netHandle, in NetCapabilitiesChange() argument
45 int32_t NetConnCallbackObserver::NetConnectionPropertiesChange(sptr<NetHandle> &netHandle, in NetConnectionPropertiesChange() argument
51 int32_t NetConnCallbackObserver::NetLost(sptr<NetHandle> &netHandle) in NetLost() argument
61 int32_t NetConnCallbackObserver::NetBlockStatusChange(sptr<NetHandle> &netHandle, bool blocked) in NetBlockStatusChange() argument
/base/telephony/sms_mms/services/mms/include/
Dmms_conn_callback_stub.h28 int32_t NetAvailable(sptr<NetManagerStandard::NetHandle> &netHandle) override;
29 int32_t NetCapabilitiesChange(sptr<NetManagerStandard::NetHandle> &netHandle,
32 …sptr<NetManagerStandard::NetHandle> &netHandle, const sptr<NetManagerStandard::NetLinkInfo> &info)…
33 int32_t NetLost(sptr<NetManagerStandard::NetHandle> &netHandle) override;
35 …int32_t NetBlockStatusChange(sptr<NetManagerStandard::NetHandle> &netHandle, bool blocked) overrid…
/base/telephony/sms_mms/services/mms/
Dmms_conn_callback_stub.cpp31 int32_t MmsConnCallbackStub::NetAvailable(sptr<NetManagerStandard::NetHandle> &netHandle) in NetAvailable() argument
34 if (netHandle == nullptr) { in NetAvailable()
50 …sptr<NetManagerStandard::NetHandle> &netHandle, const sptr<NetManagerStandard::NetAllCapabilities>… in NetCapabilitiesChange() argument
57 … sptr<NetManagerStandard::NetHandle> &netHandle, const sptr<NetManagerStandard::NetLinkInfo> &info) in NetConnectionPropertiesChange() argument
64 int32_t MmsConnCallbackStub::NetLost(sptr<NetManagerStandard::NetHandle> &netHandle) in NetLost() argument
77 int32_t MmsConnCallbackStub::NetBlockStatusChange(sptr<NetManagerStandard::NetHandle> &netHandle, b… in NetBlockStatusChange() argument
Dmms_network_client.cpp251 for (sptr<NetHandle> netHandle : netList) { in GetIfaceName()
252 TELEPHONY_LOGI("netHandle->GetNetId() = %{public}d", netHandle->GetNetId()); in GetIfaceName()
254 if (netId == netHandle->GetNetId()) { in GetIfaceName()
256 NetConnClient::GetInstance().GetConnectionProperties(*netHandle, info); in GetIfaceName()
/base/web/webview/ohos_adapter/net_connect_adapter/include/
Dnet_connect_callback_impl.h33 int32_t NetAvailable(sptr<NetHandle> &netHandle) override;
34 …int32_t NetCapabilitiesChange(sptr<NetHandle> &netHandle, const sptr<NetAllCapabilities> &netAllCa…
35 …int32_t NetConnectionPropertiesChange(sptr<NetHandle> &netHandle, const sptr<NetLinkInfo> &info) o…
36 int32_t NetLost(sptr<NetHandle> &netHandle) override;
38 int32_t NetBlockStatusChange(sptr<NetHandle> &netHandle, bool blocked) override;
/base/request/request/services/service/rust/src/c_wrapper/include/
Dnetwork_adapter.h56 int32_t NetAvailable(sptr<NetManagerStandard::NetHandle> &netHandle) override;
58 int32_t NetCapabilitiesChange(sptr<NetManagerStandard::NetHandle> &netHandle,
61 int32_t NetConnectionPropertiesChange(sptr<NetManagerStandard::NetHandle> &netHandle,
64 int32_t NetLost(sptr<NetManagerStandard::NetHandle> &netHandle) override;
68 …int32_t NetBlockStatusChange(sptr<NetManagerStandard::NetHandle> &netHandle, bool blocked) overrid…
/base/telephony/cellular_data/services/src/
Dtraffic_management.cpp63 for (sptr<NetManagerStandard::NetHandle> netHandle : netList) { in GetIfaceName()
66 netHandle->GetNetId()); in GetIfaceName()
67 if (netId == netHandle->GetNetId()) { in GetIfaceName()
69 NetConnClient::GetInstance().GetConnectionProperties(*netHandle, info); in GetIfaceName()
/base/update/updateservice/services/utils/include/
Ddupdate_net_observer.h31 int32_t NetCapabilitiesChange(sptr<NetManagerStandard::NetHandle> &netHandle,
33 int32_t NetLost(sptr<NetManagerStandard::NetHandle> &netHandle) final;
/base/request/request/services/service/rust/src/c_wrapper/source/
Dnetwork_adapter.cpp80 int32_t NetworkAdapter::NetConnCallbackObserver::NetAvailable(sptr<NetHandle> &netHandle) in NetAvailable() argument
130 int32_t NetworkAdapter::NetConnCallbackObserver::NetCapabilitiesChange(sptr<NetHandle> &netHandle, in NetCapabilitiesChange() argument
142 … NetworkAdapter::NetConnCallbackObserver::NetConnectionPropertiesChange(sptr<NetHandle> &netHandle, in NetConnectionPropertiesChange() argument
148 int32_t NetworkAdapter::NetConnCallbackObserver::NetLost(sptr<NetHandle> &netHandle) in NetLost() argument
166 int32_t NetworkAdapter::NetConnCallbackObserver::NetBlockStatusChange(sptr<NetHandle> &netHandle, b… in NetBlockStatusChange() argument
/base/update/updateservice/services/utils/src/
Ddupdate_net_observer.cpp65 int32_t NetObserver::NetCapabilitiesChange(sptr<NetHandle> &netHandle, const sptr<NetAllCapabilitie… in NetCapabilitiesChange() argument
91 int32_t NetObserver::NetLost(sptr<NetHandle> &netHandle) in NetLost() argument
/base/telephony/cellular_data/test/unit_test/
Dcellular_data_code_test.cpp131 int32_t NetAvailable(sptr<NetManagerStandard::NetHandle> &netHandle) override in NetAvailable() argument
137 int32_t NetCapabilitiesChange(sptr<NetManagerStandard::NetHandle> &netHandle, in NetCapabilitiesChange() argument
145 …sptr<NetManagerStandard::NetHandle> &netHandle, const sptr<NetManagerStandard::NetLinkInfo> &info)… in NetConnectionPropertiesChange() argument
151 int32_t NetLost(sptr<NetManagerStandard::NetHandle> &netHandle) override in NetLost() argument
163 …int32_t NetBlockStatusChange(sptr<NetManagerStandard::NetHandle> &netHandle, bool blocked) override in NetBlockStatusChange() argument
/base/telephony/core_service/services/network_search/include/
Ddevice_state_observer.h75 void OnSharingUpstreamChanged(const sptr<NetManagerStandard::NetHandle> netHandle) override {} in OnSharingUpstreamChanged() argument