HomeSort by relevance Sort by last modified time
    Searched refs:YEAR (Results 1 - 25 of 155) 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);
  /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);
  /packages/apps/Contacts/src/com/android/contacts/util/
DateUtils.java 39 * When parsing a date without a year, the system assumes 1970, which wasn't a leap-year.
40 * Let's add a one-off hack for that day of the year
68 * @param mustContainYear If true, the string is parsed as a date containing a year. If false,
69 * the string is parsed into a valid date even if the year field is missing.
109 calendar.set(Calendar.YEAR, 0);
114 private static final Calendar getUtcDate(int year, int month, int dayOfMonth) {
117 calendar.set(Calendar.YEAR, year);
124 // use the Calendar.YEAR field to track whether or not the year is set instead o
    [all...]
  /frameworks/base/core/java/android/widget/
DatePicker.java 50 * year, month, and day spinners or a {@link CalendarView}. The set of spinners
132 * @param year The year that was set.
137 void onDateChanged(DatePicker view, int year, int monthOfYear, int dayOfMonth);
196 mTempDate.set(Calendar.YEAR, newVal);
201 setDate(mTempDate.get(Calendar.YEAR), mTempDate.get(Calendar.MONTH),
214 public void onSelectedDayChange(CalendarView view, int year, int month, int monthDay) {
215 setDate(year, month, monthDay);
237 // year
238 mYearSpinner = (NumberPicker) findViewById(R.id.year);
    [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/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...]
  /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));
  /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)));
  /external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Date/
15.9.3.1-2.js 24 ECMA Section: 15.9.3.1 new Date (year, month, date, hours, minutes, seconds, ms)
31 1. Call ToNumber(year)
59 var TITLE = "new Date( year, month, date, hours, minutes, seconds, ms )";
71 var YEAR = 9;
210 testcases[item++] = new TestCase( SECTION, DateString+".getFullYear()", ResultArray[YEAR], DateCase.getFullYear() );
15.9.3.1-3.js 24 ECMA Section: 15.9.3.1 new Date (year, month, date, hours, minutes, seconds, ms)
31 1. Call ToNumber(year)
59 var TITLE = "new Date( year, month, date, hours, minutes, seconds, ms )";
71 var YEAR = 9;
188 testcases[item++] = new TestCase( SECTION, DateString+".getFullYear()", ResultArray[YEAR], DateCase.getFullYear() );
15.9.3.1-4.js 24 ECMA Section: 15.9.3.1 new Date (year, month, date, hours, minutes, seconds, ms)
31 1. Call ToNumber(year)
59 var TITLE = "new Date( year, month, date, hours, minutes, seconds, ms )";
71 var YEAR = 9;
172 testcases[item++] = new TestCase( SECTION, DateString+".getFullYear()", ResultArray[YEAR], DateCase.getFullYear() );
15.9.3.1-5.js 24 ECMA Section: 15.9.3.1 new Date (year, month, date, hours, minutes, seconds, ms)
31 1. Call ToNumber(year)
59 var TITLE = "new Date( year, month, date, hours, minutes, seconds, ms )";
71 var YEAR = 9;
149 testcases[item++] = new TestCase( SECTION, DateString+".getFullYear()", ResultArray[YEAR], DateCase.getFullYear() );
15.9.3.2-1.js 24 ECMA Section: 15.9.3.1 new Date (year, month, date, hours, minutes, seconds, ms)
31 1. Call ToNumber(year)
66 var YEAR = 9;
77 var TITLE = "Date( year, month, date, hours, minutes, seconds )";
219 testcases[item++] = new TestCase( SECTION, DateString+".getFullYear()", ResultArray[YEAR], DateCase.getFullYear() );

Completed in 2377 milliseconds

1 2 3 4 5 6 7