/external/apache-harmony/support/src/test/java/tests/support/ |
D | Support_UnmodifiableMapTest.java | 87 Set<?> keySet = map.keySet(); in runTest() local 88 t_KeySet(keySet); in runTest() 100 void t_KeySet(Set<?> keySet) { in t_KeySet() argument 105 keySet.contains("0")); in t_KeySet() 107 keySet.contains("50")); in t_KeySet() 110 !keySet.contains("100")); in t_KeySet() 119 keySet.containsAll(hs)); in t_KeySet() 123 !keySet.containsAll(hs)); in t_KeySet() 127 !keySet.isEmpty()); in t_KeySet() 130 Iterator<?> it = keySet.iterator(); in t_KeySet() [all …]
|
/external/guava/guava/src/com/google/common/collect/ |
D | RegularImmutableSortedMap.java | 32 private final transient RegularImmutableSortedSet<K> keySet; field in RegularImmutableSortedMap 35 RegularImmutableSortedMap(RegularImmutableSortedSet<K> keySet, ImmutableList<V> valueList) { in RegularImmutableSortedMap() argument 36 this.keySet = keySet; in RegularImmutableSortedMap() 41 RegularImmutableSortedSet<K> keySet, in RegularImmutableSortedMap() argument 45 this.keySet = keySet; in RegularImmutableSortedMap() 64 private final ImmutableList<K> keyList = keySet().asList(); in createAsList() 85 public ImmutableSortedSet<K> keySet() { in keySet() method 86 return keySet; in keySet() 96 int index = keySet.indexOf(key); in get() 107 keySet.getSubSet(fromIndex, toIndex), in getSubMap() [all …]
|
D | EmptyImmutableSortedMap.java | 34 private final transient ImmutableSortedSet<K> keySet; field in EmptyImmutableSortedMap 37 this.keySet = ImmutableSortedSet.emptySet(comparator); in EmptyImmutableSortedMap() 43 this.keySet = ImmutableSortedSet.emptySet(comparator); in EmptyImmutableSortedMap() 52 public ImmutableSortedSet<K> keySet() { in keySet() method in EmptyImmutableSortedMap 53 return keySet; in keySet()
|
D | ImmutableSortedMap.java | 100 ImmutableSortedSet<K> keySet, ImmutableList<V> valueList) { in from() argument 101 if (keySet.isEmpty()) { in from() 102 return emptyMap(keySet.comparator()); in from() 105 (RegularImmutableSortedSet<K>) keySet, in from() 429 return keySet().isPartialView() || values().isPartialView(); in isPartialView() 443 @Override public abstract ImmutableSortedSet<K> keySet(); in keySet() method in ImmutableSortedMap 459 return keySet().comparator(); in comparator() 464 return keySet().first(); in firstKey() 469 return keySet().last(); in lastKey() 665 return keySet(); in navigableKeySet() [all …]
|
/external/guava/guava-tests/test/com/google/common/cache/ |
D | CacheEvictionTest.java | 186 Set<Integer> keySet = cache.asMap().keySet(); in testEviction_lru() local 187 assertThat(keySet).has().exactly(0, 1, 2, 3, 4, 5, 6, 7, 8, 9); in testEviction_lru() 192 assertThat(keySet).has().exactly(3, 4, 5, 6, 7, 8, 9, 0, 1, 2); in testEviction_lru() 197 assertThat(keySet).has().exactly(6, 7, 8, 9, 0, 1, 2, 10, 11, 12); in testEviction_lru() 202 assertThat(keySet).has().exactly(9, 0, 1, 2, 10, 11, 12, 6, 7, 8); in testEviction_lru() 207 assertThat(keySet).has().exactly(2, 10, 11, 12, 6, 7, 8, 13, 14, 15); in testEviction_lru() 219 Set<Integer> keySet = cache.asMap().keySet(); in testEviction_weightedLru() local 220 assertThat(keySet).has().exactly(0, 1, 2, 3, 4, 5, 6, 7, 8, 9); in testEviction_weightedLru() 225 assertThat(keySet).has().exactly(3, 4, 5, 6, 7, 8, 9, 0, 1, 2); in testEviction_weightedLru() 230 assertThat(keySet).has().exactly(6, 7, 8, 9, 0, 1, 2, 10); in testEviction_weightedLru() [all …]
|
D | CacheExpirationTest.java | 143 assertEquals(1, Iterators.size(cache.asMap().keySet().iterator())); in runExpirationTest() 262 Set<Integer> keySet = cache.asMap().keySet(); in testExpirationOrder_access() local 263 assertThat(keySet).has().exactly(0, 1, 2, 3, 4, 5, 6, 7, 8, 9); in testExpirationOrder_access() 267 assertThat(keySet).has().exactly(1, 2, 3, 4, 5, 6, 7, 8, 9); in testExpirationOrder_access() 273 assertThat(keySet).has().exactly(3, 4, 5, 6, 7, 8, 9, 0, 1, 2); in testExpirationOrder_access() 277 assertThat(keySet).has().exactly(4, 5, 6, 7, 8, 9, 0, 1, 2); in testExpirationOrder_access() 282 assertThat(keySet).has().exactly(4, 6, 8, 0, 1, 2, 5, 7, 9); in testExpirationOrder_access() 286 assertThat(keySet).has().exactly(6, 8, 0, 1, 2, 5, 7, 9); in testExpirationOrder_access() 288 assertThat(keySet).has().exactly(6, 8, 0, 1, 2, 5, 7, 9); in testExpirationOrder_access() 292 assertThat(keySet).has().exactly(8, 0, 1, 2, 5, 7, 9); in testExpirationOrder_access() [all …]
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | TreeMultimapExplicitTest.java | 102 assertThat(tree.keySet()).has().exactly("tree", "google").inOrder(); in testMultimapCreateFromTreeMultimap() 107 assertThat(copy.keySet()).has().exactly("google", "tree").inOrder(); in testMultimapCreateFromTreeMultimap() 140 assertThat(multimap.keySet()).has().exactly(null, "tree", "google").inOrder(); in testOrderedKeySet() 199 SortedSet<String> keySet = multimap.keySet(); in testSortedKeySet() local 201 assertEquals(null, keySet.first()); in testSortedKeySet() 202 assertEquals("google", keySet.last()); in testSortedKeySet() 203 assertEquals(StringLength.COMPARATOR, keySet.comparator()); in testSortedKeySet() 204 assertEquals(Sets.newHashSet(null, "tree"), keySet.headSet("yahoo")); in testSortedKeySet() 205 assertEquals(Sets.newHashSet("google"), keySet.tailSet("yahoo")); in testSortedKeySet() 206 assertEquals(Sets.newHashSet("tree"), keySet.subSet("ask", "yahoo")); in testSortedKeySet() [all …]
|
D | ImmutableTableTest.java | 188 assertThat(table.row('b').keySet()).has().exactly(1, 2).inOrder(); in testCopyOf() 189 assertThat(ImmutableTable.copyOf(table).row('b').keySet()) in testCopyOf() 234 assertThat(copy.row('b').keySet()).has().exactly(1, 2).inOrder(); in testBuilder_orderRowsAndColumnsBy_putAll() 256 assertThat(table.row('c').keySet()).has().exactly(0, 3).inOrder(); in testBuilder_orderRowsAndColumnsBy_sparse() 257 assertThat(table.column(5).keySet()).has().exactly('e', 'x').inOrder(); in testBuilder_orderRowsAndColumnsBy_sparse() 278 assertThat(table.row('c').keySet()).has().exactly(1, 2, 3).inOrder(); in testBuilder_orderRowsAndColumnsBy_dense() 279 assertThat(table.column(1).keySet()).has().exactly('a', 'b', 'c').inOrder(); in testBuilder_orderRowsAndColumnsBy_dense() 297 assertThat(table.column(5).keySet()).has().exactly('e', 'x').inOrder(); in testBuilder_orderRowsBy_sparse() 314 assertThat(table.column(1).keySet()).has().exactly('a', 'b', 'c').inOrder(); in testBuilder_orderRowsBy_dense() 332 assertThat(table.row('c').keySet()).has().exactly(0, 3).inOrder(); in testBuilder_orderColumnsBy_sparse() [all …]
|
D | SynchronizedMapTest.java | 106 @Override public Set<K> keySet() { in keySet() method in SynchronizedMapTest.TestMap 108 return super.keySet(); in keySet() 184 Set<String> keySet = map.keySet(); in testKeySet() local 185 assertTrue(keySet instanceof SynchronizedSet); in testKeySet() 186 assertSame(mutex, ((SynchronizedSet<?>) keySet).mutex); in testKeySet()
|
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/ |
D | TreeMultimapExplicitTest.java | 100 assertThat(tree.keySet()).has().exactly("tree", "google").inOrder(); in testMultimapCreateFromTreeMultimap() 105 assertThat(copy.keySet()).has().exactly("google", "tree").inOrder(); in testMultimapCreateFromTreeMultimap() 138 assertThat(multimap.keySet()).has().exactly(null, "tree", "google").inOrder(); in testOrderedKeySet() 197 SortedSet<String> keySet = multimap.keySet(); in testSortedKeySet() local 199 assertEquals(null, keySet.first()); in testSortedKeySet() 200 assertEquals("google", keySet.last()); in testSortedKeySet() 201 assertEquals(StringLength.COMPARATOR, keySet.comparator()); in testSortedKeySet() 202 assertEquals(Sets.newHashSet(null, "tree"), keySet.headSet("yahoo")); in testSortedKeySet() 203 assertEquals(Sets.newHashSet("google"), keySet.tailSet("yahoo")); in testSortedKeySet() 204 assertEquals(Sets.newHashSet("tree"), keySet.subSet("ask", "yahoo")); in testSortedKeySet()
|
D | ImmutableTableTest.java | 187 assertThat(table.row('b').keySet()).has().exactly(1, 2).inOrder(); in testCopyOf() 188 assertThat(ImmutableTable.copyOf(table).row('b').keySet()) in testCopyOf() 233 assertThat(copy.row('b').keySet()).has().exactly(1, 2).inOrder(); in testBuilder_orderRowsAndColumnsBy_putAll() 255 assertThat(table.row('c').keySet()).has().exactly(0, 3).inOrder(); in testBuilder_orderRowsAndColumnsBy_sparse() 256 assertThat(table.column(5).keySet()).has().exactly('e', 'x').inOrder(); in testBuilder_orderRowsAndColumnsBy_sparse() 277 assertThat(table.row('c').keySet()).has().exactly(1, 2, 3).inOrder(); in testBuilder_orderRowsAndColumnsBy_dense() 278 assertThat(table.column(1).keySet()).has().exactly('a', 'b', 'c').inOrder(); in testBuilder_orderRowsAndColumnsBy_dense() 296 assertThat(table.column(5).keySet()).has().exactly('e', 'x').inOrder(); in testBuilder_orderRowsBy_sparse() 313 assertThat(table.column(1).keySet()).has().exactly('a', 'b', 'c').inOrder(); in testBuilder_orderRowsBy_dense() 331 assertThat(table.row('c').keySet()).has().exactly(0, 3).inOrder(); in testBuilder_orderColumnsBy_sparse() [all …]
|
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/ |
D | TestDTDAttributes.java | 55 for (String element : toChildren.keySet()) { in checkOrdering() 128 for (String element : elementToAttributes.keySet()) { in showDistinguishing() 146 for (String attribute : distinguishingAttributeToElements.keySet()) { in showDistinguishing() 165 nondistinguishingAttributeToElements.keySet()); in showDistinguishing() 166 nondistinguishing.removeAll(distinguishingAttributeToElements.keySet()); in showDistinguishing() 170 distinguishingAttributeToElements.keySet()); in showDistinguishing() 172 .keySet()); in showDistinguishing() 176 distinguishingAttributeToElements.keySet()); in showDistinguishing() 177 both.retainAll(nondistinguishingAttributeToElements.keySet()); in showDistinguishing() 204 Set<R2<String, String>> commonKeys = getCommon(mainData.keySet(), in checkAttributes() [all …]
|
/external/mockito/src/test/java/org/mockito/internal/util/reflection/ |
D | GenericMetadataSupportTest.java | 76 …assertThat(inferFrom(GenericsNest.class).actualTypeArguments().keySet()).hasSize(1).extracting("na… in can_get_type_variables_from_Class() 77 assertThat(inferFrom(ListOfNumbers.class).actualTypeArguments().keySet()).isEmpty(); in can_get_type_variables_from_Class() 78 …assertThat(inferFrom(ListOfAnyNumbers.class).actualTypeArguments().keySet()).hasSize(1).extracting… in can_get_type_variables_from_Class() 79 …assertThat(inferFrom(Map.class).actualTypeArguments().keySet()).hasSize(2).extracting("name").cont… in can_get_type_variables_from_Class() 80 assertThat(inferFrom(Serializable.class).actualTypeArguments().keySet()).isEmpty(); in can_get_type_variables_from_Class() 81 assertThat(inferFrom(StringList.class).actualTypeArguments().keySet()).isEmpty(); in can_get_type_variables_from_Class() 93 …From(GenericsNest.class.getGenericInterfaces()[0]).actualTypeArguments().keySet()).hasSize(2).extr… in can_get_type_variables_from_ParameterizedType() 94 …(ListOfAnyNumbers.class.getGenericInterfaces()[0]).actualTypeArguments().keySet()).hasSize(1).extr… in can_get_type_variables_from_ParameterizedType() 95 …assertThat(inferFrom(Integer.class.getGenericInterfaces()[0]).actualTypeArguments().keySet()).hasS… in can_get_type_variables_from_ParameterizedType() 96 …inferFrom(StringBuilder.class.getGenericInterfaces()[0]).actualTypeArguments().keySet()).isEmpty(); in can_get_type_variables_from_ParameterizedType() [all …]
|
/external/cldr/tools/java/org/unicode/cldr/util/ |
D | Counter2.java | 84 for (T item : map.keySet()) { in getTotal() 134 for (T key : map.keySet()) { in getKeysetSortedByCount() 146 s.addAll(map.keySet()); in getKeysetSortedByKey() 160 public Set<T> keySet() { in keySet() method in Counter2 161 return map.keySet(); in keySet() 165 return map.keySet().iterator(); in iterator() 195 Iterator<T> i = map.keySet().iterator(); in compareTo() 196 Iterator<T> j = o.map.keySet().iterator(); in compareTo()
|
D | Counter.java | 126 for (T item : map.keySet()) { in getTotal() 174 for (T key : map.keySet()) { in getKeysetSortedByCount() 187 for (T key : map.keySet()) { in getEntrySetSortedByCount() 199 s.addAll(map.keySet()); in getKeysetSortedByKey() 213 public Set<T> keySet() { in keySet() method in Counter 214 return map.keySet(); in keySet() 218 return map.keySet().iterator(); in iterator() 250 Iterator<T> i = map.keySet().iterator(); in compareTo() 251 Iterator<T> j = o.map.keySet().iterator(); in compareTo()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/ |
D | Counter.java | 91 for (T item : map.keySet()) { in getTotal() 137 for (T key : map.keySet()) { in getKeysetSortedByCount() 149 s.addAll(map.keySet()); in getKeysetSortedByKey() 163 public Set<T> keySet() { in keySet() method in Counter 164 return map.keySet(); in keySet() 168 return map.keySet().iterator(); in iterator() 198 Iterator<T> i = map.keySet().iterator(); in compareTo() 199 Iterator<T> j = o.map.keySet().iterator(); in compareTo()
|
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/ |
D | Counter.java | 88 for (T item : map.keySet()) { in getTotal() 134 for (T key : map.keySet()) { in getKeysetSortedByCount() 146 s.addAll(map.keySet()); in getKeysetSortedByKey() 160 public Set<T> keySet() { in keySet() method in Counter 161 return map.keySet(); in keySet() 165 return map.keySet().iterator(); in iterator() 195 Iterator<T> i = map.keySet().iterator(); in compareTo() 196 Iterator<T> j = o.map.keySet().iterator(); in compareTo()
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/ |
D | MapInterfaceTest.java | 180 Set<K> keySet = map.keySet(); in assertInvariants() local 185 assertEquals(map.size(), keySet.size()); in assertInvariants() 186 assertEquals(keySet.size() == 0, keySet.isEmpty()); in assertInvariants() 187 assertEquals(!keySet.isEmpty(), keySet.iterator().hasNext()); in assertInvariants() 190 for (K key : keySet) { in assertInvariants() 200 assertEquals(expectedKeySetHash, keySet.hashCode()); in assertInvariants() 309 assertTrue(map.containsKey(map.keySet().iterator().next())); in testContainsKey() 562 K key = map.keySet().iterator().next(); in testEntrySetRemoveDifferentValue() 909 smallerMap.remove(smallerMap.keySet().iterator().next()); in testEqualsForSmallerMap() 1042 keyToPut = map.keySet().iterator().next(); in testPutExistingKey() [all …]
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
D | MultimapKeySetTester.java | 41 assertTrue(multimap().keySet().contains(entry.getKey())); in testKeySet() 49 assertTrue(multimap().keySet().contains(null)); in testKeySetContainsNullKeyPresent() 54 assertFalse(multimap().keySet().contains(null)); in testKeySetContainsNullKeyAbsent() 60 assertEquals(key0Count > 0, multimap().keySet().remove(sampleKeys().e0)); in testKeySetRemovePropagatesToMultimap() 69 Iterator<K> keyItr = multimap().keySet().iterator(); in testKeySetIteratorRemove()
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/ |
D | YamlStream.java | 69 if (!map1.keySet().equals(map2.keySet())) { in YamlStream() 70 throw new AssertionFailedError("Keyset: " + map1.keySet() + "; but was: " in YamlStream() 71 + map2.keySet()); in YamlStream() 73 for (Iterator<Object> iterator = map1.keySet().iterator(); iterator.hasNext();) { in YamlStream()
|
/external/cldr/tools/java/org/unicode/cldr/util/props/ |
D | RandomStringGenerator.java | 41 extendedMap.putAll(tempMap.keySet("CR"), "CR"); in init() 42 extendedMap.putAll(tempMap.keySet("LF"), "LF"); in init() 43 extendedMap.putAll(tempMap.keySet("Extend"), "GCExtend"); in init() 44 extendedMap.putAll(tempMap.keySet("Control"), "GCControl"); in init() 69 sets[i] = map.keySet(values.get(i)); in RandomStringGenerator()
|
/external/cldr/tools/java/org/unicode/cldr/tool/ |
D | FindAttributeValueDifferences.java | 66 Set<String> elements = new TreeSet<>(newValues.keySet()); in main() 67 elements.addAll(oldValues.keySet()); in main() 72 Set<String> attributes = new TreeSet<>(newSubmap.keySet()); in main() 73 attributes.addAll(oldSubmap.keySet()); in main() 77 …tring> newAttValues = CldrUtility.ifNull(newSubmap.get(attribute), Collections.EMPTY_MAP).keySet(); in main() 79 …tring> oldAttValues = CldrUtility.ifNull(oldSubmap.get(attribute), Collections.EMPTY_MAP).keySet(); in main()
|
/external/antlr/runtime/Java/src/main/java/org/antlr/runtime/misc/ |
D | DoubleKeyMap.java | 42 public Set<Key1> keySet() { in keySet() method in DoubleKeyMap 43 return data.keySet(); in keySet() 47 public Set<Key2> keySet(Key1 k1) { in keySet() method in DoubleKeyMap 50 return data2.keySet(); in keySet()
|
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime.JavaExtensions/ |
D | DictionaryExtensions.cs | 111 public static HashSet<object> keySet( this IDictionary map ) in keySet() method in Antlr.Runtime.JavaExtensions.DictionaryExtensions 117 public static HashSet<TKey> keySet<TKey, TValue>( this IDictionary<TKey, TValue> map ) in keySet() method in Antlr.Runtime.JavaExtensions.DictionaryExtensions 124 public static HashSet<TKey> keySet<TKey, TValue>( this Dictionary<TKey, TValue> map ) in keySet() method in Antlr.Runtime.JavaExtensions.DictionaryExtensions 130 public static HashSet<object> keySet<TKey, TValue>( this SortedList<TKey, TValue> map ) in keySet() method in Antlr.Runtime.JavaExtensions.DictionaryExtensions
|
/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.JavaExtensions/ |
D | DictionaryExtensions.cs | 106 public static HashSet<object> keySet(IDictionary map) { in keySet() method in Antlr.Runtime.JavaExtensions.DictionaryExtensions 111 public static HashSet<TKey> keySet<TKey, TValue>(IDictionary<TKey, TValue> map) { in keySet() method in Antlr.Runtime.JavaExtensions.DictionaryExtensions 117 public static HashSet<TKey> keySet<TKey, TValue>(Dictionary<TKey, TValue> map) { in keySet() method in Antlr.Runtime.JavaExtensions.DictionaryExtensions 122 public static HashSet<object> keySet<TKey, TValue>(SortedList<TKey, TValue> map) { in keySet() method in Antlr.Runtime.JavaExtensions.DictionaryExtensions
|