Home
last modified time | relevance | path

Searched refs:UidRanges (Results 1 – 22 of 22) sorted by relevance

/system/netd/server/
DUidRanges.h29 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;
DUidRanges.cpp56 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()
DNetwork.h27 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;
DUnreachableNetwork.cpp29 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()
DUnreachableNetwork.h26 [[nodiscard]] int addUsers(const UidRanges& uidRanges, uint32_t subPriority) override;
27 [[nodiscard]] int removeUsers(const UidRanges& uidRanges, uint32_t subPriority) override;
DVirtualNetwork.cpp34 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()
DVirtualNetwork.h36 [[nodiscard]] int addUsers(const UidRanges& uidRanges, uint32_t subPriority) override;
37 [[nodiscard]] int removeUsers(const UidRanges& uidRanges, uint32_t subPriority) override;
DNetwork.cpp99 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()
DPhysicalNetwork.h45 [[nodiscard]] int addUsers(const UidRanges& uidRanges, uint32_t subPriority) override;
46 [[nodiscard]] int removeUsers(const UidRanges& uidRanges, uint32_t subPriority) override;
DPhysicalNetwork.cpp161 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()
DNetworkController.h76 class UidRanges; variable
122 [[nodiscard]] int addUsersToNetwork(unsigned netId, const UidRanges& uidRanges,
124 [[nodiscard]] int removeUsersFromNetwork(unsigned netId, const UidRanges& uidRanges,
DRouteController.h79 class UidRanges; variable
134 [[nodiscard]] static int addUsersToRejectNonSecureNetworkRule(const UidRanges& uidRanges);
135 [[nodiscard]] static int removeUsersFromRejectNonSecureNetworkRule(const UidRanges& uidRanges);
DRouteController.cpp673 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()
DSockDiag.h77 int destroySockets(const UidRanges& uidRanges, const std::set<uid_t>& skipUids,
DNetdNativeService.cpp404 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()
DAndroid.bp210 "UidRanges.cpp",
323 "UidRanges.cpp",
DNetworkController.cpp619 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()
DSockDiag.cpp425 int SockDiag::destroySockets(const UidRanges& uidRanges, const std::set<uid_t>& skipUids, in destroySockets()
DSockDiagTest.cpp389 UidRanges uidRanges; in destroySockets()
DNdcDispatcher.cpp1188 UidRanges uidRanges; in runCommand()
/system/netd/tests/benchmarks/
DAndroid.bp26 "netd_aidl_interface-lateststable-cpp", // system/netd/server/UidRanges.h
/system/netd/tests/
Dbinder_test.cpp128 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 …]