/external/nist-sip/java/gov/nist/javax/sip/parser/ |
HeaderParser.java | 90 String month = lexer.ttoken().toLowerCase(); local 91 if (month.equals("jan")) { 92 retval.set(Calendar.MONTH, Calendar.JANUARY); 93 } else if (month.equals("feb")) { 94 retval.set(Calendar.MONTH, Calendar.FEBRUARY); 95 } else if (month.equals("mar")) { 96 retval.set(Calendar.MONTH, Calendar.MARCH); 97 } else if (month.equals("apr")) { 98 retval.set(Calendar.MONTH, Calendar.APRIL); 99 } else if (month.equals("may")) [all...] |
/frameworks/base/core/java/android/util/ |
MonthDisplayHelper.java | 22 * Helps answer common questions that come up when displaying a month in a 32 // holds current month, year, helps compute display 43 * @param month The month. 46 public MonthDisplayHelper(int year, int month, int weekStartDay) { 55 mCalendar.set(Calendar.MONTH, month); 66 public MonthDisplayHelper(int year, int month) { 67 this(year, month, Calendar.SUNDAY); 76 return mCalendar.get(Calendar.MONTH); [all...] |
/frameworks/testing/uiautomator_test_libraries/src/com/android/uiautomator/common/helpers/ |
DatePickerHelper.java | 30 public static final int MONTH = 0; 35 return getNumberPickerField(MONTH).getText(); 52 getNumberPickerIncrementButton(MONTH).click(); 61 getNumberPickerDecrementButton(MONTH).click(); 129 int calMonth = cal.get(Calendar.MONTH); 133 // while accounting for number of days in month and considering 148 // Adjust month - increment or decrement using the shortest path 184 * Get the number of days in the month 186 * @param month 189 private static int getDaysInMonth(int year, int month) { [all...] |
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/ |
CalendarTest.java | 50 cal.set(Calendar.MONTH, Calendar.MARCH); 60 cal.set(Calendar.MONTH, Calendar.OCTOBER); 62 cal.set(Calendar.MONTH, Calendar.NOVEMBER); 64 assertTrue("Incorrect month: " + cal.get(Calendar.MONTH), cal 65 .get(Calendar.MONTH) == Calendar.NOVEMBER); 122 // WEEK_OF_YEAR has priority over MONTH/DATE 127 cal.set(Calendar.MONTH, Calendar.JANUARY); 133 // WEEK_OF_YEAR has priority over MONTH/DATE 137 cal.set(Calendar.MONTH, Calendar.JANUARY) [all...] |
GregorianCalendarTest.java | 49 gc.get(Calendar.MONTH) == Calendar.OCTOBER); 67 gc.get(Calendar.MONTH) == Calendar.OCTOBER); 96 gc.get(Calendar.MONTH) == Calendar.OCTOBER); 152 c1.set(Calendar.MONTH,Calendar.JUNE); 200 gc1.add(Calendar.MONTH, 7); 202 assertTrue("Wrong result month 1", 203 gc1.get(Calendar.MONTH) == Calendar.FEBRUARY); 208 assertTrue("Wrong result month 2", 209 gc1.get(Calendar.MONTH) == Calendar.FEBRUARY); 267 .get(Calendar.MONTH) == Calendar.APRI [all...] |
/libcore/luni/src/test/java/tests/api/java/util/ |
CalendarTest.java | 50 cal.set(Calendar.MONTH, Calendar.MARCH); 60 cal.set(Calendar.MONTH, Calendar.OCTOBER); 62 cal.set(Calendar.MONTH, Calendar.NOVEMBER); 64 assertTrue("Incorrect month: " + cal.get(Calendar.MONTH), cal 65 .get(Calendar.MONTH) == Calendar.NOVEMBER); 122 // WEEK_OF_YEAR has priority over MONTH/DATE 127 cal.set(Calendar.MONTH, Calendar.JANUARY); 133 // WEEK_OF_YEAR has priority over MONTH/DATE 137 cal.set(Calendar.MONTH, Calendar.JANUARY) [all...] |
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/ |
DosUtils.java | 50 cal.set(Calendar.MONTH, ((dosDate >> 5) & 0x0f) - 1); 78 return 512 * (cal.get(Calendar.YEAR) - 1980) + 32 * (cal.get(Calendar.MONTH) + 1) +
|
/cts/tests/tests/holo/src/android/holo/cts/modifiers/ |
CalendarViewModifier.java | 58 public static boolean isMonth(int month) { 60 return cal.get(Calendar.MONTH) == month;
|
/external/apache-harmony/support/src/test/java/tests/support/ |
Support_TimeZone.java | 47 * let's assume this timezone has daylight savings from the 4th month till 48 * the 10th month of the year to ame things simple. 57 int month = cal.get(Calendar.MONTH); local 59 if (month > 4 && month < 10) {
|
/external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/ |
FieldPositionTest.java | 41 FieldPosition fpos = new FieldPosition(DateFormat.Field.MONTH); 43 DateFormat.Field.MONTH, fpos.getFieldAttribute()); 53 FieldPosition fpos = new FieldPosition(DateFormat.Field.MONTH, 56 DateFormat.Field.MONTH, fpos.getFieldAttribute());
|
Support_SimpleDateFormat.java | 77 t_FormatWithField(2, format, date, null, Field.MONTH, 26, 27); 111 t_FormatWithField(26, format, date, null, Field.MONTH, 0, 0); 169 v.add(new FieldContainer(4, 6, Field.MONTH)); 183 v.add(new FieldContainer(8, 17, Field.MONTH)); 220 v.add(new FieldContainer(17, 18, Field.MONTH)); 221 v.add(new FieldContainer(19, 21, Field.MONTH)); 222 v.add(new FieldContainer(22, 25, Field.MONTH)); 223 v.add(new FieldContainer(26, 35, Field.MONTH));
|
/frameworks/base/core/java/android/app/ |
DatePickerDialog.java | 43 private static final String MONTH = "month"; 60 * @param monthOfYear The month that was set (0-11) for compatibility 62 * @param dayOfMonth The day of the month that was set. 71 * @param monthOfYear The initial month of the dialog. 87 * @param monthOfYear The initial month of the dialog. 120 int month, int day) { 121 mDatePicker.init(year, month, day, this); 122 updateTitle(year, month, day); 138 * @param monthOfYear The date month 194 int month = savedInstanceState.getInt(MONTH); local [all...] |
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/ |
ASN1Time.java | 46 c.set(Calendar.MONTH, in.times[1]-1);
|
/frameworks/base/core/java/android/widget/ |
DatePicker.java | 50 * year, month, and day spinners or a {@link CalendarView}. The set of spinners 133 * @param monthOfYear The month that was set (0-11) for compatibility 135 * @param dayOfMonth The day of the month that was set. 189 mTempDate.add(Calendar.MONTH, 1); 191 mTempDate.add(Calendar.MONTH, -1); 193 mTempDate.add(Calendar.MONTH, newVal - oldVal); 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); 228 // month [all...] |
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/ |
XMPDateTimeImpl.java | 34 private int month = 0; field in class:XMPDateTimeImpl 81 this.month = intCalendar.get(Calendar.MONTH) + 1; // cal is from 0..12 103 this.month = calendar.get(Calendar.MONTH) + 1; // cal is from 0..12 148 return month; 155 public void setMonth(int month) 157 if (month < 1) 159 this.month = 1; 161 else if (month > 12 [all...] |
/external/libmtp/ |
hotplug.sh.in | 161 MONTH=`echo ${DATE} | awk 'BEGIN { FS="/"} {print $2; }'` 167 if [ "${MONTH}" -ge "08" ]; then
|
/libcore/luni/src/main/java/java/util/ |
GregorianCalendar.java | 85 * 1 to 4 or 5. Week 1 of a month (the days with <code>WEEK_OF_MONTH = 88 * contiguous days in that month, ending on the day before 90 * month may be shorter than 7 days, need not start on 92 * previous month. Days of a month before week 1 have a 133 * System.out.println("MONTH: " + calendar.get(Calendar.MONTH)); 158 * System.out.println("MONTH: " + calendar.get(Calendar.MONTH)); 240 * @param month 380 int month = fields[MONTH] + value; local 485 int month = dayOfYear \/ 32; local 681 int month = fields[MONTH]; local 1048 int month = dayOfYear \/ 32; local [all...] |
/packages/apps/Contacts/src/com/android/contacts/datepicker/ |
DatePickerDialog.java | 53 private static final String MONTH = "month"; 74 * @param monthOfYear The month that was set (0-11) for compatibility 76 * @param dayOfMonth The day of the month that was set. 85 * @param monthOfYear The initial month of the dialog. 101 * @param monthOfYear The initial month of the dialog. 123 * @param monthOfYear The initial month of the dialog. 141 * @param monthOfYear The initial month of the dialog. 180 /* Sometimes the full month is displayed causing the title 199 public void onDateChanged(DatePicker view, int year, int month, int day) 234 int month = savedInstanceState.getInt(MONTH); local [all...] |
/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) 32 2. Call ToNumber(month) 59 var TITLE = "new Date( year, month, date, hours, minutes, seconds, ms )"; 72 var MONTH = 10; 211 testcases[item++] = new TestCase( SECTION, DateString+".getMonth()", ResultArray[MONTH], DateCase.getMonth() );
|
15.9.3.1-3.js | 24 ECMA Section: 15.9.3.1 new Date (year, month, date, hours, minutes, seconds, ms) 32 2. Call ToNumber(month) 59 var TITLE = "new Date( year, month, date, hours, minutes, seconds, ms )"; 72 var MONTH = 10; 189 testcases[item++] = new TestCase( SECTION, DateString+".getMonth()", ResultArray[MONTH], DateCase.getMonth() );
|
15.9.3.1-4.js | 24 ECMA Section: 15.9.3.1 new Date (year, month, date, hours, minutes, seconds, ms) 32 2. Call ToNumber(month) 59 var TITLE = "new Date( year, month, date, hours, minutes, seconds, ms )"; 72 var MONTH = 10; 173 testcases[item++] = new TestCase( SECTION, DateString+".getMonth()", ResultArray[MONTH], DateCase.getMonth() );
|
15.9.3.1-5.js | 24 ECMA Section: 15.9.3.1 new Date (year, month, date, hours, minutes, seconds, ms) 32 2. Call ToNumber(month) 59 var TITLE = "new Date( year, month, date, hours, minutes, seconds, ms )"; 72 var MONTH = 10; 150 testcases[item++] = new TestCase( SECTION, DateString+".getMonth()", ResultArray[MONTH], DateCase.getMonth() );
|
15.9.3.2-1.js | 24 ECMA Section: 15.9.3.1 new Date (year, month, date, hours, minutes, seconds, ms) 32 2. Call ToNumber(month) 67 var MONTH = 10; 77 var TITLE = "Date( year, month, date, hours, minutes, seconds )"; 220 testcases[item++] = new TestCase( SECTION, DateString+".getMonth()", ResultArray[MONTH], DateCase.getMonth() );
|
15.9.3.2-2.js | 24 ECMA Section: 15.9.3.1 new Date (year, month, date, hours, minutes, seconds, ms) 32 2. Call ToNumber(month) 67 var MONTH = 10; 77 var TITLE = "Date( year, month, date, hours, minutes, seconds )"; 198 testcases[item++] = new TestCase( SECTION, DateString+".getMonth()", ResultArray[MONTH], DateCase.getMonth() );
|
15.9.3.2-3.js | 24 ECMA Section: 15.9.3.1 new Date (year, month, date, hours, minutes, seconds, ms) 32 2. Call ToNumber(month) 67 var MONTH = 10; 77 var TITLE = "Date( year, month, date, hours, minutes, seconds )"; 184 testcases[item++] = new TestCase( SECTION, DateString+".getMonth()", ResultArray[MONTH], DateCase.getMonth() );
|