Home
last modified time | relevance | path

Searched refs:network (Results 1 – 25 of 758) sorted by relevance

12345678910>>...31

/ohos5.0/foundation/filemanagement/dfs_service/services/distributedfiledaemon/test/unittest/
H A DBUILD.gn392 "network/devsl_dispatcher_test.cpp",
480 "network/kernel_talker_test.cpp",
563 "network/network_agent_template_test.cpp",
649 "network/session_pool_test.cpp",
737 "network/softbus/softbus_agent_test.cpp",
861 "network/softbus/softbus_file_send_listener_test.cpp",
1024 "network/softbus/softbus_session_test.cpp",
1095 "network/softbus/softbus_handler_asset_test.cpp",
1153 "network/softbus/softbus_handler_test.cpp",
1200 "network/softbus/softbus_session_pool_test.cpp",
[all …]
/ohos5.0/foundation/communication/netmanager_base/test/netconnmanager/unittest/net_conn_manager_test/
H A Dnet_conn_hievent_test.cpp61 return network; in GetNetwork()
134 ASSERT_NE(network, nullptr);
148 ASSERT_NE(network, nullptr);
162 ASSERT_NE(network, nullptr);
176 ASSERT_NE(network, nullptr);
179 network->UpdateDns(*netLinkInfo);
190 ASSERT_NE(network, nullptr);
204 ASSERT_NE(network, nullptr);
205 network->SetDefaultNetWork();
216 ASSERT_NE(network, nullptr);
[all …]
/ohos5.0/docs/en/application-dev/network/
H A Dnet-connection-manager.md14 …etect the network availability to prevent the switch from an available network to an unavailable n…
15 … select the optimal network when multiple networks coexist. It is triggered when the network statu…
28 - Querying network connection information based on the data network
80 4. Call **conn.register()** to subscribe to network status changes of the specified network.
93 …// Assume that the default network is Wi-Fi. If you need to create a cellular network connection, …
181network capability information of the data network specified by **NetHandle**. The capability info…
222network capability information of the data network specified by **NetHandle**. The capability info…
231 // Cellular network
234 // Wi-Fi network
237 // Ethernet network
[all …]
H A Dnet-sharing.md23 Typical network sharing scenarios are as follows:
26 - Disabling network sharing
27 - Obtaining the data traffic of the shared network
57 2. Subscribe to network sharing state changes.
66 // Subscribe to network sharing state changes.
79 ## Disabling network sharing
84 2. Subscribe to network sharing state changes.
93 // Subscribe to network sharing state changes.
106 ## Obtaining the data traffic of the shared network
113 4. Call **stopSharing** to stop network sharing of the specified type and clear the data volume of
[all …]
H A Dnet-ethernet.md5network cable. After a device is connected to the Ethernet through a network cable, the device can…
19 …y assigning a series of network attributes, such as the IP address, subnet mask, gateway, and DNS …
20 …onfiguring a series of network attributes, such as the IP address, subnet mask, gateway, and DNS, …
39 1. Use a network cable to connect the device to a network port.
43network attributes of the **eth0** port. By default, an unconfigured Ethernet network uses the DHC…
50 // Call getAllActiveIfaces to obtain the list of all active network ports.
67 // Call getIfaceConfig to obtain the network attributes of the specified Ethernet network.
84 1. Use a network cable to connect the device to a network port.
113 // Call setIfaceConfig to configure the network attributes of the specified Ethernet network.
131 // Call getIfaceConfig to obtain the network attributes of the specified Ethernet network.
[all …]
H A Dnet-mgmt-overview.md8network management capabilities, including management of Wi-Fi/cellular/Ethernet connection priori…
11 …s by means of Wi-Fi hotspot, Bluetooth, and USB sharing, and queries the network sharing state and…
12 …s wired network capabilities, which allow you to set the IP address, subnet mask, gateway, and Dom…
18 To use the functions of the network management module, you must obtain the permissions listed in th…
23 | ohos.permission.GET_NETWORK_INFO | Allows an application to obtain the network connection informa…
24 …ission.INTERNET | Allows an application to open network sockets to connect to the network.|
/ohos5.0/base/telephony/ril_adapter/test/unittest/ril_adapter_gtest/
H A Dzero_branch_test.cpp728 auto network = std::make_unique<HRilNetwork>(0); variable
815 auto network = std::make_unique<HRilNetwork>(0); variable
856 auto network = std::make_unique<HRilNetwork>(0); variable
862 network->FillCurrentCellInfo(cellInfo, &infoVendor);
866 network->FillCurrentCellInfo(cellInfo, &infoVendor);
870 network->FillCurrentCellInfo(cellInfo, &infoVendor);
874 network->FillCurrentCellInfo(cellInfo, &infoVendor);
898 auto network = std::make_unique<HRilNetwork>(0); variable
949 auto network = std::make_unique<HRilNetwork>(0); variable
988 auto network = std::make_unique<HRilNetwork>(0); variable
[all …]
/ohos5.0/docs/en/readme/
H A Dnetwork-management.md6network management subsystem implements unified connection management, traffic management, policy …
8 The figure below shows the architecture of the network management subsystem. The network management…
37 4. Call **conn.register()** to subscribe to network status changes of the specified network.
48 // Set the network type to CELLULAR.
50 // Set the network capability to INTERNET.
73 2. Set the network sharing type.
74 3. Start network sharing.
75 4. Stop network sharing.
79 // Set the network sharing type.
81 // Start network sharing.
[all …]
/ohos5.0/docs/zh-cn/application-dev/reference/apis-network-kit/
H A Djs-apis-system-network.md1 # @system.network (网络状态)
12 import network from '@system.network';
23 ## network.getType<sup>3+</sup>
54 network.getType({
56 console.log('success get network type:' + data.type);
64 ## network.subscribe<sup>3+</sup>
94 network.subscribe({
96 console.log('success get network type:' + data.type);
104 ## network.unsubscribe<sup>3+</sup>
115 import network from '@system.network';
[all …]
/ohos5.0/drivers/hdf_core/adapter/khdf/linux/test/
H A Dtest_khdf.mk34 -I$(srctree)/$(HDF_FRAMEWORK_TEST_ROOT)/model/network/wifi/unittest/module \
35 -I$(srctree)/$(HDF_FRAMEWORK_TEST_ROOT)/model/network/wifi/unittest/net \
36 -I$(srctree)/$(HDF_FRAMEWORK_TEST_ROOT)/model/network/wifi/unittest/qos \
38 -I$(srctree)/drivers/hdf/khdf/network/include \
57 -I$(srctree)/$(HDF_FRAMEWORK_ROOT)/model/network/wifi/include \
58 -I$(srctree)/$(HDF_FRAMEWORK_ROOT)/model/network/common/netdevice \
59 -I$(srctree)/$(HDF_FRAMEWORK_ROOT)/model/network/wifi/core/module \
60 -I$(srctree)/$(HDF_FRAMEWORK_ROOT)/model/network/wifi/platform/src/qos \
63 -I$(srctree)/$(HDF_FRAMEWORK_ROOT)/model/network/wifi/platform/include \
71 -I$(srctree)/$(HDF_FRAMEWORK_TEST_ROOT)/model/network/wifi/unittest/net \
[all …]
/ohos5.0/foundation/communication/netmanager_base/test/netstatsmanager/unittest/net_stats_manager_test/
H A Dnet_stats_network_test.cpp29 NetStatsNetwork network; in GetNetworkData() local
30 network.type_ = TEST_TYPE; in GetNetworkData()
31 network.startTime_ = TEST_START_TIME; in GetNetworkData()
32 network.endTime_ = TEST_END_TIME; in GetNetworkData()
33 network.simId_ = TEST_SIM_ID; in GetNetworkData()
34 return network; in GetNetworkData()
39 network->type_ = TEST_TYPE; in GetSptrNetworkData()
40 network->startTime_ = TEST_START_TIME; in GetSptrNetworkData()
41 network->endTime_ = TEST_END_TIME; in GetSptrNetworkData()
42 network->simId_ = TEST_SIM_ID; in GetSptrNetworkData()
[all …]
/ohos5.0/drivers/hdf_core/adapter/khdf/linux/model/network/wifi/
H A Dhdfwifi.mk15 HDF_WIFI_FRAMEWORKS_ROOT = $(HDF_DIR_PREFIX)/framework/model/network/wifi
43 -I$(srctree)/drivers/hdf/framework/model/network/wifi/core/components/sta \
44 -I$(srctree)/drivers/hdf/framework/model/network/wifi/core/components/p2p \
45 -I$(srctree)/drivers/hdf/framework/model/network/wifi/include \
46 -I$(srctree)/drivers/hdf/framework/model/network/wifi/core \
47 -I$(srctree)/drivers/hdf/framework/model/network/wifi/core/module \
48 -I$(srctree)/drivers/hdf/framework/model/network/common/netdevice \
49 -I$(srctree)/drivers/hdf/framework/model/network/wifi/platform/include \
51 -I$(srctree)/drivers/hdf/framework/model/network/wifi/client/include \
54 -I$(srctree)/drivers/hdf/frameworks/model/network/wifi/bus
[all …]
/ohos5.0/docs/en/application-dev/reference/apis-network-kit/
H A Djs-apis-system-network.md1 # @system.network (Network State)
12 import network from '@system.network';
23 ## network.getType<sup>3+</sup>
31 Obtains the network type of this device.
54 network.getType({
56 console.log('success get network type:' + data.type);
64 ## network.subscribe<sup>3+</sup>
94 network.subscribe({
104 ## network.unsubscribe<sup>3+</sup>
115 import network from '@system.network';
[all …]
H A D_net_conn___net_conn_callback.md5 Defines network status callbacks.
18 | [onNetworkAvailable](#onnetworkavailable) | Called when the network is available.|
19 | [onNetCapabilitiesChange](#onnetcapabilitieschange) | Called when the network capabilities change…
20 | [onConnetionProperties](#onconnetionproperties) | Called when network connection properties chang…
21 | [onNetLost](#onnetlost) | Called when the network is disconnected.|
22 …able](#onnetunavailable) | Called when the network is unavailable. This callback is triggered when…
36 Called when the network is available.
56 Called when the network capabilities change.
77 Called when network connection properties change.
98 Called when the network is disconnected.
[all …]
H A D_net_connection.md6 Provides the C APIs of the network connection module for network management.
18 …h.md) | Provides the C APIs of the network connection module for network management.<br>**File to …
34 …et_conn___net_specifier.md) | Defines the network feature set, including a network capability set …
65 …ier](#netconn_netspecifier) | Defines the network feature set, including a network capability set …
270 Defines network status callbacks.
283 Defines the network feature set, including a network capability set and a network ID.
460 Obtains the link information of a data network.
498 Obtains the default network proxy.
531 Obtains the default activated data network.
568 Obtains the capabilities of a data network.
[all …]
/ohos5.0/foundation/communication/dsoftbus/adapter/common/bus_center/
H A Dbus_center_adapter.gni40 "$adapter_bus_center_path/network/lnn_linkwatch_virtual.c",
41 "$adapter_bus_center_path/network/lnn_lwip_monitor.c",
55 "$adapter_bus_center_path/network/lnn_linkwatch.c",
56 "$adapter_bus_center_path/network/lnn_lwip_monitor_virtual.c",
57 "$adapter_bus_center_path/network/lnn_netlink_monitor.c",
76 "$adapter_bus_center_path/network/lnn_linkwatch_virtual.c",
102 "$adapter_bus_center_path/network/lnn_netmanager_listener.cpp",
122 "$adapter_bus_center_path/network/lnn_linkwatch.c",
123 "$adapter_bus_center_path/network/lnn_lwip_monitor_virtual.c",
124 "$adapter_bus_center_path/network/lnn_netlink_monitor.c",
[all …]
/ohos5.0/foundation/filemanagement/dfs_service/test/unittests/distributed_file_daemon/
H A DBUILD.gn44 "${services_path}/distributedfiledaemon/src/network/devsl_dispatcher.cpp",
45 "${services_path}/distributedfiledaemon/src/network/kernel_talker.cpp",
46 "${services_path}/distributedfiledaemon/src/network/network_agent_template.cpp",
47 "${services_path}/distributedfiledaemon/src/network/session_pool.cpp",
48 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_agent.cpp",
139 "${services_path}/distributedfiledaemon/src/network/devsl_dispatcher.cpp",
140 "${services_path}/distributedfiledaemon/src/network/kernel_talker.cpp",
142 "${services_path}/distributedfiledaemon/src/network/session_pool.cpp",
232 "${services_path}/distributedfiledaemon/src/network/devsl_dispatcher.cpp",
233 "${services_path}/distributedfiledaemon/src/network/kernel_talker.cpp",
[all …]
/ohos5.0/foundation/filemanagement/dfs_service/test/moduletest/
H A DBUILD.gn51 "${services_path}/distributedfiledaemon/src/network/devsl_dispatcher.cpp",
52 "${services_path}/distributedfiledaemon/src/network/kernel_talker.cpp",
53 "${services_path}/distributedfiledaemon/src/network/network_agent_template.cpp",
54 "${services_path}/distributedfiledaemon/src/network/session_pool.cpp",
55 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_agent.cpp",
59 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_file_send_listener.cpp",
60 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler.cpp",
61 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_handler_asset.cpp",
62 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session.cpp",
64 "${services_path}/distributedfiledaemon/src/network/softbus/softbus_session_listener.cpp",
[all …]
/ohos5.0/foundation/communication/dhcp/services/dhcp_server/src/
H A Daddress_utils.cpp47 uint32_t network = NetworkAddress(ip, netmask); in FirstIpAddress() local
48 uint32_t firstIp = htonl(network) + 1; in FirstIpAddress()
54 uint32_t network = NetworkAddress(currIp, netmask); in NextIpAddress() local
72 uint32_t FirstNetIpAddress(uint32_t network) in FirstNetIpAddress() argument
74 uint32_t firstIp = htonl(network) + 1; in FirstNetIpAddress()
80 uint32_t network = NetworkAddress(ip, netmask); in LastIpAddress() local
106 uint32_t network = NetworkAddress(ip, netmask); in IpInRange() local
109 if (network != firstNet || firstNet != secondNet) { in IpInRange()
120 uint32_t network = NetworkAddress(ip, netmask); in BroadCastAddress() local
271 uint32_t NetworkToHost(uint32_t network) in NetworkToHost() argument
[all …]
/ohos5.0/foundation/communication/netmanager_base/
H A DREADME.md41 …function hasDefaultNet(): Promise\<boolean>; |Checks whether the default network is available. Thi…
44network, and **timeout** specifies the timeout interval in ms. **timeout** is configurable only wh…
64 …ncCallback\<void>): void; |Registers an observer for the default network or the network specified …
65 …allback\<void>): void; |Unregisters the observer for the default network or the network specified …
67 …tBackgroundPolicy(allow: boolean): Promise\<void>; | Sets the background network policy. This API …
77 …n getNetQuotaPolicies(): Promise\<Array\<NetQuotaPolicy>>; | Obtains the network quota policy. Thi…
80 …ack\<void>): void; | Restores all policies, including cellular network, background network, firewa…
81 …): Promise\<void>; | Restores all policies, including cellular network, background network, firewa…
92 …lback\<void>): void; | Resets all policies, including cellular network, background network, firewa…
93 …ng): Promise\<void>; | Resets all policies, including cellular network, background network, firewa…
[all …]
/ohos5.0/foundation/filemanagement/dfs_service/services/distributedfiledaemon/
H A DBUILD.gn28 "include/network/softbus",
57 "src/network/devsl_dispatcher.cpp",
58 "src/network/kernel_talker.cpp",
59 "src/network/network_agent_template.cpp",
60 "src/network/session_pool.cpp",
61 "src/network/softbus/softbus_agent.cpp",
66 "src/network/softbus/softbus_handler.cpp",
67 "src/network/softbus/softbus_handler_asset.cpp",
68 "src/network/softbus/softbus_session.cpp",
70 "src/network/softbus/softbus_session_listener.cpp",
[all …]
/ohos5.0/base/request/request/services/src/manage/scheduler/state/
H A Drecorder.rs16 use crate::manage::network::NetworkState;
22 pub(super) network: NetworkState,
32 network: NetworkState::Offline, in new()
40 network: NetworkState, in init()
46 sql_list.add_network_change(&network); in init()
54 self.network = network; in init()
67 if info == self.network { in update_network()
73 self.network = info; in update_network()
/ohos5.0/docs/en/application-dev/reference/apis-telephony-kit/
H A D_telephony__network_state.md6 Defines network status information.
20 …_](#longoperatorname_) [TELEPHONY_MAX_OPERATOR_LEN] | Long carrier name of the registered network.|
21 …](#shortoperatorname_)[TELEPHONY_MAX_OPERATOR_LEN] | Short carrier name of the registered network.|
22 …lmnNumeric_](#plmnnumeric_)[TELEPHONY_MAX_PLMN_NUMERIC_LEN] | PLMN code of the registered network.|
26 | [nsaState_](#nsastate_) | NSA network registration status of the device.|
42 Long carrier name of the registered network.
53 Short carrier name of the registered network.
64 PLMN code of the registered network.
105 NSA network registration status of the device.
/ohos5.0/drivers/hdf_core/adapter/khdf/liteos/test/
H A Dtest_lite.mk53 HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/adapter/khdf/liteos/network/include
74 HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/model/network/wifi/include
75 HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/model/network/common/netdevice
76 HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/model/network/wifi/platform/src/qos
78 HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/model/network/wifi/include
79 HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/model/network/wifi/core/module
80 HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/model/network/wifi/platform/include
81 HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/model/network/wifi/platform/include/…
82 HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/model/network/wifi/platform/src
83 HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/model/network/wifi/core/components/s…
[all …]
/ohos5.0/base/customization/enterprise_device_management/test/unittest/services/edm_plugin/
H A DBUILD.gn32 "../../../../services/edm_plugin/include/network",
34 "../../../../services/edm_plugin/include/network/rule",
36 "./include/network",
37 "./include/network/executer",
49 "./src/network/executer/executer_utils_mock.cpp",
150 "./src/network/executer/executer_utils_test.cpp",
152 "./src/network/executer/iexecuter_test.cpp",
153 "./src/network/iptables_manager_test.cpp",
154 "./src/network/rule/chain_rule_test.cpp",
155 "./src/network/rule/domain_chain_rule_test.cpp",
[all …]

12345678910>>...31