summaryrefslogtreecommitdiff
path: root/server/UidRanges.h
diff options
context:
space:
mode:
Diffstat (limited to 'server/UidRanges.h')
-rw-r--r--server/UidRanges.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/UidRanges.h b/server/UidRanges.h
index f3223905..99e7a99d 100644
--- a/server/UidRanges.h
+++ b/server/UidRanges.h
@@ -28,6 +28,9 @@ namespace net {
class UidRanges {
public:
+ static constexpr int DEFAULT_SUB_PRIORITY = 0;
+ static constexpr int LOWEST_SUB_PRIORITY = 999;
+
UidRanges() {}
UidRanges(const std::vector<android::net::UidRangeParcel>& ranges);
@@ -44,6 +47,7 @@ public:
bool overlapsSelf() const;
// check if this object has uid overlap with the input object.
bool overlaps(const UidRanges& other) const;
+ bool empty() const { return mRanges.empty(); }
private:
// a utility to check if two UidRangeParcels have uid overlap.