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

1 2 3 4 5 6 7

  /libcore/luni/src/test/java/libcore/java/util/
DateTest.java 39 c.set(Calendar.YEAR, 21);
42 c.set(Calendar.YEAR, 321);
  /external/chromium_org/content/public/android/java/src/org/chromium/content/browser/input/
MonthPicker.java 33 init(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH), null);
38 int year = (int)Math.min(value / 12 + 1970, Integer.MAX_VALUE); local
42 cal.set(year, month, 1);
47 protected void setCurrentDate(int year, int month) {
49 date.set(year, month, 1);
85 return getMaxDate().get(Calendar.YEAR);
90 return getMinDate().get(Calendar.YEAR);
95 protected int getMaxPositionInYear(int year) {
96 if (year == getMaxDate().get(Calendar.YEAR)) {
    [all...]
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 min, long max) {
63 calendar.set(year, month, day, hour, minute, 0);
72 calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH),
WeekPicker.java 30 private Calendar createDateFromWeek(int year, int week) {
36 date.set(Calendar.YEAR, year);
52 int year = date.get(Calendar.YEAR); local
56 year--;
58 year++;
60 return year;
68 protected void setCurrentDate(int year, int week) {
69 Calendar date = createDateFromWeek(year, week)
    [all...]
  /libcore/luni/src/test/java/libcore/icu/
DateIntervalFormatTest.java 33 private static final long YEAR = 12 * MONTH;
47 c.set(Calendar.YEAR, 2009);
84 assertEquals("1/19/2009 ? 2/9/2012", formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * YEAR, FORMAT_SHOW_YEAR | FORMAT_NUMERIC_DATE));
89 assertEquals("19.01.2009 - 09.02.2012", formatDateRange(de_DE, tz, fixedTime, fixedTime + 3 * YEAR, FORMAT_SHOW_YEAR | FORMAT_NUMERIC_DATE));
94 assertEquals("19/1/2009 ? 9/2/2012", formatDateRange(es_US, tz, fixedTime, fixedTime + 3 * YEAR, FORMAT_SHOW_YEAR | FORMAT_NUMERIC_DATE));
99 assertEquals("19/1/2009 ? 9/2/2012", formatDateRange(es_ES, tz, fixedTime, fixedTime + 3 * YEAR, FORMAT_SHOW_YEAR | FORMAT_NUMERIC_DATE));
113 assertEquals("Jan 19, 2009 ? Feb 9, 2012", formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * YEAR, FORMAT_SHOW_DATE | FORMAT_ABBREV_ALL));
114 assertEquals("Jan 2009 ? Feb 2012", formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * YEAR, FORMAT_NO_MONTH_DAY | FORMAT_ABBREV_ALL));
115 assertEquals("January 19, 2009 ? February 9, 2012", formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * YEAR, 0));
116 assertEquals("Monday, January 19, 2009 ? Thursday, February 9, 2012", formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * YEAR, FORMAT_SHOW_WEEKDAY))
    [all...]
  /frameworks/testing/uiautomator_test_libraries/src/com/android/uiautomator/common/helpers/
