/external/guava/guava-testlib/src/com/google/common/collect/testing/ |
SortedMapInterfaceTest.java | 72 SortedMap<K, V> subMap = map.tailMap(key); 74 subMap.put(key, value); 78 subMap.put(firstEntry.getKey(), value); 99 SortedMap<K, V> subMap = map.tailMap(key); 100 subMap.remove(key); 101 assertNull(subMap.remove(firstEntry.getKey())); 104 assertEquals(subMap.size(), oldSize - 2); 122 SortedMap<K, V> subMap = map.tailMap(key); 123 int subMapSize = subMap.size(); 124 subMap.clear() [all...] |
SortedMapTestSuiteBuilder.java | 66 if (!parentBuilder.getFeatures().contains(NoRecurse.SUBMAP)) { 87 SUBMAP, 110 features.add(NoRecurse.SUBMAP); 114 .named(parentBuilder.getName() + " subMap " + from + "-" + to)
|
NavigableMapTestSuiteBuilder.java | 63 if (!parentBuilder.getFeatures().contains(NoRecurse.SUBMAP)) { 95 return map.subMap(firstExclusive, false, lastExclusive, false); 97 return map.subMap(firstExclusive, false, lastInclusive, true); 99 return map.subMap(firstInclusive, true, lastInclusive, true);
|
SafeTreeMap.java | 248 @Override public NavigableMap<K, V> subMap( 250 return new SafeTreeMap<K, V>(delegate.subMap( 254 @Override public SortedMap<K, V> subMap(K fromKey, K toKey) { 255 return subMap(fromKey, true, toKey, false);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
TreeMapTest.java | 360 assertTrue("submap should be empty", sub.isEmpty()); 388 assertTrue("submap should be empty", sub.isEmpty()); 429 assertEquals(objArray[objArray.length - 2].toString(), tm.subMap("99", 447 sm = sm.subMap(firstKey, lastKey); 506 assertEquals("Returned incorrect size", 111, tm.subMap("500", "600") 509 tm.subMap("null", "600"); 514 assertEquals("Returned incorrect size", 1000, tm.subMap("", "null") 519 * java.util.TreeMap#subMap(java.lang.Object, java.lang.Object) 523 // java.util.TreeMap.subMap(java.lang.Object, java.lang.Object) 524 SortedMap subMap = tm.subMap(objArray[100].toString(), objArray[109 1913 Map<String, String> submap = test_map.subMap("a", "z"); local [all...] |
RefSortedMap.java | 90 class SubMap extends java.util.AbstractMap<K, V> 96 SubMap(boolean hasFirst, K first, boolean hasLast, K last) { 114 int offset = SubMap.this.size() > 0 ? 115 bsearch(SubMap.this.firstKey()) - 1 : 153 int lastIdx = bsearch(SubMap.this.lastKey()); 154 int firstIdx = bsearch(SubMap.this.firstKey()); 192 return new SubMap(hasStart, start, true, key); 211 public SortedMap<K, V> subMap(K startKey, K endKey) { 218 return new SubMap(true, startKey, true, endKey); 225 return new SubMap(true, key, hasEnd, end) [all...] |
TreeMapExtendTest.java | 188 assertTrue("SubMap contains incorrect elements", subMap_default 190 assertTrue("SubMap contains incorrect elements", 192 assertTrue("SubMap contains incorrect elements", 194 assertTrue("SubMap contains incorrect elements", 196 assertTrue("SubMap contains incorrect elements", 202 assertTrue("SubMap contains incorrect elements", subMap_default 204 assertFalse("SubMap contains incorrect elements", 206 assertFalse("SubMap contains incorrect elements", 208 assertTrue("SubMap contains incorrect elements", 210 assertTrue("SubMap contains incorrect elements" [all...] |
/external/guava/guava-tests/test/com/google/common/collect/ |
SynchronizedNavigableMapTest.java | 191 @Override public NavigableMap<K, V> subMap( 194 return delegate().subMap(fromKey, fromInclusive, toKey, toInclusive); 197 @Override public SortedMap<K, V> subMap(K fromKey, K toKey) { 198 return delegate().subMap(fromKey, true, toKey, false); 362 SortedMap<String, Integer> subMap = map.subMap("a", "b"); 363 assertTrue(subMap instanceof SynchronizedSortedMap); 364 assertSame(mutex, ((SynchronizedSortedMap<String, Integer>) subMap).mutex); 369 NavigableMap<String, Integer> subMap = map.subMap("a", true, "b", false) [all...] |
SubMapMultimapAsMapImplementsMapTest.java | 27 * Test {@code TreeMultimap.asMap().subMap()} with {@link MapInterfaceTest}. 50 return createMultimap().asMap().subMap("e", "p"); 59 return multimap.asMap().subMap("e", "p");
|
ForwardingSortedMapTest.java | 109 @Override public SortedMap<K, V> subMap(K fromKey, K toKey) { 208 forward().subMap("first", "last"); 209 assertEquals("[subMap(Object,Object)]", getCalls());
|
/external/valgrind/include/vki/ |
vki-xen-version.h | 60 unsigned int submap_idx; /* IN: which 32-bit submap to return */ 61 vki_uint32_t submap; /* OUT: 32-bit submap */ member in struct:vki_xen_feature_info
|
/libcore/luni/src/test/java/libcore/java/util/ |
TreeMapTest.java | 75 NavigableMap<String, String> subMap = map.subMap("A", true, "C", true); 77 Iterator<Entry<String, String>> iterator = subMap.entrySet().iterator(); 81 assertEquals("x", subMap.get("A")); 88 assertEquals("y", subMap.get("B")); 91 assertEquals("z", subMap.get("C")); 117 assertAllEntryMethodsReturnImmutableEntries(map.subMap("A", true, "C", true)); 216 map.subMap("a", "z").put(null, "b"); 270 Map<Object, Object> map = new TreeMap<Object, Object>().subMap("a", "z"); 350 SortedMap<String, String> subMap = map.subMap("a", "c") [all...] |
OldTreeMapTest.java | 395 // java.util.TreeMap.subMap(java.lang.Object, java.lang.Object) 396 SortedMap subMap = tm.subMap(objArray[100].toString(), objArray[109] 398 assertEquals("subMap is of incorrect size", 9, subMap.size()); 400 assertTrue("SubMap contains incorrect elements", subMap.get( 405 tm.subMap(objArray[9].toString(), objArray[1].toString()); 416 SortedMap<String, String> subMapWithNull = treeMapWithNull.subMap(null, 418 assertEquals("Size of subMap should be 1:", 1, subMapWithNull.size()) [all...] |
/prebuilts/go/darwin-x86/src/net/http/cookiejar/ |
jar.go | 171 submap := j.entries[key] 172 if submap == nil { 184 for id, e := range submap { 186 delete(submap, id) 194 submap[id] = e 199 if len(submap) == 0 { 202 j.entries[key] = submap 250 submap := j.entries[key] 260 if submap != nil { 261 if _, ok := submap[id]; ok [all...] |
/prebuilts/go/linux-x86/src/net/http/cookiejar/ |
jar.go | 171 submap := j.entries[key] 172 if submap == nil { 184 for id, e := range submap { 186 delete(submap, id) 194 submap[id] = e 199 if len(submap) == 0 { 202 j.entries[key] = submap 250 submap := j.entries[key] 260 if submap != nil { 261 if _, ok := submap[id]; ok [all...] |
/external/guava/guava/src/com/google/common/collect/ |
TreeRangeSet.java | 176 rangesByLowerBound.subMap(lbToAdd, ubToAdd).clear(); 221 rangesByLowerBound.subMap(rangeToRemove.lowerBound, rangeToRemove.upperBound).clear(); 246 * upperBoundWindow represents the headMap/subMap/tailMap view of the entire "ranges by upper 262 private NavigableMap<Cut<C>, Range<C>> subMap(Range<Cut<C>> window) { 271 public NavigableMap<Cut<C>, Range<C>> subMap( 273 return subMap(Range.range( 280 return subMap(Range.upTo(toKey, BoundType.forBoolean(inclusive))); 285 return subMap(Range.downTo(fromKey, BoundType.forBoolean(inclusive))); 405 * complementLowerBoundWindow represents the headMap/subMap/tailMap view of the entire 422 private NavigableMap<Cut<C>, Range<C>> subMap(Range<Cut<C>> subWindow) [all...] |
AbstractMapBasedMultimap.java | 920 KeySet(final Map<K, Collection<V>> subMap) { 921 super(subMap); 983 SortedKeySet(SortedMap<K, Collection<V>> subMap) { 984 super(subMap); 1013 return new SortedKeySet(sortedMap().subMap(fromElement, toElement)); 1024 NavigableKeySet(NavigableMap<K, Collection<V>> subMap) { 1025 super(subMap); 1092 sortedMap().subMap(fromElement, fromInclusive, toElement, toInclusive)); [all...] |
ImmutableSortedMap.java | 476 * <p>The {@link SortedMap#headMap} documentation states that a submap of a 477 * submap throws an {@link IllegalArgumentException} if passed a {@code toKey} 491 * <p>The {@link SortedMap#headMap} documentation states that a submap of a 492 * submap throws an {@link IllegalArgumentException} if passed a {@code toKey} 507 * <p>The {@link SortedMap#subMap} documentation states that a submap of a 508 * submap throws an {@link IllegalArgumentException} if passed a {@code 516 public ImmutableSortedMap<K, V> subMap(K fromKey, K toKey) { 517 return subMap(fromKey, true, toKey, false); 525 * <p>The {@link SortedMap#subMap} documentation states that a submap of [all...] |
ForwardingSortedMap.java | 86 public SortedMap<K, V> subMap(K fromKey, K toKey) { 87 return delegate().subMap(fromKey, toKey); 146 * A sensible default implementation of {@link #subMap(Object, Object)} in 148 * situations, you may wish to override {@link #subMap(Object, Object)} to
|
AbstractNavigableMap.java | 134 public SortedMap<K, V> subMap(K fromKey, K toKey) { 135 return subMap(fromKey, true, toKey, false);
|
StandardRowSortedTable.java | 125 public SortedMap<R, Map<C, V>> subMap(R fromKey, R toKey) { 129 sortedBackingMap().subMap(fromKey, toKey), factory).rowMap();
|
ForwardingNavigableMap.java | 356 * A sensible definition of {@link #subMap(Object, Object)} in terms of 357 * {@link #subMap(Object, boolean, Object, boolean)}. If you override 358 * {@code subMap(K, boolean, K, boolean)}, you may wish to override {@code subMap} to forward to 363 return subMap(fromKey, true, toKey, false); 367 public NavigableMap<K, V> subMap(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive) { 368 return delegate().subMap(fromKey, fromInclusive, toKey, toInclusive);
|
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
AbstractMapBasedMultimap.java | 842 KeySet(final Map<K, Collection<V>> subMap) { 843 super(subMap); 905 SortedKeySet(SortedMap<K, Collection<V>> subMap) { 906 super(subMap); 935 return new SortedKeySet(sortedMap().subMap(fromElement, toElement)); 1071 * subMap() of a SortedAsMap. 1073 final transient Map<K, Collection<V>> submap; 1075 AsMap(Map<K, Collection<V>> submap) { 1076 this.submap = submap; [all...] |
/external/tremolo/Tremolo/ |
mapping0.c | 143 int submap=0; local 147 submap=info->chmuxlist[i]; 148 floorno=info->submaplist[submap].floor; 232 int submap=0; local 236 submap=info->chmuxlist[i]; 237 floorno=info->submaplist[submap].floor;
|
codec_internal.h | 165 typedef struct submap{ struct 168 } submap; typedef in typeref:struct:submap 174 submap *submaplist;
|