/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/picker/ |
DatePicker.java | 35 private static final int DEFAULT_START_YEAR = Calendar.getInstance().get(Calendar.YEAR); 61 * of the fields Year, Month and Day to be displayed in the DatePicker. 71 * of the fields Year, Month and Day to be displayed in the DatePicker. 72 * @param startYear The lowest number to be displayed in the Year selector. 82 * of the fields Year, Month and Day to be displayed in the DatePicker. 83 * @param startYear The lowest number to be displayed in the Year selector. 84 * @param yearRange Number of entries to be displayed in the Year selector. 91 throw new IllegalArgumentException("The start year must be > 0. Got " + startYear); 94 throw new IllegalArgumentException("The year range must be > 0. Got " + yearRange); 145 mInitYear = cal.get(Calendar.YEAR); [all...] |
/external/icu/icu4c/source/i18n/ |
hebrwcal.h | 38 * solar year (approximately 365.24 days) is not an even multiple of 41 * interesting, the start of a year can be delayed by up to three days 43 * to prevent certain illegal year lengths. Finally, the lengths of certain 44 * months can vary depending on the number of days in the year. 48 * not come at the end of the year, calculations involving 91 * Constant for Tishri, the 1st month of the Hebrew year. 95 * Constant for Heshvan, the 2nd month of the Hebrew year. 99 * Constant for Kislev, the 3rd month of the Hebrew year. 104 * Constant for Tevet, the 4th month of the Hebrew year. 109 * Constant for Shevat, the 5th month of the Hebrew year. [all...] |
islamcal.h | 36 * The Islamic calendar is strictly lunar, and thus an Islamic year of twelve 37 * lunar months does not correspond to the solar year used by most other 38 * calendar systems, including the Gregorian. An Islamic year is, on average, 39 * about 354 days long, so each successive Islamic year starts about 11 days 40 * earlier in the corresponding Gregorian year. 107 * Constant for Muharram, the 1st month of the Islamic year. 113 * Constant for Safar, the 2nd month of the Islamic year. 119 * Constant for Rabi' al-awwal (or Rabi' I), the 3rd month of the Islamic year. 125 * Constant for Rabi' al-thani or (Rabi' II), the 4th month of the Islamic year. 131 * Constant for Jumada al-awwal or (Jumada I), the 5th month of the Islamic year. [all...] |
japancal.cpp | 36 int16_t year; member in struct:__anon25707 40 // Year Month Day 333 if(eyear == kEraInfo[era].year) { 334 // Yes, we're in the first year of this era. 346 if(eyear == kEraInfo[era].year) { 363 // EXTENDED_YEAR in JapaneseCalendar is a Gregorian year 365 int32_t year; local 369 year = internalGet(UCAL_EXTENDED_YEAR, kGregorianEpoch); 371 // Subtract one because year starts at 1 372 year = internalGet(UCAL_YEAR) + kEraInfo[internalGetEra()].year - 1 382 int32_t year = internalGet(UCAL_EXTENDED_YEAR); \/\/ Gregorian year local [all...] |
persncal.cpp | 27 = {0,31,62,93,124,155,186,216,246,276,306,336}; // 0-based, for day-in-year 37 { -5000000, -5000000, 5000000, 5000000}, // YEAR 106 * Determine whether a year is a leap year in the Persian calendar 108 UBool PersianCalendar::isLeapYear(int32_t year) 111 ClockMath::floorDivide(25 * year + 11, 33, remainder); 116 * Return the day # on which the given year starts. Days are counted 119 int32_t PersianCalendar::yearStart(int32_t year) { 120 return handleComputeMonthStart(year,0,FALSE); 127 * @param year The Persian yea 187 int32_t year; local 211 int32_t year, month, dayOfMonth, dayOfYear; local [all...] |
/external/chromium_org/third_party/icu/source/i18n/ |
hebrwcal.cpp | 41 { -5000000, -5000000, 5000000, 5000000}, // YEAR 68 * Due to the rules for postponing the start of the year to avoid having 69 * certain holidays fall on the sabbath, the year can end up being three 90 * The cumulative # of days to the end of each month in a non-leap year 114 * The cumulative # of days to the end of each month in a leap year 225 int32_t year = get(UCAL_YEAR, status); local 231 if (acrossAdar1 && month>=ADAR_1 && !isLeapYear(year)) { 238 ++year; 245 if (acrossAdar1 && month<=ADAR_1 && !isLeapYear(year)) { 252 --year; 317 int32_t year = get(UCAL_YEAR, status); local 560 int32_t year = (int32_t)( ((19. * m + 234.) \/ 235.) + 1.); \/\/ Years (approx) local 612 int32_t year; local [all...] |
buddhcal.h | 37 * except for the year and era. Years are numbered since the birth of the 136 * Return the extended year defined by the current fields. This will 137 * use the UCAL_EXTENDED_YEAR field or the UCAL_YEAR and supra-year fields (such 140 * @return the extended year 160 * given month in the given extended year. Subclasses should override 162 * @param eyear the extended year 165 * the given year, otherwise, compute the day before the first day of 168 * day of the given month and year 188 * Returns the year in which the default century begins 197 * indicate an uninitialized state. Once the system default century date and year [all...] |
persncal.h | 35 * The Persian calendar is strictly solar, and thus a Persian year has twelve 36 * solar months. A Persian year is about 365 days long, except in leap years 59 * Constant for Farvardin, the 1st month of the Persian year. 65 * Constant for Ordibehesht, the 2nd month of the Persian year. 71 * Constant for Khordad, the 3rd month of the Persian year. 77 * Constant for Tir, the 4th month of the Persian year. 83 * Constant for Mordad, the 5th month of the Persian year. 89 * Constant for Shahrivar, the 6th month of the Persian year. 95 * Constant for Mehr, the 7th month of the Persian year. 101 * Constant for Aban, the 8th month of the Persian year. [all...] |
japancal.cpp | 36 int16_t year; member in struct:__anon15808 40 // Year Month Day 333 if(eyear == kEraInfo[era].year) { 334 // Yes, we're in the first year of this era. 346 if(eyear == kEraInfo[era].year) { 363 // EXTENDED_YEAR in JapaneseCalendar is a Gregorian year 365 int32_t year; local 369 year = internalGet(UCAL_EXTENDED_YEAR, kGregorianEpoch); 371 // Subtract one because year starts at 1 372 year = internalGet(UCAL_YEAR) + kEraInfo[internalGetEra()].year - 1 382 int32_t year = internalGet(UCAL_EXTENDED_YEAR); \/\/ Gregorian year local [all...] |
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/input/ |
DateDialogNormalizer.java | 30 picker.updateDate(maxCal.get(Calendar.YEAR), 34 picker.updateDate(minCal.get(Calendar.YEAR), 50 result.set(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH), cal.get(Calendar.DAY_OF_MONTH), 60 int year, int month, int day, int hour, int minute, long minMillis, long maxMillis) { 63 calendar.set(year, month, day, hour, minute, 0); 72 calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH),
|
InputDialogContainer.java | 107 cal.get(Calendar.YEAR), 119 cal.get(Calendar.YEAR), 128 showPickerDialog(dialogType, cal.get(Calendar.YEAR), cal.get(Calendar.MONTH), 0, 131 int year = WeekPicker.getISOWeekYearForDate(cal); local 133 showPickerDialog(dialogType, year, 0, 0, 0, 0, 0, 0, week, min, max, step); 211 int year, int month, int monthDay, 221 year, month, monthDay); 223 year, month, monthDay, local 240 year, month, monthDay, 245 year, month, min, max) [all...] |
/packages/apps/Contacts/src/com/android/contacts/editor/ |
EventFieldEditorView.java | 160 // if we changed to a type that requires a year, ensure that it is actually set 166 final int defaultYear = calendar.get(Calendar.YEAR); 168 // Check whether the year is optional 178 // This value is missing the year. Add it now 197 final int defaultYear = calendar.get(Calendar.YEAR); 199 // Check whether the year is optional 210 // Try parsing with year 214 oldYear = cal.get(Calendar.YEAR); 216 //cal.set(Calendar.YEAR, 0); 227 public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) [all...] |
/external/chromium_org/chrome/browser/resources/options/ |
autofill_edit_creditcard_overlay.js | 76 creditCard[4] = $('expiration-year').value; 89 $('expiration-month').onchange = $('expiration-year').onchange = 126 // Set the 'Expiration year' default options. 127 var expirationYear = $('expiration-year'); 131 var year = parseInt(date.getFullYear()); 133 var text = year + i; 149 $('expiration-year').selectedIndex = 0; 163 // The options for the year select control may be out-dated at this point, 164 // e.g. the user opened the options page before midnight on New Year's Eve 165 // and then loaded a credit card profile to edit in the new year, s [all...] |
/external/chromium_org/v8/src/ |
dateparser.cc | 19 int year = 0; // Default year is 0 (=> 2000) for KJS compatibility. local 26 year = comp_[0]; 33 if (index_ == 3) year = comp_[2]; 42 year = comp_[0]; 47 year = comp_[1]; 52 if (Between(year, 0, 49)) year += 2000; 53 else if (Between(year, 50, 99)) year += 1900 [all...] |
date.cc | 56 int days, int* year, int* month, int* day) { 59 // the same year and month as the cached 'days'. 64 *year = ymd_year_; 73 *year = 400 * (days / kDaysIn400Years) - kYearsOffset; 76 ASSERT(DaysFromYearMonth(*year, 0) + days == save_days); 81 *year += 100 * yd1; 86 *year += 4 * yd2; 91 *year += yd3; 99 ASSERT(is_leap == ((*year % 4 == 0) && (*year % 100 || (*year % 400 == 0)))) [all...] |
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
DatePicker.java | 41 * A view for selecting a month / year / day based on a calendar like layout. 78 * @param year The year that was set. 83 void onDateChanged(DatePicker view, int year, int monthOfYear, int dayOfMonth); 149 mYearPicker = (NumberPicker) findViewById(R.id.year); 187 init(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH), cal.get(Calendar.DAY_OF_MONTH), null); 252 } else if (c == DateFormat.YEAR && !didYear) { 271 public void updateDate(int year, int monthOfYear, int dayOfMonth) { 272 if (mYear != year || mMonth != monthOfYear || mDay != dayOfMonth) { 273 mYear = (mYearOptional && year == 0) ? getCurrentYear() : year 470 int year = (mYearOptional && !mHasYear) ? 0 : mYear; local [all...] |
/external/chromium_org/third_party/icu/source/i18n/unicode/ |
gregocal.h | 50 * Prior to the institution of the Gregorian Calendar, New Year's Day was March 25. To 56 * 53. Week 1 for a year is the first week that contains at least 57 * <code>getMinimalDaysInFirstWeek()</code> days from that year. It thus 60 * Weeks between week 1 of one year and week 1 of the following year are 99 * cout << "YEAR: " << calendar->get( UCAL_YEAR, success ) << endl; 121 * cout << "YEAR: " << calendar->get( UCAL_YEAR, success ) << endl; 234 * @param year The value used to set the YEAR time field in the calendar. 242 GregorianCalendar(int32_t year, int32_t month, int32_t date, UErrorCode& success) [all...] |
/external/chromium_org/third_party/icu/source/test/compat/ |
tzdate.c | 32 int64_t getSystemCurrentTime(char* systime, int year, int month, int day, int hour, int minute, int useCurrentTime); 39 int year, month, day, hour, minute; local 44 sysyear = year = month = day = 0; 51 year = atoi(argv[1]); 58 /* format year for system time */ 59 sysyear = year - 1900; 109 int64_t getSystemCurrentTime(char* systime, int year, int month, int day, int hour, int minute, int useCurrentTime) { 119 ts.tm_year = year;
|
/external/chromium_org/v8/test/mjsunit/regress/ |
regress-builtinbust-7.js | 15 year: "numeric", 27 assertTrue(options_incomplete.hasOwnProperty("year"));
|
/external/icu/icu4c/source/test/compat/ |
tzdate.c | 32 int64_t getSystemCurrentTime(char* systime, int year, int month, int day, int hour, int minute, int useCurrentTime); 39 int year, month, day, hour, minute; local 44 sysyear = year = month = day = 0; 51 year = atoi(argv[1]); 58 /* format year for system time */ 59 sysyear = year - 1900; 109 int64_t getSystemCurrentTime(char* systime, int year, int month, int day, int hour, int minute, int useCurrentTime) { 119 ts.tm_year = year;
|
/frameworks/base/core/java/android/widget/ |
YearPickerView.java | 102 for (int year = mController.getMinYear(); year <= maxYear; year++) { 103 mAdapter.add(year); 134 int year = getItem(position); local 135 boolean selected = mController.getSelectedDay().get(Calendar.YEAR) == year; 176 mController.getSelectedDay().get(Calendar.YEAR) - mController.getMinYear());
|
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/ |
YearPickerView.java | 73 for (int year = mController.getMinYear(); year <= mController.getMaxYear(); year++) { 74 years.add(String.format("%d", year)); 114 int year = getYearFromTextView(v); local 115 boolean selected = mController.getSelectedDay().year == year; 150 postSetSelectionCentered(mController.getSelectedDay().year - mController.getMinYear());
|
/packages/apps/Calendar/tests/src/com/android/calendar/alerts/ |
Utils.java | 23 int month, int year, String timezone) { 25 t.set(second, minute, hour, monthDay, month, year);
|
/external/chromium_org/chrome/installer/util/ |
google_update_experiment_util.cc | 42 // MON = 3 character month of year, 43 // YYYY = 4 digit year, 50 then.year += 1; 58 then.year,
|
/external/chromium_org/components/autofill/core/browser/ |
validation.h | 16 // Returns true if |year| and |month| describe a date later than |now|. 17 // |year| must have 4 digits. 18 bool IsValidCreditCardExpirationDate(const base::string16& year, 21 bool IsValidCreditCardExpirationDate(int year,
|