Searched refs:appliesToUidRange (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/tests/net/common/java/android/net/ |
D | NetworkCapabilitiesTest.java | 254 assertTrue(netCap.appliesToUidRange(new UidRange(50, 100))); in testSetUids() 255 assertTrue(netCap.appliesToUidRange(new UidRange(70, 72))); in testSetUids() 256 assertTrue(netCap.appliesToUidRange(new UidRange(3500, 3912))); in testSetUids() 257 assertFalse(netCap.appliesToUidRange(new UidRange(1, 100))); in testSetUids() 258 assertFalse(netCap.appliesToUidRange(new UidRange(49, 100))); in testSetUids() 259 assertFalse(netCap.appliesToUidRange(new UidRange(1, 10))); in testSetUids() 260 assertFalse(netCap.appliesToUidRange(new UidRange(60, 101))); in testSetUids() 261 assertFalse(netCap.appliesToUidRange(new UidRange(60, 3400))); in testSetUids() 286 assertTrue(netCap.appliesToUidRange(new UidRange(1, 100000))); in testSetUids() 288 assertFalse(netCap2.appliesToUidRange(new UidRange(1, 100000))); in testSetUids()
|
/frameworks/base/core/java/android/net/ |
D | NetworkCapabilities.java | 1447 if (!nc.appliesToUidRange(requiredRange)) { in satisfiedByUids() 1463 public boolean appliesToUidRange(@Nullable UidRange requiredRange) { in appliesToUidRange() method in NetworkCapabilities
|