/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | SampleBundleClass.java | 27 private static SampleBundleClass singleton; field in SampleBundleClass 32 if (singleton != null) { in SampleBundleClass() 35 singleton = this; in SampleBundleClass()
|
D | AbstractMapTest.java | 396 Set<Object> setOfNull = Collections.singleton(null);
|
D | CollectionsTest.java | 677 Set single = Collections.singleton(o); in test_singletonLjava_lang_Object() 681 assertFalse("null nCopies contains", Collections.singleton(null) in test_singletonLjava_lang_Object() 683 assertTrue("null nCopies contains null", Collections.singleton(null) in test_singletonLjava_lang_Object() 1865 mySet = Collections.unmodifiableSet(Collections.singleton(null)); in test_unmodifiableSetLjava_util_Set()
|
D | Collections2Test.java | 563 testSetForEach(Collections.singleton(1)); in test_Set_forEach()
|
/libcore/ojluni/src/main/java/sun/util/locale/ |
D | InternalLocaleBuilder.java | 167 …public InternalLocaleBuilder setExtension(char singleton, String value) throws LocaleSyntaxExcepti… in setExtension() argument 169 boolean isBcpPrivateuse = LanguageTag.isPrivateusePrefixChar(singleton); in setExtension() 170 if (!isBcpPrivateuse && !LanguageTag.isExtensionSingletonChar(singleton)) { in setExtension() 171 throw new LocaleSyntaxException("Ill-formed extension key: " + singleton); in setExtension() 175 CaseInsensitiveChar key = new CaseInsensitiveChar(singleton); in setExtension() 244 String singleton = s; in setExtensions() local 245 StringBuilder sb = new StringBuilder(singleton); in setExtensions() 260 throw new LocaleSyntaxException("Incomplete extension '" + singleton + "'", in setExtensions()
|
D | LocaleExtensions.java | 198 char singleton = entry.getKey(); in toID() local 200 if (LanguageTag.isPrivateusePrefixChar(singleton)) { in toID()
|
D | LanguageTag.java | 346 String singleton = s; in parseExtensions() local 347 StringBuilder sb = new StringBuilder(singleton); in parseExtensions() 363 sts.errorMsg = "Incomplete extension '" + singleton + "'"; in parseExtensions()
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | ExplodeOpTest.java | 91 …Collection<Integer> result = exerciseOps(data, s -> s.flatMap(i -> Collections.singleton(i).stream… in testIntOps() 106 …Collection<Long> result = exerciseOps(data, s -> s.flatMap(i -> Collections.singleton(i).stream().… in testLongOps() 121 …Collection<Double> result = exerciseOps(data, s -> s.flatMap(i -> Collections.singleton(i).stream(… in testDoubleOps()
|
/libcore/luni/src/test/java/libcore/java/security/cert/ |
D | PKIXRevocationCheckerTest.java | 90 checker.setOptions(Collections.singleton(Option.SOFT_FAIL)); in test_getOptions() 91 assertEquals(Collections.singleton(Option.SOFT_FAIL), checker.getOptions()); in test_getOptions()
|
D | OldPKIXParametersTest.java | 112 Set<TrustAnchor> taSet2 = Collections.singleton(new TrustAnchor( in testIsPolicyMappingInhibited() 141 Set<TrustAnchor> taSet2 = Collections.singleton(new TrustAnchor( in testIsRevocationEnabled()
|
D | CertPathValidatorTest.java | 95 .singleton(new TrustAnchor((X509Certificate) rootCaEntry.getCertificate(), null))); in runOCSPStapledTest() 105 revChecker.setOptions(Collections.singleton(Option.ONLY_END_ENTITY)); in runOCSPStapledTest()
|
/libcore/ojluni/src/test/java/time/tck/java/time/zone/ |
D | TCKZoneRulesProvider.java | 188 return new HashSet<String>(Collections.singleton("FooLocation")); in provideZoneIds() 211 return new HashSet<>(Collections.singleton("DynamicLocation")); in provideZoneIds()
|
/libcore/ojluni/src/test/java/security/cert/ |
D | AKISerialNumberTest.java | 126 (Collections.singleton(anchor), sel); in main()
|
/libcore/ojluni/src/main/java/sun/security/provider/certpath/ |
D | PKIXCertPathValidator.java | 184 Collections.singleton(PolicyChecker.ANY_POLICY), in validate()
|
D | SunCertPathBuilder.java | 330 Collections.singleton(PolicyChecker.ANY_POLICY); in depthFirstSearchForward()
|
D | PolicyChecker.java | 621 Set<String> expectedPolicies = Collections.singleton(policy); in rewriteLeafNodes()
|
D | RevocationChecker.java | 950 Collections.singleton(anchor);
|
/libcore/luni/src/main/java/javax/xml/xpath/ |
D | XPathFactoryFinder.java | 329 return Collections.singleton(resource); in createServiceFileIterator()
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/cert/ |
D | TestUtils.java | 828 Collections.singleton(new TrustAnchor(rootCertificateSS, null)),
|
/libcore/luni/src/main/java/javax/xml/validation/ |
D | SchemaFactoryFinder.java | 295 return Collections.singleton(classLoader.getResource(SERVICE_ID)); in createServiceFileIterator()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | SetOfTest.java | 201 Set<T> examples = Collections.singleton(example); in assertUnmodifiable()
|
D | CalendarTest.java | 335 Set<String> expected = Collections.singleton("gregory"); in testGetAvailableCalendarTypes()
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | ConcurrentHashMapTest.java | 87 LexicographicList(E e) { super(Collections.singleton(e)); } in LexicographicList()
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | ConcurrentHashMapTest.java | 112 LexicographicList(E e) { super(Collections.singleton(e)); } in LexicographicList()
|
/libcore/ojluni/annotations/sdk/nullability/java/util/ |
D | Collections.annotated.java | 144 @libcore.util.NonNull public static <T> java.util.Set<@libcore.util.NullFromTypeParam T> singleton(… in singleton() method in Collections
|