/libcore/luni/src/test/java/libcore/java/time/chrono/ |
D | HijrahChronologyTest.java | 44 assertEquals(1300, date.getLong(ChronoField.YEAR_OF_ERA)); in test_HijrahDate_getLong() 45 assertEquals(1300, date.getLong(ChronoField.YEAR)); in test_HijrahDate_getLong() 46 assertEquals(2, date.getLong(ChronoField.MONTH_OF_YEAR)); in test_HijrahDate_getLong() 48 assertEquals(1300 * 12 + 2 - 1, date.getLong(ChronoField.PROLEPTIC_MONTH)); in test_HijrahDate_getLong() 49 assertEquals(5, date.getLong(ChronoField.DAY_OF_MONTH)); in test_HijrahDate_getLong() 51 assertEquals(30 + 5, date.getLong(ChronoField.DAY_OF_YEAR)); in test_HijrahDate_getLong() 52 assertEquals(date.toEpochDay(), date.getLong(ChronoField.EPOCH_DAY)); in test_HijrahDate_getLong()
|
D | ThaiBuddhistChronologyTest.java | 116 assertEquals(10, date.getLong(ChronoField.YEAR_OF_ERA)); in test_ThaiBuddhistDate_getLong() 117 assertEquals(10, date.getLong(ChronoField.YEAR)); in test_ThaiBuddhistDate_getLong() 118 assertEquals(2, date.getLong(ChronoField.MONTH_OF_YEAR)); in test_ThaiBuddhistDate_getLong() 119 assertEquals(10 * 12 + 2 - 1, date.getLong(ChronoField.PROLEPTIC_MONTH)); in test_ThaiBuddhistDate_getLong() 120 assertEquals(5, date.getLong(ChronoField.DAY_OF_MONTH)); in test_ThaiBuddhistDate_getLong() 121 assertEquals(31 + 5, date.getLong(ChronoField.DAY_OF_YEAR)); in test_ThaiBuddhistDate_getLong() 122 assertEquals(date.toEpochDay(), date.getLong(ChronoField.EPOCH_DAY)); in test_ThaiBuddhistDate_getLong()
|
D | MinguoChronologyTest.java | 116 assertEquals(10, date.getLong(ChronoField.YEAR_OF_ERA)); in test_MinguoDate_getLong() 117 assertEquals(10, date.getLong(ChronoField.YEAR)); in test_MinguoDate_getLong() 118 assertEquals(2, date.getLong(ChronoField.MONTH_OF_YEAR)); in test_MinguoDate_getLong() 119 assertEquals(10*12 + 2 - 1, date.getLong(ChronoField.PROLEPTIC_MONTH)); in test_MinguoDate_getLong() 120 assertEquals(5, date.getLong(ChronoField.DAY_OF_MONTH)); in test_MinguoDate_getLong() 121 assertEquals(31 + 5, date.getLong(ChronoField.DAY_OF_YEAR)); in test_MinguoDate_getLong() 122 assertEquals(date.toEpochDay(), date.getLong(ChronoField.EPOCH_DAY)); in test_MinguoDate_getLong()
|
D | EraTest.java | 44 assertEquals(10, TestEra.INSTANCE.getLong(ERA)); in getLong_returnsValue_forEra() 53 TestEra.INSTANCE.getLong(unsupportedField); in getLong_throws_forNonERA_chronoFields() 65 TestEra.INSTANCE.getLong(temporalField); in getLong_defersToArgument_forNonChronoFieldInstances()
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKDateTimeFormatterBuilder.java | 744 assertEquals(parsed.getLong(HOUR_OF_DAY), 12L); in test_adjacent_strict_firstFixedWidth() 745 assertEquals(parsed.getLong(MINUTE_OF_HOUR), 30L); in test_adjacent_strict_firstFixedWidth() 756 assertEquals(parsed.getLong(HOUR_OF_DAY), 123L); in test_adjacent_strict_firstVariableWidth_success() 757 assertEquals(parsed.getLong(MINUTE_OF_HOUR), 9L); in test_adjacent_strict_firstVariableWidth_success() 778 assertEquals(parsed.getLong(HOUR_OF_DAY), 12L); in test_adjacent_lenient() 779 assertEquals(parsed.getLong(MINUTE_OF_HOUR), 30L); in test_adjacent_lenient() 790 assertEquals(parsed.getLong(HOUR_OF_DAY), 123L); in test_adjacent_lenient_firstVariableWidth_success() 791 assertEquals(parsed.getLong(MINUTE_OF_HOUR), 9L); in test_adjacent_lenient_firstVariableWidth_success() 813 assertEquals(parsed.getLong(HOUR_OF_DAY), 12L); in test_adjacent_strict_fractionFollows() 814 assertEquals(parsed.getLong(MINUTE_OF_HOUR), 30L); in test_adjacent_strict_fractionFollows() [all …]
|
D | TCKDateTimeParseResolver.java | 160 assertEquals(accessor.getLong(field1), value1); in test_resolveOneNoChange() 200 assertEquals(accessor.getLong(field1), value1); in test_resolveTwoNoChange() 201 assertEquals(accessor.getLong(field2), value2); in test_resolveTwoNoChange() 233 assertEquals(accessor.getLong(field1), value1); in test_resolveThreeNoChange() 234 assertEquals(accessor.getLong(field2), value2); in test_resolveThreeNoChange() 235 assertEquals(accessor.getLong(field3), value3); in test_resolveThreeNoChange() 266 assertEquals(accessor.getLong(expectedField1), expectedValue1.longValue()); in test_resolveOneToField() 270 assertEquals(accessor.getLong(expectedField2), expectedValue2.longValue()); in test_resolveOneToField() 348 assertEquals(accessor.getLong(expectedField1), expectedValue1.longValue()); in test_resolveTwoToField() 352 assertEquals(accessor.getLong(expectedField2), expectedValue2.longValue()); in test_resolveTwoToField() [all …]
|
D | TCKPadPrinterParser.java | 137 assertEquals(parsed.getLong(MONTH_OF_YEAR), expectedMonth.longValue()); in test_parseStrict() 178 assertEquals(parsed.getLong(MONTH_OF_YEAR), expectedMonth.longValue()); in test_parseLenient() 201 assertEquals(parsed.getLong(MONTH_OF_YEAR), 2L); // +2, not -2 in test_parse_decoratedStartsWithPad_number()
|
D | TCKDateTimeFormatter.java | 385 public long getLong(TemporalField field) { in test_format_withChronology_nonChronoFieldMapLink() 457 assertEquals(result.getLong(DAY_OF_MONTH), 30L); in test_parse_CharSequence() 469 assertEquals(result.getLong(YEAR), 2012L); in test_parse_CharSequence_resolved() 470 assertEquals(result.getLong(MONTH_OF_YEAR), 6L); in test_parse_CharSequence_resolved() 471 assertEquals(result.getLong(DAY_OF_MONTH), 30L); in test_parse_CharSequence_resolved() 492 assertEquals(result.getLong(DAY_OF_MONTH), 30L); in test_parse_CharSequence_ParsePosition() 507 assertEquals(result.getLong(YEAR), 2012L); in test_parse_CharSequence_ParsePosition_resolved() 508 assertEquals(result.getLong(MONTH_OF_YEAR), 6L); in test_parse_CharSequence_ParsePosition_resolved() 509 assertEquals(result.getLong(DAY_OF_MONTH), 30L); in test_parse_CharSequence_ParsePosition_resolved() 699 assertEquals(result.getLong(DAY_OF_MONTH), 30L); in test_parseUnresolved_StringParsePosition() [all …]
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestTextParser.java | 111 .getLong(DAY_OF_WEEK), 1L); in test_parse_midStr() 119 .getLong(DAY_OF_WEEK), 3L); in test_parse_remainderIgnored() 251 … assertEquals(getFormatter(field, style).parseUnresolved(input, pos).getLong(field), (long) value); in test_parseText() 258 … assertEquals(getFormatter(field, style).parseUnresolved(input, pos).getLong(field), (long) value); in test_parseNumber() 266 assertEquals(formatter.parseUnresolved(input, pos).getLong(field), (long) expectedValue); in test_parseStandaloneText() 295 …atter(field, style).parseUnresolved(input.toUpperCase(Locale.ROOT), pos).getLong(field), (long) va… in test_parse_strict_caseInsensitive_parseUpper() 316 …atter(field, style).parseUnresolved(input.toLowerCase(Locale.ROOT), pos).getLong(field), (long) va… in test_parse_strict_caseInsensitive_parseLower() 326 …Formatter(MONTH_OF_YEAR, TextStyle.FULL).parseUnresolved("January", pos).getLong(MONTH_OF_YEAR), 1… in test_parse_full_strict_full_match() 348 …ormatter(MONTH_OF_YEAR, TextStyle.SHORT).parseUnresolved("January", pos).getLong(MONTH_OF_YEAR), 1… in test_parse_short_strict_full_match() 355 …tFormatter(MONTH_OF_YEAR, TextStyle.SHORT).parseUnresolved("Janua", pos).getLong(MONTH_OF_YEAR), 1… in test_parse_short_strict_short_match() [all …]
|
D | TestDateTimeFormatterBuilder.java | 229 assertEquals(parsed.getLong(MONTH_OF_YEAR), 1L); in test_appendValue_subsequent2_parse3() 230 assertEquals(parsed.getLong(DAY_OF_MONTH), 23L); in test_appendValue_subsequent2_parse3() 239 assertEquals(parsed.getLong(MONTH_OF_YEAR), 1L); in test_appendValue_subsequent2_parse4() 240 assertEquals(parsed.getLong(DAY_OF_MONTH), 23L); in test_appendValue_subsequent2_parse4() 249 assertEquals(parsed.getLong(MONTH_OF_YEAR), 1L); in test_appendValue_subsequent2_parse5() 250 assertEquals(parsed.getLong(DAY_OF_MONTH), 23L); in test_appendValue_subsequent2_parse5() 262 assertEquals(parsed.getLong(YEAR), 2009L); in test_appendValue_subsequent3_parse6() 263 assertEquals(parsed.getLong(MONTH_OF_YEAR), 6L); in test_appendValue_subsequent3_parse6() 264 assertEquals(parsed.getLong(DAY_OF_MONTH), 30L); in test_appendValue_subsequent3_parse6() 279 assertEquals(parsed.getLong(YEAR), 2012L); in test_appendValueReduced() [all …]
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | ChronoLocalDateImpl.java | 209 case ERAS: return with(ERA, Math.addExact(getLong(ERA), amountToAdd)); in plus() 388 case ERAS: return end.getLong(ERA) - getLong(ERA); in until() 405 long packed1 = getLong(PROLEPTIC_MONTH) * 32L + get(DAY_OF_MONTH); // no overflow in monthsUntil() 406 long packed2 = end.getLong(PROLEPTIC_MONTH) * 32L + end.get(DAY_OF_MONTH); // no overflow in monthsUntil() 430 long yoe = getLong(YEAR_OF_ERA); in toString() 431 long moy = getLong(MONTH_OF_YEAR); in toString() 432 long dom = getLong(DAY_OF_MONTH); in toString()
|
D | ChronoLocalDateTimeImpl.java | 262 return range(field).checkValidIntValue(getLong(field), field); in get() 266 public long getLong(TemporalField field) { in getLong() method in ChronoLocalDateTimeImpl 269 return (f.isTimeBased() ? time.getLong(field) : date.getLong(field)); in getLong() 377 long amount = end.getLong(EPOCH_DAY) - date.getLong(EPOCH_DAY); in until()
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | CopticDate.java | 211 public long getLong(TemporalField field) { in getLong() method in CopticDate 240 …case ALIGNED_DAY_OF_WEEK_IN_MONTH: return plusDays(newValue - getLong(ALIGNED_DAY_OF_WEEK_IN_MONTH… in with() 241 …case ALIGNED_DAY_OF_WEEK_IN_YEAR: return plusDays(newValue - getLong(ALIGNED_DAY_OF_WEEK_IN_YEAR)); in with() 245 … case ALIGNED_WEEK_OF_MONTH: return plusDays((newValue - getLong(ALIGNED_WEEK_OF_MONTH)) * 7); in with() 246 … case ALIGNED_WEEK_OF_YEAR: return plusDays((newValue - getLong(ALIGNED_WEEK_OF_YEAR)) * 7); in with() 338 long yoe = getLong(YEAR_OF_ERA); in toString() 339 long moy = getLong(MONTH_OF_YEAR); in toString() 340 long dom = getLong(DAY_OF_MONTH); in toString()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | AbstractDateTimeTest.java | 224 sample.getLong(field); // no exception in basicTest_getLong_TemporalField_supported() 234 sample.getLong(field); in basicTest_getLong_TemporalField_unsupported() 246 sample.getLong(MockFieldNoValue.INSTANCE); in test_getLong_TemporalField_invalidField() 254 sample.getLong(null); in basicTest_getLong_TemporalField_null()
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | TemporalAccessor.java | 222 long value = getLong(field); in get() 255 long getLong(TemporalField field); in getLong() method
|
D | IsoFields.java | 313 long qoy = temporal.getLong(QUARTER_OF_YEAR); in rangeRefinedBy() 315 long year = temporal.getLong(YEAR); in rangeRefinedBy() 331 long year = temporal.getLong(YEAR); in getFrom() 340 … return (R) temporal.with(DAY_OF_YEAR, temporal.getLong(DAY_OF_YEAR) + (newValue - curValue)); in adjustInto() 401 long moy = temporal.getLong(MONTH_OF_YEAR); in getFrom() 410 …return (R) temporal.with(MONTH_OF_YEAR, temporal.getLong(MONTH_OF_YEAR) + (newValue - curValue) * … in adjustInto() 711 return Math.subtractExact(temporal2Exclusive.getLong(WEEK_BASED_YEAR), in between() 712 temporal1Inclusive.getLong(WEEK_BASED_YEAR)); in between()
|
D | TemporalQueries.java | 383 return LocalDate.ofEpochDay(temporal.getLong(EPOCH_DAY)); 393 return LocalTime.ofNanoOfDay(temporal.getLong(NANO_OF_DAY));
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
D | ArrayTest.java | 117 try { Array.getLong(booleans, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetLong() 118 assertEquals((long) bytes[0], Array.getLong(bytes, 0)); in testGetLong() 119 assertEquals((long) chars[0], Array.getLong(chars, 0)); in testGetLong() 120 try { Array.getLong(doubles, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetLong() 121 try { Array.getLong(floats, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetLong() 122 assertEquals((long) ints[0], Array.getLong(ints, 0)); in testGetLong() 123 assertEquals(longs[0], Array.getLong(longs, 0)); in testGetLong() 124 assertEquals((long) shorts[0], Array.getLong(shorts, 0)); in testGetLong() 125 try { Array.getLong(null, 0); fail(); } catch (NullPointerException expected) {} in testGetLong()
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimePrintContext.java | 201 public long getLong(TemporalField field) { in adjust() method 203 return effectiveDate.getLong(field); in adjust() 205 return temporal.getLong(field); in adjust() 298 return temporal.getLong(field);
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | NativeObject.java | 127 newAddress = unsafe.getLong(offset + address); in getObject() 283 final long getLong(int offset) { in getLong() method in NativeObject 284 return unsafe.getLong(offset + address); in getLong()
|
/libcore/ojluni/src/main/java/java/time/ |
D | Year.java | 463 return range(field).checkValidIntValue(getLong(field), field); in get() 490 public long getLong(TemporalField field) { in getLong() method in Year 620 case ERA: return (getLong(ERA) == newValue ? this : Year.of(1 - year)); in with() 709 case ERAS: return with(ERA, Math.addExact(getLong(ERA), amountToAdd)); in plus() 916 case ERAS: return end.getLong(ERA) - getLong(ERA); in until()
|
D | YearMonth.java | 452 return range(field).checkValidIntValue(getLong(field), field); in get() 479 public long getLong(TemporalField field) { in getLong() method in YearMonth 685 case ERA: return (getLong(ERA) == newValue ? this : withYear(1 - year)); in with() 807 case ERAS: return with(ERA, Math.addExact(getLong(ERA), amountToAdd)); in plus() 1049 case ERAS: return end.getLong(ERA) - getLong(ERA); in until()
|
/libcore/ojluni/src/main/java/java/io/ |
D | Bits.java | 64 static long getLong(byte[] b, int off) { in getLong() method in Bits 76 return Double.longBitsToDouble(getLong(b, off)); in getDouble()
|
/libcore/ojluni/annotations/hiddenapi/java/lang/ |
D | Long.java | 169 public static java.lang.Long getLong(java.lang.String nm) { in getLong() method in Long 173 public static java.lang.Long getLong(java.lang.String nm, long val) { in getLong() method in Long 177 public static java.lang.Long getLong(java.lang.String nm, java.lang.Long val) { in getLong() method in Long
|
/libcore/ojluni/src/test/java/time/test/java/time/temporal/ |
D | TestDateTimeBuilderCombinations.java | 117 public long getLong(TemporalField field) { in test_derive() 194 public long getLong(TemporalField field) { in test_normalized() 205 assertEquals(temporal.getLong(expectedField), expectedVal.longValue()); in test_normalized()
|