Home
last modified time | relevance | path

Searched refs:singletonMap (Results 1 – 19 of 19) sorted by relevance

/libcore/luni/src/test/java/libcore/java/net/
DCookiesMCompatibilityTest.java38 Map<String, List<String>> responseHeaders = Collections.singletonMap("Set-Cookie", in testCookiesWithoutLeadingPeriod()
55 Map<String, List<String>> responseHeaders = Collections.singletonMap("Set-Cookie", in testCookiesWithLeadingPeriod()
DCookiesTest.java38 Map<String, List<String>> responseHeaders = Collections.singletonMap("Set-Cookie", in testCookiesWithLeadingPeriod()
DAbstractCookiesTest.java767 return Collections.singletonMap("Set-Cookie", Arrays.asList(headers)); in cookieHeaders()
1534 Map<String, List<String>> responseHeaders = Collections.singletonMap("Set-Cookie", in testCookieWithNoPeriod()
/libcore/ojluni/src/main/java/sun/util/locale/
DUnicodeLocaleExtension.java56 keywords = Collections.singletonMap(key, value); in UnicodeLocaleExtension()
DLocaleExtensions.java64 this.extensionMap = Collections.singletonMap(key, value); in LocaleExtensions()
/libcore/luni/src/test/java/libcore/java/util/
DCollectionsTest.java1281 Map<Integer, Double> m = Collections.singletonMap(1, 11.0); in test_SingletonMap_getOrDefault()
1288 Collections.singletonMap(1, 11.0).forEach(m::put); in test_SingletonMap_forEach()
1295 Collections.singletonMap(1, 11.0).putIfAbsent(1, 5.0); in test_SingletonMap_putIfAbsent()
1303 Collections.singletonMap(1, 11.0).remove(1, 5.0); in test_SingletonMap_remove()
1311 Collections.singletonMap(1, 11.0).replace(1, 5.0, 5.0); in test_SingletonMap_replace$K$V$V()
1319 Collections.singletonMap(1, 11.0).replace(1, 5.0); in test_SingletonMap_replace$K$V()
1327 Collections.singletonMap(1, 11.0).computeIfAbsent(1, k -> 5.0); in test_SingletonMap_computeIfAbsent()
1335 Collections.singletonMap(1, 11.0).computeIfPresent(1, (k, v) -> 5.0); in test_SingletonMap_computeIfPresent()
1343 Collections.singletonMap(1, 11.0).compute(1, (k, v) -> 5.0); in test_SingletonMap_compute()
1351 Collections.singletonMap(1, 11.0).merge(1, 5.0, (k, v) -> 5.0); in test_SingletonMap_merge()
DHashMapTest.java135 Map<String, Integer> m = new HashMap<>(Collections.singletonMap("key", 42)); in test_spliterator_entrySet()
DLocaleLanguageRangeTest.java161 Collections.singletonMap("en-US", Arrays.asList("en-US", "en-AU", "en-UK")))); in testMapEquivalents_emptyList()
DLinkedHashMapTest.java485 Map<String, Integer> m = new LinkedHashMap<>(Collections.singletonMap("key", 23)); in test_spliterator_entrySet()
/libcore/luni/src/test/java/libcore/java/security/cert/
DPKIXRevocationCheckerTest.java73 .singletonMap((X509Certificate) entity.getCertificate(), goodOCSPResponse); in test_CanSetOCSPResponse()
DCertPathValidatorTest.java117 Collections.singletonMap(serverCert, ocspResponse.getEncoded())); in runOCSPStapledTest()
/libcore/ojluni/src/main/java/java/time/zone/
DIcuZoneRulesProvider.java79 Collections.singletonMap(TimeZone.getTZDataVersion(), in provideVersions()
/libcore/luni/src/test/java/libcore/java/text/
DOldAttributedStringTest.java183 Map<AttributedCharacterIterator.Attribute, String> map = Collections.singletonMap( in test_ConstructorLjava_lang_StringLjava_util_Map()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DCollectionsTest.java1981 Map single = Collections.singletonMap(key, value); in test_singletonMapLjava_lang_Object()
1987 assertFalse(Collections.singletonMap(null, null).containsKey(key)); in test_singletonMapLjava_lang_Object()
1988 assertFalse(Collections.singletonMap(null, null).containsValue(value)); in test_singletonMapLjava_lang_Object()
1989 assertTrue(Collections.singletonMap(null, null).containsKey(null)); in test_singletonMapLjava_lang_Object()
1990 assertTrue(Collections.singletonMap(null, null).containsValue(null)); in test_singletonMapLjava_lang_Object()
DCollections2Test.java542 testMapForEach(Collections.singletonMap("one", "1")); in test_Map_forEach()
/libcore/json/src/test/java/libcore/org/json/
DJSONArrayTest.java315 array.put(new JSONObject(Collections.singletonMap("x", 6))); in testJoin()
DJSONObjectTest.java671 JSONObject object = new JSONObject(Collections.singletonMap("foo", Double.NaN)); in testToStringWithUnsupportedNumbers()
/libcore/ojluni/annotations/sdk/nullability/java/util/
DCollections.annotated.java148 …@libcore.util.NullFromTypeParam K, @libcore.util.NullFromTypeParam V> singletonMap(@libcore.util.N… in singletonMap() method in Collections
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DSerializationStressTest4.java1101 objToSave = java.util.Collections.singletonMap("key", new Byte( in test_writeObject_Collections_SingletonMap()