/libcore/luni/src/test/java/libcore/libcore/io/ |
D | MemoryMappedFileTest.java | 241 short expectedValue = (short) ((bytes[0] << 8) | bytes[1]); in testReadShort_bigEndian() local 242 assertReadShortSucceeds(iterator, expectedValue); in testReadShort_bigEndian() 248 expectedValue = (short) ((bytes[1] << 8) | bytes[2]); in testReadShort_bigEndian() 249 assertReadShortSucceeds(iterator, expectedValue); in testReadShort_bigEndian() 263 short expectedValue = (short) ((bytes[1] << 8) | bytes[0]); in testReadShort_littleEndian() local 264 assertReadShortSucceeds(iterator, expectedValue); in testReadShort_littleEndian() 270 expectedValue = (short) ((bytes[2] << 8) | bytes[1]); in testReadShort_littleEndian() 271 assertReadShortSucceeds(iterator, expectedValue); in testReadShort_littleEndian() 303 int expectedValue = (bytes[0] << 24) | (bytes[1] << 16) | (bytes[2] << 8) | bytes[3]; in testReadInt_bigEndian() local 304 assertReadIntSucceeds(iterator, expectedValue); in testReadInt_bigEndian() [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKLocalizedFieldParser.java | 98 …d test_parse_textField(String pattern, String text, int pos, int expectedPos, long expectedValue) { in test_parse_textField() argument 127 assertEquals(value, expectedValue, "Value incorrect for " + field); in test_parse_textField() 149 …rse_textLocalDate(String pattern, String text, int pos, int expectedPos, LocalDate expectedValue) { in test_parse_textLocalDate() argument 164 assertEquals(result, expectedValue, "LocalDate incorrect for " + pattern); in test_parse_textLocalDate() 186 …rse_WeekBasedYear(String pattern, String text, int pos, int expectedPos, LocalDate expectedValue) { in test_parse_WeekBasedYear() argument 201 …assertEquals(result, expectedValue, "LocalDate incorrect for " + pattern + ", weekDef: " + weekDef… in test_parse_WeekBasedYear()
|
D | TCKDateTimeParseResolver.java | 832 … public void test_resolveClockHourOfAmPm(ResolverStyle style, long value, Integer expectedValue) { in test_resolveClockHourOfAmPm() argument 836 if (expectedValue != null) { in test_resolveClockHourOfAmPm() 842 assertEquals(accessor.getLong(HOUR_OF_AMPM), expectedValue.longValue()); in test_resolveClockHourOfAmPm() 875 public void test_resolveAmPm(ResolverStyle style, long value, Integer expectedValue) { in test_resolveAmPm() argument 879 if (expectedValue != null) { in test_resolveAmPm() 884 assertEquals(accessor.getLong(AMPM_OF_DAY), expectedValue.longValue()); in test_resolveAmPm()
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestFractionPrinterParser.java | 245 int expectedValue = fixParsedValue(maxWidth, value); in test_reverseParse() local 248 … assertParsed(parsed, NANO_OF_SECOND, value == 0 && minWidth == 0 ? null : (long) expectedValue); in test_reverseParse() 256 int expectedValue = fixParsedValue(maxWidth, value); in test_reverseParse_noDecimalPoint() local 257 … assertParsed(parsed, NANO_OF_SECOND, value == 0 && minWidth == 0 ? null : (long) expectedValue); in test_reverseParse_noDecimalPoint() 263 int expectedValue = fixParsedValue(maxWidth, value); in test_reverseParse_followedByNonDigit() local 266 … assertParsed(parsed, NANO_OF_SECOND, value == 0 && minWidth == 0 ? null : (long) expectedValue); in test_reverseParse_followedByNonDigit() 281 int expectedValue = fixParsedValue(maxWidth, value); in test_reverseParse_preceededByNonDigit() local 284 … assertParsed(parsed, NANO_OF_SECOND, value == 0 && minWidth == 0 ? null : (long) expectedValue); in test_reverseParse_preceededByNonDigit()
|
D | TestNumberParser.java | 167 …nStyle signStyle, int subsequentWidth, String text, int pos, int expectedPos, long expectedValue) { in test_parse_fresh() argument 180 assertEquals(parsed.getLong(DAY_OF_MONTH), expectedValue); in test_parse_fresh() local 187 …nStyle signStyle, int subsequentWidth, String text, int pos, int expectedPos, long expectedValue) { in test_parse_textField() argument 200 assertEquals(parsed.getLong(DAY_OF_WEEK), expectedValue); in test_parse_textField() local
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
D | DeflaterTest.java | 92 int expectedValue = i < expected.length ? expected[i] : 0; 93 assertEquals(expectedValue, decompressed[i]);
|
/libcore/ojluni/src/main/java/sun/misc/ |
D | Unsafe.java | 135 int expectedValue, int newValue); in compareAndSwapInt() argument 151 long expectedValue, long newValue); in compareAndSwapLong() argument 167 Object expectedValue, Object newValue); in compareAndSwapObject() argument
|
/libcore/ojluni/annotations/hiddenapi/sun/misc/ |
D | Unsafe.java | 67 java.lang.Object obj, long offset, int expectedValue, int newValue); in compareAndSwapInt() argument 71 java.lang.Object obj, long offset, long expectedValue, long newValue); in compareAndSwapLong() argument 77 java.lang.Object expectedValue, in compareAndSwapObject() argument
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | AbstractListTest.java | 85 Integer expectedValue = list.get(2); in spliterator_modification_failFast() local 102 assertEquals(expectedValue, receivedValue.get()); in spliterator_modification_failFast()
|
D | LinkedHashMapTest.java | 393 Object expectedValue = expected.getValue(); in check_eldest_comparibleWithIterationOrder() local 394 assertEntry(expectedKey, expectedValue, eldest(map)); in check_eldest_comparibleWithIterationOrder()
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | JSR166TestCase.java | 1304 <T> void checkTimedGet(Future<T> f, T expectedValue, long timeoutMillis) { 1307 assertEquals(expectedValue, f.get(timeoutMillis, MILLISECONDS)); 1313 <T> void checkTimedGet(Future<T> f, T expectedValue) { 1314 checkTimedGet(f, expectedValue, LONG_DELAY_MS);
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | JSR166TestCase.java | 1413 <T> void checkTimedGet(Future<T> f, T expectedValue, long timeoutMillis) { 1416 assertEquals(expectedValue, f.get(timeoutMillis, MILLISECONDS)); 1422 <T> void checkTimedGet(Future<T> f, T expectedValue) { 1423 checkTimedGet(f, expectedValue, LONG_DELAY_MS);
|