/system/netd/server/ |
D | UidRanges.h | 29 class UidRanges { 34 UidRanges() {} in UidRanges() function 35 UidRanges(const std::vector<android::net::UidRangeParcel>& ranges); 43 void add(const UidRanges& other); 44 void remove(const UidRanges& other); 49 bool overlaps(const UidRanges& other) const;
|
D | UidRanges.cpp | 56 bool UidRanges::hasUid(uid_t uid) const { in hasUid() 69 const std::vector<UidRangeParcel>& UidRanges::getRanges() const { in getRanges() 73 bool UidRanges::parseFrom(int argc, char* argv[]) { in parseFrom() 114 UidRanges::UidRanges(const std::vector<UidRangeParcel>& ranges) { in UidRanges() function in android::net::UidRanges 119 void UidRanges::add(const UidRanges& other) { in add() 124 void UidRanges::remove(const UidRanges& other) { in remove() 130 bool UidRanges::isOverlapped(const UidRangeParcel& r1, const UidRangeParcel& r2) const { in isOverlapped() 134 bool UidRanges::overlapsSelf() const { in overlapsSelf() 146 bool UidRanges::overlaps(const UidRanges& other) const { in overlaps() 157 std::string UidRanges::toString() const { in toString()
|
D | Network.h | 27 typedef std::map<uint32_t, UidRanges> UidRangeMap; 51 [[nodiscard]] virtual int addUsers(const UidRanges&, uint32_t /*subPriority*/) { in addUsers() argument 54 [[nodiscard]] virtual int removeUsers(const UidRanges&, uint32_t /*subPriority*/) { in removeUsers() argument 63 virtual void addToUidRangeMap(const UidRanges& uidRanges, uint32_t subPriority); 64 virtual void removeFromUidRangeMap(const UidRanges& uidRanges, uint32_t subPriority); 68 bool canAddUidRanges(const UidRanges& uidRanges, uint32_t subPriority) const; 73 std::map<uint32_t, UidRanges> mUidRangeMap;
|
D | UnreachableNetwork.cpp | 29 int UnreachableNetwork::addUsers(const UidRanges& uidRanges, uint32_t subPriority) { in addUsers() 43 int UnreachableNetwork::removeUsers(const UidRanges& uidRanges, uint32_t subPriority) { in removeUsers() 57 return priority >= UidRanges::DEFAULT_SUB_PRIORITY && in isValidSubPriority() 58 priority <= UidRanges::LOWEST_SUB_PRIORITY; in isValidSubPriority()
|
D | UnreachableNetwork.h | 26 [[nodiscard]] int addUsers(const UidRanges& uidRanges, uint32_t subPriority) override; 27 [[nodiscard]] int removeUsers(const UidRanges& uidRanges, uint32_t subPriority) override;
|
D | VirtualNetwork.cpp | 34 int VirtualNetwork::addUsers(const UidRanges& uidRanges, uint32_t subPriority) { in addUsers() 51 int VirtualNetwork::removeUsers(const UidRanges& uidRanges, uint32_t subPriority) { in removeUsers() 94 return priority == UidRanges::DEFAULT_SUB_PRIORITY; in isValidSubPriority()
|
D | VirtualNetwork.h | 36 [[nodiscard]] int addUsers(const UidRanges& uidRanges, uint32_t subPriority) override; 37 [[nodiscard]] int removeUsers(const UidRanges& uidRanges, uint32_t subPriority) override;
|
D | Network.cpp | 99 void Network::addToUidRangeMap(const UidRanges& uidRanges, uint32_t subPriority) { in addToUidRangeMap() 108 void Network::removeFromUidRangeMap(const UidRanges& uidRanges, uint32_t subPriority) { in removeFromUidRangeMap() 120 bool Network::canAddUidRanges(const UidRanges& uidRanges, uint32_t subPriority) const { in canAddUidRanges()
|
D | PhysicalNetwork.h | 45 [[nodiscard]] int addUsers(const UidRanges& uidRanges, uint32_t subPriority) override; 46 [[nodiscard]] int removeUsers(const UidRanges& uidRanges, uint32_t subPriority) override;
|
D | PhysicalNetwork.cpp | 161 int PhysicalNetwork::addUsers(const UidRanges& uidRanges, uint32_t subPriority) { in addUsers() 178 int PhysicalNetwork::removeUsers(const UidRanges& uidRanges, uint32_t subPriority) { in removeUsers() 234 return priority >= UidRanges::DEFAULT_SUB_PRIORITY && in isValidSubPriority() 235 priority <= UidRanges::LOWEST_SUB_PRIORITY; in isValidSubPriority()
|
D | NetworkController.h | 76 class UidRanges; variable 122 [[nodiscard]] int addUsersToNetwork(unsigned netId, const UidRanges& uidRanges, 124 [[nodiscard]] int removeUsersFromNetwork(unsigned netId, const UidRanges& uidRanges,
|
D | RouteController.h | 79 class UidRanges; variable 134 [[nodiscard]] static int addUsersToRejectNonSecureNetworkRule(const UidRanges& uidRanges); 135 [[nodiscard]] static int removeUsersFromRejectNonSecureNetworkRule(const UidRanges& uidRanges);
|
D | RouteController.cpp | 673 UidRanges::DEFAULT_SUB_PRIORITY, ACTION_ADD)) { in addLocalNetworkRules() 705 INVALID_UID, UidRanges::DEFAULT_SUB_PRIORITY, in configureDummyNetwork() 739 INVALID_UID, INVALID_UID, UidRanges::DEFAULT_SUB_PRIORITY, in modifyLocalNetwork() 828 UidRanges::DEFAULT_SUB_PRIORITY, add)) { in modifyPhysicalNetwork() 832 UidRanges::DEFAULT_SUB_PRIORITY, add)) { in modifyPhysicalNetwork() 935 [[nodiscard]] static int modifyRejectNonSecureNetworkRule(const UidRanges& uidRanges, bool add) { in modifyRejectNonSecureNetworkRule() 988 UidRanges::DEFAULT_SUB_PRIORITY, add); in modifyVirtualNetwork() 1257 int RouteController::addUsersToRejectNonSecureNetworkRule(const UidRanges& uidRanges) { in addUsersToRejectNonSecureNetworkRule() 1261 int RouteController::removeUsersFromRejectNonSecureNetworkRule(const UidRanges& uidRanges) { in removeUsersFromRejectNonSecureNetworkRule()
|
D | SockDiag.h | 77 int destroySockets(const UidRanges& uidRanges, const std::set<uid_t>& skipUids,
|
D | NetdNativeService.cpp | 404 int ret = gCtls->netCtrl.addUsersToNetwork(netId, UidRanges(uidRangeArray), in networkAddUidRanges() 405 UidRanges::DEFAULT_SUB_PRIORITY); in networkAddUidRanges() 413 int ret = gCtls->netCtrl.removeUsersFromNetwork(netId, UidRanges(uidRangeArray), in networkRemoveUidRanges() 414 UidRanges::DEFAULT_SUB_PRIORITY); in networkRemoveUidRanges() 420 int ret = gCtls->netCtrl.addUsersToNetwork(config.netId, UidRanges(config.uidRanges), in networkAddUidRangesParcel() 427 int ret = gCtls->netCtrl.removeUsersFromNetwork(config.netId, UidRanges(config.uidRanges), in networkRemoveUidRangesParcel() 440 UidRanges uidRanges(uidRangeArray); in networkRejectNonSecureVpn() 461 UidRanges uidRanges(uids); in socketDestroy()
|
D | Android.bp | 210 "UidRanges.cpp", 323 "UidRanges.cpp",
|
D | NetworkController.cpp | 619 int NetworkController::addUsersToNetwork(unsigned netId, const UidRanges& uidRanges, in addUsersToNetwork() 629 int NetworkController::removeUsersFromNetwork(unsigned netId, const UidRanges& uidRanges, in removeUsersFromNetwork() 801 unsigned bestSubPriority = UidRanges::LOWEST_SUB_PRIORITY + 1; in getPhysicalOrUnreachableNetworkForUserLocked()
|
D | SockDiag.cpp | 425 int SockDiag::destroySockets(const UidRanges& uidRanges, const std::set<uid_t>& skipUids, in destroySockets()
|
D | SockDiagTest.cpp | 389 UidRanges uidRanges; in destroySockets()
|
D | NdcDispatcher.cpp | 1188 UidRanges uidRanges; in runCommand()
|
/system/netd/tests/benchmarks/ |
D | Android.bp | 26 "netd_aidl_interface-lateststable-cpp", // system/netd/server/UidRanges.h
|
/system/netd/tests/ |
D | binder_test.cpp | 128 using android::net::UidRanges; 4039 constexpr int SUB_PRIORITY_1 = UidRanges::DEFAULT_SUB_PRIORITY + 1; 4040 constexpr int SUB_PRIORITY_2 = UidRanges::DEFAULT_SUB_PRIORITY + 2; 4156 UidRanges::DEFAULT_SUB_PRIORITY); in TEST_F() 4159 UidRanges::DEFAULT_SUB_PRIORITY); in TEST_F() 4162 UidRanges::DEFAULT_SUB_PRIORITY); in TEST_F() 4166 UidRanges::DEFAULT_SUB_PRIORITY); in TEST_F() 4169 UidRanges::DEFAULT_SUB_PRIORITY); in TEST_F() 4172 UidRanges::DEFAULT_SUB_PRIORITY); in TEST_F() 4502 UidRanges::DEFAULT_SUB_PRIORITY - 1); in TEST_F() [all …]
|