Home
last modified time | relevance | path

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

/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, new Double(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, new Double(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.java55 Object[] objects = new Object[] { hamburgers, new Double(3.5), in t_format_with_FieldPosition() local
61 t_FormatWithField(1, format, objects, null, Field.ARGUMENT, 3, 15); in t_format_with_FieldPosition()
64 t_FormatWithField(2, format, objects, null, DateFormat.Field.AM_PM, 0, in t_format_with_FieldPosition()
66 t_FormatWithField(3, format, objects, null, in t_format_with_FieldPosition()
70 t_FormatWithField(4, format, objects, null, DateFormat.Field.ERA, 0, 0); in t_format_with_FieldPosition()
71 t_FormatWithField(5, format, objects, null, in t_format_with_FieldPosition()
84 Object[] objects = new Object[] { hamburgers, new Double(3.5), hamburgers, date, date }; in t_formatToCharacterIterator() local
86 t_Format(1, objects, format, getMessageVector1()); in t_formatToCharacterIterator()
DMessageFormatTest.java602 Object[] objects = new Object[] { "", new Integer(3), 8, ""}; in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition() local
604 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.java398 …public static void reorderVisually(byte[] levels, int levelStart, Object[] objects, int objectStar… in reorderVisually() argument
405 if (0 > objectStart || objects.length <= objectStart) { in reorderVisually()
408 (objects.length-1)); in reorderVisually()
410 if (0 > count || objects.length < (objectStart+count)) { in reorderVisually()
413 (objects.length - objectStart)); in reorderVisually()
418 android.icu.text.Bidi.reorderVisually(levels, levelStart, objects, objectStart, count); in reorderVisually()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DToArrayOpTest.java69 …Object[] objects = exerciseTerminalOps(data, s -> s.map(i -> (Integer) (i + i)), s -> s.toArray()); in testOpsWithMap() local
70 assertTrue(objects.length == data.size()); in testOpsWithMap()
78 Object[] objects = exerciseTerminalOps(data, s -> s.sorted(), s -> s.toArray()); in testOpsWithSorted() local
79 assertTrue(objects.length == data.size()); in testOpsWithSorted()
87 Object[] objects = exerciseTerminalOps(data, in testOpsWithFlatMap() local
90 assertTrue(objects.length == data.size() * 2); in testOpsWithFlatMap()
241 int[] objects = exerciseTerminalOps(data,
244 assertTrue(objects.length == data.size() * 2);
314 long[] objects = exerciseTerminalOps(data,
317 assertTrue(objects.length == data.size() * 2);
[all …]
/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[] { new Integer(1), null, null, in test_frequencyLjava_util_CollectionLint() local
271 .frequency(objects, new Integer(1))); in test_frequencyLjava_util_CollectionLint()
274 .frequency(objects, new Long(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[] { new Integer(1), null, null, in test_frequencyLjava_util_CollectionLint() local
298 .frequency(objects, new Integer(1))); in test_frequencyLjava_util_CollectionLint()
301 .frequency(objects, new Long(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.java280 CopyOnWriteArrayList<Object> objects = new CopyOnWriteArrayList<Object>(asList); in testDoesNotRetainToArray() local
281 objects.add(Boolean.TRUE); in testDoesNotRetainToArray()
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKWeekFields.java720 Object[][] objects = new Object[49][]; in data_weekFields() local
724 objects[i++] = new Object[] {firstDayOfWeek, minDays}; in data_weekFields()
727 return objects; in data_weekFields()