DatePickerHelper.java 32 public static final int YEAR = 2;
43 return getNumberPickerField(YEAR).getText();
88 getNumberPickerIncrementButton(YEAR).click();
97 getNumberPickerDecrementButton(YEAR).click();
128 int calYear = cal.get(Calendar.YEAR);
162 // Adjust year
185 * @param year
189 private static int getDaysInMonth(int year, int month) {
191 cal.set(Calendar.YEAR, year);
    [all...]
  /frameworks/base/core/tests/coretests/src/android/text/format/
DateFormatTest.java 37 assertFalse(DateFormat.hasDesignator("hh:mm 'yyyy'", DateFormat.YEAR));
  /libcore/luni/src/main/java/java/util/
GregorianCalendar.java 42 * the Julian calendar is the leap year rule. The Julian calendar specifies leap
54 * date, leap year rules were applied irregularly, and before 45 BC the Julian
58 * Prior to the institution of the Gregorian calendar, New Year's Day was March
65 * 53. Week 1 for a year is the earliest seven day period starting on
67 * {@code getMinimalDaysInFirstWeek()} days from that year. It thus
70 * Weeks between week 1 of one year and week 1 of the following year are
89 * {@code getFirstDayOfWeek()}. Unlike week 1 of a year, week 1 of a
132 * System.out.println("YEAR: " + calendar.get(Calendar.YEAR));
655 int year = isSet[YEAR] ? fields[YEAR] : 1970; local
789 int year = 1970; local
1025 int year = 1970; local
    [all...]
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/
CalendarTest.java 44 cal.set(Calendar.YEAR, 2002);
49 cal.set(Calendar.YEAR, 2002);
55 cal.set(Calendar.YEAR, 2002);
73 cal.set(Calendar.YEAR, 2002);
79 cal.set(Calendar.YEAR, 2002);
85 cal.set(Calendar.YEAR, 2002);
91 cal.set(Calendar.YEAR, 2002);
97 cal.set(Calendar.YEAR, 2002);
103 cal.set(Calendar.YEAR, 2002);
109 cal.set(Calendar.YEAR, 2002)
467 int year = Integer.MIN_VALUE + 71; local
    [all...]
GregorianCalendarTest.java 47 1972, gc.get(Calendar.YEAR));
65 1972, gc.get(Calendar.YEAR));
81 5983, gc.get(Calendar.YEAR));
94 1972, gc.get(Calendar.YEAR));
151 c1.set(Calendar.YEAR,1999);
195 gc1.add(GregorianCalendar.YEAR, 1);
197 1999, gc1.get(GregorianCalendar.YEAR));
201 assertEquals("Wrong result year 1", 2000, gc1.get(Calendar.YEAR));
206 gc1.add(Calendar.YEAR, -1)
    [all...]
  /libcore/luni/src/test/java/tests/api/java/util/
CalendarTest.java 44 cal.set(Calendar.YEAR, 2002);
49 cal.set(Calendar.YEAR, 2002);
55 cal.set(Calendar.YEAR, 2002);
73 cal.set(Calendar.YEAR, 2002);
79 cal.set(Calendar.YEAR, 2002);
85 cal.set(Calendar.YEAR, 2002);
91 cal.set(Calendar.YEAR, 2002);
97 cal.set(Calendar.YEAR, 2002);
103 cal.set(Calendar.YEAR, 2002);
109 cal.set(Calendar.YEAR, 2002)
467 int year = Integer.MIN_VALUE + 71; local
    [all...]
  /tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/
DosUtils.java 51 cal.set(Calendar.YEAR, 1980 + (dosDate >> 9));
78 return 512 * (cal.get(Calendar.YEAR) - 1980) + 32 * (cal.get(Calendar.MONTH) + 1) +
  /external/libmtp/
hotplug.sh.in 160 YEAR=`echo ${DATE} | awk 'BEGIN { FS="/"} {print $1; }'`
163 if [ "${YEAR}" -gt "2002" ]; then
166 if [ "${YEAR}" -eq "2002" ]; then
  /frameworks/base/core/java/android/app/
DatePickerDialog.java 42 private static final String YEAR = "year";
59 * @param year The year that was set.
64 void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth);
70 * @param year The initial year of the dialog.
76 int year,
79 this(context, 0, callBack, year, monthOfYear, dayOfMonth);
86 * @param year The initial year of the dialog
193 int year = savedInstanceState.getInt(YEAR); local
    [all...]
  /libcore/luni/src/main/java/org/apache/harmony/security/asn1/
ASN1Time.java 45 c.set(Calendar.YEAR, in.times[0]);
  /cts/tests/src/android/provider/cts/
