HomeSort by relevance Sort by last modified time
    Searched refs:YEAR (Results 101 - 125 of 462) sorted by null

1 2 3 45 6 7 8 91011>>

  /external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
PersianTest.java 74 // The 2820-year cycle arithmetical algorithm would fail this one.
89 int y = cal.get(Calendar.YEAR);
113 cal.set(Calendar.YEAR, cyear);
136 assertEquals("Persian Week of Year least maximum", 52, leastWeeks);
CompatibilityTest.java 30 "ERA", "YEAR", "MONTH", "WEEK_OF_YEAR", "WEEK_OF_MONTH",
98 int y = cal.get(Calendar.YEAR), mon = cal.get(Calendar.MONTH)+1-Calendar.JANUARY,
172 // Julian# Year Month DOM JULIAN:Year, Month, DOM
187 int year = DATA[i+1]; local
197 cal.set(year, month, dom);
201 year2 = cal.get(Calendar.YEAR);
204 s = "G " + year + "-" + (month+1-Calendar.JANUARY) + "-" + dom +
208 if (delta != 0 || year != year2 || month != month2 ||
213 year = DATA[i+4]
449 int year = 1997, month = Calendar.APRIL, date = 1; local
772 private int year; field in class:CompatibilityTest.TransitionItem
963 int year = 1997; local
    [all...]
IslamicTest.java 54 // year month day field amount year month day
67 { 0002, HIJJAH, 30, YEAR, -1, 0001, HIJJAH, 29 },
93 // Julian Day Era Year Month Day WkDay Hour Min Sec
140 cal.get(YEAR) + "/" +
146 cal.get(YEAR) + "/" +
164 // rounding errors after year AH3954 - about 2500 years out.
175 // Test the add month in a leap year problem as reported in ticket #7427
178 cal.set(IslamicCalendar.YEAR,1431);
182 ( cal.get(IslamicCalendar.YEAR) != 1432 ))
350 int year = cal.get(Calendar.YEAR); local
816 int day=0, month=0, year=0, initDay = 27, initMonth = IslamicCalendar.RAJAB, initYear = 1434; local
    [all...]
  /frameworks/base/core/java/android/util/
