Searched refs:rangeMap (Results 1 – 6 of 6) sorted by relevance
/external/guava/guava-tests/test/com/google/common/collect/ |
D | TreeRangeMapTest.java | 60 RangeMap<Integer, String> rangeMap = TreeRangeMap.create(); in suite() 64 rangeMap.put(entry.getKey(), entry.getValue()); in suite() 66 return rangeMap.asMapOfRanges(); in suite() 115 RangeMap<Integer, String> rangeMap = TreeRangeMap.create(); in suite() 119 rangeMap.put(entry.getKey(), entry.getValue()); in suite() 121 return rangeMap.subRangeMap(Range.atMost(22)).asMapOfRanges(); in suite() 192 RangeMap<Integer, Integer> rangeMap = TreeRangeMap.create(); in testSpanSingleRange() local 193 rangeMap.put(range, 1); in testSpanSingleRange() 196 assertEquals(range, rangeMap.span()); in testSpanSingleRange() 207 RangeMap<Integer, Integer> rangeMap = TreeRangeMap.create(); in testSpanTwoRanges() local [all …]
|
D | ImmutableRangeMapTest.java | 104 ImmutableRangeMap<Integer, Integer> rangeMap = in testGet() local 115 assertEquals(expectedValue, rangeMap.get(i)); in testGet() 154 ImmutableRangeMap<Integer, Integer> rangeMap = in testGetEntry() local 165 assertEquals(expectedEntry, rangeMap.getEntry(i)); in testGetEntry() 187 ImmutableRangeMap<Integer, Integer> rangeMap = in testAsMapOfRanges() local 192 ImmutableMap<Range<Integer>, Integer> asMap = rangeMap.asMapOfRanges(); in testAsMapOfRanges() 208 ImmutableRangeMap<Integer, Integer> rangeMap = in testSubRangeMap() local 214 for (Map.Entry<Range<Integer>, Integer> entry : rangeMap.asMapOfRanges().entrySet()) { in testSubRangeMap() 222 assertEquals(expected, rangeMap.subRangeMap(subRange)); in testSubRangeMap()
|
/external/guava/guava/src/com/google/common/collect/ |
D | ImmutableRangeMap.java | 66 RangeMap<K, ? extends V> rangeMap) { in copyOf() argument 67 if (rangeMap instanceof ImmutableRangeMap) { in copyOf() 68 return (ImmutableRangeMap<K, V>) rangeMap; in copyOf() 70 Map<Range<K>, ? extends V> map = rangeMap.asMapOfRanges(); in copyOf() 92 private final RangeMap<K, V> rangeMap; field in ImmutableRangeMap.Builder 96 this.rangeMap = TreeRangeMap.create(); in Builder() 111 for (Entry<Range<K>, V> entry : rangeMap.asMapOfRanges().entrySet()) { in put() 120 rangeMap.put(range, value); in put() 130 public Builder<K, V> putAll(RangeMap<K, ? extends V> rangeMap) { in putAll() argument 131 for (Entry<Range<K>, ? extends V> entry : rangeMap.asMapOfRanges().entrySet()) { in putAll() [all …]
|
D | TreeRangeMap.java | 134 public void putAll(RangeMap<K, V> rangeMap) { in putAll() argument 135 for (Map.Entry<Range<K>, V> entry : rangeMap.asMapOfRanges().entrySet()) { in putAll() 289 public void putAll(RangeMap rangeMap) { 290 if (!rangeMap.asMapOfRanges().isEmpty()) { 380 public void putAll(RangeMap<K, V> rangeMap) { 381 if (rangeMap.asMapOfRanges().isEmpty()) { 384 Range<K> span = rangeMap.span(); 387 TreeRangeMap.this.putAll(rangeMap); 419 RangeMap<?, ?> rangeMap = (RangeMap<?, ?>) o; 420 return asMapOfRanges().equals(rangeMap.asMapOfRanges()); [all …]
|
D | RangeMap.java | 76 void putAll(RangeMap<K, V> rangeMap); in putAll() argument
|
/external/r8/src/test/java/com/android/tools/r8/optimize/ |
D | R8DebugStrippingTest.java | 163 final Map<String, Set<Integer>> rangeMap = new HashMap<>(); in ensureRangesAreUniquePerClass() local 168 Set<Integer> used = rangeMap in ensureRangesAreUniquePerClass()
|