/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/ |
CopticTest.java | 77 * 06/13/0003 29/08/0287 1826125 first coptic leap year 102 // Julian Day Era Year Month Day WkDay Hour Min Sec 125 // above is first coptic leap year 185 cal.set(Calendar.YEAR, 1); 196 cal.get(YEAR) + "/" + 202 cal.get(YEAR) + "/" + 229 for (int year = 1725; year < 1735; year++) { // Coptic 1725-01-01 = Gregorian 2008-09-11 230 boolean isLeap = ((year % 4) == 3) [all...] |
EthiopicTest.java | 50 // year month day field amount year month day 63 { 0002, HIJJAH, 30, YEAR, -1, 0001, HIJJAH, 29 }, 103 * 06/13/0003 27/08/0011 1725316 first ethiopian leap year 127 // Julian Day Era Year Month Day WkDay Hour Min Sec 157 new TestCase(1725315.5, 1, 3, 13, 6, SAT, 0, 0, 0), // Gregorian: 27/08/0011 - first ethiopic leap year 176 // Julian Day Era Year Month Day WkDay Hour Min Sec 206 new TestCase(1725315.5, 0, 5503, 13, 6, SAT, 0, 0, 0), // Gregorian: 27/08/0011 - first ethiopic leap year 243 cal.set(Calendar.YEAR, 5500); 248 // very early. The funny thing is, it's ok for dates in the year [all...] |
CalendarTestFmwk.java | 41 public final static int YEAR = Calendar.YEAR; 56 "ERA", "YEAR", "MONTH", "WEEK_OF_YEAR", "WEEK_OF_MONTH", 139 * <li>0: input year 144 * <li>5: result year 151 * // year month day field amount year month day 180 Calendar.EXTENDED_YEAR : YEAR); 233 Calendar.ERA, Calendar.YEAR, Calendar.MONTH, 372 // Day of year [all...] |
/libcore/ojluni/src/main/java/java/time/chrono/ |
JapaneseChronology.java | 63 import static java.time.temporal.ChronoField.YEAR; 75 import java.time.Year; 100 * apart from the era-based year numbering. 115 * <li>{@code YEAR} 190 * era, year-of-era, month-of-year and day-of-month fields. 203 * @param yearOfEra the year-of-era 204 * @param month the month-of-year 220 * proleptic-year, month-of-year and day-of-month fields [all...] |
JapaneseDate.java | 65 import static java.time.temporal.ChronoField.YEAR; 102 * apart from the era-based year numbering. The proleptic-year is defined to be 103 * equal to the ISO proleptic-year. 109 * For example, the Japanese year "Heisei 24" corresponds to ISO year "2012".<br> 111 * Calling {@code japaneseDate.get(YEAR)} will return 2012.<br> 138 * The Japanese imperial calendar year of this date. 196 * system from the era, year-of-era, month-of-year and day-of-month fields 500 int year = isoDate.getYear(); local 584 int year = JapaneseChronology.INSTANCE.prolepticYear(era, yearOfEra); local 748 int year = in.readInt(); local [all...] |
HijrahDate.java | 65 import static java.time.temporal.ChronoField.YEAR; 95 * The Hijrah calendar has a different total of days in a year than 126 * The proleptic year. 130 * The month-of-year. 140 * Obtains an instance of {@code HijrahDate} from the Hijrah proleptic year, 141 * month-of-year and day-of-month. 143 * @param prolepticYear the proleptic year to represent in the Hijrah calendar 144 * @param monthOfYear the month-of-year to represent, from 1 to 12 215 * from the proleptic-year, month-of-year and day-of-month fields 686 int year = in.readInt(); local [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/provider/ |
Alarm.java | 78 ClockDatabaseHelper.INSTANCES_TABLE_NAME + "." + ClockContract.InstancesColumns.YEAR, 396 previousInstanceTime.set(Calendar.YEAR, currentTime.get(Calendar.YEAR)); 415 nextInstanceTime.set(Calendar.YEAR, currentTime.get(Calendar.YEAR));
|
ClockProvider.java | 83 sAlarmsWithInstancesProjection.put(INSTANCES_TABLE_NAME + "." + InstancesColumns.YEAR, 84 INSTANCES_TABLE_NAME + "." + InstancesColumns.YEAR); 111 InstancesColumns.YEAR + ", " + InstancesColumns.MONTH + ", " +
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timezone/ |
TimeZoneBoundaryTest.java | 60 // Given a date with a year start, find the Daylight onset 61 // and end. The given date should be 1/1/xx in some year. 103 // // Given a date with a year start, find the Daylight onset 104 // // and end. The given date should be 1/1/xx in some year. 145 // Given a date with a year start, find the Daylight onset 146 // and end. The given date should be 1/1/xx in some year. 204 return "" + (cal.get(Calendar.YEAR) - 1900) + "/" + 223 return "" + (cal.get(Calendar.YEAR) - 1900) + "/" + 268 int offset = time_zone.getOffset(cal.get(Calendar.ERA), cal.get(Calendar.YEAR), cal.get(Calendar.MONTH), 278 ", year=" + cal.get(Calendar.YEAR) [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/ |
TimeZoneBoundaryTest.java | 59 // Given a date with a year start, find the Daylight onset 60 // and end. The given date should be 1/1/xx in some year. 102 // // Given a date with a year start, find the Daylight onset 103 // // and end. The given date should be 1/1/xx in some year. 144 // Given a date with a year start, find the Daylight onset 145 // and end. The given date should be 1/1/xx in some year. 203 return "" + (cal.get(Calendar.YEAR) - 1900) + "/" + 222 return "" + (cal.get(Calendar.YEAR) - 1900) + "/" + 267 int offset = time_zone.getOffset(cal.get(Calendar.ERA), cal.get(Calendar.YEAR), cal.get(Calendar.MONTH), 277 ", year=" + cal.get(Calendar.YEAR) [all...] |
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/ |
TCKIsoFields.java | 67 import static java.time.temporal.ChronoField.YEAR; 154 .appendValue(YEAR).appendLiteral('-') 165 .appendValue(YEAR).appendLiteral('-') 176 .appendValue(YEAR).appendLiteral('-') 211 .appendValue(YEAR).appendLiteral(':') 221 .appendValue(YEAR).appendLiteral(':') 241 .appendValue(YEAR).appendLiteral(':') 443 // loop round at least one 400 year cycle, including before 1970 445 int year = 1960; local 451 if (date.getYear() != year) { [all...] |
/libcore/ojluni/src/main/java/java/time/ |
LocalDate.java | 75 import static java.time.temporal.ChronoField.YEAR; 110 * often viewed as year-month-day. Other date fields, such as day-of-year, 111 * day-of-week and week-of-year, can also be accessed. 138 public static final LocalDate MIN = LocalDate.of(Year.MIN_VALUE, 1, 1); 143 public static final LocalDate MAX = LocalDate.of(Year.MAX_VALUE, 12, 31); 150 * The number of days in a 400 year cycle. 154 * The number of days from year zero to year 1970. 155 * There are five 400 year cycles from year zero to 2000 163 private final int year; field in class:LocalDate 335 int year = YEAR.checkValidIntValue(yearEst); local 2070 int year = in.readInt(); local [all...] |
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/ |
DatePickerDialog.java | 61 private static final String KEY_SELECTED_YEAR = "year"; 120 * @param year The year that was set. 125 void onDateSet(DatePickerDialog dialog, int year, int monthOfYear, int dayOfMonth); 143 * @param year The initial year of the dialog. 147 public static DatePickerDialog newInstance(OnDateSetListener callBack, int year, 151 ret.initialize(callBack, year, monthOfYear, dayOfMonth); 155 public void initialize(OnDateSetListener callBack, int year, int monthOfYear, int dayOfMonth) { 157 mCalendar.set(Calendar.YEAR, year) 451 adjustDayInMonthIfNeeded(mCalendar.get(Calendar.MONTH), year); local [all...] |
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
CopticDate.java | 71 import java.time.Year; 102 * The proleptic year. 143 * @param prolepticYear the Coptic proleptic-year 199 case YEAR: 201 ValueRange.of(1, Year.MAX_VALUE + 1) : ValueRange.of(1, Year.MAX_VALUE)); // TODO 224 case YEAR: return prolepticYear; 249 case YEAR: return resolvePreviousValid(nvalue, month, day); 330 long year = (long) prolepticYear; local 331 long copticEpochDay = ((year - 1) * 365) + Math.floorDiv(year, 4) + (get(ChronoField.DAY_OF_YEAR) - 1) [all...] |
CopticChronology.java | 81 * <li>year-of-era - The year-of-era for the current era increases uniformly from the epoch at year one. 82 * For the previous era the year increases from one as time goes backwards. 83 * <li>proleptic-year - The proleptic year is the same as the year-of-era for the 85 * <li>month-of-year - There are 13 months in a Coptic year, numbered from 1 to 13. 87 * The 13th month has 5 days, or 6 in a leap year, numbered 1 to 5 or 1 to 6 [all...] |
/packages/apps/Contacts/src/com/android/contacts/datepicker/ |
DatePicker.java | 43 * This is a fork of the standard Android DatePicker that additionally allows toggling the year 46 * A view for selecting a month / year / day based on a calendar like layout. 54 /** Magic year that represents "no year" */ 86 * @param year The year that was set or {@link DatePicker#NO_YEAR} if no year was set 91 void onDateChanged(DatePicker view, int year, int monthOfYear, int dayOfMonth); 157 mYearPicker = (NumberPicker) findViewById(R.id.year); 185 init(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH), cal.get(Calendar.DAY_OF_MONTH), null) 434 int year = (mYearOptional && !mHasYear) ? NO_YEAR : mYear; local [all...] |
/packages/apps/Contacts/src/com/android/contacts/editor/ |
EventFieldEditorView.java | 161 // if we changed to a type that requires a year, ensure that it is actually set 167 final int defaultYear = calendar.get(Calendar.YEAR); 169 // Check whether the year is optional 180 // This value is missing the year. Add it now 203 final int defaultYear = calendar.get(Calendar.YEAR); 205 // Check whether the year is optional 216 // Try parsing with year 220 oldYear = cal.get(Calendar.YEAR); 222 //cal.set(Calendar.YEAR, 0); 233 public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) [all...] |
/packages/apps/Music/src/com/android/music/ |
MediaPickerActivity.java | 131 MediaStore.Audio.Media.MIME_TYPE, MediaStore.Audio.Media.YEAR}; 147 // video has no year column. 153 mWhereClause = MediaStore.Audio.Media.YEAR + ">=" + mFirstYear + " AND " 154 + MediaStore.Audio.Media.YEAR + "<=" + mLastYear; 178 // video has no year column
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
DatePickerTestCase.java | 61 cal.set(Calendar.YEAR, 2012);
|
/cts/tests/tests/provider/src/android/provider/cts/ |
MediaStore_Audio_MediaTest.java | 122 assertEquals(Audio1.YEAR, c.getInt(c.getColumnIndex(Media.YEAR))); 161 assertEquals(Audio2.YEAR, c.getInt(c.getColumnIndex(Media.YEAR)));
|
/external/apache-harmony/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/ |
SimpleFormatterTest.java | 99 assertTrue(str.indexOf(String.valueOf(cal.get(Calendar.YEAR))) >= 0);
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/ |
CalendarTestFmwk.java | 42 public final static int YEAR = Calendar.YEAR; 57 "ERA", "YEAR", "MONTH", "WEEK_OF_YEAR", "WEEK_OF_MONTH", 140 * <li>0: input year 145 * <li>5: result year 152 * // year month day field amount year month day 181 Calendar.EXTENDED_YEAR : YEAR); 234 Calendar.ERA, Calendar.YEAR, Calendar.MONTH, 373 // Day of year [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
DebugUtilitiesData.java | 43 "YEAR", /* 1 */ 124 android.icu.util.Calendar.YEAR, /* 1 */
|
/frameworks/base/core/java/android/widget/ |
CalendarViewMaterialDelegate.java | 136 final int year = day.get(Calendar.YEAR); 139 mOnDateChangeListener.onSelectedDayChange(mDelegator, year, month, dayOfMonth);
|
/libcore/luni/src/test/java/libcore/java/util/ |
OldGregorianCalendarTest.java | 61 assertEquals(2008, g.get(Calendar.YEAR));
|