Home
last modified time | relevance | path

Searched refs:rangeMap (Results 1 – 11 of 11) sorted by relevance

/external/guava/guava-tests/test/com/google/common/collect/
DTreeRangeMapTest.java61 RangeMap<Integer, String> rangeMap = TreeRangeMap.create(); in suite()
65 rangeMap.put(entry.getKey(), entry.getValue()); in suite()
67 return rangeMap.asMapOfRanges(); in suite()
117 RangeMap<Integer, String> rangeMap = TreeRangeMap.create(); in suite()
121 rangeMap.put(entry.getKey(), entry.getValue()); in suite()
123 return rangeMap.subRangeMap(Range.atMost(22)).asMapOfRanges(); in suite()
172 RangeMap<Integer, String> rangeMap = TreeRangeMap.create(); in suite()
176 rangeMap.put(entry.getKey(), entry.getValue()); in suite()
178 return rangeMap.asDescendingMapOfRanges(); in suite()
231 RangeMap<Integer, String> rangeMap = TreeRangeMap.create(); in suite()
[all …]
DImmutableRangeMapTest.java104 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()
188 ImmutableRangeMap<Integer, Integer> rangeMap = in testAsMapOfRanges() local
193 ImmutableMap<Range<Integer>, Integer> asMap = rangeMap.asMapOfRanges(); in testAsMapOfRanges()
194 ImmutableMap<Range<Integer>, Integer> descendingMap = rangeMap.asDescendingMapOfRanges(); in testAsMapOfRanges()
216 ImmutableRangeMap<Integer, Integer> rangeMap = in testSubRangeMap() local
221 for (Entry<Range<Integer>, Integer> entry : rangeMap.asMapOfRanges().entrySet()) { in testSubRangeMap()
229 assertEquals(expected, rangeMap.subRangeMap(subRange)); in testSubRangeMap()
[all …]
/external/guava/android/guava-tests/test/com/google/common/collect/
DTreeRangeMapTest.java60 RangeMap<Integer, String> rangeMap = TreeRangeMap.create(); in suite()
64 rangeMap.put(entry.getKey(), entry.getValue()); in suite()
66 return rangeMap.asMapOfRanges(); in suite()
116 RangeMap<Integer, String> rangeMap = TreeRangeMap.create(); in suite()
120 rangeMap.put(entry.getKey(), entry.getValue()); in suite()
122 return rangeMap.subRangeMap(Range.atMost(22)).asMapOfRanges(); in suite()
171 RangeMap<Integer, String> rangeMap = TreeRangeMap.create(); in suite()
175 rangeMap.put(entry.getKey(), entry.getValue()); in suite()
177 return rangeMap.asDescendingMapOfRanges(); in suite()
230 RangeMap<Integer, String> rangeMap = TreeRangeMap.create(); in suite()
[all …]
DImmutableRangeMapTest.java103 ImmutableRangeMap<Integer, Integer> rangeMap = in testGet() local
114 assertEquals(expectedValue, rangeMap.get(i)); in testGet()
153 ImmutableRangeMap<Integer, Integer> rangeMap = in testGetEntry() local
164 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()
193 ImmutableMap<Range<Integer>, Integer> descendingMap = rangeMap.asDescendingMapOfRanges(); in testAsMapOfRanges()
215 ImmutableRangeMap<Integer, Integer> rangeMap = in testSubRangeMap() local
220 for (Entry<Range<Integer>, Integer> entry : rangeMap.asMapOfRanges().entrySet()) { in testSubRangeMap()
228 assertEquals(expected, rangeMap.subRangeMap(subRange)); in testSubRangeMap()
/external/guava/android/guava/src/com/google/common/collect/
DImmutableRangeMap.java62 RangeMap<K, ? extends V> rangeMap) { in copyOf() argument
63 if (rangeMap instanceof ImmutableRangeMap) { in copyOf()
64 return (ImmutableRangeMap<K, V>) rangeMap; in copyOf()
66 Map<Range<K>, ? extends V> map = rangeMap.asMapOfRanges(); in copyOf()
110 public Builder<K, V> putAll(RangeMap<K, ? extends V> rangeMap) { in putAll() argument
111 for (Entry<Range<K>, ? extends V> entry : rangeMap.asMapOfRanges().entrySet()) { in putAll()
229 public void putAll(RangeMap<K, V> rangeMap) { in putAll() argument
346 RangeMap<?, ?> rangeMap = (RangeMap<?, ?>) o;
347 return asMapOfRanges().equals(rangeMap.asMapOfRanges());
DTreeRangeMap.java168 public void putAll(RangeMap<K, V> rangeMap) { in putAll() argument
169 for (Entry<Range<K>, V> entry : rangeMap.asMapOfRanges().entrySet()) { in putAll()
339 public void putAll(RangeMap rangeMap) {
340 if (!rangeMap.asMapOfRanges().isEmpty()) {
445 public void putAll(RangeMap<K, V> rangeMap) { in putAll() argument
446 if (rangeMap.asMapOfRanges().isEmpty()) { in putAll()
449 Range<K> span = rangeMap.span(); in putAll()
455 TreeRangeMap.this.putAll(rangeMap); in putAll()
520 RangeMap<?, ?> rangeMap = (RangeMap<?, ?>) o;
521 return asMapOfRanges().equals(rangeMap.asMapOfRanges());
[all …]
DRangeMap.java98 void putAll(RangeMap<K, V> rangeMap); in putAll() argument
/external/guava/guava/src/com/google/common/collect/
DImmutableRangeMap.java78 RangeMap<K, ? extends V> rangeMap) { in copyOf() argument
79 if (rangeMap instanceof ImmutableRangeMap) { in copyOf()
80 return (ImmutableRangeMap<K, V>) rangeMap; in copyOf()
82 Map<Range<K>, ? extends V> map = rangeMap.asMapOfRanges(); in copyOf()
126 public Builder<K, V> putAll(RangeMap<K, ? extends V> rangeMap) { in putAll() argument
127 for (Entry<Range<K>, ? extends V> entry : rangeMap.asMapOfRanges().entrySet()) { in putAll()
249 public void putAll(RangeMap<K, V> rangeMap) { in putAll() argument
381 RangeMap<?, ?> rangeMap = (RangeMap<?, ?>) o;
382 return asMapOfRanges().equals(rangeMap.asMapOfRanges());
DTreeRangeMap.java167 public void putAll(RangeMap<K, V> rangeMap) { in putAll() argument
168 for (Entry<Range<K>, V> entry : rangeMap.asMapOfRanges().entrySet()) { in putAll()
410 public void putAll(RangeMap rangeMap) {
411 if (!rangeMap.asMapOfRanges().isEmpty()) {
522 public void putAll(RangeMap<K, V> rangeMap) { in putAll() argument
523 if (rangeMap.asMapOfRanges().isEmpty()) { in putAll()
526 Range<K> span = rangeMap.span(); in putAll()
532 TreeRangeMap.this.putAll(rangeMap); in putAll()
610 RangeMap<?, ?> rangeMap = (RangeMap<?, ?>) o;
611 return asMapOfRanges().equals(rangeMap.asMapOfRanges());
[all …]
DRangeMap.java99 void putAll(RangeMap<K, V> rangeMap); in putAll() argument
/external/zstd/tests/
Dparamgrill.c143 static U32 rangeMap(varInds_t param, int ind) in rangeMap() function
488 ptr->vals[paramIndex] = rangeMap(paramIndex, in paramVaryOnce()
517 p.vals[v] = rangeMap(v, (int)(FUZ_rand(&g_rand) % rangetable[v])); in randomParams()
1522 pc->vals[v] = rangeMap(v, FUZ_rand(&g_rand) % rangetable[v]); in randomConstrainedParams()