Home
last modified time | relevance | path

Searched refs:objects (Results 1 – 16 of 16) sorted by relevance

/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DToListOpTest.java69 List<Integer> objects = exerciseTerminalOps(data, s -> s.toList()); in testOps() local
70 checkUnmodifiable(objects); in testOps()
71 assertFalse(objects.contains(null)); in testOps()
76 List<Integer> objects = exerciseTerminalOps(data, s -> s.toList()); in testOpsWithNull() local
77 checkUnmodifiable(objects); in testOpsWithNull()
78 assertTrue(objects.contains(null)); in testOpsWithNull()
83 …List<Integer> objects = exerciseTerminalOps(data, s -> DefaultMethodStreams.delegateTo(s).toList()… in testDefaultOps() local
84 checkUnmodifiable(objects); in testDefaultOps()
85 assertFalse(objects.contains(null)); in testDefaultOps()
90 …List<Integer> objects = exerciseTerminalOps(data, s -> DefaultMethodStreams.delegateTo(s).toList()… in testDefaultOpsWithNull() local
[all …]
DToArrayOpTest.java71 …Object[] objects = exerciseTerminalOps(data, s -> s.map(i -> (Integer) (i + i)), s -> s.toArray()); in testOpsWithMap() local
72 assertTrue(objects.length == data.size()); in testOpsWithMap()
80 Object[] objects = exerciseTerminalOps(data, s -> s.sorted(), s -> s.toArray()); in testOpsWithSorted() local
81 assertTrue(objects.length == data.size()); in testOpsWithSorted()
89 Object[] objects = exerciseTerminalOps(data, in testOpsWithFlatMap() local
92 assertTrue(objects.length == data.size() * 2); in testOpsWithFlatMap()
244 int[] objects = exerciseTerminalOps(data,
247 assertTrue(objects.length == data.size() * 2);
317 long[] objects = exerciseTerminalOps(data,
320 assertTrue(objects.length == data.size() * 2);
[all …]
/libcore/support/src/test/java/org/apache/harmony/testframework/serialization/
DSerializationTest.java336 public static void verifyGolden(Object test, Object[] objects) throws Exception { in verifyGolden() argument
337 assertFalse("Empty array", objects.length == 0); in verifyGolden()
338 verifyGolden(test, objects, defineComparator(test, objects[0])); in verifyGolden()
356 public static void verifyGolden(Object test, Object[] objects, SerializableAssert comparator) in verifyGolden() argument
358 assertFalse("Empty array", objects.length == 0); in verifyGolden()
359 for (int i = 0; i < objects.length; i++) { in verifyGolden()
361 comparator.assertDeserialized((Serializable) objects[i], deserialized); in verifyGolden()
400 public static void verifySelf(Object[] objects) throws Exception { in verifySelf() argument
401 assertFalse("Empty array", objects.length == 0); in verifySelf()
402 verifySelf(objects, defineComparator(null, objects[0])); in verifySelf()
[all …]
/libcore/support/src/test/java/tests/support/
DSupport_MessageFormat.java52 Object[] objects = new Object[] { hamburgers, Double.valueOf(3.5), in t_format_with_FieldPosition() local
58 t_FormatWithField(1, format, objects, null, Field.ARGUMENT, 3, 15); in t_format_with_FieldPosition()
61 t_FormatWithField(2, format, objects, null, DateFormat.Field.AM_PM, 0, in t_format_with_FieldPosition()
63 t_FormatWithField(3, format, objects, null, in t_format_with_FieldPosition()
67 t_FormatWithField(4, format, objects, null, DateFormat.Field.ERA, 0, 0); in t_format_with_FieldPosition()
68 t_FormatWithField(5, format, objects, null, in t_format_with_FieldPosition()
79 Object[] objects = new Object[] { hamburgers, Double.valueOf(3.5), in t_formatToCharacterIterator() local
82 t_Format(1, objects, format, getMessageVector1()); in t_formatToCharacterIterator()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DSupport_MessageFormat.java59 Object[] objects = new Object[] { hamburgers, Double.valueOf(3.5), in t_format_with_FieldPosition() local
65 t_FormatWithField(1, format, objects, null, Field.ARGUMENT, 3, 15); in t_format_with_FieldPosition()
68 t_FormatWithField(2, format, objects, null, DateFormat.Field.AM_PM, 0, in t_format_with_FieldPosition()
70 t_FormatWithField(3, format, objects, null, in t_format_with_FieldPosition()
74 t_FormatWithField(4, format, objects, null, DateFormat.Field.ERA, 0, 0); in t_format_with_FieldPosition()
75 t_FormatWithField(5, format, objects, null, in t_format_with_FieldPosition()
88 Object[] objects = new Object[] { hamburgers, Double.valueOf(3.5), hamburgers, date, date }; in t_formatToCharacterIterator() local
90 t_Format(1, objects, format, getMessageVector1()); in t_formatToCharacterIterator()
DMessageFormatTest.java603 Object[] objects = new Object[] { "", Integer.valueOf(3), 8, ""}; in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition() local
605 format.format(objects, new StringBuffer(), new FieldPosition(DateFormat.Field.AM_PM)); in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition()
/libcore/ojluni/src/main/java/java/text/
DBidi.java404 …public static void reorderVisually(byte[] levels, int levelStart, Object[] objects, int objectStar… in reorderVisually() argument
411 if (0 > objectStart || objects.length <= objectStart) { in reorderVisually()
414 (objects.length-1)); in reorderVisually()
416 if (0 > count || objects.length < (objectStart+count)) { in reorderVisually()
419 (objects.length - objectStart)); in reorderVisually()
424 android.icu.text.Bidi.reorderVisually(levels, levelStart, objects, objectStart, count); in reorderVisually()
/libcore/ojluni/src/test/java/util/HashMap/
DToArray.java106 Object[] objects = collection.toArray(); in checkToObjectArray() local
107 if (objects.getClass() != Object[].class) { in checkToObjectArray()
108 throw new AssertionError(message + ": wrong class returned: " + objects.getClass()); in checkToObjectArray()
111 Arrays.sort(objects); in checkToObjectArray()
113 int mismatch = Arrays.mismatch(expected, objects); in checkToObjectArray()
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/
DTCKWeekFieldsSerialization.java91 Object[][] objects = new Object[49][]; in data_weekFields() local
95 objects[i++] = new Object[] {firstDayOfWeek, minDays}; in data_weekFields()
98 return objects; in data_weekFields()
/libcore/benchmarks/src/benchmarks/regression/
DStringEqualsBenchmark.java167 private final Object[] objects = new Object[] { field in StringEqualsBenchmark
263 mediumStrings[i][0].equals(objects[i]); in timeEqualsNonString()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DCollections2Test.java267 List<Object> objects = Arrays.asList(new Object[] { Integer.valueOf(1), null, null, in test_frequencyLjava_util_CollectionLint() local
271 .frequency(objects, Integer.valueOf(1))); in test_frequencyLjava_util_CollectionLint()
274 .frequency(objects, Long.valueOf(1))); in test_frequencyLjava_util_CollectionLint()
277 Collections.frequency(objects, null)); in test_frequencyLjava_util_CollectionLint()
DArraysTest.java284 Object[] objects = new MockComparable[] { new MockComparable() }; in test_binarySearch$Ljava_lang_ObjectLjava_lang_Object() local
285 assertEquals("Should always return 0", 0, Arrays.binarySearch(objects, object)); in test_binarySearch$Ljava_lang_ObjectLjava_lang_Object()
/libcore/luni/src/test/java/libcore/java/util/
DOldCollectionsTest.java294 List<Object> objects = Arrays.asList(new Object[] { Integer.valueOf(1), null, null, in test_frequencyLjava_util_CollectionLint() local
298 .frequency(objects, Integer.valueOf(1))); in test_frequencyLjava_util_CollectionLint()
301 .frequency(objects, Long.valueOf(1))); in test_frequencyLjava_util_CollectionLint()
304 Collections.frequency(objects, null)); in test_frequencyLjava_util_CollectionLint()
/libcore/luni/src/test/java/libcore/java/util/concurrent/
DCopyOnWriteArrayListTest.java289 CopyOnWriteArrayList<Object> objects = new CopyOnWriteArrayList<Object>(asList); in testDoesNotRetainToArray() local
290 objects.add(Boolean.TRUE); in testDoesNotRetainToArray()
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKWeekFields.java723 Object[][] objects = new Object[49][]; in data_weekFields() local
727 objects[i++] = new Object[] {firstDayOfWeek, minDays}; in data_weekFields()
730 return objects; in data_weekFields()
/libcore/tools/expected_upstream/
DREADME.md206 the `git` objects have been uploaded.