/foundation/communication/netmanager_base/services/netstatsmanager/src/ |
H A D | net_stats_data_handler.cpp | 49 int32_t NetStatsDataHandler::ReadStatsData(std::vector<NetStatsInfo> &infos, const std::string &iface, uint64_t start, in ReadStatsData() argument 52 if (iface.empty()) { in ReadStatsData() 61 return helper->SelectData(iface, start, end, infos); in ReadStatsData() 64 int32_t NetStatsDataHandler::ReadStatsData(std::vector<NetStatsInfo> &infos, const std::string &iface, in ReadStatsData() argument 67 if (iface.empty()) { in ReadStatsData() 76 return helper->SelectData(iface, uid, start, end, infos); in ReadStatsData()
|
/foundation/communication/netmanager_base/test/netstatsmanager/unittest/net_stats_manager_test/ |
H A D | net_stats_data_handler_test.cpp | 177 std::string iface; in HWTEST_F() local 178 int32_t ret = handler.ReadStatsData(infos, iface, 0, LONG_MAX); in HWTEST_F() 188 std::string iface = "testIface"; in HWTEST_F() local 189 int32_t ret = handler.ReadStatsData(infos, iface, 0, LONG_MAX); in HWTEST_F() 212 std::string iface = "testIface"; in HWTEST_F() local 213 int32_t ret = handler.ReadStatsData(infos, iface, 0, testUid, LONG_MAX); in HWTEST_F()
|
/foundation/ability/ability_runtime/frameworks/js/napi/inner/napi_common/ |
H A D | napi_common_want.cpp | 338 sptr<AAFwk::IInterface> iface = nullptr; in InnerWrapWantParamsArrayChar() local 339 if (ao->Get(i, iface) == ERR_OK) { in InnerWrapWantParamsArrayChar() 340 AAFwk::IChar *iValue = AAFwk::IChar::Query(iface); in InnerWrapWantParamsArrayChar() 365 sptr<AAFwk::IInterface> iface = nullptr; in InnerWrapWantParamsArrayString() local 366 if (ao->Get(i, iface) == ERR_OK) { in InnerWrapWantParamsArrayString() 367 AAFwk::IString *iValue = AAFwk::IString::Query(iface); in InnerWrapWantParamsArrayString() 391 sptr<AAFwk::IInterface> iface = nullptr; in InnerWrapWantParamsArrayBool() local 392 if (ao->Get(i, iface) == ERR_OK) { in InnerWrapWantParamsArrayBool() 393 AAFwk::IBoolean *iValue = AAFwk::IBoolean::Query(iface); in InnerWrapWantParamsArrayBool() 417 sptr<AAFwk::IInterface> iface in InnerWrapWantParamsArrayShort() local 442 sptr<AAFwk::IInterface> iface = nullptr; InnerWrapWantParamsArrayByte() local 469 sptr<AAFwk::IInterface> iface = nullptr; InnerWrapWantParamsArrayInt32() local 495 sptr<AAFwk::IInterface> iface = nullptr; InnerWrapWantParamsArrayInt64() local 521 sptr<AAFwk::IInterface> iface = nullptr; InnerWrapWantParamsArrayFloat() local 565 sptr<AAFwk::IInterface> iface = nullptr; InnerWrapWantParamsArrayDouble() local 592 sptr<AAFwk::IInterface> iface = nullptr; InnerWrapWantParamsArrayWantParams() local [all...] |
/foundation/communication/netmanager_base/interfaces/innerkits/netstatsclient/include/proxy/ |
H A D | net_stats_service_proxy.h | 45 int32_t GetIfaceStatsDetail(const std::string &iface, uint64_t start, uint64_t end, 47 int32_t GetUidStatsDetail(const std::string &iface, uint32_t uid, uint64_t start, uint64_t end, 49 int32_t UpdateIfacesStats(const std::string &iface, uint64_t start, uint64_t end,
|
H A D | i_net_stats_service.h | 54 virtual int32_t GetIfaceStatsDetail(const std::string &iface, uint64_t start, uint64_t end, 56 virtual int32_t GetUidStatsDetail(const std::string &iface, uint32_t uid, uint64_t start, uint64_t end, 58 virtual int32_t UpdateIfacesStats(const std::string &iface, uint64_t start, uint64_t end,
|
/foundation/communication/netmanager_base/services/netstatsmanager/include/ |
H A D | net_stats_service.h | 62 int32_t GetIfaceStatsDetail(const std::string &iface, uint64_t start, uint64_t end, 64 int32_t GetUidStatsDetail(const std::string &iface, uint32_t uid, uint64_t start, uint64_t end, 66 int32_t UpdateIfacesStats(const std::string &iface, uint64_t start, uint64_t end,
|
H A D | net_stats_history.h | 33 int32_t GetHistory(std::vector<NetStatsInfo> &recv, const std::string &iface, uint64_t start = 0, 35 int32_t GetHistory(std::vector<NetStatsInfo> &recv, const std::string &iface, uint32_t uid, uint64_t start = 0,
|
/foundation/communication/netmanager_base/interfaces/innerkits/netstatsclient/include/ |
H A D | net_stats_client.h | 200 * @param iface network cards name 208 int32_t GetIfaceStatsDetail(const std::string &iface, uint64_t start, uint64_t end, NetStatsInfo &statsInfo); 213 * @param iface network cards name 222 int32_t GetUidStatsDetail(const std::string &iface, uint32_t uid, uint64_t start, uint64_t end, 228 * @param iface network cards name 236 int32_t UpdateIfacesStats(const std::string &iface, uint64_t start, uint64_t end, const NetStatsInfo &stats);
|
/foundation/communication/netmanager_ext/services/networksharemanager/include/ |
H A D | networkshare_configuration.h | 38 * is usb iface by regex 40 bool IsUsbIface(const std::string &iface); 43 * is wifi iface by regex 45 bool IsWifiIface(const std::string &iface); 48 * is bluetooth iface by regex 50 bool IsBluetoothIface(const std::string &iface); 53 * get usb iface regex 58 * get wifi iface regex 63 * get bluetooth iface regex 108 * get the usb rndis iface nam [all...] |
/foundation/communication/nfc/interfaces/inner_api/cardEmulation/ |
H A D | hce_service.cpp | 110 OHOS::sptr<IRemoteObject> iface = NfcController::GetInstance().GetHceServiceIface(); in GetHceSessionProxy() local 111 if (iface != nullptr) { in GetHceSessionProxy() 112 hceSessionProxy_ = new HCE::HceSessionProxy(iface); in GetHceSessionProxy()
|
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_ap/ |
H A D | ap_monitor_test.cpp | 64 void WraUnregisterHandler(const std::string &iface) in WraUnregisterHandler() argument 67 pApMonitor->RegisterHandler(iface, handler); in WraUnregisterHandler() 68 pApMonitor->UnregisterHandler(iface); in WraUnregisterHandler()
|
/foundation/communication/nfc/interfaces/inner_api/tags/ |
H A D | tag_foreground.cpp | 42 OHOS::sptr<IRemoteObject> iface = NfcController::GetInstance().GetTagServiceIface(); in GetTagSessionProxy() local 43 if (iface != nullptr) { in GetTagSessionProxy() 44 tagSessionProxy_ = new TAG::TagSessionProxy(iface); in GetTagSessionProxy()
|
/foundation/communication/netmanager_base/services/netpolicymanager/include/ |
H A D | netsys_policy_wrapper.h | 35 int32_t BandwidthSetIfaceQuota(const std::string &iface, int64_t bytes); 36 int32_t BandwidthRemoveIfaceQuota(const std::string &iface);
|
/foundation/communication/netmanager_base/services/netsyscontroller/include/ |
H A D | netsys_controller_service_impl.h | 73 * @param iface Network port device name 76 int32_t NetworkAddInterface(int32_t netId, const std::string &iface, NetBearType netBearerType) override; 82 * @param iface Network port device name 85 int32_t NetworkRemoveInterface(int32_t netId, const std::string &iface) override; 114 * @param iface Network port device name 130 * @param iface Network port device name 133 int32_t SetInterfaceDown(const std::string &iface) override; 138 * @param iface Network port device name 141 int32_t SetInterfaceUp(const std::string &iface) override; 208 * Set iface i [all...] |
H A D | i_netsys_controller_service.h | 99 * @param iface Network port device name 102 virtual int32_t NetworkAddInterface(int32_t netId, const std::string &iface, NetBearType netBearerType) = 0; 108 * @param iface Network port device name 111 virtual int32_t NetworkRemoveInterface(int32_t netId, const std::string &iface) = 0; 140 * @param iface Network port device name 156 * @param iface Network port device name 159 virtual int32_t SetInterfaceDown(const std::string &iface) = 0; 164 * @param iface Network port device name 167 virtual int32_t SetInterfaceUp(const std::string &iface) = 0; 234 * Set iface i [all...] |
H A D | netsys_controller.h | 82 * @param iface Network port device name 86 int32_t NetworkAddInterface(int32_t netId, const std::string &iface, NetBearType netBearerType = BEARER_DEFAULT); 92 * @param iface Network port device name 95 int32_t NetworkRemoveInterface(int32_t netId, const std::string &iface); 124 * @param iface Network port device name 140 * @param iface Network port device name 143 int32_t SetInterfaceDown(const std::string &iface); 148 * @param iface Network port device name 151 int32_t SetInterfaceUp(const std::string &iface); 218 * Set iface i [all...] |
H A D | netsys_native_client.h | 54 int32_t OnBandwidthReachedLimit(const std::string &limitName, const std::string &iface) override; 114 * @param iface Network port device name 117 int32_t NetworkAddInterface(int32_t netId, const std::string &iface, NetBearType netBearerType); 123 * @param iface Network port device name 126 int32_t NetworkRemoveInterface(int32_t netId, const std::string &iface); 155 * @param iface Network port device name 171 * @param iface Network port device name 174 int32_t SetInterfaceDown(const std::string &iface); 179 * @param iface Network port device name 182 int32_t SetInterfaceUp(const std::string &iface); [all...] |
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_native/hal_device_manage/ |
H A D | hal_device_manage.h | 74 sptr<IChipIface> iface;
member 84 iface = nullptr;
in Clear() 189 * @Description create sta iface
191 * @param ifaceDestoryCallback: [in] iface destory callback function
192 * @param ifaceName: [out] iface name
199 * @Description create ap iface
201 * @param ifaceDestoryCallback: [in] iface destory callback function
202 * @param ifaceName: [out] iface name
208 * @Description create p2p iface
210 * @param ifaceDestoryCallback: [in] iface destor [all...] |
/foundation/communication/dhcp/services/dhcp_server/src/ |
H A D | dhcp_function.cpp | 189 struct ifreq iface; in GetLocalIp() local 190 if (memset_s(&iface, sizeof(iface), 0, sizeof(iface)) != EOK) { in GetLocalIp() 194 if (strncpy_s(iface.ifr_name, IFNAMSIZ, strInf.c_str(), IFNAMSIZ - 1) != EOK) { in GetLocalIp() 198 iface.ifr_name[IFNAMSIZ - 1] = 0; in GetLocalIp() 201 if (ioctl(fd, SIOCGIFADDR, &iface) < 0) { in GetLocalIp() 206 struct sockaddr_in *pSockIn = (struct sockaddr_in *)&iface.ifr_addr; in GetLocalIp() 213 if (ioctl(fd, SIOCGIFNETMASK, &iface) < 0) { in GetLocalIp() 218 pSockIn = (struct sockaddr_in *)&iface in GetLocalIp() [all...] |
/foundation/communication/netmanager_ext/frameworks/js/napi/sharing/src/ |
H A D | netshare_exec.cpp | 116 for (auto iface : context->GetIfaces()) { in GetSharingIfacesCallback() 117 napi_value item = NapiUtils::CreateStringUtf8(context->GetEnv(), iface); in GetSharingIfacesCallback() 161 for (auto iface : context->GetIfaces()) { in GetSharableRegexesCallback() 162 napi_value item = NapiUtils::CreateStringUtf8(context->GetEnv(), iface); in GetSharableRegexesCallback()
|
/foundation/communication/dsoftbus/adapter/common/bus_center/network/ |
H A D | lnn_linkwatch.c | 145 bool LnnIsLinkReady(const char *iface) in LnnIsLinkReady() argument 147 if (iface == NULL) { in LnnIsLinkReady() 174 uint16_t len = (uint16_t)strlen(iface) + 1; in LnnIsLinkReady() 175 if (AddAttr(&req.hdr, sizeof(req), IFLA_IFNAME, (const uint8_t *)iface, len) != SOFTBUS_OK) { in LnnIsLinkReady()
|
/foundation/communication/wifi/wifi/frameworks/native/c_adapter/src/ |
H A D | wifi_c_hotspot.cpp | 225 std::string iface; in GetApIfaceName() local 226 OHOS::Wifi::ErrCode ret = hotspotPtr->GetApIfaceName(iface); in GetApIfaceName() 228 if (iface.size() > static_cast<unsigned long>(nameLen)) { in GetApIfaceName() 231 if (memcpy_s(ifaceName, nameLen, iface.c_str(), iface.size()) != EOK) { in GetApIfaceName() 232 WIFI_LOGE("memcpy iface name failed"); in GetApIfaceName()
|
/foundation/communication/dhcp/services/utils/src/ |
H A D | dhcp_arp_checker.cpp | 223 int32_t DhcpArpChecker::CreateSocket(const char *iface, uint16_t protocol) in CreateSocket() argument 225 if (iface == nullptr) { in CreateSocket() 226 DHCP_LOGE("iface is null"); in CreateSocket() 230 int32_t ifaceIndex = static_cast<int32_t>(if_nametoindex(iface)); in CreateSocket() 232 DHCP_LOGE("get iface index fail: %{public}s", iface); in CreateSocket() 236 DHCP_LOGE("ifaceIndex > max interger, fail:%{public}s ifaceIndex:%{public}d", iface, ifaceIndex); in CreateSocket()
|
/foundation/communication/netmanager_base/services/netsyscontroller/src/ |
H A D | netsys_native_client.cpp | 168 const std::string &iface) in OnBandwidthReachedLimit() 171 netsysNativeClient_.ProcessBandwidthReachedLimit(limitName, iface); in OnBandwidthReachedLimit() 321 int32_t NetsysNativeClient::NetworkAddInterface(int32_t netId, const std::string &iface, NetBearType netBearerType) in NetworkAddInterface() argument 323 NETMGR_LOG_I("Add network interface: netId[%{public}d], iface[%{public}s, bearerType[%{public}u]]", netId, in NetworkAddInterface() 324 iface.c_str(), netBearerType); in NetworkAddInterface() 330 return proxy->NetworkAddInterface(netId, iface, netBearerType); in NetworkAddInterface() 333 int32_t NetsysNativeClient::NetworkRemoveInterface(int32_t netId, const std::string &iface) in NetworkRemoveInterface() argument 335 NETMGR_LOG_I("Remove network interface: netId[%{public}d], iface[%{public}s]", netId, iface.c_str()); in NetworkRemoveInterface() 341 return proxy->NetworkRemoveInterface(netId, iface); in NetworkRemoveInterface() 167 OnBandwidthReachedLimit(const std::string &limitName, const std::string &iface) OnBandwidthReachedLimit() argument 392 SetInterfaceDown(const std::string &iface) SetInterfaceDown() argument 411 SetInterfaceUp(const std::string &iface) SetInterfaceUp() argument 1103 StartDhcpClient(const std::string &iface, bool bIpv6) StartDhcpClient() argument 1114 StopDhcpClient(const std::string &iface, bool bIpv6) StopDhcpClient() argument 1160 StartDhcpService(const std::string &iface, const std::string &ipv4addr) StartDhcpService() argument 1171 StopDhcpService(const std::string &iface) StopDhcpService() argument 1182 ProcessBandwidthReachedLimit(const std::string &limitName, const std::string &iface) ProcessBandwidthReachedLimit() argument [all...] |
/foundation/communication/netmanager_base/test/netconnmanager/unittest/net_conn_add_test/ |
H A D | ethernet_manager_test.cpp | 117 bool CheckIfaceUp(const std::string &iface); 180 bool EthernetManagerTest::CheckIfaceUp(const std::string &iface) in CheckIfaceUp() argument 184 (void)DelayedSingleton<EthernetClient>::GetInstance()->IsIfaceActive(iface, activeStatus); in CheckIfaceUp() 424 std::string iface = "eth0"; in HWTEST_F() local 425 int ret = devinterfacestatecallback.OnInterfaceAdded(iface); in HWTEST_F() 433 std::string iface = "eth0"; in HWTEST_F() local 434 int ret = devinterfacestatecallback.OnInterfaceRemoved(iface); in HWTEST_F()
|