/libcore/luni/src/test/java/libcore/java/net/ |
D | CookiesMCompatibilityTest.java | 38 Map<String, List<String>> responseHeaders = Collections.singletonMap("Set-Cookie", in testCookiesWithoutLeadingPeriod() 55 Map<String, List<String>> responseHeaders = Collections.singletonMap("Set-Cookie", in testCookiesWithLeadingPeriod()
|
D | CookiesTest.java | 38 Map<String, List<String>> responseHeaders = Collections.singletonMap("Set-Cookie", in testCookiesWithLeadingPeriod()
|
D | AbstractCookiesTest.java | 767 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/ |
D | UnicodeLocaleExtension.java | 56 keywords = Collections.singletonMap(key, value); in UnicodeLocaleExtension()
|
D | LocaleExtensions.java | 64 this.extensionMap = Collections.singletonMap(key, value); in LocaleExtensions()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | CollectionsTest.java | 1281 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()
|
D | HashMapTest.java | 135 Map<String, Integer> m = new HashMap<>(Collections.singletonMap("key", 42)); in test_spliterator_entrySet()
|
D | LocaleLanguageRangeTest.java | 161 Collections.singletonMap("en-US", Arrays.asList("en-US", "en-AU", "en-UK")))); in testMapEquivalents_emptyList()
|
D | LinkedHashMapTest.java | 485 Map<String, Integer> m = new LinkedHashMap<>(Collections.singletonMap("key", 23)); in test_spliterator_entrySet()
|
/libcore/luni/src/test/java/libcore/java/security/cert/ |
D | PKIXRevocationCheckerTest.java | 73 .singletonMap((X509Certificate) entity.getCertificate(), goodOCSPResponse); in test_CanSetOCSPResponse()
|
D | CertPathValidatorTest.java | 117 Collections.singletonMap(serverCert, ocspResponse.getEncoded())); in runOCSPStapledTest()
|
/libcore/ojluni/src/main/java/java/time/zone/ |
D | IcuZoneRulesProvider.java | 79 Collections.singletonMap(TimeZone.getTZDataVersion(), in provideVersions()
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | OldAttributedStringTest.java | 183 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/ |
D | CollectionsTest.java | 1981 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()
|
D | Collections2Test.java | 542 testMapForEach(Collections.singletonMap("one", "1")); in test_Map_forEach()
|
/libcore/json/src/test/java/libcore/org/json/ |
D | JSONArrayTest.java | 315 array.put(new JSONObject(Collections.singletonMap("x", 6))); in testJoin()
|
D | JSONObjectTest.java | 671 JSONObject object = new JSONObject(Collections.singletonMap("foo", Double.NaN)); in testToStringWithUnsupportedNumbers()
|
/libcore/ojluni/annotations/sdk/nullability/java/util/ |
D | Collections.annotated.java | 148 …@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/ |
D | SerializationStressTest4.java | 1101 objToSave = java.util.Collections.singletonMap("key", new Byte( in test_writeObject_Collections_SingletonMap()
|