HomeSort by relevance Sort by last modified time
    Searched refs:years (Results 1 - 25 of 151) sorted by null

1 2 3 4 5 6 7

  /external/icu/icu4c/source/test/perf/DateFmtPerf/
datedata.h 43 static int years[] = { variable
  /libcore/ojluni/src/main/java/java/time/
Period.java 66 import static java.time.temporal.ChronoUnit.YEARS;
96 * such as '2 years, 3 months and 4 days'.
98 * This class models a quantity or amount of time in terms of years, months and days.
113 * The supported units of a period are {@link ChronoUnit#YEARS YEARS},
119 * system, in which today's rules for leap years are applied for all time.
150 Collections.unmodifiableList(Arrays.<TemporalUnit>asList(YEARS, MONTHS, DAYS));
153 * The number of years.
155 private final int years; field in class:Period
167 * Obtains a {@code Period} representing a number of years
264 int years = 0; local
333 int years = parseNumber(text, yearMatch, negate); local
1069 int years = in.readInt(); local
    [all...]
OffsetDateTime.java 502 * <li>{@code YEARS}
    [all...]
  /libcore/ojluni/src/main/java/java/time/chrono/
ChronoPeriodImpl.java 62 import static java.time.temporal.ChronoUnit.YEARS;
109 Collections.unmodifiableList(Arrays.<TemporalUnit>asList(YEARS, MONTHS, DAYS));
116 * The number of years.
118 final int years; field in class:ChronoPeriodImpl
131 ChronoPeriodImpl(Chronology chrono, int years, int months, int days) {
134 this.years = years;
142 if (unit == ChronoUnit.YEARS) {
143 return years;
166 return years == 0 && months == 0 && days == 0
395 int years = in.readInt(); local
    [all...]
HijrahDate.java 350 // TODO does the limited range of valid years cause years to
520 HijrahDate plusYears(long years) {
521 if (years == 0) {
524 int newYear = Math.addExact(this.prolepticYear, (int)years);
600 long years = totalMonths / 12; // safe local
602 return getChronology().period(Math.toIntExact(years), months, days);
Chronology.java 678 * Obtains a period for this chronology based on years, months and days.
681 * years, months and days. All supplied chronologies use periods
682 * based on years, months and days, however the {@code ChronoPeriod} API
    [all...]
IsoChronology.java 108 * current era. For the previous era, years have zero, then negative values.
115 * <li>leap-year - Leap years occur every 4 years, except where the year is divisble by 100 and not divisble by 400.
366 * This method applies the current rules for leap years across the whole time-line.
368 * remainder. However, years divisible by 100, are not leap years, with
369 * the exception of years divisible by 400 which are.
462 * years, months and weeks in {@code ALIGNED_DAY_OF_WEEK_IN_MONTH}.
464 * the years, months and weeks have been handled.
479 * The approach is the same as described above for years and weeks i
    [all...]
HijrahChronology.java 105 * Ordinary years have 354 days; leap years have 355 days.
147 * ISO calendar, and the length of each month for a range of years.
903 Map<Integer, int[]> years = new HashMap<>(); local
    [all...]
  /developers/build/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/
CreditCardSpinnersActivity.java 34 private final String[] years = new String[CC_EXP_YEARS_COUNT]; field in class:CreditCardSpinnersActivity
79 for (int i = 0; i < years.length; i++) {
80 years[i] = Integer.toString(year + i);
82 // Since the years Spinner uses a custom adapter, it needs to implement getAutofillOptions.
84 new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, years) {
87 return years;
  /developers/samples/android/input/autofill/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/commoncases/
CreditCardSpinnersActivity.java 37 private final String[] years = new String[CC_EXP_YEARS_COUNT]; field in class:CreditCardSpinnersActivity
77 for (int i = 0; i < years.length; i++) {
78 years[i] = Integer.toString(year + i);
80 // Since the years Spinner uses a custom adapter, it needs to implement getAutofillOptions.
82 new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, years) {
85 return years;
  /developers/build/prebuilts/gradle/AutofillFramework/kotlinApp/Application/src/main/java/com/example/android/autofillframework/app/
CreditCardExpirationDateView.kt 53 val years = arrayOfNulls<String>(CC_EXP_YEARS_COUNT)
54 for (i in 0 until years.size) {
55 years[i] = Integer.toString(startYear + i)
68 android.R.layout.simple_spinner_item, years)
CreditCardActivity.kt 55 val years = (0 until CC_EXP_YEARS_COUNT)
60 android.R.layout.simple_spinner_item, years) {
61 override fun getAutofillOptions() = years
  /developers/samples/android/input/autofill/AutofillFramework/kotlinApp/Application/src/main/java/com/example/android/autofillframework/app/
CreditCardExpirationDateView.kt 53 val years = arrayOfNulls<String>(CC_EXP_YEARS_COUNT)
54 for (i in 0 until years.size) {
55 years[i] = Integer.toString(startYear + i)
68 android.R.layout.simple_spinner_item, years)
CreditCardActivity.kt 55 val years = (0 until CC_EXP_YEARS_COUNT)
60 android.R.layout.simple_spinner_item, years) {
61 override fun getAutofillOptions() = years
  /external/androidplot/Examples/DemoApp/src/com/androidplot/demos/
TimeSeriesActivity.java 44 // an array of years in milliseconds:
45 Number[] years = { local
54 Arrays.asList(years),
91 plot1.setDomainStep(XYStepMode.SUBDIVIDE, years.length);
  /frameworks/base/services/tests/servicestests/src/com/android/server/backup/utils/
DataStreamFileCodecTest.java 81 int years = dataInputStream.readInt(); local
83 return new MythicalCreature(years, name);
  /frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/
YearPickerView.java 38 * Displays a selectable list of years.
72 ArrayList<String> years = new ArrayList<String>(); local
74 years.add(String.format("%d", year));
76 mAdapter = new YearAdapter(context, R.layout.year_label_text_view, years);
  /external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/timezone/
ICUZDump.java 256 String[] years = val.split(","); local
257 if (years.length == 1) {
258 high = Integer.parseInt(years[0]);
259 } else if (years.length == 2) {
260 low = Integer.parseInt(years[0]);
261 high = Integer.parseInt(years[1]);
  /external/snakeyaml/src/test/java/org/yaml/snakeyaml/types/
TimestampTagTest.java 94 int years = cal.get(Calendar.YEAR); local
101 String result = String.valueOf(years) + "-" + String.valueOf(months) + "-"
  /libcore/luni/src/main/java/javax/xml/datatype/
DatatypeFactory.java 197 * e.g. leap years have different days in the month = {@link java.util.Calendar#FEBRUARY}
208 * specifying the <code>Duration</code> as isPositive, years, months, days, hours, minutes, seconds.</p>
219 * @param years of this <code>Duration</code>
233 final BigInteger years,
242 * specifying the <code>Duration</code> as isPositive, years, months, days, hours, minutes, seconds.</p>
248 * @param years of this <code>Duration</code>
261 * BigInteger years,
270 final int years,
277 // years may not be set
278 BigInteger realYears = (years != DatatypeConstants.FIELD_UNDEFINED) ? BigInteger.valueOf((long) years) : null
    [all...]
Duration.java 34 * which consists of six fields (years, months, days, hours,
158 boolean yearSet = isSet(DatatypeConstants.YEARS);
218 * <p>Get the years value of this <code>Duration</code> as an <code>int</code> or <code>0</code> if not present.</p>
221 * {@link #getField(DatatypeConstants.Field field) getField(DatatypeConstants.YEARS)}.</p>
224 * with years that go beyond the range of an <code>int</code>.
225 * Use {@link #getField(DatatypeConstants.Field field) getField(DatatypeConstants.YEARS)} to avoid possible loss of precision.</p>
227 * @return If the years field is present, return its value as an <code>int</code>, else return <code>0</code>.
230 return getFieldValueAsInt(DatatypeConstants.YEARS);
383 * In case of YEARS, MONTHS, DAYS, HOURS, and MINUTES, the returned
388 * one of the six Field constants (YEARS,MONTHS,DAYS,HOURS
892 BigInteger years = (BigInteger) getField(DatatypeConstants.YEARS); local
    [all...]
  /libcore/ojluni/src/test/java/time/tck/java/time/chrono/
CopticDate.java 266 case YEARS: return plusYears(amountToAdd);
277 private CopticDate plusYears(long years) {
278 return plusMonths(Math.multiplyExact(years, 13));
322 long years = totalMonths / 13; // safe local
324 return Period.of(Math.toIntExact(years), months, days);
  /external/icu/icu4c/source/tools/tzcode/
zdump.c 692 register intmax_t myy, seconds, years; local
703 years = diff400 * 400;
706 years = 1;
708 myy += years;
719 years = diff400 * 400;
722 years = 1;
724 myy -= years;
  /development/samples/ApiDemos/src/com/example/android/apis/app/
PrintCustomContent.java 490 String[] years = getResources().getStringArray(R.array.motogp_years); local
496 final int itemCount = years.length;
499 item.year = years[i];
  /external/golang-protobuf/ptypes/
duration.go 47 // google/protobuf/duration.proto. This is about 10,000 years in seconds.
55 // is about 10,000 years, and the range of time.Duration is about 290).

Completed in 450 milliseconds

1 2 3 4 5 6 7