/libcore/ojluni/src/test/java/util/Collections/ |
D | SyncSubMutexes.java | 166 Collection<Object[]> instances = new ArrayList<>(); in makeCollections() local 167 …instances.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 175 … instances.add(new Object[] {Collections.synchronizedList(new ArrayList<>(BASE_COLLECTION))}); in makeLists() 176 …instances.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/ |
D | SummaryStatisticsTest.java | 46 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 …]
|
D | CollectAndSummaryStatisticsTest.java | 88 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() 94 …instances.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() 99 … instances.add(countTo(1000).parallelStream().mapToInt(i -> i).collect(IntSummaryStatistics::new, in testIntStatistics() 102 …instances.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/ |
D | MethodTypeTest.java | 189 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/ |
D | Currency.java | 102 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/ |
D | AnnotatedElementTestSupport.java | 195 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/ |
D | MethodTest.java | 558 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/ |
D | DecimalFormatTest.java | 717 DecimalFormat[] instances = new DecimalFormat[] { in createDecimalFormatInstances() local 722 return instances; in createDecimalFormatInstances()
|
/libcore/ojluni/src/main/java/java/nio/ |
D | X-Buffer.java.template | 148 * methods. Specific byte orders are represented by instances of the {@link
|