Home
last modified time | relevance | path

Searched refs:PhysicalNetwork (Results 1 – 5 of 5) sorted by relevance

/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/
H A Dphysical_network.cpp26 PhysicalNetwork::PhysicalNetwork(uint16_t netId, NetworkPermission permission) in PhysicalNetwork() function in OHOS::nmd::PhysicalNetwork
31 void PhysicalNetwork::AddDefault() in AddDefault()
41 void PhysicalNetwork::RemoveDefault() in RemoveDefault()
51 int32_t PhysicalNetwork::AddInterface(std::string &interfaceName) in AddInterface()
72 int32_t PhysicalNetwork::RemoveInterface(std::string &interfaceName) in RemoveInterface()
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/include/netsys/
H A Dphysical_network.h27 class PhysicalNetwork : public NetsysNetwork {
29 PhysicalNetwork(uint16_t netId, NetworkPermission permission);
30 virtual ~PhysicalNetwork() = default;
/ohos5.0/foundation/communication/netmanager_base/test/netmanagernative/unittest/netsys_manager_test/
H A Dnetsys_network_test.cpp50 PhysicalNetwork physicNetwork(NET_ID, NetworkPermission::PERMISSION_NETWORK);
61 PhysicalNetwork physicNetwork(NET_ID, NetworkPermission::PERMISSION_SYSTEM);
H A Dphysical_network_test.cpp42 static inline std::shared_ptr<PhysicalNetwork> instance_ = nullptr;
47 … instance_ = std::make_shared<PhysicalNetwork>(TEST_NETID, NetworkPermission::PERMISSION_NETWORK); in SetUpTestCase()
59 PhysicalNetwork physicNetwork(2, NetworkPermission::PERMISSION_NETWORK);
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/src/manager/
H A Dconn_manager.cpp108 std::shared_ptr<NetsysNetwork> network = std::make_shared<PhysicalNetwork>(netId, permission); in CreatePhysicalNetwork()
130 static_cast<PhysicalNetwork *>(nw.get())->RemoveDefault(); in DestroyNetwork()
154 static_cast<PhysicalNetwork *>(nw.get())->AddDefault(); in SetDefaultNetwork()
165 static_cast<PhysicalNetwork *>(nw.get())->RemoveDefault(); in SetDefaultNetwork()
182 static_cast<PhysicalNetwork *>(nw.get())->RemoveDefault(); in ClearDefaultNetwork()