Home
last modified time | relevance | path

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

/system/netd/server/
DVirtualNetwork.cpp26 VirtualNetwork::VirtualNetwork(unsigned netId, bool hasDns, bool secure) : in VirtualNetwork() function in VirtualNetwork
30 VirtualNetwork::~VirtualNetwork() { in ~VirtualNetwork()
33 bool VirtualNetwork::getHasDns() const { in getHasDns()
37 bool VirtualNetwork::isSecure() const { in isSecure()
41 bool VirtualNetwork::appliesToUser(uid_t uid) const { in appliesToUser()
46 int VirtualNetwork::maybeCloseSockets(bool add, const UidRanges& uidRanges, in maybeCloseSockets()
66 int VirtualNetwork::addUsers(const UidRanges& uidRanges, const std::set<uid_t>& protectableUsers) { in addUsers()
80 int VirtualNetwork::removeUsers(const UidRanges& uidRanges, in removeUsers()
95 Network::Type VirtualNetwork::getType() const { in getType()
99 int VirtualNetwork::addInterface(const std::string& interface) { in addInterface()
[all …]
DVirtualNetwork.h32 class VirtualNetwork : public Network {
34 VirtualNetwork(unsigned netId, bool hasDns, bool secure);
35 virtual ~VirtualNetwork();
DNetworkController.cpp203 !static_cast<VirtualNetwork *>(network)->getHasDns()) { in getNetworkForDns()
210 VirtualNetwork* virtualNetwork = getVirtualNetworkForUserLocked(uid); in getNetworkForDns()
227 if (VirtualNetwork* virtualNetwork = getVirtualNetworkForUserLocked(uid)) { in getNetworkForUser()
249 VirtualNetwork* virtualNetwork = getVirtualNetworkForUserLocked(uid); in getNetworkForConnect()
353 mNetworks[netId] = new VirtualNetwork(netId, hasDns, secure); in createVirtualNetwork()
476 if (int ret = static_cast<VirtualNetwork*>(network)->addUsers(uidRanges, mProtectableUsers)) { in addUsersToNetwork()
493 if (int ret = static_cast<VirtualNetwork*>(network)->removeUsers(uidRanges, in removeUsersFromNetwork()
562 VirtualNetwork* NetworkController::getVirtualNetworkForUserLocked(uid_t uid) const { in getVirtualNetworkForUserLocked()
565 VirtualNetwork* virtualNetwork = static_cast<VirtualNetwork*>(entry.second); in getVirtualNetworkForUserLocked()
598 return static_cast<VirtualNetwork*>(network)->appliesToUser(uid) ? 0 : -EPERM; in checkUserNetworkAccessLocked()
[all …]
DNetworkController.h34 class VirtualNetwork; variable
99 VirtualNetwork* getVirtualNetworkForUserLocked(uid_t uid) const;
DAndroid.mk104 VirtualNetwork.cpp \