/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/support/v17/tests/src/android/support/v17/leanback/app/wizard/ |
GuidedDatePickerTest.java | 85 case Calendar.MONTH: 149 currentActionCal.get(Calendar.MONTH) 207 String breadcrumb = "Month Transition Test Demo"; 217 cal.set(Calendar.MONTH, Calendar.JANUARY); 263 // scroll down the days till reaching the last day of month 272 // increment the month 299 currentCal.set(Calendar.MONTH, oldMonthValue); 301 currentCal.set(Calendar.MONTH, newMonthValue); 327 currCal.set(Calendar.MONTH, Calendar.JULY); 332 minCal.set(Calendar.MONTH, Calendar.OCTOBER) [all...] |
/frameworks/base/core/java/android/widget/ |
DayPickerPagerAdapter.java | 82 final int diffMonth = mMaxDate.get(Calendar.MONTH) - mMinDate.get(Calendar.MONTH); 193 return (position + mMinDate.get(Calendar.MONTH)) % MONTHS_IN_YEAR; 197 final int yearOffset = (position + mMinDate.get(Calendar.MONTH)) / MONTHS_IN_YEAR; 207 final int monthOffset = day.get(Calendar.MONTH) - mMinDate.get(Calendar.MONTH); 236 final int month = getMonthForPosition(position); local 240 if (mSelectedDay != null && mSelectedDay.get(Calendar.MONTH) == month) { 247 if (mMinDate.get(Calendar.MONTH) == month && mMinDate.get(Calendar.YEAR) == year) [all...] |
DatePickerSpinnerDelegate.java | 139 mTempDate.add(Calendar.MONTH, 1); 141 mTempDate.add(Calendar.MONTH, -1); 143 mTempDate.add(Calendar.MONTH, newVal - oldVal); 151 setDate(mTempDate.get(Calendar.YEAR), mTempDate.get(Calendar.MONTH), 164 public void onSelectedDayChange(CalendarView view, int year, int month, int monthDay) { 165 setDate(year, month, monthDay); 178 // month 179 mMonthSpinner = (NumberPicker) mDelegator.findViewById(com.android.internal.R.id.month); 226 init(mCurrentDate.get(Calendar.YEAR), mCurrentDate.get(Calendar.MONTH), mCurrentDate 252 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) {
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
CalendarFieldsSet.java | 52 if(field == Calendar.MONTH) {
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
CalendarFieldsSet.java | 51 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) {
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/ |
EthiopicTest.java | 53 // year month day field amount year month day 55 { 0001, QIDAH, 2, MONTH, 1, 0001, HIJJAH, 2 }, // non-leap years 56 { 0001, QIDAH, 2, MONTH, 2, 0001, MUHARRAM, 2 }, 57 { 0001, QIDAH, 2, MONTH, -1, 0001, SHAWWAL, 2 }, 58 { 0001, MUHARRAM, 2, MONTH, 12, 0001, MUHARRAM, 2 }, 59 { 0001, MUHARRAM, 2, MONTH, 13, 0001, SAFAR, 2 }, 61 { 0001, HIJJAH, 1, DATE, 30, 0001, HIJJAH, 2 }, // 29-day month 62 { 0002, HIJJAH, 1, DATE, 31, 0002, HIJJAH, 2 }, // 30-day month 65 { 0001, MUHARRAM, 30, MONTH, 1, 0001, SAFAR, 29 } [all...] |
IndianTest.java | 61 // 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"); 221 gCal.add(GregorianCalendar.MONTH,2); 230 iCal.add(IndianCalendar.MONTH,2); 267 cal.add(Calendar.MONTH, 1) [all...] |
CalendarTest.java | 44 public final static int MONTH = Calendar.MONTH; 58 "ERA", "YEAR", "MONTH", "WEEK_OF_YEAR", "WEEK_OF_MONTH", 142 * <li>1: month (zero-based) 147 * <li>6: month (zero-based) 153 * // year month day field amount year month day 154 * { 5759, HESHVAN, 2, MONTH, 1, 5759, KISLEV, 2 }, 170 cal.set(Calendar.MONTH, test[1]); 183 if (y != test[5] || cal.get(MONTH) != test[6 [all...] |
CompatibilityTest.java | 35 "ERA", "YEAR", "MONTH", "WEEK_OF_YEAR", "WEEK_OF_MONTH", 102 int y = cal.get(Calendar.YEAR), mon = cal.get(Calendar.MONTH)+1-Calendar.JANUARY, 175 // Julian# Year Month DOM JULIAN:Year, Month, DOM 191 int month = DATA[i+2]; local 200 cal.set(year, month, dom); 205 month2 = cal.get(Calendar.MONTH); 207 s = "G " + year + "-" + (month+1-Calendar.JANUARY) + "-" + dom + 211 if (delta != 0 || year != year2 || month != month2 || 217 month = DATA[i+5] 450 int year = 1997, month = Calendar.APRIL, date = 1; local 766 private int month; field in class:CompatibilityTest.TransitionItem 952 int month = java.util.Calendar.OCTOBER; \/\/october local [all...] |
IslamicTest.java | 56 // year month day field amount year month day 58 { 0001, QIDAH, 2, MONTH, 1, 0001, HIJJAH, 2 }, // non-leap years 59 { 0001, QIDAH, 2, MONTH, 2, 0001, MUHARRAM, 2 }, 60 { 0001, QIDAH, 2, MONTH, -1, 0001, SHAWWAL, 2 }, 61 { 0001, MUHARRAM, 2, MONTH, 12, 0001, MUHARRAM, 2 }, 62 { 0001, MUHARRAM, 2, MONTH, 13, 0001, SAFAR, 2 }, 64 { 0001, HIJJAH, 1, DATE, 30, 0001, HIJJAH, 2 }, // 29-day month 65 { 0002, HIJJAH, 1, DATE, 31, 0002, HIJJAH, 2 }, // 30-day month 68 { 0001, MUHARRAM, 30, MONTH, 1, 0001, SAFAR, 29 } 344 int month = cal.get(Calendar.MONTH); local 811 int day=0, month=0, year=0, initDay = 27, initMonth = IslamicCalendar.RAJAB, initYear = 1434; local [all...] |
TestCase.java | 63 get(Calendar.YEAR) + "/" + (get(Calendar.MONTH)+1) + "/" + 83 * @param month The MONTH (1-based) field of tested calendar on the given julian day 91 int era, int year, int month, int day, 99 set(Calendar.MONTH, month - 1); 108 * Initialize a TestCase object using a Gregorian year/month/day and 112 * @param gregMonth The Gregorian month of the date to be tested 113 * @param gregDay The Gregorian day of the month of the date to be tested 117 * @param month The MONTH (0-based) field of tested calendar on the given gregorian dat [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/ |
EthiopicTest.java | 49 // year month day field amount year month day 51 { 0001, QIDAH, 2, MONTH, 1, 0001, HIJJAH, 2 }, // non-leap years 52 { 0001, QIDAH, 2, MONTH, 2, 0001, MUHARRAM, 2 }, 53 { 0001, QIDAH, 2, MONTH, -1, 0001, SHAWWAL, 2 }, 54 { 0001, MUHARRAM, 2, MONTH, 12, 0001, MUHARRAM, 2 }, 55 { 0001, MUHARRAM, 2, MONTH, 13, 0001, SAFAR, 2 }, 57 { 0001, HIJJAH, 1, DATE, 30, 0001, HIJJAH, 2 }, // 29-day month 58 { 0002, HIJJAH, 1, DATE, 31, 0002, HIJJAH, 2 }, // 30-day month 61 { 0001, MUHARRAM, 30, MONTH, 1, 0001, SAFAR, 29 } [all...] |
IndianTest.java | 57 // Julian Day Era Year Month Day WkDay Hour Min Sec 113 cal.get(MONTH) + "/" + 119 cal.get(MONTH) + "/" + 173 // new IndianCalendar(int year, int month, int date) 176 errln("could not create IndianCalendar with year,month,date"); 180 // new IndianCalendar(int year, int month, int date, int hour, int minute, int second) 183 errln("could not create IndianCalendar with year,month,date,hour,minute,second"); 217 gCal.add(GregorianCalendar.MONTH,2); 226 iCal.add(IndianCalendar.MONTH,2); 263 cal.add(Calendar.MONTH, 1) [all...] |
CalendarTest.java | 40 public final static int MONTH = Calendar.MONTH; 54 "ERA", "YEAR", "MONTH", "WEEK_OF_YEAR", "WEEK_OF_MONTH", 138 * <li>1: month (zero-based) 143 * <li>6: month (zero-based) 149 * // year month day field amount year month day 150 * { 5759, HESHVAN, 2, MONTH, 1, 5759, KISLEV, 2 }, 166 cal.set(Calendar.MONTH, test[1]); 179 if (y != test[5] || cal.get(MONTH) != test[6 [all...] |
CompatibilityTest.java | 31 "ERA", "YEAR", "MONTH", "WEEK_OF_YEAR", "WEEK_OF_MONTH", 98 int y = cal.get(Calendar.YEAR), mon = cal.get(Calendar.MONTH)+1-Calendar.JANUARY, 171 // Julian# Year Month DOM JULIAN:Year, Month, DOM 187 int month = DATA[i+2]; local 196 cal.set(year, month, dom); 201 month2 = cal.get(Calendar.MONTH); 203 s = "G " + year + "-" + (month+1-Calendar.JANUARY) + "-" + dom + 207 if (delta != 0 || year != year2 || month != month2 || 213 month = DATA[i+5] 446 int year = 1997, month = Calendar.APRIL, date = 1; local 762 private int month; field in class:CompatibilityTest.TransitionItem 948 int month = java.util.Calendar.OCTOBER; \/\/october local [all...] |
IslamicTest.java | 52 // year month day field amount year month day 54 { 0001, QIDAH, 2, MONTH, 1, 0001, HIJJAH, 2 }, // non-leap years 55 { 0001, QIDAH, 2, MONTH, 2, 0001, MUHARRAM, 2 }, 56 { 0001, QIDAH, 2, MONTH, -1, 0001, SHAWWAL, 2 }, 57 { 0001, MUHARRAM, 2, MONTH, 12, 0001, MUHARRAM, 2 }, 58 { 0001, MUHARRAM, 2, MONTH, 13, 0001, SAFAR, 2 }, 60 { 0001, HIJJAH, 1, DATE, 30, 0001, HIJJAH, 2 }, // 29-day month 61 { 0002, HIJJAH, 1, DATE, 31, 0002, HIJJAH, 2 }, // 30-day month 64 { 0001, MUHARRAM, 30, MONTH, 1, 0001, SAFAR, 29 } 340 int month = cal.get(Calendar.MONTH); local 807 int day=0, month=0, year=0, initDay = 27, initMonth = IslamicCalendar.RAJAB, initYear = 1434; local [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
ChineseCalendar.java | 23 * calendar is a lunisolar calendar: Each month starts on a new moon, and 25 * guarantee that month 11 always contains the winter solstice. In order 27 * months are numbered the same as the month they follow. The decision of 28 * which month is a leap month depends on the relative movements of the sun 166 * @param month The value used to set the calendar's {@link #MONTH MONTH} time field. 173 public ChineseCalendar(int year, int month, int isLeapMonth, int date) { 174 this(year, month, isLeapMonth, date, 0, 0, 0) 857 int month = synodicMonthsBetween(firstMoon, thisMoon); local [all...] |
PersianCalendar.java | 28 * and the final month is 29 days in non-leap years and 30 days in leap 29 * ones. Historically, the lengths of the month differed in different 89 // len length of month 90 // len2 length of month in a leap year 91 // st days in year before start of month 214 * @param month the value used to set the {@link #MONTH MONTH} time field in the calendar. 215 * Note that the month value is 0-based. e.g., 0 for Farvardin. 223 public PersianCalendar(int year, int month, int date 420 int year, month, dayOfMonth, dayOfYear; local [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
ChineseCalendar.java | 22 * calendar is a lunisolar calendar: Each month starts on a new moon, and 24 * guarantee that month 11 always contains the winter solstice. In order 26 * months are numbered the same as the month they follow. The decision of 27 * 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. 176 public ChineseCalendar(int year, int month, int isLeapMonth, int date) { 177 this(year, month, isLeapMonth, date, 0, 0, 0) 876 int month = synodicMonthsBetween(firstMoon, thisMoon); local [all...] |