Home
last modified time | relevance | path

Searched refs:ifaces (Results 1 - 25 of 63) sorted by relevance

123

/foundation/communication/netmanager_base/frameworks/js/napi/netpolicy/src/
H A Dnet_policy_callback_observer.cpp65 int32_t NetPolicyCallbackObserver::NetMeteredIfacesChange(std::vector<std::string> &ifaces) in NetMeteredIfacesChange() argument
72 vec->assign(ifaces.begin(), ifaces.end()); in NetMeteredIfacesChange()
125 auto ifaces = static_cast<std::vector<std::string> *>(data); in CreateMeteredIfacesChangeParam() local
126 auto arraySize = ifaces->size(); in CreateMeteredIfacesChangeParam()
129 std::string item = ifaces->at(i); in CreateMeteredIfacesChangeParam()
133 delete ifaces; in CreateMeteredIfacesChangeParam()
/foundation/communication/netmanager_base/services/netpolicymanager/src/stub/
H A Dnet_policy_callback_proxy.cpp129 int32_t NetPolicyCallbackProxy::NetMeteredIfacesChange(std::vector<std::string> &ifaces) in NetMeteredIfacesChange() argument
136 uint32_t size = static_cast<uint32_t>(ifaces.size()); in NetMeteredIfacesChange()
142 for (uint32_t i = 0; i < ifaces.size(); ++i) { in NetMeteredIfacesChange()
143 if (!data.WriteString(ifaces[i])) { in NetMeteredIfacesChange()
/foundation/communication/netmanager_base/test/netpolicymanager/unittest/net_policy_manager_test/
H A Dnet_policy_callback_proxy_test.cpp242 std::vector<std::string> ifaces; in HWTEST_F() local
243 EXPECT_EQ(instance_.NetMeteredIfacesChange(ifaces), NETMANAGER_ERR_LOCAL_PTR_NULL); in HWTEST_F()
250 std::vector<std::string> ifaces; in HWTEST_F() local
251 EXPECT_EQ(instance_.NetMeteredIfacesChange(ifaces), NETMANAGER_ERR_IPC_CONNECT_STUB_FAIL); in HWTEST_F()
258 std::vector<std::string> ifaces; in HWTEST_F() local
259 EXPECT_EQ(instance_.NetMeteredIfacesChange(ifaces), NETMANAGER_SUCCESS); in HWTEST_F()
H A Dnet_policy_callback_test.cpp78 int32_t NetPolicyCallbackTest::NetMeteredIfacesChange(std::vector<std::string> &ifaces) in NetMeteredIfacesChange() argument
80 for (auto &iface : ifaces) { in NetMeteredIfacesChange()
H A Dut_net_policy_callback_ipc.cpp111 std::vector<std::string> ifaces; in HWTEST_F() local
112 int32_t ret = instance_->NotifyNetMeteredIfacesChangeAsync(ifaces); in HWTEST_F()
H A Dnet_policy_callback_test.h35 int32_t NetMeteredIfacesChange(std::vector<std::string> &ifaces) override;
/foundation/communication/netmanager_base/services/netpolicymanager/src/core/
H A Dnet_policy_callback.cpp224 int32_t NetPolicyCallback::NotifyNetMeteredIfacesChangeAsync(std::vector<std::string> &ifaces) in NotifyNetMeteredIfacesChangeAsync() argument
226 NETMGR_LOG_D("NotifyNetMeteredIfacesChange iface size[%{public}zu]", ifaces.size()); in NotifyNetMeteredIfacesChangeAsync()
233 netPolicyCallbackFfrtQueue_->submit_h([this, &ifaces, &ret]() { in NotifyNetMeteredIfacesChangeAsync()
234 ret = this->NotifyNetMeteredIfacesChange(ifaces); in NotifyNetMeteredIfacesChangeAsync()
240 int32_t NetPolicyCallback::NotifyNetMeteredIfacesChange(std::vector<std::string> &ifaces) in NotifyNetMeteredIfacesChange() argument
242 NETMGR_LOG_D("NotifyNetMeteredIfacesChange iface size[%{public}zu]", ifaces.size()); in NotifyNetMeteredIfacesChange()
245 callback->NetMeteredIfacesChange(ifaces); in NotifyNetMeteredIfacesChange()
/foundation/communication/netmanager_base/frameworks/native/netpolicyclient/src/
H A Dnet_policy_callback_stub.cpp165 std::vector<std::string> ifaces; in OnNetMeteredIfacesChange() local
178 ifaces.push_back(iface); in OnNetMeteredIfacesChange()
180 int32_t result = NetMeteredIfacesChange(ifaces); in OnNetMeteredIfacesChange()
188 int32_t NetPolicyCallbackStub::NetMeteredIfacesChange(std::vector<std::string> &ifaces) in NetMeteredIfacesChange() argument
/foundation/communication/netmanager_base/services/netpolicymanager/include/
H A Dnet_policy_callback.h74 * Notify when metered ifaces is changed.
75 * @param ifaces The string vector of ifaces.
78 int32_t NotifyNetMeteredIfacesChangeAsync(std::vector<std::string> &ifaces);
94 int32_t NotifyNetMeteredIfacesChange(std::vector<std::string> &ifaces);
/foundation/communication/netmanager_ext/frameworks/js/napi/sharing/src/
H A Dnetshare_startsharing_context.cpp76 void NetShareStartSharingContext::SetIface(std::vector<std::string> ifaces) in SetIface() argument
78 ifaces_ = ifaces; in SetIface()
H A Dnetshare_exec.cpp101 std::vector<std::string> ifaces; in ExecGetSharingIfaces() local
102 int32_t result = DelayedSingleton<NetworkShareClient>::GetInstance()->GetSharingIfaces(ifaceState, ifaces); in ExecGetSharingIfaces()
108 context->SetIface(ifaces); in ExecGetSharingIfaces()
/foundation/communication/wifi/wifi/relation_services/wifi_hal_service/
H A Dwifi_hal_chip_interface.c81 WifiErrorNo GetIfaceNames(int32_t type, char *ifaces, int32_t size) in GetIfaceNames() argument
84 if (ifaces != NULL) { in GetIfaceNames()
85 ifaces[0] = '\0'; /* fixed compile error, -Werror,-Wunused-parameter */ in GetIfaceNames()
H A Dwifi_hal_chip_interface.h76 * @param ifaces - Device Interface Name.
77 * @param size - ifaces size.
80 WifiErrorNo GetIfaceNames(int32_t type, char *ifaces, int32_t size);
/foundation/communication/netmanager_ext/services/ethernetmanager/src/stub/
H A Dethernet_service_stub.cpp96 NETMGR_EXT_LOG_E("ifaces size is too large"); in OnGetMacAddress()
167 std::vector<std::string> ifaces; in OnGetAllActiveIfaces() local
168 int32_t ret = GetAllActiveIfaces(ifaces); in OnGetAllActiveIfaces()
170 if (ret != NETMANAGER_EXT_SUCCESS || ifaces.size() == 0) { in OnGetAllActiveIfaces()
171 NETMGR_EXT_LOG_E("get all active ifaces failed"); in OnGetAllActiveIfaces()
174 if (ifaces.size() > MAX_SIZE) { in OnGetAllActiveIfaces()
175 NETMGR_EXT_LOG_E("ifaces size is too large"); in OnGetAllActiveIfaces()
178 if (!reply.WriteUint32(ifaces.size())) { in OnGetAllActiveIfaces()
182 for (auto iface : ifaces) { in OnGetAllActiveIfaces()
/foundation/communication/netmanager_ext/services/networksharemanager/src/stub/
H A Dnetworkshare_service_stub.cpp179 std::vector<std::string> ifaces; in ReplyGetNetSharingIfaces() local
180 int32_t ret = GetNetSharingIfaces(shareState, ifaces); in ReplyGetNetSharingIfaces()
182 if (!reply.WriteUint32(ifaces.size())) { in ReplyGetNetSharingIfaces()
185 for (auto it = ifaces.begin(); it != ifaces.end(); ++it) { in ReplyGetNetSharingIfaces()
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_native/hal_device_manage/
H A Dhal_device_manage.h95 std::map<IfaceType, std::vector<WifiIfaceInfo>> ifaces; member
105 ifaces.clear(); in WifiChipInfo()
116 ifaces = other.ifaces; in WifiChipInfo()
127 ifaces = other.ifaces; in operator =()
/foundation/communication/netmanager_ext/frameworks/js/napi/ethernet/
H A Dethernet_exec.cpp160 napi_value ifaces = NapiUtils::CreateArray(context->GetEnv(), context->ethernetNameList_.size()); in GetAllActiveIfacesCallback() local
164 NapiUtils::SetArrayElement(context->GetEnv(), ifaces, index++, ifaceStr); in GetAllActiveIfacesCallback()
166 return ifaces; in GetAllActiveIfacesCallback()
/foundation/communication/netmanager_base/test/netconnmanager/unittest/net_conn_add_test/
H A Dnetworkshare_manager_test.cpp212 std::vector<std::string> ifaces; in HWTEST_F() local
213 int32_t result = DelayedSingleton<NetworkShareClient>::GetInstance()->GetSharingIfaces(state, ifaces); in HWTEST_F()
221 std::vector<std::string> ifaces; in HWTEST_F() local
222 int32_t result = DelayedSingleton<NetworkShareClient>::GetInstance()->GetSharingIfaces(state, ifaces); in HWTEST_F()
/foundation/communication/netmanager_ext/test/networksharemanager/unittest/networkshare_manager_test/
H A Dnetworkshare_service_test.cpp300 std::vector<std::string> ifaces; in HWTEST_F() local
301 ret = instance_->GetNetSharingIfaces(state, ifaces); in HWTEST_F()
309 std::vector<std::string> ifaces; in HWTEST_F() local
310 int32_t ret = instance_->GetNetSharingIfaces(state, ifaces); in HWTEST_F()
H A Dnetworkshare_manager_test.cpp210 std::vector<std::string> ifaces; in HWTEST_F() local
211 int32_t result = DelayedSingleton<NetworkShareClient>::GetInstance()->GetSharingIfaces(state, ifaces); in HWTEST_F()
219 std::vector<std::string> ifaces; in HWTEST_F() local
220 int32_t result = DelayedSingleton<NetworkShareClient>::GetInstance()->GetSharingIfaces(state, ifaces); in HWTEST_F()
/foundation/communication/netmanager_base/interfaces/innerkits/netpolicyclient/include/
H A Di_net_policy_callback.h66 * Notify the metered ifaces change
68 * @param ifaces The vector of metered ifaces
71 virtual int32_t NetMeteredIfacesChange(std::vector<std::string> &ifaces) = 0;
/foundation/communication/wifi/wifi/relation_services/wifi_hal_service/wifi_hal_module/wpa_supplicant_hal/
H A Dwifi_wpa_hal.h49 WpaIfaceInfo *ifaces; member
/foundation/communication/netmanager_base/services/netpolicymanager/include/stub/
H A Dnet_policy_callback_proxy.h37 int32_t NetMeteredIfacesChange(std::vector<std::string> &ifaces) override;
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_native/client/idl_client/idl_interface/
H A Di_wifi_chip.h77 * @param ifaces
78 * @param size - ifaces array size.
81 WifiErrorNo GetIfaceNames(int32_t type, char *ifaces, int32_t size);
/foundation/communication/netmanager_ext/frameworks/js/napi/sharing/include/
H A Dnetshare_startsharing_context.h42 void SetIface(std::vector<std::string> ifaces);

Completed in 10 milliseconds

123