/frameworks/base/core/java/android/util/ |
D | MonthDisplayHelper.java | 56 mCalendar.set(Calendar.MONTH, month); in MonthDisplayHelper() 77 return mCalendar.get(Calendar.MONTH); in getMonth() 165 mCalendar.add(Calendar.MONTH, -1); in previousMonth() 173 mCalendar.add(Calendar.MONTH, 1); in nextMonth() 203 mCalendar.add(Calendar.MONTH, -1); in recalculate() 205 mCalendar.add(Calendar.MONTH, 1); in recalculate()
|
/frameworks/base/core/tests/coretests/src/android/text/format/ |
D | DateIntervalFormatTest.java | 59 private static final long MONTH = 31 * DAY; field in DateIntervalFormatTest 60 private static final long YEAR = 12 * MONTH; 68 c.set(Calendar.MONTH, Calendar.JANUARY); in test_formatDateInterval() 142 formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * MONTH, in test_formatDateInterval() 153 formatDateRange(de_DE, tz, fixedTime, fixedTime + 3 * MONTH, in test_formatDateInterval() 165 formatDateRange(es_US, tz, fixedTime, fixedTime + 3 * MONTH, in test_formatDateInterval() 177 formatDateRange(es_ES, tz, fixedTime, fixedTime + 3 * MONTH, in test_formatDateInterval() 196 formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * MONTH, 0)); in test_formatDateInterval() 198 formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * MONTH, in test_formatDateInterval() 201 formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * MONTH, in test_formatDateInterval() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | DayPickerPagerAdapter.java | 83 final int diffMonth = mMaxDate.get(Calendar.MONTH) - mMinDate.get(Calendar.MONTH); in setRange() 205 return (position + mMinDate.get(Calendar.MONTH)) % MONTHS_IN_YEAR; in getMonthForPosition() 209 final int yearOffset = (position + mMinDate.get(Calendar.MONTH)) / MONTHS_IN_YEAR; in getYearForPosition() 219 final int monthOffset = day.get(Calendar.MONTH) - mMinDate.get(Calendar.MONTH); in getPositionForDay() 252 if (mSelectedDay != null && mSelectedDay.get(Calendar.MONTH) == month && mSelectedDay.get( in instantiateItem() 260 if (mMinDate.get(Calendar.MONTH) == month && mMinDate.get(Calendar.YEAR) == year) { in instantiateItem() 267 if (mMaxDate.get(Calendar.MONTH) == month && mMaxDate.get(Calendar.YEAR) == year) { in instantiateItem()
|
D | DatePickerSpinnerDelegate.java | 137 mTempDate.add(Calendar.MONTH, 1); in DatePickerSpinnerDelegate() 139 mTempDate.add(Calendar.MONTH, -1); in DatePickerSpinnerDelegate() 141 mTempDate.add(Calendar.MONTH, newVal - oldVal); in DatePickerSpinnerDelegate() 149 setDate(mTempDate.get(Calendar.YEAR), mTempDate.get(Calendar.MONTH), in DatePickerSpinnerDelegate() 224 init(mCurrentDate.get(Calendar.YEAR), mCurrentDate.get(Calendar.MONTH), mCurrentDate in DatePickerSpinnerDelegate() 267 return mCurrentDate.get(Calendar.MONTH); in getMonth() 413 mNumberOfMonths = mTempDate.getActualMaximum(Calendar.MONTH) + 1; in setCurrentLocale() 501 || mCurrentDate.get(Calendar.MONTH) != month in isNewDate() 524 mMonthSpinner.setMinValue(mCurrentDate.get(Calendar.MONTH)); in updateSpinners() 525 mMonthSpinner.setMaxValue(mCurrentDate.getActualMaximum(Calendar.MONTH)); in updateSpinners() [all …]
|
D | DatePickerCalendarDelegate.java | 256 final int month = mCurrentDate.get(Calendar.MONTH); 389 mCurrentDate.set(Calendar.MONTH, month); in setDate() 399 final int monthOfYear = mCurrentDate.get(Calendar.MONTH); in onDateChanged() 426 return mCurrentDate.get(Calendar.MONTH); in getMonth() 540 final int month = mCurrentDate.get(Calendar.MONTH); in onSaveInstanceState()
|
D | CalendarViewLegacyDelegate.java | 703 selectedDay.get(Calendar.MONTH), in setUpAdapter() 931 mCurrentMonthDisplayed = calendar.get(Calendar.MONTH); in setMonthDisplayed() 1056 mFocusedMonth = mSelectedDate.get(Calendar.MONTH); in setSelectedDay() 1265 mMonthOfFirstWeekDay = mTempDate.get(Calendar.MONTH); in init() 1269 final boolean isFocusedDay = (mTempDate.get(Calendar.MONTH) == focusedMonth); in init() 1287 mLastWeekDayMonth = mTempDate.get(Calendar.MONTH); in init() 1378 && (date.get(Calendar.MONTH) == currDay.get(Calendar.MONTH)) in getBoundsForDate()
|
D | CalendarViewMaterialDelegate.java | 137 final int month = day.get(Calendar.MONTH);
|
D | DayPickerView.java | 382 return end.get(Calendar.MONTH) - start.get(Calendar.MONTH) + 12 * diffYears;
|
D | SimpleMonthView.java | 815 mCalendar.set(Calendar.MONTH, mMonth); in setMonthParams() 871 return mYear == today.get(Calendar.YEAR) && mMonth == today.get(Calendar.MONTH) in sameDay()
|
D | DatePicker.java | 653 updateDate(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH), in autofill()
|
/frameworks/base/core/java/android/app/ |
D | DatePickerDialog.java | 48 private static final String MONTH = "month"; field in DatePickerDialog 130 monthOfYear = calendar.get(Calendar.MONTH); in DatePickerDialog() 209 state.putInt(MONTH, mDatePicker.getMonth()); in onSaveInstanceState() 218 final int month = savedInstanceState.getInt(MONTH); in onRestoreInstanceState()
|
/frameworks/base/core/java/android/text/format/ |
D | DateUtilsBridge.java | 177 || c1.get(Calendar.MONTH) != c2.get(Calendar.MONTH) in fallOnDifferentDates() 182 return c1.get(Calendar.MONTH) == c2.get(Calendar.MONTH); in fallInSameMonth()
|
D | DateUtils.java | 510 && thenCal.get(Calendar.MONTH) == nowCal.get(Calendar.MONTH) in formatSameDayTime()
|
D | DateFormat.java | 131 public static final char MONTH = 'M'; field in DateFormat 557 replacement = getMonthString(dfs, inDate.get(Calendar.MONTH), count, c); in format()
|
D | Time.java | 149 public static final int MONTH = 5; field in Time 277 case MONTH: in getActualMaximum()
|
/frameworks/opt/calendar/src/com/android/calendarcommon2/ |
D | Time.java | 48 public static final int MONTH = 5; field in Time 117 month = mCalendar.get(Calendar.MONTH); in readFieldsFromCalendar() 196 case MONTH: return Calendar.MONTH; in getCalendarField() 307 return mCalendar.get(Calendar.MONTH); in getMonth() 312 mCalendar.set(Calendar.MONTH, month); in setMonth()
|
D | RecurrenceProcessor.java | 796 freqField = Time.MONTH; in expand() 821 if (freqField == Time.MONTH) { in expand() 1076 case Time.MONTH: in expand() 1087 if (freqField != Time.YEAR && freqField != Time.MONTH) { in expand()
|
/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/ |
D | DatePicker.java | 187 init(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH), cal.get(Calendar.DAY_OF_MONTH), null); in DatePicker() 249 } else if ((c == DateFormat.MONTH || c == 'L') && !didMonth) { in reorderPickers() 461 cal.set(Calendar.MONTH, mMonth); in adjustMaxDay()
|
/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/ |
D | RecurrenceProcessorTest.java | 2505 date.add(Time.MONTH, 1); in performanceTestNormalize() 2508 date.add(Time.MONTH, -1); in performanceTestNormalize() 2522 date.add(Time.MONTH, 1); in performanceTestNormalize() 2525 date.add(Time.MONTH, -1); in performanceTestNormalize()
|
D | TimeTest.java | 64 assertEquals(11, t.getActualMaximum(Time.MONTH)); in testGetActualMaximum() 83 t.add(Time.MONTH, 1); in testAdd()
|
/frameworks/base/core/java/android/webkit/ |
D | DateSorter.java | 67 c.add(Calendar.MONTH, -1); in DateSorter()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/analytics/ |
D | TelephonyAnalyticsUtil.java | 184 cutoffDate.add(Calendar.MONTH, -1 * CUTOFF_MONTHS); in getCutoffDate()
|
/frameworks/ex/common/java/com/android/common/ |
D | LegacyHttpDateTime.java | 114 calendar.set(Calendar.MONTH, month); in parse()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/ |
D | ResponseData.java | 248 data[2] = byteToBCD(mCalendar.get(java.util.Calendar.MONTH) + 1); in format()
|
/frameworks/base/cmds/incident_helper/java/com/android/commands/incident/sections/ |
D | PersistLogSection.java | 247 calendar.set(Calendar.MONTH, (month + 12 - 1) % 12); in getEpochSec()
|