/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/ |
CopticTest.java | 103 // Julian Day Era Year Month Day WkDay Hour Min Sec 150 for (int m = 0; m < 12; ++m) { // don't understand rules for 13th month 151 for (int d = 1; d < 25; d += 3) { // play it safe on days per month 155 int month = cal.get(Calendar.MONTH); local 158 m == month && 165 " m: " + month + 198 cal.get(MONTH) + "/" + 204 cal.get(MONTH) + "/" + 222 * maximum month length [all...] |
EthiopicTest.java | 51 // year month day field amount year month day 53 { 0001, QIDAH, 2, MONTH, 1, 0001, HIJJAH, 2 }, // non-leap years 54 { 0001, QIDAH, 2, MONTH, 2, 0001, MUHARRAM, 2 }, 55 { 0001, QIDAH, 2, MONTH, -1, 0001, SHAWWAL, 2 }, 56 { 0001, MUHARRAM, 2, MONTH, 12, 0001, MUHARRAM, 2 }, 57 { 0001, MUHARRAM, 2, MONTH, 13, 0001, SAFAR, 2 }, 59 { 0001, HIJJAH, 1, DATE, 30, 0001, HIJJAH, 2 }, // 29-day month 60 { 0002, HIJJAH, 1, DATE, 31, 0002, HIJJAH, 2 }, // 30-day month 63 { 0001, MUHARRAM, 30, MONTH, 1, 0001, SAFAR, 29 } [all...] |
IndianTest.java | 60 // Julian Day Era Year Month Day WkDay Hour Min Sec 117 cal.get(MONTH) + "/" + 123 cal.get(MONTH) + "/" + 177 // new IndianCalendar(int year, int month, int date) 180 errln("could not create IndianCalendar with year,month,date"); 184 // new IndianCalendar(int year, int month, int date, int hour, int minute, int second) 187 errln("could not create IndianCalendar with year,month,date,hour,minute,second"); 222 gCal.add(GregorianCalendar.MONTH,2); 231 iCal.add(IndianCalendar.MONTH,2); 270 cal.add(Calendar.MONTH, 1) [all...] |
CalendarTestFmwk.java | 43 public final static int MONTH = Calendar.MONTH; 57 "ERA", "YEAR", "MONTH", "WEEK_OF_YEAR", "WEEK_OF_MONTH", 141 * <li>1: month (zero-based) 146 * <li>6: month (zero-based) 152 * // year month day field amount year month day 153 * { 5759, HESHVAN, 2, MONTH, 1, 5759, KISLEV, 2 }, 169 cal.set(Calendar.MONTH, test[1]); 182 if (y != test[5] || cal.get(MONTH) != test[6 [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/ |
CopticTest.java | 102 // Julian Day Era Year Month Day WkDay Hour Min Sec 149 for (int m = 0; m < 12; ++m) { // don't understand rules for 13th month 150 for (int d = 1; d < 25; d += 3) { // play it safe on days per month 154 int month = cal.get(Calendar.MONTH); local 157 m == month && 164 " m: " + month + 197 cal.get(MONTH) + "/" + 203 cal.get(MONTH) + "/" + 221 * maximum month length [all...] |
EthiopicTest.java | 50 // year month day field amount year month day 52 { 0001, QIDAH, 2, MONTH, 1, 0001, HIJJAH, 2 }, // non-leap years 53 { 0001, QIDAH, 2, MONTH, 2, 0001, MUHARRAM, 2 }, 54 { 0001, QIDAH, 2, MONTH, -1, 0001, SHAWWAL, 2 }, 55 { 0001, MUHARRAM, 2, MONTH, 12, 0001, MUHARRAM, 2 }, 56 { 0001, MUHARRAM, 2, MONTH, 13, 0001, SAFAR, 2 }, 58 { 0001, HIJJAH, 1, DATE, 30, 0001, HIJJAH, 2 }, // 29-day month 59 { 0002, HIJJAH, 1, DATE, 31, 0002, HIJJAH, 2 }, // 30-day month 62 { 0001, MUHARRAM, 30, MONTH, 1, 0001, SAFAR, 29 } [all...] |
IndianTest.java | 59 // Julian Day Era Year Month Day WkDay Hour Min Sec 116 cal.get(MONTH) + "/" + 122 cal.get(MONTH) + "/" + 176 // new IndianCalendar(int year, int month, int date) 179 errln("could not create IndianCalendar with year,month,date"); 183 // new IndianCalendar(int year, int month, int date, int hour, int minute, int second) 186 errln("could not create IndianCalendar with year,month,date,hour,minute,second"); 221 gCal.add(GregorianCalendar.MONTH,2); 230 iCal.add(IndianCalendar.MONTH,2); 269 cal.add(Calendar.MONTH, 1) [all...] |
CalendarTestFmwk.java | 42 public final static int MONTH = Calendar.MONTH; 56 "ERA", "YEAR", "MONTH", "WEEK_OF_YEAR", "WEEK_OF_MONTH", 140 * <li>1: month (zero-based) 145 * <li>6: month (zero-based) 151 * // year month day field amount year month day 152 * { 5759, HESHVAN, 2, MONTH, 1, 5759, KISLEV, 2 }, 168 cal.set(Calendar.MONTH, test[1]); 181 if (y != test[5] || cal.get(MONTH) != test[6 [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/ |
DayPickerPagerAdapter.java | 83 final int diffMonth = mMaxDate.get(Calendar.MONTH) - mMinDate.get(Calendar.MONTH); 205 return (position + mMinDate.get(Calendar.MONTH)) % MONTHS_IN_YEAR; 209 final int yearOffset = (position + mMinDate.get(Calendar.MONTH)) / MONTHS_IN_YEAR; 219 final int monthOffset = day.get(Calendar.MONTH) - mMinDate.get(Calendar.MONTH); 248 final int month = getMonthForPosition(position); local 252 if (mSelectedDay != null && mSelectedDay.get(Calendar.MONTH) == month) { 259 if (mMinDate.get(Calendar.MONTH) == month && mMinDate.get(Calendar.YEAR) == year) [all...] |
DatePickerSpinnerDelegate.java | 137 mTempDate.add(Calendar.MONTH, 1); 139 mTempDate.add(Calendar.MONTH, -1); 141 mTempDate.add(Calendar.MONTH, newVal - oldVal); 149 setDate(mTempDate.get(Calendar.YEAR), mTempDate.get(Calendar.MONTH), 162 public void onSelectedDayChange(CalendarView view, int year, int month, int monthDay) { 163 setDate(year, month, monthDay); 176 // month 177 mMonthSpinner = (NumberPicker) mDelegator.findViewById(com.android.internal.R.id.month); 224 init(mCurrentDate.get(Calendar.YEAR), mCurrentDate.get(Calendar.MONTH), mCurrentDate 250 public void updateDate(int year, int month, int dayOfMonth) [all...] |
/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
TestThaiBuddhistChronoImpl.java | 104 cal.set(Calendar.MONTH, thaiDate.get(ChronoField.MONTH_OF_YEAR) - 1); 109 assertEquals(thaiDate.get(ChronoField.MONTH_OF_YEAR), cal.get(Calendar.MONTH) + 1, "Month mismatch in " + thaiDate); 119 cal.get(Calendar.YEAR), cal.get(Calendar.MONTH) + 1, cal.get(Calendar.DAY_OF_MONTH));
|
/developers/build/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/ |
CreditCardExpirationDatePickerView.java | 46 * credit card expiration month and year. 53 * Calendar instance used for month / year calculations. Should be reset before each use. 75 mMonth = mTempCalendar.get(Calendar.MONTH); 79 * Gets a temporary calendar set with the View's year and month. 84 mTempCalendar.set(Calendar.MONTH, mMonth); 106 int month = mTempCalendar.get(Calendar.MONTH); local 107 if (DEBUG) Log.d(TAG, "autofill(" + value + "): " + month + "/" + year); 108 setDate(year, month); 111 private void setDate(int year, int month) { [all...] |
/developers/samples/android/input/autofill/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/ |
CreditCardExpirationDatePickerView.java | 46 * credit card expiration month and year. 53 * Calendar instance used for month / year calculations. Should be reset before each use. 75 mMonth = mTempCalendar.get(Calendar.MONTH); 79 * Gets a temporary calendar set with the View's year and month. 84 mTempCalendar.set(Calendar.MONTH, mMonth); 106 int month = mTempCalendar.get(Calendar.MONTH); local 107 if (DEBUG) Log.d(TAG, "autofill(" + value + "): " + month + "/" + year); 108 setDate(year, month); 111 private void setDate(int year, int month) { [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) {
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
CalendarFieldsSet.java | 54 if(field == Calendar.MONTH) {
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
CalendarFieldsSet.java | 53 if(field == Calendar.MONTH) {
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
GregorianCalendarTest.java | 68 gc.get(Calendar.MONTH) == Calendar.OCTOBER); 86 gc.get(Calendar.MONTH) == Calendar.OCTOBER); 115 gc.get(Calendar.MONTH) == Calendar.OCTOBER); 168 c1.set(Calendar.MONTH, Calendar.JUNE); 211 gc1.add(Calendar.MONTH, 7); 213 assertTrue("Wrong result month 1", 214 gc1.get(Calendar.MONTH) == Calendar.FEBRUARY); 219 assertTrue("Wrong result month 2", 220 gc1.get(Calendar.MONTH) == Calendar.FEBRUARY); 278 .get(Calendar.MONTH) == Calendar.APRI [all...] |
/libcore/luni/src/main/java/libcore/icu/ |
DateUtilsBridge.java | 160 c1.get(Calendar.MONTH) != c2.get(Calendar.MONTH) || 165 return c1.get(Calendar.MONTH) == c2.get(Calendar.MONTH);
|
/libcore/luni/src/test/java/libcore/icu/ |
DateIntervalFormatTest.java | 30 private static final long MONTH = 31 * DAY; 31 private static final long YEAR = 12 * MONTH; 38 c.set(Calendar.MONTH, Calendar.JANUARY); 82 assertEquals("1/19/2009 ? 4/22/2009", formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * MONTH, FORMAT_SHOW_YEAR | FORMAT_NUMERIC_DATE)); 87 assertEquals("19.01.2009 ? 22.04.2009", formatDateRange(de_DE, tz, fixedTime, fixedTime + 3 * MONTH, FORMAT_SHOW_YEAR | FORMAT_NUMERIC_DATE)); 92 assertEquals("19/1/2009?22/4/2009", formatDateRange(es_US, tz, fixedTime, fixedTime + 3 * MONTH, FORMAT_SHOW_YEAR | FORMAT_NUMERIC_DATE)); 97 assertEquals("19/1/2009?22/4/2009", formatDateRange(es_ES, tz, fixedTime, fixedTime + 3 * MONTH, FORMAT_SHOW_YEAR | FORMAT_NUMERIC_DATE)); 107 assertEquals("January 19 ? April 22, 2009", formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * MONTH, 0)); 108 assertEquals("Jan 19 ? Apr 22, 2009", formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * MONTH, FORMAT_SHOW_DATE | FORMAT_ABBREV_ALL)); 109 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) {
|
/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. 83 * @param monthOfYear The initial month of the dialog. 104 * @param monthOfYear The initial month of the dialog. 149 public void onDateChanged(DatePicker view, int year, int month, int day) { 150 updateTitle(year, month, day); 153 private void updateTitle(int year, int month, int day) { 156 calendar.set(Calendar.MONTH, month) 177 int month = savedInstanceState.getInt(MONTH); local [all...] |
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/app/wizard/ |
GuidedDatePickerTest.java | 99 case Calendar.MONTH: 155 * @param columnIndices The date field indices corresponding to day, month, and the year 190 == currentActionCal.get(Calendar.MONTH) 244 String breadcrumb = "Month Transition Test Demo"; 254 cal.set(Calendar.MONTH, Calendar.JANUARY); 277 verticalScrollToFieldValue(Calendar.MONTH, Calendar.FEBRUARY, new int[] {0, 1, 2}, 290 String breadcrumb = "Month Transition Test Demo"; 300 cal.set(Calendar.MONTH, Calendar.FEBRUARY); 323 verticalScrollToFieldValue(Calendar.MONTH, Calendar.MARCH, new int[] {0, 1, 2}, 336 String breadcrumb = "Month Transition Test Demo" [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
ChineseCalendar.java | 25 * calendar is a lunisolar calendar: Each month starts on a new moon, and 27 * guarantee that month 11 always contains the winter solstice. In order 29 * months are numbered the same as the month they follow. The decision of 30 * which month is a leap month depends on the relative movements of the sun 168 * @param month The value used to set the calendar's {@link #MONTH MONTH} time field. 175 public ChineseCalendar(int year, int month, int isLeapMonth, int date) { 176 this(year, month, isLeapMonth, date, 0, 0, 0) 859 int month = synodicMonthsBetween(firstMoon, thisMoon); local [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
ChineseCalendar.java | 24 * calendar is a lunisolar calendar: Each month starts on a new moon, and 26 * guarantee that month 11 always contains the winter solstice. In order 28 * months are numbered the same as the month they follow. The decision of 29 * which month is a leap month depends on the relative movements of the sun 170 * @param month The value used to set the calendar's {@link #MONTH MONTH} time field. 178 public ChineseCalendar(int year, int month, int isLeapMonth, int date) { 179 this(year, month, isLeapMonth, date, 0, 0, 0) 878 int month = synodicMonthsBetween(firstMoon, thisMoon); local [all...] |