MediaStoreAudioTestHelper.java 89 public static final int YEAR = 1992;
134 values.put(Media.YEAR, YEAR);
165 public static final int YEAR = 1992;
213 values.put(Media.YEAR, YEAR);
  /libcore/luni/src/main/java/libcore/icu/
DateIntervalFormat.java 167 // If we've been asked to show the date, work out whether we think we should show the year.
170 // The caller explicitly wants us to show the year.
172 // The caller explicitly doesn't want us to show the year, even if we otherwise would.
209 return c1.get(Calendar.YEAR) != c2.get(Calendar.YEAR) ||
219 return c1.get(Calendar.YEAR) == c2.get(Calendar.YEAR);
224 return c.get(Calendar.YEAR) == now.get(Calendar.YEAR);
  /packages/apps/ContactsCommon/src/com/android/contacts/common/util/
DateUtils.java 38 * When parsing a date without a year, the system assumes 1970, which wasn't a leap-year.
39 * Let's add a one-off hack for that day of the year
67 * @param mustContainYear If true, the string is parsed as a date containing a year. If false,
68 * the string is parsed into a valid date even if the year field is missing.
108 calendar.set(Calendar.YEAR, 0);
113 private static final Calendar getUtcDate(int year, int month, int dayOfMonth) {
116 calendar.set(Calendar.YEAR, year);
123 // use the Calendar.YEAR field to track whether or not the year is set instead o
    [all...]
  /external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/
XMPDateTimeImpl.java 32 private int year = 0; field in class:XMPDateTimeImpl
80 this.year = intCalendar.get(Calendar.YEAR);
102 this.year = calendar.get(Calendar.YEAR);
130 return year;
137 public void setYear(int year)
139 this.year = Math.min(Math.abs(year), 9999);
319 calendar.set(Calendar.YEAR, year)
    [all...]
  /frameworks/base/core/java/android/widget/
DatePicker.java 54 * year, month, and day spinners or a {@link CalendarView}. The set of spinners
136 * @param year The year that was set.
141 void onDateChanged(DatePicker view, int year, int monthOfYear, int dayOfMonth);
200 mTempDate.set(Calendar.YEAR, newVal);
205 setDate(mTempDate.get(Calendar.YEAR), mTempDate.get(Calendar.MONTH),
218 public void onSelectedDayChange(CalendarView view, int year, int month, int monthDay) {
219 setDate(year, month, monthDay);
241 // year
242 mYearSpinner = (NumberPicker) findViewById(R.id.year);
    [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...]
  /frameworks/base/core/jni/
TimeUtils.h 52 YEAR = 6,
69 inline void set(int sec, int min, int hour, int mday, int mon, int year,
77 this->t.tm_year = year;
  /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
49 /** Magic year that represents "no year" */
52 private static final String YEAR = "year";
72 * @param year The year that was set or {@link DatePickerDialog#NO_YEAR} if the user has
73 * not specified a year
78 void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth);
84 * @param year The initial year of the dialo
233 int year = savedInstanceState.getInt(YEAR); local
    [all...]
  /packages/apps/DeskClock/src/com/android/deskclock/provider/
ClockContract.java 207 * Alarm year.
211 public static final String YEAR = "year";
214 * Alarm month in year.
  /external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/
Support_SimpleDateFormat.java 76 t_FormatWithField(1, format, date, null, Field.YEAR, 15, 17);
110 t_FormatWithField(25, format, date, null, Field.YEAR, 0, 0);
168 v.add(new FieldContainer(0, 4, Field.YEAR));
184 v.add(new FieldContainer(18, 22, Field.YEAR));
217 v.add(new FieldContainer(6, 8, Field.YEAR));
218 v.add(new FieldContainer(9, 11, Field.YEAR));
219 v.add(new FieldContainer(12, 16, Field.YEAR));

Completed in 1456 milliseconds

1 2 3 4 5 6 7