Home
last modified time | relevance | path

Searched refs:month (Results 1 – 25 of 68) sorted by relevance

123

/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/
DMonthAdapter.java54 int month; field in MonthAdapter.CalendarDay
67 month = calendar.get(Calendar.MONTH); in CalendarDay()
71 public CalendarDay(int year, int month, int day) { in CalendarDay() argument
72 setDay(year, month, day); in CalendarDay()
77 month = date.month; in set()
81 public void setDay(int year, int month, int day) { in setDay() argument
83 this.month = month; in setDay()
100 month = calendar.get(Calendar.MONTH); in setTime()
110 return month; in getMonth()
191 final int month = position % MONTHS_IN_YEAR; in getView() local
[all …]
DDayPickerView.java187 * MonthAdapter.MONTHS_IN_YEAR + day.month; in goTo()
272 mCurrentMonthDisplayed = date.month; in setMonthDisplayed()
442 cal.set(day.year, day.month, day.day); in getMonthAndYearString()
475 int month = firstVisiblePosition % 12; in performAccessibilityAction() local
477 CalendarDay day = new CalendarDay(year, month, 1); in performAccessibilityAction()
481 day.month++; in performAccessibilityAction()
482 if (day.month == 12) { in performAccessibilityAction()
483 day.month = 0; in performAccessibilityAction()
493 day.month--; in performAccessibilityAction()
494 if (day.month == -1) { in performAccessibilityAction()
[all …]
DMonthView.java410 mMonth == today.month && in sameDay()
517 public abstract void drawMonthDay(Canvas canvas, int year, int month, int day, in drawMonthDay() argument
590 protected boolean isOutOfRange(int year, int month, int day) { in isOutOfRange() argument
591 if (isBeforeMin(year, month, day)) { in isOutOfRange()
593 } else if (isAfterMax(year, month, day)) { in isOutOfRange()
600 private boolean isBeforeMin(int year, int month, int day) { in isBeforeMin() argument
615 if (month < minDate.get(Calendar.MONTH)) { in isBeforeMin()
617 } else if (month > minDate.get(Calendar.MONTH)) { in isBeforeMin()
628 private boolean isAfterMax(int year, int month, int day) { in isAfterMax() argument
643 if (month > maxDate.get(Calendar.MONTH)) { in isAfterMax()
[all …]
DSimpleMonthView.java31 public void drawMonthDay(Canvas canvas, int year, int month, int day, in drawMonthDay() argument
39 if (isOutOfRange(year, month, day)) { in drawMonthDay()
DDatePickerController.java31 void onDayOfMonthSelected(int year, int month, int day); in onDayOfMonthSelected() argument
/frameworks/opt/calendar/src/com/android/calendarcommon2/
DRecurrenceProcessor.java204 iterator.month + 1); in filter()
433 int realMonth = iterator.month; in get()
439 + " " + iterator.month in get()
449 realMonth = t.month; in get()
452 Log.i(TAG, "normalized t=" + t + " " + t.month in get()
469 Log.i(TAG, "set t=" + t + " " + t.month in get()
880 int iteratorMonth = iterator.month + 1; in expand()
892 int month = usebymonth in expand() local
895 month--; in expand()
896 if (SPEW) Log.i(TAG, " month=" + month); in expand()
[all …]
/frameworks/base/core/java/android/app/
DDatePickerDialog.java124 public void onDateChanged(DatePicker view, int year, int month, int day) { in onDateChanged() argument
125 mDatePicker.init(year, month, day, this); in onDateChanged()
126 updateTitle(year, month, day); in onDateChanged()
167 private void updateTitle(int year, int month, int day) { in updateTitle() argument
170 mCalendar.set(Calendar.MONTH, month); in updateTitle()
202 final int month = savedInstanceState.getInt(MONTH); in onRestoreInstanceState() local
204 mDatePicker.init(year, month, day, this); in onRestoreInstanceState()
/frameworks/base/core/tests/coretests/src/android/text/format/
DTimeTest.java190 if (local.year != test.year2 || local.month != test.month2 in testNormalize1()
196 local.year, local.month, local.monthDay, local.hour, local.minute); in testNormalize1()
208 if (local.year != test.year2 || local.month != test.month2 in testNormalize1()
214 local.year, local.month, local.monthDay, local.hour, local.minute); in testNormalize1()
231 if (local.year != test.year2 || local.month != test.month2 in testNormalize1()
238 local.year, local.month, local.monthDay, local.hour, local.minute, in testNormalize1()
253 if (local.year != test.year2 || local.month != test.month2 in testNormalize1()
260 local.year, local.month, local.monthDay, local.hour, local.minute, in testNormalize1()
362 if (!t.allDay || t.year != 1980 || t.month != 04 || t.monthDay != 23) { in testParse33390()
367 if (t.allDay || t.year != 1980 || t.month != 04 || t.monthDay != 23 || in testParse33390()
[all …]
/frameworks/base/core/java/android/text/format/
DTime.java104 public int month; field in Time
269 int n = DAYS_PER_MONTH[this.month]; in getActualMaximum()
310 this.month = 0; in clear()
442 month = n; in parseInternal()
573 month = n; in parse3339Internal()
791 this.month = that.month; in set()
803 public void set(int second, int minute, int hour, int monthDay, int month, int year) { in set() argument
809 this.month = month; in set()
826 public void set(int monthDay, int month, int year) { in set() argument
832 this.month = month; in set()
[all …]
DDateFormat.java544 private static String getMonthString(LocaleData ld, int month, int count, int kind) { in getMonthString() argument
547 return standalone ? ld.tinyStandAloneMonthNames[month] : ld.tinyMonthNames[month]; in getMonthString()
549 return standalone ? ld.longStandAloneMonthNames[month] : ld.longMonthNames[month]; in getMonthString()
551 return standalone ? ld.shortStandAloneMonthNames[month] : ld.shortMonthNames[month]; in getMonthString()
554 return zeroPad(month+1, count); in getMonthString()
DDateUtils.java231 public static String getMonthString(int month, int abbrev) { in getMonthString() argument
242 return names[month]; in getMonthString()
472 int thenMonth = time.month; in isToday()
477 && (thenMonth == time.month) in isToday()
/frameworks/base/core/java/com/android/internal/http/
DHttpDateTime.java89 int month = Calendar.JANUARY; in parse() local
96 month = getMonth(rfcMatcher.group(2)); in parse()
102 month = getMonth(ansicMatcher.group(1)); in parse()
114 month = Calendar.JANUARY; in parse()
120 month, year); in parse()
/frameworks/ex/common/java/com/android/common/
DLegacyHttpDateTime.java89 int month = Calendar.JANUARY; in parse() local
96 month = getMonth(rfcMatcher.group(2)); in parse()
102 month = getMonth(ansicMatcher.group(1)); in parse()
114 month = Calendar.JANUARY; in parse()
120 month, year); in parse()
/frameworks/base/core/java/android/util/
DMonthDisplayHelper.java46 public MonthDisplayHelper(int year, int month, int weekStartDay) { in MonthDisplayHelper() argument
55 mCalendar.set(Calendar.MONTH, month); in MonthDisplayHelper()
66 public MonthDisplayHelper(int year, int month) { in MonthDisplayHelper() argument
67 this(year, month, Calendar.SUNDAY); in MonthDisplayHelper()
DDayOfMonthCursor.java48 public DayOfMonthCursor(int year, int month, int dayOfMonth, int weekStartDay) { in DayOfMonthCursor() argument
49 super(year, month, weekStartDay); in DayOfMonthCursor()
/frameworks/av/media/mtp/
DMtpUtils.cpp38 int year, month, day, hour, minute, second; in parseDateTime() local
42 &year, &month, &day, &hour, &minute, &second) != 6) in parseDateTime()
59 tm.tm_mon = month - 1; // mktime uses months in 0 - 11 range in parseDateTime()
/frameworks/base/core/java/android/widget/
DDatePicker.java186 public void updateDate(int year, int month, int dayOfMonth) { in updateDate() argument
187 mDelegate.updateDate(year, month, dayOfMonth); in updateDate()
448 void updateDate(int year, int month, int dayOfMonth); in updateDate() argument
661 … public void onSelectedDayChange(CalendarView view, int year, int month, int monthDay) { in DatePickerSpinnerDelegate()
662 setDate(year, month, monthDay); in DatePickerSpinnerDelegate()
676 mMonthSpinner = (NumberPicker) mDelegator.findViewById(R.id.month); in DatePickerSpinnerDelegate()
748 public void updateDate(int year, int month, int dayOfMonth) { in updateDate() argument
749 if (!isNewDate(year, month, dayOfMonth)) { in updateDate()
752 setDate(year, month, dayOfMonth); in updateDate()
1000 private boolean isNewDate(int year, int month, int dayOfMonth) { in isNewDate() argument
[all …]
DDatePickerCalendarDelegate.java259 final int month = mCurrentDate.get(Calendar.MONTH);
260 final int daysInMonth = getDaysInMonth(month, year);
374 public void updateDate(int year, int month, int dayOfMonth) { in updateDate() argument
376 mCurrentDate.set(Calendar.MONTH, month); in updateDate()
520 final int month = mCurrentDate.get(Calendar.MONTH); in onSaveInstanceState() local
533 return new SavedState(superState, year, month, day, mMinDate.getTimeInMillis(), in onSaveInstanceState()
577 public static int getDaysInMonth(int month, int year) { in getDaysInMonth() argument
578 switch (month) { in getDaysInMonth()
619 private SavedState(Parcelable superState, int year, int month, int day, in SavedState() argument
624 mSelectedMonth = month; in SavedState()
DDayPickerPagerAdapter.java232 final int month = getMonthForPosition(position); in instantiateItem() local
236 if (mSelectedDay != null && mSelectedDay.get(Calendar.MONTH) == month) { in instantiateItem()
243 if (mMinDate.get(Calendar.MONTH) == month && mMinDate.get(Calendar.YEAR) == year) { in instantiateItem()
250 if (mMaxDate.get(Calendar.MONTH) == month && mMaxDate.get(Calendar.YEAR) == year) { in instantiateItem()
256 v.setMonthParams(selectedDay, month, year, mFirstDayOfWeek, in instantiateItem()
DCalendarViewMaterialDelegate.java118 final int month = day.get(Calendar.MONTH);
120 mOnDateChangeListener.onSelectedDayChange(mDelegator, year, month, dayOfMonth);
DSimpleMonthView.java483 private static boolean isValidMonth(int month) { in isValidMonth() argument
484 return month >= Calendar.JANUARY && month <= Calendar.DECEMBER; in isValidMonth()
535 void setMonthParams(int selectedDay, int month, int year, int weekStart, int enabledDayStart, in setMonthParams() argument
539 if (isValidMonth(month)) { in setMonthParams()
540 mMonth = month; in setMonthParams()
576 private static int getDaysInMonth(int month, int year) { in getDaysInMonth() argument
577 switch (month) { in getDaysInMonth()
/frameworks/opt/telephony/src/java/android/telephony/
DSmsCbEtwsInfo.java137 int month = IccUtils.gsmBcdByteToInt(mWarningSecurityInformation[1]); in getPrimaryNotificationTimestamp() local
159 time.month = month - 1; in getPrimaryNotificationTimestamp()
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/
DUtils.java61 public static int getDaysInMonth(int month, int year) { in getDaysInMonth() argument
62 switch (month) { in getDaysInMonth()
/frameworks/base/core/java/android/net/
DNetworkPolicyManager.java234 lastMonth.month -= 1; in computeLastCycleBoundary()
264 nextMonth.month += 1; in computeNextCycleBoundary()
283 time.month += 1; in snapToCycleDay()
/frameworks/base/core/java/android/text/style/
DTtsSpan.java1158 Integer month, in DateBuilder() argument
1167 if (month != null) { in DateBuilder()
1168 setMonth(month); in DateBuilder()
1202 public DateBuilder setMonth(int month) { in setMonth() argument
1203 return setIntArgument(TtsSpan.ARG_MONTH, month); in setMonth()

123