MonthDisplayHelper.java 32 // holds current month, year, helps compute display
42 * @param year The year.
46 public MonthDisplayHelper(int year, int month, int weekStartDay) {
54 mCalendar.set(Calendar.YEAR, year);
66 public MonthDisplayHelper(int year, int month) {
67 this(year, month, Calendar.SUNDAY);
72 return mCalendar.get(Calendar.YEAR);
197 // helper method that recalculates cached values based on current month / year
    [all...]
  /libcore/ojluni/src/main/java/java/util/
JapaneseImperialCalendar.java 41 * calendar system in which the imperial era-based year numbering is
56 * the Gregorian year values are used. Unlike {@link
60 * Gregorian year 1, 0 and negative values are used. The Japanese
141 * YEAR -292275055 1 ? ?
162 -292275055, // YEAR
181 0, // YEAR (initialized later)
200 292278994, // YEAR
240 // Calculate the least maximum year and least day of Year
242 // era transition in a Gregorian year
243 int year = Integer.MAX_VALUE; external variable declarations
620 int year = jdate.getYear(); local
736 int year = jdate.getYear(); local
1616 int year = jdate.getYear(); local
1844 int year; local
2271 int year = date.getYear(); local
    [all...]
  /libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/
TCKChronoFieldSerialization.java 84 import static java.time.temporal.ChronoField.YEAR;
119 {YEAR},
  /packages/apps/Settings/src/com/android/settings/datetime/
DatePreferenceController.java 81 public void onDateSet(DatePicker view, int year, int month, int day) {
82 setDate(year, month, day);
91 calendar.get(Calendar.YEAR),
105 void setDate(int year, int month, int day) {
108 c.set(Calendar.YEAR, year);
  /packages/apps/UnifiedEmail/src/com/android/mail/
FormattedDateBuilder.java 46 * Times not today, but within the same calendar year will display absolute date, e.g. Nov 6
47 * Times not in the same year display a numeric absolute date, e.g. 11/18/12
67 * Times more than two weeks ago but within the same calendar year will display
69 * Times not in the same year display a numeric absolute date, e.g. 11/18/12
120 return (nowCal.get(Calendar.YEAR) == whenCal.get(Calendar.YEAR));
  /libcore/ojluni/src/main/java/java/time/temporal/
WeekFields.java 72 import static java.time.temporal.ChronoField.YEAR;
95 * Localized definitions of the day-of-week, week-of-month and week-of-year fields.
106 * The computations for day-of-week, week-of-month, and week-of-year are based
107 * on the {@linkplain ChronoField#YEAR proleptic-year},
108 * {@linkplain ChronoField#MONTH_OF_YEAR month-of-year},
112 * The values may not be aligned with the {@linkplain ChronoField#YEAR_OF_ERA year-of-Era}
121 * Together these two values allow a year or month to be divided into weeks.
144 * <h3>Week of Year</h3>
145 * One field is used: week-of-year
808 int year = temporal.get(YEAR); local
941 int year = YEAR.checkValidIntValue(fieldValues.get(YEAR)); \/\/ validate local
    [all...]
  /frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/app/wizard/
GuidedDatePickerTest.java 102 case Calendar.YEAR:
155 * @param columnIndices The date field indices corresponding to day, month, and the year
194 == currentActionCal.get(Calendar.YEAR)
213 if ( field == Calendar.YEAR ) {
214 actualMinFieldValue = mMinDate.get(Calendar.YEAR);
215 actualMaxFieldValue = mMaxDate.get(Calendar.YEAR);
245 String description = "Testing the transition from Jan to Feb (leap year)";
253 cal.set(Calendar.YEAR, 2016); // 2016 is a leap year
291 String description = "Testing the transition from Feb to Mar (leap year)";
    [all...]
  /libcore/ojluni/src/test/java/time/tck/java/time/format/
TCKDateTimeFormatter.java 67 import static java.time.temporal.ChronoField.YEAR;
176 .appendValue(YEAR).appendLiteral('-').appendValue(MONTH_OF_YEAR).appendLiteral('-')
178 DateTimeFormatter f = base.withResolverFields(YEAR, MONTH_OF_YEAR, DAY_OF_MONTH);
180 base.parse("2012-6-30-321", LocalDate::from); // wrong day-of-year
185 LocalDate parsed = f.parse("2012-6-30-321", LocalDate::from); // ignored day-of-year
192 .appendValue(YEAR).appendLiteral('-').appendValue(MONTH_OF_YEAR).appendLiteral('-')
194 DateTimeFormatter f = base.withResolverFields(YEAR, DAY_OF_YEAR);
195 Set<TemporalField> expected = new HashSet<>(Arrays.asList(YEAR, DAY_OF_YEAR));
211 .appendValue(YEAR).appendLiteral('-').appendValue(DAY_OF_YEAR).appendLiteral('-')
213 DateTimeFormatter f = base.withResolverFields(YEAR, DAY_OF_YEAR)
    [all...]
  /frameworks/base/core/java/android/app/
DatePickerDialog.java 46 private static final String YEAR = "year";
82 * @param year the initially selected year
89 int year, int month, int dayOfMonth) {
90 this(context, 0, listener, null, year, month, dayOfMonth);
101 * @param year the initially selected year
102 * @param monthOfYear the initially selected month of the year (0-11 for
108 @Nullable OnDateSetListener listener, int year, int monthOfYear, int dayOfMonth)
215 final int year = savedInstanceState.getInt(YEAR); local
    [all...]
  /libcore/luni/src/test/java/libcore/java/time/chrono/
HijrahChronologyTest.java 41 // 1300 is the first year in the HijrahChronology in the umalqura configuration.
44 assertEquals(1300, date.getLong(ChronoField.YEAR));
46 // Proleptic month starts with 0 for the first month of the proleptic year 0.
49 // first month of the year 1300 has 30 days.
  /libcore/ojluni/src/main/java/java/time/chrono/
ThaiBuddhistChronology.java 61 import static java.time.temporal.ChronoField.YEAR;
91 * <li>year-of-era - The year-of-era for the current era increases uniformly from the epoch at year one.
92 * For the previous era the year increases from one as time goes backwards.
93 * The value for the current era is equal to the ISO proleptic-year plus 543.
94 * <li>proleptic-year - The proleptic year is the same as the year-of-era for the
96 * The value is equal to the ISO proleptic-year plus 543
    [all...]
  /packages/apps/Car/Settings/src/com/android/car/settings/datetime/
DatePickerActivity.java 48 c.set(Calendar.YEAR, mDatePicker.getYear());
  /packages/apps/Contacts/src/com/android/contacts/datepicker/
DatePickerDialog.java 19 // This is a fork of the standard Android DatePicker that additionally allows toggling the year
46 /** Magic year that represents "no year" */
49 private static final String YEAR = "year";
69 * @param year The year that was set or {@link DatePickerDialog#NO_YEAR} if the user has
70 * not specified a year
75 void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth);
81 * @param year The initial year of the dialo
216 int year = savedInstanceState.getInt(YEAR); local
    [all...]
  /packages/apps/DeskClock/src/com/android/deskclock/provider/
ClockContract.java 220 * Alarm year.
224 String YEAR = "year";
227 * Alarm month in year.
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
Support_SimpleDateFormat.java 76 t_FormatWithField(1, format, date, null, Field.YEAR, 6, 10);
107 t_FormatWithField(25, format, date, null, Field.YEAR, 0, 0);
161 v.add(new FieldContainer(0, 4, Field.YEAR));
177 v.add(new FieldContainer(18, 22, Field.YEAR));
210 v.add(new FieldContainer(6, 10, Field.YEAR));
211 v.add(new FieldContainer(11, 13, Field.YEAR));
212 v.add(new FieldContainer(14, 18, Field.YEAR));
  /external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/
CompatibilityTest.java 31 "ERA", "YEAR", "MONTH", "WEEK_OF_YEAR", "WEEK_OF_MONTH",
99 int y = cal.get(Calendar.YEAR), mon = cal.get(Calendar.MONTH)+1-Calendar.JANUARY,
173 // Julian# Year Month DOM JULIAN:Year, Month, DOM
188 int year = DATA[i+1]; local
198 cal.set(year, month, dom);
202 year2 = cal.get(Calendar.YEAR);
205 s = "G " + year + "-" + (month+1-Calendar.JANUARY) + "-" + dom +
209 if (delta != 0 || year != year2 || month != month2 ||
214 year = DATA[i+4]
450 int year = 1997, month = Calendar.APRIL, date = 1; local
773 private int year; field in class:CompatibilityTest.TransitionItem
964 int year = 1997; local
    [all...]
IslamicTest.java 55 // year month day field amount year month day
68 { 0002, HIJJAH, 30, YEAR, -1, 0001, HIJJAH, 29 },
94 // Julian Day Era Year Month Day WkDay Hour Min Sec
141 cal.get(YEAR) + "/" +
147 cal.get(YEAR) + "/" +
165 // rounding errors after year AH3954 - about 2500 years out.
176 // Test the add month in a leap year problem as reported in ticket #7427
179 cal.set(IslamicCalendar.YEAR,1431);
183 ( cal.get(IslamicCalendar.YEAR) != 1432 ))
351 int year = cal.get(Calendar.YEAR); local
817 int day=0, month=0, year=0, initDay = 27, initMonth = IslamicCalendar.RAJAB, initYear = 1434; local
    [all...]
  /external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/util/
Calendar.java 23 * <code>YEAR</code>, <code>MONTH</code>, <code>DAY</code>, <code>HOUR</code>,
57 * as well as their meaning. For example, the first month of the year has value
60 * <code>YEAR</code>. See individual field documentation and subclass
81 * first week of the month or year as a reference point. The first week of a
82 * month or year is defined as the earliest seven day period beginning on
84 * <code>getMinimalDaysInFirstWeek()</code> days of that month or year. Weeks
88 * designate the week before week 1 of a year as week <em>n</em> of the previous
89 * year.
93 * <code>Date</code> (such as only year and month but no day in the month), or
100 * start of the epoch: i.e., YEAR = 1970, MONTH = JANUARY, DATE = 1, etc
1400 calendar.set(getJDKField(YEAR), year); local
1419 calendar.set(getJDKField(YEAR), year); local
1442 calendar.set(getJDKField(YEAR), year); local
    [all...]
  /external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base.tests/src/com/ibm/icu/tests/
CalendarTest.java 178 cal.set(Calendar.YEAR, 1977);
179 assertEquals(1977, cal.get(Calendar.YEAR));
262 cal.set(Calendar.YEAR, 1990);
272 cal.set(Calendar.YEAR, 3058);
345 cal.set(Calendar.YEAR, 1990);
354 cal.set(Calendar.YEAR, 1990);
  /cts/tests/tests/provider/src/android/provider/cts/
MediaStore_Audio_Artists_AlbumsTest.java 98 assertEquals(Audio1.YEAR, c.getInt(c.getColumnIndex(Albums.FIRST_YEAR)));
99 assertEquals(Audio1.YEAR, c.getInt(c.getColumnIndex(Albums.LAST_YEAR)));
  /developers/build/prebuilts/gradle/SpeedTracker/Application/src/main/java/com/example/android/wearable/speedtracker/
PhoneMainActivity.java 71 calendar.get(Calendar.YEAR),
76 public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {
82 calendar.set(Calendar.YEAR, year);
  /developers/samples/android/wearable/wear/SpeedTracker/Application/src/main/java/com/example/android/wearable/speedtracker/
PhoneMainActivity.java 71 calendar.get(Calendar.YEAR),
76 public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {
82 calendar.set(Calendar.YEAR, year);

Completed in 3758 milliseconds

1 2 3 45 6 7 8 91011>>