Lines Matching refs:uidRanges
90 for (const auto& [priority, uidRanges] : mUidRangeMap) { in appliesToUser()
91 if (uidRanges.hasUid(uid)) { in appliesToUser()
99 void Network::addToUidRangeMap(const UidRanges& uidRanges, uint32_t subPriority) { in addToUidRangeMap() argument
102 iter->second.add(uidRanges); in addToUidRangeMap()
104 mUidRangeMap[subPriority] = uidRanges; in addToUidRangeMap()
108 void Network::removeFromUidRangeMap(const UidRanges& uidRanges, uint32_t subPriority) { in removeFromUidRangeMap() argument
111 iter->second.remove(uidRanges); in removeFromUidRangeMap()
120 bool Network::canAddUidRanges(const UidRanges& uidRanges, uint32_t subPriority) const { in canAddUidRanges() argument
121 if (uidRanges.overlapsSelf()) { in canAddUidRanges()
122 ALOGE("uid range %s overlaps self", uidRanges.toString().c_str()); in canAddUidRanges()
127 if (iter != mUidRangeMap.end() && uidRanges.overlaps(iter->second)) { in canAddUidRanges()
128 ALOGE("uid range %s overlaps priority %u %s", uidRanges.toString().c_str(), subPriority, in canAddUidRanges()