/development/samples/browseable/SpeedTracker/Application/src/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);
|
/external/ksoap2/kobjects/org/ksoap2/kobjects/isodate/ |
IsoDate.java | 45 int year = c.get(Calendar.YEAR); local 46 dd(buf, year / 100); 47 dd(buf, year % 100); 81 Calendar.YEAR,
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
IsoFields.java | 68 import static java.time.temporal.ChronoField.YEAR; 88 * including quarter-of-year and week-based-year. 92 * <h3>Quarter of year</h3> 93 * The ISO-8601 standard is based on the standard civic 12 month year. 104 * <li>{@link #QUARTER_OF_YEAR QUARTER_OF_YEAR} - the week within the week-based-year 105 * <li>{@link ChronoField#YEAR YEAR} - the standard ISO year 111 * alternate way of expressing the date, based on the concept of week-based-year 315 long year = temporal.getLong(YEAR); local 331 long year = temporal.getLong(YEAR); local 622 int year = date.getYear(); local [all...] |
ChronoField.java | 63 import java.time.Year; 91 * For example, most non-ISO calendar systems define dates as a year, month and day, 365 * The aligned day-of-week within a year. 368 * where the weeks are aligned to the start of the year. 371 * For example, in a calendar systems with a seven day week, the first aligned-week-of-year 372 * starts on day-of-year 1, the second aligned-week starts on day-of-year 8, and so on. 375 * As such, day-of-year 1 to 7 will have aligned-day-of-week values from 1 to 7. 376 * And day-of-year 8 to 14 will repeat this with aligned-day-of-week values from 1 to 7. 388 * from 1 to 28, or 29 in a leap year [all...] |
/development/samples/Vault/src/com/example/android/vault/ |
SecretKeyWrapper.java | 75 end.add(Calendar.YEAR, 100);
|
/development/tools/bugreport/src/com/android/bugreport/util/ |
Utils.java | 81 * The year is optional. 95 result.set(Calendar.YEAR, Integer.parseInt(matcher.group(startGroup + 0)));
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
RelativeDateTimeFormatterTest.java | 58 {1.0, Direction.NEXT, RelativeUnit.YEARS, "in 1 year"}, 87 {1.0, Direction.LAST, RelativeUnit.YEARS, "1 year ago"}, 128 {1.0, Direction.NEXT, RelativeUnit.YEARS, "In 1 year"}, 157 {1.0, Direction.LAST, RelativeUnit.YEARS, "1 year ago"}, 367 {Direction.NEXT, AbsoluteUnit.YEAR, "next year"}, 381 {Direction.LAST, AbsoluteUnit.YEAR, "last year"}, 393 {Direction.THIS, AbsoluteUnit.YEAR, "this year"}, [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
RelativeDateTimeFormatterTest.java | 57 {1.0, Direction.NEXT, RelativeUnit.YEARS, "in 1 year"}, 86 {1.0, Direction.LAST, RelativeUnit.YEARS, "1 year ago"}, 127 {1.0, Direction.NEXT, RelativeUnit.YEARS, "In 1 year"}, 156 {1.0, Direction.LAST, RelativeUnit.YEARS, "1 year ago"}, 366 {Direction.NEXT, AbsoluteUnit.YEAR, "next year"}, 380 {Direction.LAST, AbsoluteUnit.YEAR, "last year"}, 392 {Direction.THIS, AbsoluteUnit.YEAR, "this year"}, [all...] |
/frameworks/base/core/java/com/android/internal/app/ |
NightDisplayController.java | 411 c.set(Calendar.YEAR, time.get(Calendar.YEAR)); 436 c.set(Calendar.YEAR, time.get(Calendar.YEAR));
|
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/utils/ |
ObexTime.java | 97 cal.get(Calendar.YEAR), cal.get(Calendar.MONTH) + 1,
|
/libcore/luni/src/main/java/libcore/icu/ |
RelativeDateTimeFormatter.java | 45 // YEAR_IN_MILLIS considers 364 days as a year. However, since this 204 // If user doesn't supply the year display flag, we need to explicitly 205 // set that to show / hide the year based on time and now. Otherwise 211 if (timeCalendar.get(Calendar.YEAR) != nowCalendar.get(Calendar.YEAR)) { 303 if (timeCalendar.get(Calendar.YEAR) != nowCalendar.get(Calendar.YEAR)) {
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/serial/ |
TCKEraSerialization.java | 65 import static java.time.temporal.ChronoField.YEAR;
|
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/obex/ |
ObexTime.java | 99 cal.get(Calendar.YEAR), cal.get(Calendar.MONTH) + 1,
|
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/ |
SimpleDate.java | 26 * Represents a date (year, month, day) 32 public int year; // YYYY field in class:SimpleDate 51 this.year = sCalendarInstance.get(Calendar.YEAR); 64 result = prime * result + year; 80 if (year != other.year) { 94 int yearDiff = this.year - other.getYear(); 116 return year;
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
DateIntervalFormat.java | 94 * year, month, date, day-of-week, am-pm, hour, hour-of-day, minute, and 98 * year > month > date > hour (in day) > minute > second 104 * and "Feb 20, 2008" is year. 117 * is "year", the date interval pattern is "MMM d, yyyy - MMM d, yyyy", 125 * For date skeleton, the interval patterns when year, or month, or date is 143 * when the year, month, or day differs, falls back to fall-back 164 * For example, if user only requests year and month, 227 * // Only ERA, YEAR, MONTH, DATE, DAY_OF_MONTH, DAY_OF_WEEK, AM_PM, HOUR, HOUR_OF_DAY, 229 * dtitvinf.setIntervalPattern("yMMMd", Calendar.YEAR, "'y ~ y'"); 460 * "EEE, d MMM, yyyy - EEE, d MMM, yyyy" for year differs [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
DateIntervalFormat.java | 93 * year, month, date, day-of-week, am-pm, hour, hour-of-day, minute, and 97 * year > month > date > hour (in day) > minute > second 103 * and "Feb 20, 2008" is year. 116 * is "year", the date interval pattern is "MMM d, yyyy - MMM d, yyyy", 124 * For date skeleton, the interval patterns when year, or month, or date is 142 * when the year, month, or day differs, falls back to fall-back 163 * For example, if user only requests year and month, 226 * // Only ERA, YEAR, MONTH, DATE, DAY_OF_MONTH, DAY_OF_WEEK, AM_PM, HOUR, HOUR_OF_DAY, 228 * dtitvinf.setIntervalPattern("yMMMd", Calendar.YEAR, "'y ~ y'"); 462 * "EEE, d MMM, yyyy - EEE, d MMM, yyyy" for year differs [all...] |
/libcore/luni/src/test/java/libcore/java/util/ |
SimpleTimeZoneTest.java | 195 * Scan from the start of the year to the end to find the DST transition points. 198 * @param startOfYearMillis the start of the calendar year in {@code timeZone} to scan, in 212 int year = cal.get(Calendar.YEAR); local 215 if (cal.get(Calendar.YEAR) != year) { 217 "Doesn't enter daylight savings time in " + year + " in " + timeZone); 228 if (cal.get(Calendar.YEAR) != year) { 230 "Doesn't exit daylight savings time in " + year + " in " + timeZone) [all...] |
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
TCKHijrahChronology.java | 149 public void test_badDates(int year, int month, int dom) { 150 HijrahChronology.INSTANCE.date(year, month, dom); 156 int year = 1435; local 157 int lengthOfYear = HijrahChronology.INSTANCE.dateYearDay(year, 1).lengthOfYear(); 158 HijrahDate hd = HijrahChronology.INSTANCE.dateYearDay(year, lengthOfYear + 1); 192 int year = HijrahChronology.INSTANCE.prolepticYear(era, 1); local 234 assertEquals(fieldValues.get(ChronoField.YEAR), (Long) 1343L); 242 fieldValues.put(ChronoField.YEAR, 1343L); 246 assertEquals(fieldValues.get(ChronoField.YEAR), (Long) 1343L); 267 assertEquals(fieldValues.get(ChronoField.YEAR), (style == ResolverStyle.STRICT) ? null : (Long) 1343L) 295 final int year = 1434; local 439 final int year = 1343; local [all...] |
/packages/apps/Calendar/tests/src/com/android/calendar/ |
FormatDateRangeTest.java | 49 // If the year is zero, then set it to the current year. 52 year1 = year2 = date1.year; 163 // Tests that year isn't shown by default with no year flags when time is the current year: 165 Calendar.getInstance().get(Calendar.YEAR), 0, 3, 13, 0, 168 // Tests that the year is shown by default with no year flags when time isn't the current year [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/ |
CalendarRegressionTest.java | 45 "ERA", "YEAR", "MONTH", "WEEK_OF_YEAR", "WEEK_OF_MONTH", 211 * calendar.get(calendar.ERA)); logln("YEAR: " + 212 * calendar.get(calendar.YEAR)); logln("MONTH: " + 230 * 1997"); logln("ERA: " + calendar.get(calendar.ERA)); logln("YEAR: " + 231 * calendar.get(calendar.YEAR)); logln("MONTH: " + 394 int testyear = foo1.get(Calendar.YEAR); 469 * cal1.set( Calendar.YEAR, 1997 ); cal1.set( Calendar.MONTH, 10 ); 482 * cal2.set( Calendar.YEAR, 1997 ); cal2.set( Calendar.MONTH, 10 ); 505 int sec = 0, min = 0, hr = 0, day = 1, month = 10, year = 1997; local 529 cal2.set(cal1.get(Calendar.YEAR), 1126 int year = calendar.get(Calendar.YEAR); local [all...] |
CopticTest.java | 78 * 06/13/0003 29/08/0287 1826125 first coptic leap year 103 // Julian Day Era Year Month Day WkDay Hour Min Sec 126 // above is first coptic leap year 186 cal.set(Calendar.YEAR, 1); 197 cal.get(YEAR) + "/" + 203 cal.get(YEAR) + "/" + 230 for (int year = 1725; year < 1735; year++) { // Coptic 1725-01-01 = Gregorian 2008-09-11 231 boolean isLeap = ((year % 4) == 3) [all...] |
EthiopicTest.java | 51 // year month day field amount year month day 64 { 0002, HIJJAH, 30, YEAR, -1, 0001, HIJJAH, 29 }, 104 * 06/13/0003 27/08/0011 1725316 first ethiopian leap year 128 // Julian Day Era Year Month Day WkDay Hour Min Sec 158 new TestCase(1725315.5, 1, 3, 13, 6, SAT, 0, 0, 0), // Gregorian: 27/08/0011 - first ethiopic leap year 177 // Julian Day Era Year Month Day WkDay Hour Min Sec 207 new TestCase(1725315.5, 0, 5503, 13, 6, SAT, 0, 0, 0), // Gregorian: 27/08/0011 - first ethiopic leap year 244 cal.set(Calendar.YEAR, 5500); 249 // very early. The funny thing is, it's ok for dates in the year [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/ |
CalendarRegressionTest.java | 44 "ERA", "YEAR", "MONTH", "WEEK_OF_YEAR", "WEEK_OF_MONTH", 210 * calendar.get(calendar.ERA)); logln("YEAR: " + 211 * calendar.get(calendar.YEAR)); logln("MONTH: " + 229 * 1997"); logln("ERA: " + calendar.get(calendar.ERA)); logln("YEAR: " + 230 * calendar.get(calendar.YEAR)); logln("MONTH: " + 393 int testyear = foo1.get(Calendar.YEAR); 468 * cal1.set( Calendar.YEAR, 1997 ); cal1.set( Calendar.MONTH, 10 ); 481 * cal2.set( Calendar.YEAR, 1997 ); cal2.set( Calendar.MONTH, 10 ); 504 int sec = 0, min = 0, hr = 0, day = 1, month = 10, year = 1997; local 528 cal2.set(cal1.get(Calendar.YEAR), 1125 int year = calendar.get(Calendar.YEAR); local [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
ChineseCalendar.java | 40 * first method is by sequential numbering from the 61st year of the reign 41 * of Huang Di, 2637 BCE, which is designated year 1 on the Chinese 42 * calendar. The second method uses 60-year cycles from the same starting 43 * point, which is designated year 1 of cycle 1. In this class, the 44 * <code>EXTENDED_YEAR</code> field contains the sequential year count. 46 * <code>YEAR</code> field contains the year of the cycle, a value between 50 * the calendar, with some sources starting in the first year of the reign 51 * of Huang Di, rather than the 61st. This gives continuous year numbers 107 * The start year of this Chinese calendar instance. 433 int year; local [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
ChineseCalendar.java | 39 * first method is by sequential numbering from the 61st year of the reign 40 * of Huang Di, 2637 BCE, which is designated year 1 on the Chinese 41 * calendar. The second method uses 60-year cycles from the same starting 42 * point, which is designated year 1 of cycle 1. In this class, the 43 * <code>EXTENDED_YEAR</code> field contains the sequential year count. 45 * <code>YEAR</code> field contains the year of the cycle, a value between 49 * the calendar, with some sources starting in the first year of the reign 50 * of Huang Di, rather than the 61st. This gives continuous year numbers 107 * The start year of this Chinese calendar instance. 445 int year; local [all...] |