Lines Matching refs:NetworkController
63 const unsigned NetworkController::MIN_OEM_ID = 1;
64 const unsigned NetworkController::MAX_OEM_ID = 50;
65 const unsigned NetworkController::DUMMY_NET_ID = 51;
67 const unsigned NetworkController::LOCAL_NET_ID = 99;
70 class NetworkController::DelegateImpl : public PhysicalNetwork::Delegate {
72 explicit DelegateImpl(NetworkController* networkController);
87 NetworkController* const mNetworkController;
90 NetworkController::DelegateImpl::DelegateImpl(NetworkController* networkController) : in DelegateImpl()
94 NetworkController::DelegateImpl::~DelegateImpl() { in ~DelegateImpl()
97 int NetworkController::DelegateImpl::modifyFallthrough(unsigned vpnNetId, in modifyFallthrough()
120 int NetworkController::DelegateImpl::addFallthrough(const std::string& physicalInterface, in addFallthrough()
125 int NetworkController::DelegateImpl::removeFallthrough(const std::string& physicalInterface, in removeFallthrough()
130 int NetworkController::DelegateImpl::modifyFallthrough(const std::string& physicalInterface, in modifyFallthrough()
142 NetworkController::NetworkController() : in NetworkController() function in android::net::NetworkController
143 mDelegateImpl(new NetworkController::DelegateImpl(this)), mDefaultNetId(NETID_UNSET), in NetworkController()
149 unsigned NetworkController::getDefaultNetwork() const { in getDefaultNetwork()
154 int NetworkController::setDefaultNetwork(unsigned netId) { in setDefaultNetwork()
191 uint32_t NetworkController::getNetworkForDns(unsigned* netId, uid_t uid) const { in getNetworkForDns()
230 unsigned NetworkController::getNetworkForUser(uid_t uid) const { in getNetworkForUser()
252 unsigned NetworkController::getNetworkForConnect(uid_t uid) const { in getNetworkForConnect()
261 void NetworkController::getNetworkContext( in getNetworkContext()
308 unsigned NetworkController::getNetworkForInterface(const char* interface) const { in getNetworkForInterface()
318 bool NetworkController::isVirtualNetwork(unsigned netId) const { in isVirtualNetwork()
324 int NetworkController::createPhysicalNetwork(unsigned netId, Permission permission) { in createPhysicalNetwork()
348 int NetworkController::createVirtualNetwork(unsigned netId, bool hasDns, bool secure) { in createVirtualNetwork()
367 int NetworkController::destroyNetwork(unsigned netId) { in destroyNetwork()
408 int NetworkController::addInterfaceToNetwork(unsigned netId, const char* interface) { in addInterfaceToNetwork()
424 int NetworkController::removeInterfaceFromNetwork(unsigned netId, const char* interface) { in removeInterfaceFromNetwork()
434 Permission NetworkController::getPermissionForUser(uid_t uid) const { in getPermissionForUser()
439 void NetworkController::setPermissionForUsers(Permission permission, in setPermissionForUsers()
447 int NetworkController::checkUserNetworkAccess(uid_t uid, unsigned netId) const { in checkUserNetworkAccess()
452 int NetworkController::setPermissionForNetworks(Permission permission, in setPermissionForNetworks()
473 int NetworkController::addUsersToNetwork(unsigned netId, const UidRanges& uidRanges) { in addUsersToNetwork()
490 int NetworkController::removeUsersFromNetwork(unsigned netId, const UidRanges& uidRanges) { in removeUsersFromNetwork()
508 int NetworkController::addRoute(unsigned netId, const char* interface, const char* destination, in addRoute()
513 int NetworkController::removeRoute(unsigned netId, const char* interface, const char* destination, in removeRoute()
518 bool NetworkController::canProtect(uid_t uid) const { in canProtect()
524 void NetworkController::allowProtect(const std::vector<uid_t>& uids) { in allowProtect()
529 void NetworkController::denyProtect(const std::vector<uid_t>& uids) { in denyProtect()
536 void NetworkController::dump(DumpWriter& dw) { in dump()
567 bool NetworkController::isValidNetwork(unsigned netId) const { in isValidNetwork()
572 Network* NetworkController::getNetworkLocked(unsigned netId) const { in getNetworkLocked()
577 VirtualNetwork* NetworkController::getVirtualNetworkForUserLocked(uid_t uid) const { in getVirtualNetworkForUserLocked()
589 Permission NetworkController::getPermissionForUserLocked(uid_t uid) const { in getPermissionForUserLocked()
597 int NetworkController::checkUserNetworkAccessLocked(uid_t uid, unsigned netId) const { in checkUserNetworkAccessLocked()
624 int NetworkController::modifyRoute(unsigned netId, const char* interface, const char* destination, in modifyRoute()
657 int NetworkController::modifyFallthroughLocked(unsigned vpnNetId, bool add) { in modifyFallthroughLocked()