Home
last modified time | relevance | path

Searched refs:keySet (Results 1 – 25 of 278) sorted by relevance

12345678910>>...12

/external/stlport/test/unit/
Dset_test.cpp397 KeySet keySet; in template_methods() local
398 keySet.insert(Key(1)); in template_methods()
399 keySet.insert(Key(2)); in template_methods()
400 keySet.insert(Key(3)); in template_methods()
401 keySet.insert(Key(4)); in template_methods()
403 CPPUNIT_ASSERT( keySet.count(Key(1)) == 1 ); in template_methods()
404 CPPUNIT_ASSERT( keySet.count(1) == 1 ); in template_methods()
405 CPPUNIT_ASSERT( keySet.count(5) == 0 ); in template_methods()
407 CPPUNIT_ASSERT( keySet.find(2) != keySet.end() ); in template_methods()
408 CPPUNIT_ASSERT( keySet.lower_bound(2) != keySet.end() ); in template_methods()
[all …]
/external/apache-harmony/support/src/test/java/tests/support/
DSupport_UnmodifiableMapTest.java87 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/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/
DTreeMapExtendTest.java141 assertEquals(tm.keySet(), treeMap.keySet()); in test_TreeMap_Constructor_Map()
160 assertEquals(subMap_default.keySet(), treeMap.keySet()); in test_TreeMap_Constructor_SortedMap()
933 Set keySet = subMap_default.keySet(); in test_SubMap_keySet() local
934 assertFalse(keySet.isEmpty()); in test_SubMap_keySet()
935 assertEquals(9, keySet.size()); in test_SubMap_keySet()
937 keySet = subMap_startExcluded_endExcluded.entrySet(); in test_SubMap_keySet()
938 assertFalse(keySet.isEmpty()); in test_SubMap_keySet()
939 assertEquals(8, keySet.size()); in test_SubMap_keySet()
941 keySet = subMap_startExcluded_endIncluded.entrySet(); in test_SubMap_keySet()
942 assertFalse(keySet.isEmpty()); in test_SubMap_keySet()
[all …]
DAbstractMapTest.java78 assertSame("HashMap(0)", map1.keySet(), map1.keySet()); in test_keySet()
81 assertSame("HashMap(10)", map2.keySet(), map2.keySet()); in test_keySet()
84 assertSame("EMPTY_MAP", map3.keySet(), map3.keySet()); in test_keySet()
87 assertSame("IdentityHashMap", map4.keySet(), map4.keySet()); in test_keySet()
90 assertSame("LinkedHashMap", map5.keySet(), map5.keySet()); in test_keySet()
93 assertSame("TreeMap", map6.keySet(), map6.keySet()); in test_keySet()
96 assertSame("WeakHashMap", map7.keySet(), map7.keySet()); in test_keySet()
379 testNullsOnView(nullHostile.keySet());
DResourceBundleTest.java410 assertEquals(6, bundle.keySet().size()); in test_getBundle_LStringLControl()
454 assertEquals(6, bundle.keySet().size()); in test_getBundle_LStringLLocaleLControl()
518 assertEquals(6, bundle.keySet().size()); in getBundleWithControlTester()
527 assertEquals(6, bundle.keySet().size()); in getBundleWithControlTester()
536 assertEquals(4, bundle.keySet().size()); in getBundleWithControlTester()
547 assertEquals(4, bundle.keySet().size()); in getBundleWithControlTester()
559 assertEquals(5, bundle.keySet().size()); in getBundleWithControlTester()
568 assertEquals(6, bundle.keySet().size()); in getBundleWithControlTester()
579 assertEquals(2, bundle.keySet().size()); in getBundleWithControlTester()
587 assertEquals(2, bundle.keySet().size()); in getBundleWithControlTester()
[all …]
DSortedMapTestBase.java98 assertEquals(ref.keySet(), map.keySet()); in testKeySet()
99 Iterator<Integer> i = ref.keySet().iterator(); in testKeySet()
100 Iterator<Integer> j = map.keySet().iterator(); in testKeySet()
283 assertFalse(map.keySet().iterator().hasNext()); in testIsEmpty2()
325 assertEquals(ref.keySet().size(), map.keySet().size()); in testViews()
326 assertEquals(ref.keySet(), map.keySet()); in testViews()
327 compareIterators(ref.keySet(), map.keySet()); in testViews()
DHashtableTest.java111 hashTable.put(hashTable, hashTable.keySet()); in test_HashTable_Constructor()
415 Set s = ht10.keySet(); in test_keySet()
428 Iterator it = map.keySet().iterator(); in test_keySet()
439 assertTrue("Wrong contents", map.keySet().iterator().next().equals( in test_keySet()
445 Iterator it2 = map2.keySet().iterator(); in test_keySet()
456 assertTrue("Wrong contents 2", map2.keySet().iterator().next().equals( in test_keySet()
468 Set s1 = ht10.keySet(); in test_keySet_subtest0()
483 Set set = ht.keySet(); in test_keySet_subtest0()
518 Iterator it = ht.keySet().iterator(); in test_keySet_subtest1()
590 Set keySet = hashTable.keySet(); in test_HashTable_remove_scenario1() local
[all …]
DIdentityHashMap2Test.java154 Set keys = map.keySet(); in test_clone()
169 Set key2 = map2.keySet(); in test_clone()
256 Set s = hm.keySet(); in test_keySet()
265 assertTrue("Failed with null key", m.keySet().contains(null)); in test_keySet()
266 assertNull("Failed with null key", m.keySet().iterator().next()); in test_keySet()
272 Iterator it = map.keySet().iterator(); in test_keySet()
284 assertTrue("Wrong contents", map.keySet().iterator().next().equals( in test_keySet()
290 Iterator it2 = map2.keySet().iterator(); in test_keySet()
301 assertTrue("Wrong contents 2", map2.keySet().iterator().next().equals( in test_keySet()
DHashMapTest.java229 Set keys = map.keySet(); in test_clone()
244 Set key2 = map2.keySet(); in test_clone()
396 Set s = hm.keySet(); in test_keySet()
404 assertTrue("Failed with null key", m.keySet().contains(null)); in test_keySet()
405 assertNull("Failed with null key", m.keySet().iterator().next()); in test_keySet()
411 Iterator it = map.keySet().iterator(); in test_keySet()
423 assertTrue("Wrong contents", map.keySet().iterator().next().equals( in test_keySet()
429 Iterator it2 = map2.keySet().iterator(); in test_keySet()
440 assertTrue("Wrong contents 2", map2.keySet().iterator().next().equals( in test_keySet()
471 for (Iterator<Integer> itr = map.keySet().iterator(); itr.hasNext();) { in test_putLjava_lang_ObjectLjava_lang_Object()
[all …]
/external/guava/guava-tests/test/com/google/common/cache/
DCacheEvictionTest.java171 Set<Integer> keySet = cache.asMap().keySet(); in testEviction_lru() local
172 ASSERT.that(keySet).hasContentsAnyOrder(0, 1, 2, 3, 4, 5, 6, 7, 8, 9); in testEviction_lru()
177 ASSERT.that(keySet).hasContentsAnyOrder(3, 4, 5, 6, 7, 8, 9, 0, 1, 2); in testEviction_lru()
182 ASSERT.that(keySet).hasContentsAnyOrder(6, 7, 8, 9, 0, 1, 2, 10, 11, 12); in testEviction_lru()
187 ASSERT.that(keySet).hasContentsAnyOrder(9, 0, 1, 2, 10, 11, 12, 6, 7, 8); in testEviction_lru()
192 ASSERT.that(keySet).hasContentsAnyOrder(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).hasContentsAnyOrder(0, 1, 2, 3, 4, 5, 6, 7, 8, 9); in testEviction_weightedLru()
210 ASSERT.that(keySet).hasContentsAnyOrder(3, 4, 5, 6, 7, 8, 9, 0, 1, 2); in testEviction_weightedLru()
215 ASSERT.that(keySet).hasContentsAnyOrder(6, 7, 8, 9, 0, 1, 2, 10); in testEviction_weightedLru()
[all …]
DCacheExpirationTest.java143 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).hasContentsAnyOrder(0, 1, 2, 3, 4, 5, 6, 7, 8, 9); in testExpirationOrder_access()
267 ASSERT.that(keySet).hasContentsAnyOrder(1, 2, 3, 4, 5, 6, 7, 8, 9); in testExpirationOrder_access()
273 ASSERT.that(keySet).hasContentsAnyOrder(3, 4, 5, 6, 7, 8, 9, 0, 1, 2); in testExpirationOrder_access()
277 ASSERT.that(keySet).hasContentsAnyOrder(4, 5, 6, 7, 8, 9, 0, 1, 2); in testExpirationOrder_access()
282 ASSERT.that(keySet).hasContentsAnyOrder(4, 6, 8, 0, 1, 2, 5, 7, 9); in testExpirationOrder_access()
286 ASSERT.that(keySet).hasContentsAnyOrder(6, 8, 0, 1, 2, 5, 7, 9); in testExpirationOrder_access()
288 ASSERT.that(keySet).hasContentsAnyOrder(6, 8, 0, 1, 2, 5, 7, 9); in testExpirationOrder_access()
292 ASSERT.that(keySet).hasContentsAnyOrder(8, 0, 1, 2, 5, 7, 9); in testExpirationOrder_access()
[all …]
/external/guava/guava-tests/test/com/google/common/collect/
DTreeMultimapExplicitTest.java99 ASSERT.that(tree.keySet()).hasContentsInOrder("tree", "google"); in testMultimapCreateFromTreeMultimap()
104 ASSERT.that(copy.keySet()).hasContentsInOrder("google", "tree"); in testMultimapCreateFromTreeMultimap()
131 ASSERT.that(multimap.keySet()).hasContentsInOrder(null, "tree", "google"); in testOrderedKeySet()
184 SortedSet<String> keySet = multimap.keySet(); in testSortedKeySet() local
186 assertEquals(null, keySet.first()); in testSortedKeySet()
187 assertEquals("google", keySet.last()); in testSortedKeySet()
188 assertEquals(StringLength.COMPARATOR, keySet.comparator()); in testSortedKeySet()
189 assertEquals(Sets.newHashSet(null, "tree"), keySet.headSet("yahoo")); in testSortedKeySet()
190 assertEquals(Sets.newHashSet("google"), keySet.tailSet("yahoo")); in testSortedKeySet()
191 assertEquals(Sets.newHashSet("tree"), keySet.subSet("ask", "yahoo")); in testSortedKeySet()
[all …]
DTreeMultimapNaturalTest.java93 ASSERT.that(multimap.keySet()).hasContentsInOrder("foo", "google", "tree"); in testOrderedKeySet()
267 SortedSet<String> keySet = multimap.keySet(); in testSortedKeySet() local
269 assertEquals("foo", keySet.first()); in testSortedKeySet()
270 assertEquals("tree", keySet.last()); in testSortedKeySet()
271 assertEquals(Ordering.natural(), keySet.comparator()); in testSortedKeySet()
272 assertEquals(ImmutableSet.of("foo", "google"), keySet.headSet("hi")); in testSortedKeySet()
273 assertEquals(ImmutableSet.of("tree"), keySet.tailSet("hi")); in testSortedKeySet()
274 assertEquals(ImmutableSet.of("google"), keySet.subSet("gap", "hi")); in testSortedKeySet()
279 SortedSet<String> keySet = multimap.keySet(); in testKeySetSubSet() local
280 SortedSet<String> subSet = keySet.subSet("gap", "hi"); in testKeySetSubSet()
[all …]
DSortedMapsTest.java114 ASSERT.that(filtered.keySet()).hasContentsInOrder(2, 4, 6); in testFilterKeys()
118 ASSERT.that(filtered.headMap(5).keySet()).hasContentsInOrder(2, 4); in testFilterKeys()
119 ASSERT.that(filtered.tailMap(3).keySet()).hasContentsInOrder(4, 6); in testFilterKeys()
120 ASSERT.that(filtered.subMap(3, 5).keySet()).hasContentsInOrder(4); in testFilterKeys()
143 ASSERT.that(filtered.keySet()).hasContentsInOrder(3, 4, 5, 7); in testFilterValues()
147 ASSERT.that(filtered.headMap(5).keySet()).hasContentsInOrder(3, 4); in testFilterValues()
148 ASSERT.that(filtered.tailMap(4).keySet()).hasContentsInOrder(4, 5, 7); in testFilterValues()
149 ASSERT.that(filtered.subMap(4, 6).keySet()).hasContentsInOrder(4, 5); in testFilterValues()
DImmutableTableTest.java184 ASSERT.that(table.row('b').keySet()).hasContentsInOrder(1, 2); in testCopyOf()
185 ASSERT.that(ImmutableTable.copyOf(table).row('b').keySet()) in testCopyOf()
230 ASSERT.that(copy.row('b').keySet()).hasContentsInOrder(1, 2); in testBuilder_orderRowsAndColumnsBy_putAll()
252 ASSERT.that(table.row('c').keySet()).hasContentsInOrder(0, 3); in testBuilder_orderRowsAndColumnsBy_sparse()
253 ASSERT.that(table.column(5).keySet()).hasContentsInOrder('e', 'x'); in testBuilder_orderRowsAndColumnsBy_sparse()
274 ASSERT.that(table.row('c').keySet()).hasContentsInOrder(1, 2, 3); in testBuilder_orderRowsAndColumnsBy_dense()
275 ASSERT.that(table.column(1).keySet()).hasContentsInOrder('a', 'b', 'c'); in testBuilder_orderRowsAndColumnsBy_dense()
293 ASSERT.that(table.column(5).keySet()).hasContentsInOrder('e', 'x'); in testBuilder_orderRowsBy_sparse()
310 ASSERT.that(table.column(1).keySet()).hasContentsInOrder('a', 'b', 'c'); in testBuilder_orderRowsBy_dense()
328 ASSERT.that(table.row('c').keySet()).hasContentsInOrder(0, 3); in testBuilder_orderColumnsBy_sparse()
[all …]
DSynchronizedMapTest.java106 @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/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/misc/
DDoubleKeyMap.java42 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/guava/guava-testlib/src/com/google/common/collect/testing/
DMapInterfaceTest.java179 Set<K> keySet = map.keySet(); in assertInvariants() local
184 assertEquals(map.size(), keySet.size()); in assertInvariants()
185 assertEquals(keySet.size() == 0, keySet.isEmpty()); in assertInvariants()
186 assertEquals(!keySet.isEmpty(), keySet.iterator().hasNext()); in assertInvariants()
189 for (K key : keySet) { in assertInvariants()
199 assertEquals(expectedKeySetHash, keySet.hashCode()); in assertInvariants()
308 assertTrue(map.containsKey(map.keySet().iterator().next())); in testContainsKey()
561 K key = map.keySet().iterator().next(); in testEntrySetRemoveDifferentValue()
908 smallerMap.remove(smallerMap.keySet().iterator().next()); in testEqualsForSmallerMap()
1041 keyToPut = map.keySet().iterator().next(); in testPutExistingKey()
[all …]
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.JavaExtensions/
DDictionaryExtensions.cs111 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/
DDictionaryExtensions.cs106 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/chromium_org/content/public/android/javatests/src/org/chromium/content/browser/
DDownloadInfoTest.java159 downloadInfoGetters.keySet(), builderSetters.keySet()); in testBuilderHasCorrectSetters()
166 for (AccessorSignature signature : builderSetters.keySet()) { in testBuilderHasCorrectSetters()
181 for (AccessorSignature signature : builderSetters.keySet()) { in testBuilderHasCorrectSetters()
191 for (AccessorSignature signature : downloadInfoGetters.keySet()) { in testBuilderHasCorrectSetters()
205 for (AccessorSignature signature : downloadInfoGetters.keySet()) { in testBuilderHasCorrectSetters()
/external/apache-harmony/archive/src/test/java/org/apache/harmony/archive/tests/java/util/jar/
DAttributesTest.java85 Set<Object> keySet = new HashSet<Object>(); in test_entrySet() local
93 keySet.add(e.getKey()); in test_entrySet()
100 assertTrue("a) Should contain key", keySet.contains(new Attributes.Name("1"))); in test_entrySet()
101 assertTrue("b) Should contain key", keySet.contains(new Attributes.Name("2"))); in test_entrySet()
102 assertTrue("c) Should contain key", keySet.contains(new Attributes.Name("3"))); in test_entrySet()
103 assertTrue("d) Should contain key", keySet.contains(new Attributes.Name("4"))); in test_entrySet()
129 Set<?> s = a.keySet(); in test_keySet()
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/
DCSSMetadata.js82 WebInspector.CSSMetadata._colorsKeySet = WebInspector.CSSMetadata._colors.keySet();
94 ].keySet();
99 ].keySet();
152 ].keySet();
734 …CSSMetadata._cssPropertiesMetainfoKeySet = WebInspector.CSSMetadata.cssPropertiesMetainfo.keySet();
925 keySet: function() method in WebInspector.CSSMetadata
928 this._keySet = this._values.keySet();
/external/guava/guava/src/com/google/common/collect/
DSingletonImmutableMap.java89 private transient ImmutableSet<K> keySet; field in SingletonImmutableMap
91 @Override public ImmutableSet<K> keySet() { in keySet() method in SingletonImmutableMap
92 ImmutableSet<K> ks = keySet; in keySet()
93 return (ks == null) ? (keySet = ImmutableSet.of(singleKey)) : ks; in keySet()
/external/nist-sip/java/gov/nist/core/
DNameValueList.java155 Iterator<String> li = this.hmap.keySet().iterator(); in equals()
254 return this.hmap.keySet().iterator(); in getNames()
318 public Set<String> keySet() { in keySet() method in NameValueList
319 return this.hmap.keySet(); in keySet()
352 return this.hmap.keySet().hashCode(); in hashCode()

12345678910>>...12