/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()
|
/external/guava/guava-tests/test/com/google/common/cache/ |
D | CacheEvictionTest.java | 171 Set<Integer> keySet = cache.asMap().keySet(); in testEviction_lru() local 172 ASSERT.that(keySet).has().exactly(0, 1, 2, 3, 4, 5, 6, 7, 8, 9); in testEviction_lru() 177 ASSERT.that(keySet).has().exactly(3, 4, 5, 6, 7, 8, 9, 0, 1, 2); in testEviction_lru() 182 ASSERT.that(keySet).has().exactly(6, 7, 8, 9, 0, 1, 2, 10, 11, 12); in testEviction_lru() 187 ASSERT.that(keySet).has().exactly(9, 0, 1, 2, 10, 11, 12, 6, 7, 8); in testEviction_lru() 192 ASSERT.that(keySet).has().exactly(2, 10, 11, 12, 6, 7, 8, 13, 14, 15); in testEviction_lru() 204 Set<Integer> keySet = cache.asMap().keySet(); in testEviction_weightedLru() local 205 ASSERT.that(keySet).has().exactly(0, 1, 2, 3, 4, 5, 6, 7, 8, 9); in testEviction_weightedLru() 210 ASSERT.that(keySet).has().exactly(3, 4, 5, 6, 7, 8, 9, 0, 1, 2); in testEviction_weightedLru() 215 ASSERT.that(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 ASSERT.that(keySet).has().exactly(0, 1, 2, 3, 4, 5, 6, 7, 8, 9); in testExpirationOrder_access() 267 ASSERT.that(keySet).has().exactly(1, 2, 3, 4, 5, 6, 7, 8, 9); in testExpirationOrder_access() 273 ASSERT.that(keySet).has().exactly(3, 4, 5, 6, 7, 8, 9, 0, 1, 2); in testExpirationOrder_access() 277 ASSERT.that(keySet).has().exactly(4, 5, 6, 7, 8, 9, 0, 1, 2); in testExpirationOrder_access() 282 ASSERT.that(keySet).has().exactly(4, 6, 8, 0, 1, 2, 5, 7, 9); in testExpirationOrder_access() 286 ASSERT.that(keySet).has().exactly(6, 8, 0, 1, 2, 5, 7, 9); in testExpirationOrder_access() 288 ASSERT.that(keySet).has().exactly(6, 8, 0, 1, 2, 5, 7, 9); in testExpirationOrder_access() 292 ASSERT.that(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 ASSERT.that(tree.keySet()).has().exactly("tree", "google").inOrder(); in testMultimapCreateFromTreeMultimap() 107 ASSERT.that(copy.keySet()).has().exactly("google", "tree").inOrder(); in testMultimapCreateFromTreeMultimap() 140 ASSERT.that(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 | 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()
|
D | ImmutableTableTest.java | 188 ASSERT.that(table.row('b').keySet()).has().exactly(1, 2).inOrder(); in testCopyOf() 189 ASSERT.that(ImmutableTable.copyOf(table).row('b').keySet()) in testCopyOf() 234 ASSERT.that(copy.row('b').keySet()).has().exactly(1, 2).inOrder(); in testBuilder_orderRowsAndColumnsBy_putAll() 256 ASSERT.that(table.row('c').keySet()).has().exactly(0, 3).inOrder(); in testBuilder_orderRowsAndColumnsBy_sparse() 257 ASSERT.that(table.column(5).keySet()).has().exactly('e', 'x').inOrder(); in testBuilder_orderRowsAndColumnsBy_sparse() 278 ASSERT.that(table.row('c').keySet()).has().exactly(1, 2, 3).inOrder(); in testBuilder_orderRowsAndColumnsBy_dense() 279 ASSERT.that(table.column(1).keySet()).has().exactly('a', 'b', 'c').inOrder(); in testBuilder_orderRowsAndColumnsBy_dense() 297 ASSERT.that(table.column(5).keySet()).has().exactly('e', 'x').inOrder(); in testBuilder_orderRowsBy_sparse() 314 ASSERT.that(table.column(1).keySet()).has().exactly('a', 'b', 'c').inOrder(); in testBuilder_orderRowsBy_dense() 332 ASSERT.that(table.row('c').keySet()).has().exactly(0, 3).inOrder(); in testBuilder_orderColumnsBy_sparse() [all …]
|
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/ |
D | TreeMultimapExplicitTest.java | 100 ASSERT.that(tree.keySet()).has().exactly("tree", "google").inOrder(); in testMultimapCreateFromTreeMultimap() 105 ASSERT.that(copy.keySet()).has().exactly("google", "tree").inOrder(); in testMultimapCreateFromTreeMultimap() 138 ASSERT.that(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 ASSERT.that(table.row('b').keySet()).has().exactly(1, 2).inOrder(); in testCopyOf() 188 ASSERT.that(ImmutableTable.copyOf(table).row('b').keySet()) in testCopyOf() 233 ASSERT.that(copy.row('b').keySet()).has().exactly(1, 2).inOrder(); in testBuilder_orderRowsAndColumnsBy_putAll() 255 ASSERT.that(table.row('c').keySet()).has().exactly(0, 3).inOrder(); in testBuilder_orderRowsAndColumnsBy_sparse() 256 ASSERT.that(table.column(5).keySet()).has().exactly('e', 'x').inOrder(); in testBuilder_orderRowsAndColumnsBy_sparse() 277 ASSERT.that(table.row('c').keySet()).has().exactly(1, 2, 3).inOrder(); in testBuilder_orderRowsAndColumnsBy_dense() 278 ASSERT.that(table.column(1).keySet()).has().exactly('a', 'b', 'c').inOrder(); in testBuilder_orderRowsAndColumnsBy_dense() 296 ASSERT.that(table.column(5).keySet()).has().exactly('e', 'x').inOrder(); in testBuilder_orderRowsBy_sparse() 313 ASSERT.that(table.column(1).keySet()).has().exactly('a', 'b', 'c').inOrder(); in testBuilder_orderRowsBy_dense() 331 ASSERT.that(table.row('c').keySet()).has().exactly(0, 3).inOrder(); in testBuilder_orderColumnsBy_sparse() [all …]
|
/external/mockito/cglib-and-asm/src/org/mockito/cglib/beans/ |
D | BeanMap.java | 214 return keySet().contains(key); in containsKey() 218 for (Iterator it = keySet().iterator(); it.hasNext();) { in containsValue() 227 return keySet().size(); in size() 239 for (Iterator it = t.keySet().iterator(); it.hasNext();) { in putAll() 253 for (Iterator it = keySet().iterator(); it.hasNext();) { in equals() 269 for (Iterator it = keySet().iterator(); it.hasNext();) { in hashCode() 281 for (Iterator it = keySet().iterator(); it.hasNext();) { in entrySet() 289 Set keys = keySet(); in values() 304 for (Iterator it = keySet().iterator(); it.hasNext();) { in toString()
|
/external/jetty/src/java/org/eclipse/jetty/util/ |
D | AttributesMap.java | 92 return Collections.enumeration(_map.keySet()); in getAttributeNames() 101 return _map.keySet(); in getAttributeNameSet() 117 return Collections.enumeration(((AttributesMap)attrs)._map.keySet()); in getAttributeNamesCopy() 147 public Set<String> keySet() in keySet() method in AttributesMap 149 return _map.keySet(); in keySet()
|
/external/icu/icu4j/main/tests/collate/src/com/ibm/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/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/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/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/util/ |
D | Relation.java | 92 for (K key : data.keySet()) { in keyValueSet() 131 public Set<K> keySet() { in keySet() method in Relation 132 return data.keySet(); in keySet() 170 for (K key : t.keySet()) { in putAll() 176 for (K key : t.keySet()) { in putAll() 257 for (V value : source.data.keySet()) { in addAllInverted() 266 for (V value : source.keySet()) { in addAllInverted() 281 for (K key : data.keySet()) { in freeze() 298 for (K key : toBeRemoved.keySet()) { in removeAll()
|
D | UnicodeMap.java | 507 return putAll(keySet(null), value); 515 public UnicodeSet keySet(T value, UnicodeSet result) { 523 for (String key : stringMap.keySet()) { 537 public UnicodeSet keySet(T value) { 538 return keySet(value,null); 544 public UnicodeSet keySet() { 552 result.addAll(stringMap.keySet()); 659 UnicodeSet set = other.keySet(value); 703 for (String s : stringMap.keySet()) { 711 UnicodeSet s = keySet(value); [all …]
|
/external/antlr/antlr-3.4/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/antlr-3.4/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/antlr-3.4/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
|
/external/jetty/src/java/org/eclipse/jetty/util/log/jmx/ |
D | LogMBean.java | 40 List<String> keySet = new ArrayList<String>(Log.getLoggers().keySet()); in getLoggers() local 41 return keySet; in getLoggers()
|
/external/mockftpserver/tags/2.0-rc3/MockFtpServer/src/test/java/org/mockftpserver/core/command/ |
D | InvocationRecordTest.java | 153 assertEquals("empty", set, invocationRecord.keySet()); in testKeySet() 158 assertEquals("2", set, invocationRecord.keySet()); in testKeySet() 165 Set keySet = invocationRecord.keySet(); in testKeySet_Immutability() local 167 keySet.add("abc"); in testKeySet_Immutability()
|
/external/mockftpserver/tags/2.4/src/test/java/org/mockftpserver/core/command/ |
D | InvocationRecordTest.java | 154 assertEquals("empty", set, invocationRecord.keySet()); in testKeySet() 159 assertEquals("2", set, invocationRecord.keySet()); in testKeySet() 166 Set keySet = invocationRecord.keySet(); in testKeySet_Immutability() local 168 keySet.add("abc"); in testKeySet_Immutability()
|
/external/mockftpserver/MockFtpServer/src/test/java/org/mockftpserver/core/command/ |
D | InvocationRecordTest.java | 154 assertEquals("empty", set, invocationRecord.keySet()); in testKeySet() 159 assertEquals("2", set, invocationRecord.keySet()); in testKeySet() 166 Set keySet = invocationRecord.keySet(); in testKeySet_Immutability() local 168 keySet.add("abc"); in testKeySet_Immutability()
|
/external/mockftpserver/tags/2.0/src/test/java/org/mockftpserver/core/command/ |
D | InvocationRecordTest.java | 153 assertEquals("empty", set, invocationRecord.keySet()); in testKeySet() 158 assertEquals("2", set, invocationRecord.keySet()); in testKeySet() 165 Set keySet = invocationRecord.keySet(); in testKeySet_Immutability() local 167 keySet.add("abc"); in testKeySet_Immutability()
|