Searched refs:appliesToUidRange (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/tests/net/common/java/android/net/ |
D | NetworkCapabilitiesTest.java | 222 assertTrue(netCap.appliesToUidRange(new UidRange(50, 100))); in testSetUids() 223 assertTrue(netCap.appliesToUidRange(new UidRange(70, 72))); in testSetUids() 224 assertTrue(netCap.appliesToUidRange(new UidRange(3500, 3912))); in testSetUids() 225 assertFalse(netCap.appliesToUidRange(new UidRange(1, 100))); in testSetUids() 226 assertFalse(netCap.appliesToUidRange(new UidRange(49, 100))); in testSetUids() 227 assertFalse(netCap.appliesToUidRange(new UidRange(1, 10))); in testSetUids() 228 assertFalse(netCap.appliesToUidRange(new UidRange(60, 101))); in testSetUids() 229 assertFalse(netCap.appliesToUidRange(new UidRange(60, 3400))); in testSetUids() 254 assertTrue(netCap.appliesToUidRange(new UidRange(1, 100000))); in testSetUids() 256 assertFalse(netCap2.appliesToUidRange(new UidRange(1, 100000))); in testSetUids()
|
/frameworks/base/core/java/android/net/ |
D | NetworkCapabilities.java | 1224 if (!nc.appliesToUidRange(requiredRange)) { in satisfiedByUids() 1240 public boolean appliesToUidRange(@Nullable UidRange requiredRange) { in appliesToUidRange() method in NetworkCapabilities
|