Home
last modified time | relevance | path

Searched refs:range2 (Results 1 – 17 of 17) sorted by relevance

/packages/modules/GeoTZ/s2storage/src/test/java/com/android/storage/s2/
DS2LevelRangeTest.java56 S2LevelRange range2 = new S2LevelRange(cellId(12, 1, 3), cellId(12, 1, 1)); in contains() local
57 assertTrue(range2.contains(cellId(12, 1, 0))); in contains()
58 assertFalse(range2.contains(cellId(12, 1, 1))); in contains()
59 assertFalse(range2.contains(cellId(12, 1, 2))); in contains()
60 assertTrue(range2.contains(cellId(12, 1, 3))); in contains()
61 assertTrue(range2.contains(cellId(12, 1, 4))); in contains()
88 S2LevelRange range2 = new S2LevelRange(cellId(12, 1, 3), cellId(12, 1, 1)); in overlaps() local
89 assertTrue(range2.overlaps(range2)); in overlaps()
91 assertTrue(range2.overlaps(new S2LevelRange(cellId(12, 1, 0), cellId(12, 1, 1)))); in overlaps()
92 assertTrue(range2.overlaps(new S2LevelRange(cellId(12, 1, 0), cellId(12, 1, 2)))); in overlaps()
[all …]
DSortedS2RangesTest.java49 S2LevelRange range2 = new S2LevelRange(cellId(s2Level, 1, 1002), in testCreateFromSorted() local
53 List<S2LevelRange> sortedRanges = Arrays.asList(range0, range1, range2, range3); in testCreateFromSorted()
/packages/modules/AdServices/shared/tests/side-less/java/com/android/adservices/shared/testing/
DAndroidSdkRangeTest.java230 private void expectEquals(Range range1, Range range2) { in expectEquals() argument
231 expect.withMessage("%s.equals(%s)", range1, range2).that(range1).isEqualTo(range2); in expectEquals()
232 expect.withMessage("%s.equals(%s)", range2, range1).that(range2).isEqualTo(range1); in expectEquals()
233 expect.withMessage("hashcode of %s and %s", range1, range2) in expectEquals()
235 .isEqualTo(range2.hashCode()); in expectEquals()
239 for (Range range2 : otherRanges) { in expectNotEquals()
240 expect.withMessage("%s.equals(%s)", range1, range2).that(range1).isNotEqualTo(range2); in expectNotEquals()
241 expect.withMessage("%s.equals(%s)", range2, range1).that(range2).isNotEqualTo(range1); in expectNotEquals()
242 if (range2 != null) { in expectNotEquals()
243 expect.withMessage("hashcode of %s and %s", range1, range2) in expectNotEquals()
[all …]
DRequiredRangeTest.java42 var range2 = Range.forExactly(42); in testEqualsHashCode() local
47 expectNotEquals(new RequiredRange(range1, REASON), new RequiredRange(range2, REASON)); in testEqualsHashCode()
48 expectNotEquals(new RequiredRange(range1, REASON), new RequiredRange(range2, NULL_REASON)); in testEqualsHashCode()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DUidRangeUtils.java118 for (UidRange range2 : uidRangeSet2) { in doesRangeSetOverlap()
119 if (range1.contains(range2.start) || range1.contains(range2.stop) in doesRangeSetOverlap()
120 || range2.contains(range1.start) || range2.contains(range1.stop)) { in doesRangeSetOverlap()
188 private static int compare(UidRange range1, UidRange range2) { in compare() argument
189 return range1.start - range2.start; in compare()
/packages/modules/GeoTZ/tzs2storage/src/test/java/com/android/timezone/location/storage/tzs2range/
DTzS2RangeFileTest.java40 TzS2Range range1, range2, range3; in findEntryByCellId() local
50 range2 = new TzS2Range( in findEntryByCellId()
59 tzS2RangeFileWriter.processRanges(listOf(range1, range2, range3).iterator()); in findEntryByCellId()
69 assertEquals(range2, entry2.getTzS2Range()); in findEntryByCellId()
DSuffixTableExtraInfoTest.java58 SuffixTableRange range2 = new SuffixTableRange( in create_nonEmptyBlock() local
66 suffixTableWriter.addRange(range2); in create_nonEmptyBlock()
/packages/services/Telephony/utils/satellite/tools/src/main/java/com/android/telephony/tools/sats2/
DCreateTestSatS2File.java48 S2LevelRange range2 = new S2LevelRange( in main() local
56 List<S2LevelRange> allRanges = listOf(range1, range2, range3); in main()
/packages/modules/GeoTZ/tzs2storage/tools/src/java/com/android/timezone/location/tools/tzs2/
DCreateTestTzS2File.java48 TzS2Range range2 = new TzS2Range( in main() local
58 List<TzS2Range> allRanges = listOf(range1, range2, range3); in main()
/packages/services/Telephony/utils/satellite/s2storage/src/test/java/com/android/telephony/sats2range/
DSatS2RangeFileReaderTest.java72 S2LevelRange range2 = satS2RangeFileReader.findEntryByCellId( in findEntryByCellId() local
74 assertEquals(expectedRange2, range2); in findEntryByCellId()
DSuffixTableExtraInfoTest.java60 S2LevelRange range2 = new S2LevelRange( in create_nonEmptyBlock() local
68 suffixTableWriter.addRange(range2); in create_nonEmptyBlock()
/packages/services/Telephony/tests/src/com/android/phone/satellite/accesscontrol/
DS2RangeSatelliteOnDeviceAccessControllerTest.java169 S2LevelRange range1, range2, range3; in createSatS2File() local
178 range2 = new S2LevelRange( in createSatS2File()
188 ranges.add(range2); in createSatS2File()
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/
DSupplicantP2pIfaceHalAidlImpl.java1464 FreqRange range2 = new FreqRange(); in setOperatingChannel() local
1465 range2.min = freq + 5; in setOperatingChannel()
1466 range2.max = 6000; in setOperatingChannel()
1468 ranges.add(range2); in setOperatingChannel()
DSupplicantP2pIfaceHalHidlImpl.java1571 ISupplicantP2pIface.FreqRange range2 = new ISupplicantP2pIface.FreqRange(); in setOperatingChannel() local
1572 range2.min = freq + 5; in setOperatingChannel()
1573 range2.max = 6000; in setOperatingChannel()
1575 ranges.add(range2); in setOperatingChannel()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/
DSupplicantP2pIfaceHalAidlImplTest.java1635 FreqRange range2 = new FreqRange(); in testSetOperatingChannel_success() local
1636 range2.min = 5820; in testSetOperatingChannel_success()
1637 range2.max = 6000; in testSetOperatingChannel_success()
1638 FreqRange[] ranges = {range1, range2}; in testSetOperatingChannel_success()
DSupplicantP2pIfaceHalHidlImplTest.java1693 ISupplicantP2pIface.FreqRange range2 = new ISupplicantP2pIface.FreqRange(); in testSetOperatingChannel_success() local
1694 range2.min = 5820; in testSetOperatingChannel_success()
1695 range2.max = 6000; in testSetOperatingChannel_success()
1698 ranges.add(range2); in testSetOperatingChannel_success()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DPermissionMonitorTest.java1000 final UidRange range2 = new UidRange(MOCK_UID13, MOCK_UID14); in testLockdownUidFilteringWithLockdownEnableDisableWithMultiAddAndOverlap() local
1001 final UidRange[] lockdownRange2 = {range2}; in testLockdownUidFilteringWithLockdownEnableDisableWithMultiAddAndOverlap()