/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...] |
/external/chromium_org/ui/android/java/src/org/chromium/ui/picker/ |
DateDialogNormalizer.java | 31 maxCal.get(Calendar.MONTH), 35 minCal.get(Calendar.MONTH), 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),
|
MonthPicker.java | 34 init(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH), null); 42 int month = (int) (value % 12); local 45 cal.set(year, month, 1); 55 protected void setCurrentDate(int year, int month) { 57 date.set(year, month, 1); 71 // make sure the month names are a zero based array 72 // with the months in the month spinner 80 * @return The selected month. 83 return getCurrentDate().get(Calendar.MONTH); 105 return getMaxDate().get(Calendar.MONTH); [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/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 | 52 gc.get(Calendar.MONTH) == Calendar.OCTOBER); 70 gc.get(Calendar.MONTH) == Calendar.OCTOBER); 99 gc.get(Calendar.MONTH) == Calendar.OCTOBER); 152 c1.set(Calendar.MONTH, Calendar.JUNE); 195 gc1.add(Calendar.MONTH, 7); 197 assertTrue("Wrong result month 1", 198 gc1.get(Calendar.MONTH) == Calendar.FEBRUARY); 203 assertTrue("Wrong result month 2", 204 gc1.get(Calendar.MONTH) == Calendar.FEBRUARY); 262 .get(Calendar.MONTH) == Calendar.APRI [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) +
|
/frameworks/base/core/java/android/widget/ |
SimpleMonthAdapter.java | 112 final int diffMonth = mMaxDate.get(Calendar.MONTH) - mMinDate.get(Calendar.MONTH); 152 final int minMonth = mMinDate.get(Calendar.MONTH); 155 final int month = currentMonth % 12; local 158 if (isSelectedDayInMonth(year, month)) { 169 if (minMonth == month && minYear == year) { 176 if (mMaxDate.get(Calendar.MONTH) == month && mMaxDate.get(Calendar.YEAR) == year) { 182 v.setMonthParams(selectedDay, month, year, mFirstDayOfWeek, 189 private boolean isSelectedDayInMonth(int year, int month) { [all...] |
DayPickerView.java | 65 // which month should be displayed/highlighted [0-11] 174 final int diffMonths = end.get(Calendar.MONTH) - start.get(Calendar.MONTH) + 12 * diffYears; 194 * in range it will move the list so that the first of the month containing 242 // and if so scroll to the month that contains it 272 * Updates the title and selected month if the view has moved to a new 273 * month. 287 * Sets the month displayed at the top of this view based on time. Override 291 if (mCurrentMonthDisplayed != date.get(Calendar.MONTH)) { 292 mCurrentMonthDisplayed = date.get(Calendar.MONTH); 499 final int month = firstVisiblePosition % 12; local [all...] |
DatePicker.java | 57 * set to {@code spinner}, the date can be selected using year, month, and day 64 * set to {@code calendar}, the month and day can be selected using a 111 * @param monthOfYear The month that was set (0-11) for compatibility 113 * @param dayOfMonth The day of the month that was set. 170 * @param monthOfYear The initial month <strong>starting from zero</strong>. 171 * @param dayOfMonth The initial day of the month. 184 * @param month The month which is <strong>starting from zero</strong>. 185 * @param dayOfMonth The day of the month. 187 public void updateDate(int year, int month, int dayOfMonth) [all...] |
/external/apache-harmony/support/src/test/java/tests/support/ |
Support_TimeZone.java | 46 * let's assume this timezone has daylight savings from the 4th month till 47 * the 10th month of the year to ame things simple. 56 int month = cal.get(Calendar.MONTH); local 58 if (month > 4 && month < 10) {
|
/frameworks/base/core/java/android/app/ |
DatePickerDialog.java | 46 private static final String MONTH = "month"; 63 * @param monthOfYear The month that was set (0-11) for compatibility 65 * @param dayOfMonth The day of the month that was set. 74 * @param monthOfYear The initial month of the dialog. 100 * @param monthOfYear The initial month of the dialog. 124 public void onDateChanged(DatePicker view, int year, int month, int day) { 125 mDatePicker.init(year, month, day, this); 126 updateTitle(year, month, day); 157 * @param monthOfYear The date month 199 final 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);
|
/libcore/luni/src/test/java/libcore/icu/ |
DateIntervalFormatTest.java | 28 private static final long MONTH = 31 * DAY; 29 private static final long YEAR = 12 * MONTH; 36 c.set(Calendar.MONTH, Calendar.JANUARY); 80 assertEquals("1/19/2009 ? 4/22/2009", formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * MONTH, FORMAT_SHOW_YEAR | FORMAT_NUMERIC_DATE)); 85 assertEquals("19.01.2009 - 22.04.2009", formatDateRange(de_DE, tz, fixedTime, fixedTime + 3 * MONTH, FORMAT_SHOW_YEAR | FORMAT_NUMERIC_DATE)); 90 assertEquals("19/1/2009?22/4/2009", formatDateRange(es_US, tz, fixedTime, fixedTime + 3 * MONTH, FORMAT_SHOW_YEAR | FORMAT_NUMERIC_DATE)); 95 assertEquals("19/1/2009?22/4/2009", formatDateRange(es_ES, tz, fixedTime, fixedTime + 3 * MONTH, FORMAT_SHOW_YEAR | FORMAT_NUMERIC_DATE)); 105 assertEquals("January 19 ? April 22, 2009", formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * MONTH, 0)); 106 assertEquals("Jan 19 ? Apr 22, 2009", formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * MONTH, FORMAT_SHOW_DATE | FORMAT_ABBREV_ALL)); 107 assertEquals("Mon, Jan 19 ? Wed, Apr 22, 2009", formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * MONTH, FORMAT_SHOW_WEEKDAY | FORMAT_ABBREV_ALL)) [all...] |
/libcore/support/src/test/java/tests/support/ |
Support_TimeZone.java | 46 * let's assume this timezone has daylight savings from the 4th month till 47 * the 10th month of the year to ame things simple. 56 int month = cal.get(Calendar.MONTH); local 58 if (month > 4 && month < 10) {
|
/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/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
Support_SimpleDateFormat.java | 77 t_FormatWithField(2, format, date, null, Field.MONTH, 19, 20); 108 t_FormatWithField(26, format, date, null, Field.MONTH, 0, 0); 162 v.add(new FieldContainer(4, 6, Field.MONTH)); 176 v.add(new FieldContainer(8, 17, Field.MONTH)); 213 v.add(new FieldContainer(19, 20, Field.MONTH)); 214 v.add(new FieldContainer(21, 23, Field.MONTH)); 215 v.add(new FieldContainer(24, 27, Field.MONTH)); 216 v.add(new FieldContainer(28, 37, Field.MONTH));
|
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());
|
/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 389 int month = fields[MONTH] + value; local 495 int month = dayOfYear \/ 32; local 715 int month = fields[MONTH]; local 1082 int month = dayOfYear \/ 32; local [all...] |
/libcore/luni/src/main/java/libcore/icu/ |
DateIntervalFormat.java | 210 c1.get(Calendar.MONTH) != c2.get(Calendar.MONTH) || 215 return c1.get(Calendar.MONTH) == c2.get(Calendar.MONTH);
|
/packages/apps/Contacts/src/com/android/contacts/datepicker/ |
DatePickerDialog.java | 50 private static final String MONTH = "month"; 71 * @param monthOfYear The month that was set (0-11) for compatibility 73 * @param dayOfMonth The day of the month that was set. 82 * @param monthOfYear The initial month of the dialog. 98 * @param monthOfYear The initial month of the dialog. 118 * @param monthOfYear The initial month of the dialog. 136 * @param monthOfYear The initial month of the dialog. 181 public void onDateChanged(DatePicker view, int year, int month, int day) { 182 updateTitle(year, month, day) 216 int month = savedInstanceState.getInt(MONTH); local [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/provider/ |
ClockContract.java | 214 * Alarm month in year. 218 public static final String MONTH = "month"; 221 * Alarm day in month.
|
/developers/build/prebuilts/gradle/SpeedTracker/Application/src/main/java/com/example/android/wearable/speedtracker/ |
PhoneMainActivity.java | 68 calendar.get(Calendar.MONTH), calendar.get(Calendar.DAY_OF_MONTH)).show(); 79 calendar.set(Calendar.MONTH, monthOfYear);
|
/developers/samples/android/wearable/wear/SpeedTracker/Application/src/main/java/com/example/android/wearable/speedtracker/ |
PhoneMainActivity.java | 68 calendar.get(Calendar.MONTH), calendar.get(Calendar.DAY_OF_MONTH)).show(); 79 calendar.set(Calendar.MONTH, monthOfYear);
|