Home
last modified time | relevance | path

Searched refs:instances (Results 1 – 9 of 9) sorted by relevance

/libcore/ojluni/src/test/java/util/Collections/
DSyncSubMutexes.java166 Collection<Object[]> instances = new ArrayList<>(); in makeCollections() local
167instances.add(new Object[] {Collections.synchronizedCollection(new ArrayList<>(BASE_COLLECTION))}); in makeCollections()
168 instances.addAll(makeLists()); in makeCollections()
170 return instances; in makeCollections()
174 Collection<Object[]> instances = new ArrayList<>(); in makeLists() local
175instances.add(new Object[] {Collections.synchronizedList(new ArrayList<>(BASE_COLLECTION))}); in makeLists()
176instances.add(new Object[] {Collections.synchronizedList(new ArrayList<>(BASE_COLLECTION)).subList… in makeLists()
178 return instances; in makeLists()
182 Collection<Object[]> instances = new ArrayList<>(); in makeSets() local
184 instances.add(new Object[] {Collections.synchronizedSet(new TreeSet<>(BASE_COLLECTION))}); in makeSets()
[all …]
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DSummaryStatisticsTest.java46 List<IntSummaryStatistics> instances = new ArrayList<>(); in testIntStatistics() local
47 instances.add(countTo(1000).stream().collect(Collectors.summarizingInt(i -> i))); in testIntStatistics()
48 instances.add(countTo(1000).stream().mapToInt(i -> i).summaryStatistics()); in testIntStatistics()
49 instances.add(countTo(1000).parallelStream().collect(Collectors.summarizingInt(i -> i))); in testIntStatistics()
50 instances.add(countTo(1000).parallelStream().mapToInt(i -> i).summaryStatistics()); in testIntStatistics()
52 for (IntSummaryStatistics stats : instances) { in testIntStatistics()
61 List<LongSummaryStatistics> instances = new ArrayList<>(); in testLongStatistics() local
62 instances.add(countTo(1000).stream().collect(Collectors.summarizingLong(i -> i))); in testLongStatistics()
63 instances.add(countTo(1000).stream().mapToLong(i -> i).summaryStatistics()); in testLongStatistics()
64 instances.add(countTo(1000).parallelStream().collect(Collectors.summarizingLong(i -> i))); in testLongStatistics()
[all …]
DCollectAndSummaryStatisticsTest.java88 List<IntSummaryStatistics> instances = new ArrayList<>(); in testIntStatistics() local
89 instances.add(countTo(1000).stream().collect(Collectors.summarizingInt(i -> i))); in testIntStatistics()
90 instances.add(countTo(1000).stream().mapToInt(i -> i).summaryStatistics()); in testIntStatistics()
91 instances.add(countTo(1000).stream().mapToInt(i -> i).collect(IntSummaryStatistics::new, in testIntStatistics()
94instances.add(countTo(1000).stream().mapToInt(i -> i).collect(() -> new IntSummaryStatistics(0, -1… in testIntStatistics()
97 instances.add(countTo(1000).parallelStream().collect(Collectors.summarizingInt(i -> i))); in testIntStatistics()
98 instances.add(countTo(1000).parallelStream().mapToInt(i -> i).summaryStatistics()); in testIntStatistics()
99instances.add(countTo(1000).parallelStream().mapToInt(i -> i).collect(IntSummaryStatistics::new, in testIntStatistics()
102instances.add(countTo(1000).parallelStream().mapToInt(i -> i).collect(() -> new IntSummaryStatisti… in testIntStatistics()
105 IntSummaryStatistics original = instances.get(0); in testIntStatistics()
[all …]
/libcore/ojluni/src/test/java/lang/invoke/
DMethodTypeTest.java189 MethodType[] instances = {mt_viS, mt_OO2, mt_vv, mt_Ov, mt_iSI, mt_ISi, mt_ISI, mt_iSi}; in testMake_String_ClassLoader() local
201 for (int i = 0; i < instances.length; i++) { in testMake_String_ClassLoader()
202 MethodType instance = instances[i]; in testMake_String_ClassLoader()
231 MethodType[] instances = {mt_viS, mt_OO2, mt_vv, mt_Ov, mt_iSI, mt_ISi, mt_ISI, mt_iSi}; in testHasPrimitives() local
233 for (int i = 0; i < instances.length; i++) { in testHasPrimitives()
234 boolean result = instances[i].hasPrimitives(); in testHasPrimitives()
242 MethodType[] instances = {mt_viS, mt_OO2, mt_vv, mt_Ov, mt_iSI, mt_ISi, mt_ISI, mt_iSi}; in testHasWrappers() local
244 for (int i = 0; i < instances.length; i++) { in testHasWrappers()
245 System.out.println(" hasWrappers "+instances[i]); in testHasWrappers()
246 boolean result = instances[i].hasWrappers(); in testHasWrappers()
[all …]
/libcore/ojluni/src/main/java/java/util/
DCurrency.java102 private static ConcurrentMap<String, Currency> instances = new ConcurrentHashMap<>(7); field in Currency
273 Currency instance = instances.get(currencyCode); in getInstance()
322 instance = instances.putIfAbsent(currencyCode, currencyVal); in getInstance()
493 instances.put(currency.currencyCode, currency); in getAvailableCurrencies()
/libcore/luni/src/test/java/libcore/java/lang/reflect/annotations/
DAnnotatedElementTestSupport.java195 static <T> Set<T> set(T... instances) { in set() argument
196 return new HashSet<>(Arrays.asList(instances)); in set()
/libcore/luni/src/test/java/libcore/java/lang/reflect/
DMethodTest.java558 Object[] instances = { impl1, impl2, impl3 }; in testDefaultMethod_invoke() local
563 for (Object instance : instances) { in testDefaultMethod_invoke()
/libcore/luni/src/test/java/libcore/java/text/
DDecimalFormatTest.java717 DecimalFormat[] instances = new DecimalFormat[] { in createDecimalFormatInstances() local
722 return instances; in createDecimalFormatInstances()
/libcore/ojluni/src/main/java/java/nio/
DX-Buffer.java.template148 * methods. Specific byte orders are represented by instances of the {@link