Home
last modified time | relevance | path

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

/base/web/webview/ohos_adapter/net_connect_adapter/src/
H A Dnet_connect_callback_impl.cpp28 int32_t NetConnectCallbackImpl::NetAvailable(sptr<NetHandle> &netHandle) in NetAvailable() argument
30 if (netHandle == nullptr) { in NetAvailable()
31 WVLOG_E("NetConnCallback enter, net available, netHandle is nullptr."); in NetAvailable()
35 WVLOG_I("NetConnCallback enter, net available, net id = %{public}d.", netHandle->GetNetId()); in NetAvailable()
43 int32_t NetConnectCallbackImpl::NetCapabilitiesChange(sptr<NetHandle> &netHandle, in NetCapabilitiesChange() argument
46 if (netHandle == nullptr || netAllCap == nullptr) { in NetCapabilitiesChange()
47 WVLOG_E("NetConnCallback enter, NetCapabilitiesChange, netHandle or netAllCap is nullptr."); in NetCapabilitiesChange()
51 WVLOG_I("NetConnCallback enter, NetCapabilitiesChange, net id = %{public}d.", netHandle->GetNetId()); in NetCapabilitiesChange()
74 capabilites->SetNetId(netHandle->GetNetId()); in NetCapabilitiesChange()
84 int32_t NetConnectCallbackImpl::NetConnectionPropertiesChange(sptr<NetHandle> &netHandle, cons argument
102 NetLost(sptr<NetHandle> &netHandle) NetLost() argument
120 NetBlockStatusChange(sptr<NetHandle> &netHandle, bool blocked) NetBlockStatusChange() argument
[all...]
H A Dnet_connect_adapter_impl.cpp76 NetHandle netHandle; in GetDefaultNetConnect() local
77 int32_t ret = NetConnClient::GetInstance().GetDefaultNet(netHandle); in GetDefaultNetConnect()
82 WVLOG_I("get default net success, net id = %{public}d.", netHandle.GetNetId()); in GetDefaultNetConnect()
85 ret = NetConnClient::GetInstance().GetNetCapabilities(netHandle, netAllCap); in GetDefaultNetConnect()
117 std::vector<std::string> NetConnectAdapterImpl::GetDnsServersInternal(const NetHandle &netHandle) { in GetDnsServersInternal() argument
120 int32_t ret = NetConnClient::GetInstance().GetConnectionProperties(netHandle, info); in GetDnsServersInternal()
126 "netinfo = %{public}s.", netHandle.GetNetId(), info.ToString(" ").c_str()); in GetDnsServersInternal()
132 netHandle.GetNetId(), static_cast<int32_t>(servers.size())); in GetDnsServersInternal()
138 NetHandle netHandle; in GetDnsServers() local
139 int32_t ret = NetConnClient::GetInstance().GetDefaultNet(netHandle); in GetDnsServers()
[all...]
/base/web/webview/test/unittest/net_connect_callback_impl_test/
H A Dnet_connect_callback_impl_test.cpp107 sptr<NetHandle> netHandle(new NetHandle); in HWTEST_F()
111 EXPECT_EQ(netConnectCallbackImpl->NetAvailable(netHandle), 0); in HWTEST_F()
113 EXPECT_EQ(netConnectCallbackImpl->NetConnectionPropertiesChange(netHandle, info), 0); in HWTEST_F()
115 EXPECT_EQ(netConnectCallbackImpl->NetConnectionPropertiesChange(netHandle, infoNull), 0); in HWTEST_F()
117 EXPECT_EQ(netConnectCallbackImpl->NetLost(netHandle), 0); in HWTEST_F()
125 EXPECT_EQ(netConnectCallbackImpl->NetCapabilitiesChange(netHandle, netAllCap), 0); in HWTEST_F()
127 EXPECT_EQ(netConnectCallbackImpl->NetCapabilitiesChange(netHandle, netAllCap), 0); in HWTEST_F()
128 EXPECT_EQ(netConnectCallbackImpl->NetCapabilitiesChange(netHandle, nullptr), 0); in HWTEST_F()
142 sptr<NetHandle> netHandle(new NetHandle); in HWTEST_F()
144 EXPECT_EQ(netConnectCallbackImpl->NetAvailable(netHandle), in HWTEST_F()
[all...]
/base/location/services/location_gnss/gnss/include/ntp/
H A Dnet_conn_observer.h28 int32_t NetAvailable(sptr<NetManagerStandard::NetHandle> &netHandle) override;
30 int32_t NetCapabilitiesChange(sptr<NetManagerStandard::NetHandle> &netHandle,
33 int32_t NetConnectionPropertiesChange(sptr<NetManagerStandard::NetHandle> &netHandle,
36 int32_t NetLost(sptr<NetManagerStandard::NetHandle> &netHandle) override;
40 int32_t NetBlockStatusChange(sptr<NetManagerStandard::NetHandle> &netHandle, bool blocked) override;
/base/time/time_service/services/time/include/
H A 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) override;
/base/telephony/sms_mms/services/mms/
H A Dmms_conn_callback_stub.cpp31 int32_t MmsConnCallbackStub::NetAvailable(sptr<NetManagerStandard::NetHandle> &netHandle) in NetAvailable() argument
34 if (netHandle == nullptr) { in NetAvailable()
35 TELEPHONY_LOGE("netHandle is nullptr"); in NetAvailable()
50 sptr<NetManagerStandard::NetHandle> &netHandle, const sptr<NetManagerStandard::NetAllCapabilities> &netAllCap) in NetCapabilitiesChange()
57 sptr<NetManagerStandard::NetHandle> &netHandle, const sptr<NetManagerStandard::NetLinkInfo> &info) in NetConnectionPropertiesChange()
64 int32_t MmsConnCallbackStub::NetLost(sptr<NetManagerStandard::NetHandle> &netHandle) in NetLost() argument
77 int32_t MmsConnCallbackStub::NetBlockStatusChange(sptr<NetManagerStandard::NetHandle> &netHandle, bool blocked) in NetBlockStatusChange() argument
49 NetCapabilitiesChange( sptr<NetManagerStandard::NetHandle> &netHandle, const sptr<NetManagerStandard::NetAllCapabilities> &netAllCap) NetCapabilitiesChange() argument
56 NetConnectionPropertiesChange( sptr<NetManagerStandard::NetHandle> &netHandle, const sptr<NetManagerStandard::NetLinkInfo> &info) NetConnectionPropertiesChange() argument
H A Dmms_network_client.cpp459 for (sptr<NetHandle> netHandle : netList) { in GetIfaceName()
461 if (netId != netHandle->GetNetId()) { in GetIfaceName()
465 NetConnClient::GetInstance().GetNetCapabilities(*netHandle, capabilities); in GetIfaceName()
471 NetConnClient::GetInstance().GetConnectionProperties(*netHandle, info); in GetIfaceName()
/base/location/services/location_gnss/gnss/source/ntp/
H A Dnet_conn_observer.cpp27 int32_t NetConnObserver::NetAvailable(sptr<NetHandle> &netHandle) in NetAvailable() argument
32 int32_t NetConnObserver::NetCapabilitiesChange(sptr<NetHandle> &netHandle, in NetCapabilitiesChange() argument
51 int32_t NetConnObserver::NetConnectionPropertiesChange(sptr<NetHandle> &netHandle, in NetConnectionPropertiesChange() argument
57 int32_t NetConnObserver::NetLost(sptr<NetHandle> &netHandle) in NetLost() argument
67 int32_t NetConnObserver::NetBlockStatusChange(sptr<NetHandle> &netHandle, bool blocked) in NetBlockStatusChange() argument
/base/telephony/sms_mms/services/mms/include/
H A 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) override;
33 int32_t NetLost(sptr<NetManagerStandard::NetHandle> &netHandle) override;
35 int32_t NetBlockStatusChange(sptr<NetManagerStandard::NetHandle> &netHandle, bool blocked) override;
/base/time/time_service/services/time/src/
H A 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/web/webview/ohos_adapter/net_connect_adapter/include/
H A Dnet_connect_callback_impl.h33 int32_t NetAvailable(sptr<NetHandle> &netHandle) override;
34 int32_t NetCapabilitiesChange(sptr<NetHandle> &netHandle, const sptr<NetAllCapabilities> &netAllCap) override;
35 int32_t NetConnectionPropertiesChange(sptr<NetHandle> &netHandle, const sptr<NetLinkInfo> &info) override;
36 int32_t NetLost(sptr<NetHandle> &netHandle) override;
38 int32_t NetBlockStatusChange(sptr<NetHandle> &netHandle, bool blocked) override;
H A Dnet_connect_adapter_impl.h47 std::vector<std::string> GetDnsServersInternal(const NetHandle &netHandle);
/base/telephony/cellular_data/services/src/
H A Dtraffic_management.cpp63 for (sptr<NetManagerStandard::NetHandle> netHandle : netList) { in GetIfaceName()
65 TELEPHONY_LOGD("Slot%{public}d: netId = %{public}d, netHandle->GetNetId() = %{public}d", slotId_, netId, 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/
H A Ddupdate_net_observer.h31 int32_t NetCapabilitiesChange(sptr<NetManagerStandard::NetHandle> &netHandle,
33 int32_t NetLost(sptr<NetManagerStandard::NetHandle> &netHandle) final;
/base/request/request/services/include/
H A Dnetwork.h38 int32_t NetAvailable(sptr<NetHandle> &netHandle) override;
39 int32_t NetLost(sptr<NetHandle> &netHandle) override;
41 int32_t NetCapabilitiesChange(sptr<NetHandle> &netHandle, const sptr<NetAllCapabilities> &netAllCap) override;
/base/request/request/services/src/cxx/
H A Dnetwork.cpp97 int32_t RequestNetCallbackStub::NetAvailable(sptr<NetHandle> &netHandle) in NetAvailable() argument
100 int32_t ret = NetConnClient::GetInstance().GetNetCapabilities(*netHandle, *netAllCap); in NetAvailable()
109 int32_t RequestNetCallbackStub::NetLost(sptr<NetHandle> &netHandle) in NetLost() argument
124 sptr<NetHandle> &netHandle, const sptr<NetAllCapabilities> &netAllCap) in NetCapabilitiesChange()
123 NetCapabilitiesChange( sptr<NetHandle> &netHandle, const sptr<NetAllCapabilities> &netAllCap) NetCapabilitiesChange() argument
/base/update/updateservice/services/utils/src/
H A Ddupdate_net_observer.cpp66 int32_t NetObserver::NetCapabilitiesChange(sptr<NetHandle> &netHandle, const sptr<NetAllCapabilities> &netAllCap) in NetCapabilitiesChange() argument
92 int32_t NetObserver::NetLost(sptr<NetHandle> &netHandle) in NetLost() argument
/base/web/webview/test/unittest/net_connect_adapter_impl_test/
H A Dnet_connect_adapter_impl_test.cpp85 sptr<NetManagerStandard::NetHandle> netHandle = std::make_unique<NetHandle>(g_specified_net_id).release(); in GetAllNets() local
86 if (netHandle != nullptr) { in GetAllNets()
87 netList.emplace_back(netHandle); in GetAllNets()
/base/telephony/cellular_data/test/unit_test/
H A Dcellular_data_code_test.cpp131 int32_t NetAvailable(sptr<NetManagerStandard::NetHandle> &netHandle) override
137 int32_t NetCapabilitiesChange(sptr<NetManagerStandard::NetHandle> &netHandle,
145 sptr<NetManagerStandard::NetHandle> &netHandle, const sptr<NetManagerStandard::NetLinkInfo> &info) override
151 int32_t NetLost(sptr<NetManagerStandard::NetHandle> &netHandle) override
163 int32_t NetBlockStatusChange(sptr<NetManagerStandard::NetHandle> &netHandle, bool blocked) override
/base/telephony/core_service/services/network_search/include/
H A Ddevice_state_observer.h78 void OnSharingUpstreamChanged(const sptr<NetManagerStandard::NetHandle> netHandle) override {}
/base/telephony/sms_mms/test/gtest/
H A Dsms_services_mms_gtest.cpp86 sptr<NetManagerStandard::NetHandle> netHandle = new NetManagerStandard::NetHandle; in HWTEST_F() local
87 EXPECT_EQ(connCallback.NetAvailable(netHandle), ERR_NONE); in HWTEST_F()
/base/telephony/cellular_data/test/
H A Dcellular_data_test.cpp72 int32_t NetAvailable(sptr<NetManagerStandard::NetHandle> &netHandle) override
79 int32_t NetCapabilitiesChange(sptr<NetManagerStandard::NetHandle> &netHandle,
88 sptr<NetManagerStandard::NetHandle> &netHandle, const sptr<NetManagerStandard::NetLinkInfo> &info) override
95 int32_t NetLost(sptr<NetManagerStandard::NetHandle> &netHandle) override
109 int32_t NetBlockStatusChange(sptr<NetManagerStandard::NetHandle> &netHandle, bool blocked) override

Completed in 11 milliseconds