/libcore/luni/src/test/java/libcore/java/util/ |
DateTest.java | 39 c.set(Calendar.YEAR, 21); 42 c.set(Calendar.YEAR, 321);
|
/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)); 789 int year = isSet[YEAR] ? fields[YEAR] : 1970; local 923 int year = 1970; local 943 long year = iyear; local 1188 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...] |
/frameworks/base/core/java/android/app/ |
DatePickerDialog.java | 39 private static final String YEAR = "year"; 53 * @param year The year that was set. 58 void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth); 64 * @param year The initial year of the dialog. 70 int year, 73 this(context, 0, callBack, year, monthOfYear, dayOfMonth); 80 * @param year The initial year of the dialog 153 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);
|
/frameworks/base/core/java/android/widget/ |
DatePicker.java | 49 * year, month, and day spinners or a {@link CalendarView}. The set of spinners 131 * @param year The year that was set. 136 void onDateChanged(DatePicker view, int year, int monthOfYear, int dayOfMonth); 195 mTempDate.set(Calendar.YEAR, newVal); 200 setDate(mTempDate.get(Calendar.YEAR), mTempDate.get(Calendar.MONTH), 213 public void onSelectedDayChange(CalendarView view, int year, int month, int monthDay) { 214 setDate(year, month, monthDay); 236 // year 237 mYearSpinner = (NumberPicker) findViewById(R.id.year); [all...] |
/external/icu4c/tools/genpname/ |
gensvpa.pl | 116 ($DAY, $MONTH, $YEAR) = (localtime)[3,4,5]; 117 $YEAR += 1900; 121 # Copyright (c) 2006-$YEAR, International Business Machines
|
/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 48 private static final String YEAR = "year"; 69 * @param year The year that was set or 0 if the user has not specified a year 74 void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth); 80 * @param year The initial year of the dialog 86 int year, 225 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));
|
/frameworks/base/core/java/android/text/format/ |
DateFormat.java | 155 This designator indicates the month of the year 184 This designator indicates the year. 190 public static final char YEAR = 'y'; 296 int year = value.indexOf('y'); local 298 if (month >= 0 && day >= 0 && year >= 0) { 300 if (year < month && year < day) { 307 if (day < year) { 313 if (month < year) { 327 * so that we get a four-digit year instead a two-digit year 576 int year = inDate.get(Calendar.YEAR); local [all...] |
/cts/tests/tests/provider/src/android/provider/cts/ |
MediaStore_Audio_Artists_AlbumsTest.java | 110 assertEquals(Audio1.YEAR, c.getInt(c.getColumnIndex(Albums.FIRST_YEAR))); 111 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() );
|
15.9.3.2-2.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 )"; 197 testcases[item++] = new TestCase( SECTION, DateString+".getFullYear()", ResultArray[YEAR], DateCase.getFullYear() );
|
15.9.3.2-3.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 )"; 183 testcases[item++] = new TestCase( SECTION, DateString+".getFullYear()", ResultArray[YEAR], DateCase.getFullYear() );
|
15.9.3.2-4.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 )"; 166 testcases[item++] = new TestCase( SECTION, DateString+".getFullYear()", ResultArray[YEAR], DateCase.getFullYear() );
|
15.9.3.2-5.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 )"; 148 testcases[item++] = new TestCase( SECTION, DateString+".getFullYear()", ResultArray[YEAR], DateCase.getFullYear() );
|