Searched refs:PhysicalNetwork (Results 1 – 5 of 5) sorted by relevance
26 PhysicalNetwork::PhysicalNetwork(uint16_t netId, NetworkPermission permission) in PhysicalNetwork() function in OHOS::nmd::PhysicalNetwork31 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()
27 class PhysicalNetwork : public NetsysNetwork {29 PhysicalNetwork(uint16_t netId, NetworkPermission permission);30 virtual ~PhysicalNetwork() = default;
50 PhysicalNetwork physicNetwork(NET_ID, NetworkPermission::PERMISSION_NETWORK);61 PhysicalNetwork physicNetwork(NET_ID, NetworkPermission::PERMISSION_SYSTEM);
42 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);
108 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()