Home
last modified time | relevance | path

Searched defs:amount (Results 1 – 25 of 41) sorted by relevance

12

/libcore/ojluni/src/test/java/time/test/java/time/
DMockSimplePeriod.java91 private final long amount; field in MockSimplePeriod
107 public static MockSimplePeriod of(long amount, TemporalUnit unit) { in of()
111 private MockSimplePeriod(long amount, TemporalUnit unit) { in MockSimplePeriod()
/libcore/ojluni/src/test/java/time/tck/java/time/
DMockSimplePeriod.java91 private final long amount; field in MockSimplePeriod
107 public static MockSimplePeriod of(long amount, TemporalUnit unit) { in of()
111 private MockSimplePeriod(long amount, TemporalUnit unit) { in MockSimplePeriod()
DTCKDuration.java395 …public void factory_of_longTemporalUnit(long amount, TemporalUnit unit, long expectedSeconds, int … in factory_of_longTemporalUnit()
414 public void factory_of_longTemporalUnit_outOfRange(long amount, TemporalUnit unit) { in factory_of_longTemporalUnit_outOfRange()
433 TemporalAmount amount = Duration.ofHours(3); in factory_from_TemporalAmount_Duration() local
439 TemporalAmount amount = new TemporalAmount() { in factory_from_TemporalAmount_DaysNanos() local
471 TemporalAmount amount = new TemporalAmount() { in factory_from_TemporalAmount_Minutes_tooBig() local
1170 public void plusDays_long(long days, long amount, long expectedDays) { in plusDays_long()
1212 public void plusHours_long(long hours, long amount, long expectedHours) { in plusHours_long()
1254 public void plusMinutes_long(long minutes, long amount, long expectedMinutes) { in plusMinutes_long()
1300 …public void plusSeconds_long(long seconds, int nanos, long amount, long expectedSeconds, int expec… in plusSeconds_long()
1376 …public void plusMillis_long(long seconds, int nanos, long amount, long expectedSeconds, int expect… in plusMillis_long()
[all …]
DTCKYear.java495 public void test_plusValid(int year, TemporalAmount amount, int expected) { in test_plusValid()
514 public void test_plusInvalidUnit(TemporalAmount amount) { in test_plusInvalidUnit()
600 …public void test_plus_long_TemporalUnit(Year base, long amount, TemporalUnit unit, Year expectedYe… in test_plus_long_TemporalUnit()
627 public void test_minusValid(int year, TemporalAmount amount, int expected) { in test_minusValid()
646 public void test_minusInvalidUnit(TemporalAmount amount) { in test_minusInvalidUnit()
732 …public void test_minus_long_TemporalUnit(Year base, long amount, TemporalUnit unit, Year expectedY… in test_minus_long_TemporalUnit()
926 long amount = year1.until(year2, unit); in test_until_TemporalUnit() local
932 long amount = year2.until(year1, unit); in test_until_TemporalUnit_negated() local
938 long amount = unit.between(year1, year2); in test_until_TemporalUnit_between() local
DTCKPeriod.java160 TemporalAmount amount = Period.of(1, 2, 3); in factory_from_TemporalAmount_Period() local
166 TemporalAmount amount = new TemporalAmount() { in factory_from_TemporalAmount_YearsDays() local
196 TemporalAmount amount = new TemporalAmount() { in factory_from_TemporalAmount_Years_tooBig() local
219 TemporalAmount amount = new TemporalAmount() { in factory_from_TemporalAmount_DaysHours() local
645 TemporalAmount amount = new TemporalAmount() { in test_plus_TemporalAmount_DaysHours() local
790 TemporalAmount amount = new TemporalAmount() { in test_minus_TemporalAmount_DaysHours() local
1156 public void test_good_getUnit(long amount, TemporalUnit unit) { in test_good_getUnit()
DTCKDayOfWeek.java305 public void test_plus_long(int base, long amount, int expected) { in test_plus_long()
336 public void test_minus_long(int base, long amount, int expected) { in test_minus_long()
DTCKMonth.java317 public void test_plus_long(int base, long amount, int expected) { in test_plus_long()
358 public void test_minus_long(int base, long amount, int expected) { in test_minus_long()
/libcore/ojluni/src/main/java/java/time/temporal/
DTemporal.java261 default Temporal plus(TemporalAmount amount) { in plus()
333 default Temporal minus(TemporalAmount amount) { in minus()
DTemporalUnit.java227 <R extends Temporal> R addTo(R temporal, long amount); in addTo()
DChronoUnit.java265 public <R extends Temporal> R addTo(R temporal, long amount) { in addTo()
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKChronoUnit.java169 …unitAndTemporal(ChronoUnit unit, Temporal base, boolean isSupportedBy, long amount, Temporal targ… in test_unitAndTemporal()
174 assertEquals(unit.between(base, result), amount); in test_unitAndTemporal() local
/libcore/luni/src/test/java/libcore/java/time/
DOffsetTimeTest.java70 private static void assertPlusIsNoop(long amount, TemporalUnit unit) { in assertPlusIsNoop()
/libcore/ojluni/src/main/java/java/time/chrono/
DChronoPeriodImpl.java177 ChronoPeriodImpl amount = validateAmount(amountToAdd); in plus() local
187 ChronoPeriodImpl amount = validateAmount(amountToSubtract); in minus() local
201 private ChronoPeriodImpl validateAmount(TemporalAmount amount) { in validateAmount()
DChronoLocalDate.java448 default ChronoLocalDate plus(TemporalAmount amount) { in plus()
471 default ChronoLocalDate minus(TemporalAmount amount) { in minus()
DChronoLocalDateTime.java283 default ChronoLocalDateTime<D> plus(TemporalAmount amount) { in plus()
301 default ChronoLocalDateTime<D> minus(TemporalAmount amount) { in minus()
DChronoLocalDateImpl.java191 public D plus(TemporalAmount amount) { in plus()
218 public D minus(TemporalAmount amount) { in minus()
DChronoZonedDateTime.java430 default ChronoZonedDateTime<D> plus(TemporalAmount amount) { in plus()
448 default ChronoZonedDateTime<D> minus(TemporalAmount amount) { in minus()
DThaiBuddhistDate.java350 public ThaiBuddhistDate plus(TemporalAmount amount) { in plus()
360 public ThaiBuddhistDate minus(TemporalAmount amount) { in minus()
DMinguoDate.java350 public MinguoDate plus(TemporalAmount amount) { in plus()
360 public MinguoDate minus(TemporalAmount amount) { in minus()
DJapaneseDate.java559 public JapaneseDate plus(TemporalAmount amount) { in plus()
569 public JapaneseDate minus(TemporalAmount amount) { in minus()
/libcore/luni/src/test/resources/systemid/
Drecipt.dtd7 amount CDATA #IMPLIED attribute
/libcore/luni/src/test/resources/
Drecipt.dtd7 amount CDATA #IMPLIED attribute
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/apache/harmony/kernel/dalvik/
DThreadsTest.java150 private final long amount; field in ThreadsTest.Parker
183 long amount = this.amount; in run() local
/libcore/ojluni/src/main/java/java/time/
DDayOfWeek.java366 int amount = (int) (days % 7); in plus() local
DMonth.java393 int amount = (int) (months % 12); in plus() local

12