Home
last modified time | relevance | path

Searched refs:containsKey (Results 1 – 25 of 71) sorted by relevance

123

/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
DMyKeyStore.java65 if (Keys.containsKey(alias)) { in engineGetKey()
72 if (Chain.containsKey(alias)) { in engineGetCertificateChain()
79 if (Cert.containsKey(alias)) { in engineGetCertificate()
86 if (Dates.containsKey(alias)) { in engineGetCreationDate()
94 if (Cert.containsKey(alias)) { in engineSetKeyEntry()
109 if (Cert.containsKey(alias)) { in engineSetKeyEntry()
112 if (Chain.containsKey(alias)) { in engineSetKeyEntry()
132 if (Keys.containsKey(alias)) { in engineDeleteEntry()
137 if (Cert.containsKey(alias)) { in engineDeleteEntry()
147 if (Keys.containsKey(alias)) { in engineContainsAlias()
[all …]
DTestKeyPair.java581 if (!privateKeyEncoding.containsKey(this.algorithmName)) { in TestKeyPair()
/libcore/jsr166-tests/src/test/java/jsr166/
DConcurrentSkipListSubMapTest.java89 assertTrue(map.containsKey(one)); in testContainsKey()
90 assertFalse(map.containsKey(zero)); in testContainsKey()
252 assertTrue(empty.containsKey(one));
253 assertTrue(empty.containsKey(two));
254 assertTrue(empty.containsKey(three));
255 assertTrue(empty.containsKey(four));
256 assertTrue(empty.containsKey(five));
265 assertTrue(map.containsKey(six));
282 assertFalse(map.containsKey(six));
321 assertFalse(map.containsKey(five));
[all …]
DTreeSubMapTest.java87 assertTrue(map.containsKey(one)); in testContainsKey()
88 assertFalse(map.containsKey(zero)); in testContainsKey()
208 assertTrue(empty.containsKey(one));
209 assertTrue(empty.containsKey(two));
210 assertTrue(empty.containsKey(three));
211 assertTrue(empty.containsKey(four));
212 assertTrue(empty.containsKey(five));
222 assertFalse(map.containsKey(five));
394 c.containsKey(null);
444 assertFalse(sm.containsKey(one));
[all …]
DConcurrentHashMapTest.java94 assertTrue(m.containsKey(new CI(i))); in testComparableFamily()
95 assertTrue(m.containsKey(new DI(i))); in testComparableFamily()
112 assertTrue(m.containsKey(bis)); in testGenericComparable()
114 assertTrue(m.containsKey(bss)); in testGenericComparable()
115 assertTrue(m.containsKey(bis)); in testGenericComparable()
118 assertTrue(m.containsKey(new ArrayList(Collections.singleton(new BI(i))))); in testGenericComparable()
136 assertTrue(m.containsKey(bis)); in testGenericComparable2()
176 assertTrue(map.containsKey(one)); in testContainsKey()
177 assertFalse(map.containsKey(zero)); in testContainsKey()
291 assertTrue(map.containsKey(((Map.Entry)(ar[i])).getKey())); in testEntrySetToArray()
[all …]
DConcurrentSkipListMapTest.java67 assertTrue(map.containsKey(one)); in testContainsKey()
68 assertFalse(map.containsKey(zero)); in testContainsKey()
310 assertTrue(map.containsKey(((Map.Entry)(ar[i])).getKey()));
324 assertTrue(map.containsKey(((Map.Entry)(ar[i])).getKey()));
337 assertTrue(empty.containsKey(one));
338 assertTrue(empty.containsKey(two));
339 assertTrue(empty.containsKey(three));
340 assertTrue(empty.containsKey(four));
341 assertTrue(empty.containsKey(five));
350 assertTrue(map.containsKey(six));
[all …]
DTreeMapTest.java66 assertTrue(map.containsKey(one)); in testContainsKey()
67 assertFalse(map.containsKey(zero)); in testContainsKey()
293 assertTrue(map.containsKey(((Map.Entry)(ar[i])).getKey()));
307 assertTrue(map.containsKey(((Map.Entry)(ar[i])).getKey()));
320 assertTrue(empty.containsKey(one));
321 assertTrue(empty.containsKey(two));
322 assertTrue(empty.containsKey(three));
323 assertTrue(empty.containsKey(four));
324 assertTrue(empty.containsKey(five));
334 assertFalse(map.containsKey(five));
[all …]
/libcore/luni/src/main/java/org/apache/harmony/security/
DSystemScope.java106 if (names.containsKey(name)) { in addIdentity()
111 if (key != null && keys.containsKey(key)) { in addIdentity()
137 boolean contains = names.containsKey(name); in removeIdentity()
143 contains = contains || keys.containsKey(key); in removeIdentity()
/libcore/luni/src/test/java/libcore/java/util/jar/
DStrictJarFileTest.java68 assertTrue(entries.containsKey("META-INF/")); in testIteration()
70 assertTrue(entries.containsKey("META-INF/MANIFEST.MF")); in testIteration()
76 assertTrue(entries.containsKey("Blah.txt")); in testIteration()
84 assertTrue(entries.containsKey("foo/")); in testIteration()
85 assertTrue(entries.containsKey("foo/bar/")); in testIteration()
86 assertTrue(entries.containsKey("foo/bar/A.class")); in testIteration()
/libcore/luni/src/test/java/libcore/java/util/
DOldAndroidHashMapTest.java71 assertFalse(map.containsKey("one")); in testManipulate()
87 assertTrue(map.containsKey(null)); in testManipulate()
88 assertTrue(map.containsKey("one")); in testManipulate()
89 assertTrue(map.containsKey("two")); in testManipulate()
90 assertTrue(map.containsKey("three")); in testManipulate()
106 assertFalse(map.containsKey("one")); in testManipulate()
DOldTreeMapTest.java158 assertTrue("Returned false for valid key", tm.containsKey("95")); in test_containsKeyLjava_lang_Object()
159 assertTrue("Returned true for invalid key", !tm.containsKey("XXXXX")); in test_containsKeyLjava_lang_Object()
162 tm.containsKey(new Double(3.14)); in test_containsKeyLjava_lang_Object()
169 tm.containsKey(null); in test_containsKeyLjava_lang_Object()
215 assertTrue("Returned incorrect elements", head.containsKey("0") in test_headMapLjava_lang_Object()
217 && head.containsKey("10")); in test_headMapLjava_lang_Object()
376 assertTrue("Failed to remove mapping", !tm.containsKey("990")); in test_removeLjava_lang_Object()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DIdentityHashMapTest.java172 .containsKey(objArray2[23])); in test_containsKeyLjava_lang_Object()
174 .containsKey(new Integer(23).toString())); in test_containsKeyLjava_lang_Object()
175 assertTrue("Returned true for invalid key", !hm.containsKey("KKDKDKD")); in test_containsKeyLjava_lang_Object()
179 assertTrue("Failed with null key", m.containsKey(null)); in test_containsKeyLjava_lang_Object()
181 .containsKey(new Integer(0))); in test_containsKeyLjava_lang_Object()
206 assertTrue("Returned incorrect entry set", hm.containsKey(m in test_entrySet()
511 assertTrue("testA can not find null key", map.containsKey(null)); in test_null_Keys_and_Values()
520 assertTrue("testB can not find null key", map.containsKey(null)); in test_null_Keys_and_Values()
531 .containsKey(key)); in test_null_Keys_and_Values()
539 assertTrue("testD can not find null key", map.containsKey(null)); in test_null_Keys_and_Values()
[all …]
DTreeMapExtendTest.java116 assertFalse(treeMap.containsKey(1)); in test_TreeMap_Constructor_Default()
189 .containsKey(key)); in test_SubMap_containsKey()
191 subMap_startExcluded_endExcluded.containsKey(key)); in test_SubMap_containsKey()
193 subMap_startExcluded_endIncluded.containsKey(key)); in test_SubMap_containsKey()
195 subMap_startIncluded_endExcluded.containsKey(key)); in test_SubMap_containsKey()
197 subMap_startIncluded_endIncluded.containsKey(key)); in test_SubMap_containsKey()
203 .containsKey(key)); in test_SubMap_containsKey()
205 subMap_startExcluded_endExcluded.containsKey(key)); in test_SubMap_containsKey()
207 subMap_startExcluded_endIncluded.containsKey(key)); in test_SubMap_containsKey()
209 subMap_startIncluded_endExcluded.containsKey(key)); in test_SubMap_containsKey()
[all …]
DAbstractMapTest.java177 assertFalse(map.containsKey("k")); in test_containsKey()
178 assertFalse(map.containsKey(null)); in test_containsKey()
185 assertTrue(map.containsKey("k")); in test_containsKey()
186 assertTrue(map.containsKey("key")); in test_containsKey()
187 assertTrue(map.containsKey(null)); in test_containsKey()
DIdentityHashMap2Test.java167 assertTrue("Failed with null key", m.containsKey(null)); in test_containsKeyLjava_lang_Object()
168 assertFalse("Failed with missing key matching null hash", m.containsKey(new Integer(0))); in test_containsKeyLjava_lang_Object()
191 assertTrue(hm.containsKey(a)); in test_containsKey_copies()
192 assertFalse(hm.containsKey(a.clone())); in test_containsKey_copies()
217 assertTrue("Returned incorrect entry set", hm.containsKey(m in test_entrySet()
DHashMapTest.java241 assertTrue("Returned false for valid key", hm.containsKey(new Integer( in test_containsKeyLjava_lang_Object()
243 assertTrue("Returned true for invalid key", !hm.containsKey("KKDKDKD")); in test_containsKeyLjava_lang_Object()
247 assertTrue("Failed with null key", m.containsKey(null)); in test_containsKeyLjava_lang_Object()
249 .containsKey(new Integer(0))); in test_containsKeyLjava_lang_Object()
274 assertTrue("Returned incorrect entry set", hm.containsKey(m in test_entrySet()
424 assertTrue(map.containsKey(myKey)); in test_putLjava_lang_ObjectLjava_lang_Object()
438 assertTrue(map.containsKey(myKey)); in test_putLjava_lang_ObjectLjava_lang_Object()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/
DAttributesTest.java60 assertTrue("Should not contain any keys", !a.containsKey("1")); in test_clear()
67 assertTrue("a) Should have returned false", !a.containsKey(new Integer(1))); in test_containsKeyLjava_lang_Object()
68 assertTrue("b) Should have returned false", !a.containsKey("0")); in test_containsKeyLjava_lang_Object()
69 assertTrue("Should have returned true", a.containsKey(new Attributes.Name("1"))); in test_containsKeyLjava_lang_Object()
252 assertFalse(attribute.containsKey(null)); in test_putLjava_lang_ObjectLjava_lang_Object_Null()
257 assertTrue(attribute.containsKey(null)); in test_putLjava_lang_ObjectLjava_lang_Object_Null()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/
DCharsetTest.java338 assertTrue(Charset.availableCharsets().containsKey("US-ASCII")); in testRequiredCharsetSupported()
339 assertTrue(Charset.availableCharsets().containsKey("ISO-8859-1")); in testRequiredCharsetSupported()
340 assertTrue(Charset.availableCharsets().containsKey("UTF-8")); in testRequiredCharsetSupported()
341 assertTrue(Charset.availableCharsets().containsKey("UTF-16")); in testRequiredCharsetSupported()
342 assertTrue(Charset.availableCharsets().containsKey("UTF-16BE")); in testRequiredCharsetSupported()
343 assertTrue(Charset.availableCharsets().containsKey("UTF-16LE")); in testRequiredCharsetSupported()
843 assertTrue(Charset.availableCharsets().containsKey("mockCharset00")); in testAvailableCharsets_NormalProvider()
844 assertTrue(Charset.availableCharsets().containsKey("MOCKCharset00")); in testAvailableCharsets_NormalProvider()
847 assertFalse(Charset.availableCharsets().containsKey("mockCharset01")); in testAvailableCharsets_NormalProvider()
848 assertFalse(Charset.availableCharsets().containsKey("mockCharset02")); in testAvailableCharsets_NormalProvider()
[all …]
/libcore/luni/src/main/java/org/apache/harmony/security/utils/
DAlgNameMapper.java198 boolean oid2AlgContains = oid2AlgMap.containsKey(alias); in selectEntries()
199 boolean alg2OidContains = alg2OidMap.containsKey(algUC); in selectEntries()
211 } else if (!algAliasesMap.containsKey(alias.toUpperCase(Locale.US))) { in selectEntries()
/libcore/support/src/test/java/tests/support/
DSupport_MapTest.java65 assertTrue("Should contain the key \"0\"", map.containsKey("0")); in testContents()
66 assertTrue("Should contain the key \"50\"", map.containsKey("50")); in testContents()
67 assertTrue("Should not contain the key \"100\"", !map.containsKey("100")); in testContents()
/libcore/luni/src/main/java/libcore/net/
DMimeUtils.java390 if (!mimeTypeToExtensionMap.containsKey(mimeType)) { in add()
393 if (!extensionToMimeTypeMap.containsKey(extension)) { in add()
465 return mimeTypeToExtensionMap.containsKey(mimeType); in hasMimeType()
489 return extensionToMimeTypeMap.containsKey(extension); in hasExtension()
/libcore/luni/src/test/java/libcore/java/math/
DRunCSVTests.java61 if (UlpMap.containsKey(func)) { in runTest()
95 if (UlpMap.containsKey(func)) { in run2InputTest()
/libcore/luni/src/main/java/java/util/
DMap.java102 public boolean containsKey(Object key); in containsKey() method
/libcore/luni/src/main/java/javax/security/auth/x500/
DX500Principal.java237 if (oidMap.containsKey(subSubName)) { in getName()
260 if (oidMap.containsKey(subName)) { in getName()
309 if (keywordMap.containsKey(subName)) { in substituteNameFromMap()
/libcore/luni/src/test/java/tests/java/sql/
DSelectFunctionalityTest.java251 assertTrue("wrong value of finteger field", value.containsKey(key)); in test_SubSelect()
288 assertTrue("wrong value of onum field", value.containsKey(key)); in test_SelectThreeTables()
317 assertTrue("wrong value of cnum field", value.containsKey(key)); in test_SelectUnionItself()
346 assertTrue("wrong value of ssnum field", value.containsKey(key)); in test_SelectLeftOuterJoin()
380 assertTrue("wrong value of ssnum field", value.containsKey(key)); in test_SelectRightOuterJoin()
408 .containsKey(rating)); in test_SelectGroupBy()

123