Home
last modified time | relevance | path

Searched refs:MONTH (Results 1 – 25 of 32) sorted by relevance

12

/frameworks/base/core/java/android/util/
DMonthDisplayHelper.java56 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/
DDateIntervalFormatTest.java59 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/
DDayPickerPagerAdapter.java83 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()
DDatePickerSpinnerDelegate.java137 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 …]
DDatePickerCalendarDelegate.java256 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()
DCalendarViewLegacyDelegate.java703 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()
DCalendarViewMaterialDelegate.java137 final int month = day.get(Calendar.MONTH);
DDayPickerView.java382 return end.get(Calendar.MONTH) - start.get(Calendar.MONTH) + 12 * diffYears;
DSimpleMonthView.java815 mCalendar.set(Calendar.MONTH, mMonth); in setMonthParams()
871 return mYear == today.get(Calendar.YEAR) && mMonth == today.get(Calendar.MONTH) in sameDay()
DDatePicker.java653 updateDate(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH), in autofill()
/frameworks/base/core/java/android/app/
DDatePickerDialog.java48 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/
DDateUtilsBridge.java177 || c1.get(Calendar.MONTH) != c2.get(Calendar.MONTH) in fallOnDifferentDates()
182 return c1.get(Calendar.MONTH) == c2.get(Calendar.MONTH); in fallInSameMonth()
DDateUtils.java510 && thenCal.get(Calendar.MONTH) == nowCal.get(Calendar.MONTH) in formatSameDayTime()
DDateFormat.java131 public static final char MONTH = 'M'; field in DateFormat
557 replacement = getMonthString(dfs, inDate.get(Calendar.MONTH), count, c); in format()
DTime.java149 public static final int MONTH = 5; field in Time
277 case MONTH: in getActualMaximum()
/frameworks/opt/calendar/src/com/android/calendarcommon2/
DTime.java48 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()
DRecurrenceProcessor.java796 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/
DDatePicker.java187 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/
DRecurrenceProcessorTest.java2505 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()
DTimeTest.java64 assertEquals(11, t.getActualMaximum(Time.MONTH)); in testGetActualMaximum()
83 t.add(Time.MONTH, 1); in testAdd()
/frameworks/base/core/java/android/webkit/
DDateSorter.java67 c.add(Calendar.MONTH, -1); in DateSorter()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/analytics/
DTelephonyAnalyticsUtil.java184 cutoffDate.add(Calendar.MONTH, -1 * CUTOFF_MONTHS); in getCutoffDate()
/frameworks/ex/common/java/com/android/common/
DLegacyHttpDateTime.java114 calendar.set(Calendar.MONTH, month); in parse()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
DResponseData.java248 data[2] = byteToBCD(mCalendar.get(java.util.Calendar.MONTH) + 1); in format()
/frameworks/base/cmds/incident_helper/java/com/android/commands/incident/sections/
DPersistLogSection.java247 calendar.set(Calendar.MONTH, (month + 12 - 1) % 12); in getEpochSec()

12