Home
last modified time | relevance | path

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

12

/frameworks/opt/calendar/src/com/android/calendarcommon2/
DRecurrenceProcessor.java890 int month = usebymonth in expand() local
893 month--; in expand()
894 if (SPEW) Log.i(TAG, " month=" + month); in expand()
978 … generated.set(second, minute, hour, day, month, iteratorYear); in expand()
1127 int month = date.getMonth(); in unsafeNormalize() local
1151 int days = month > 1 ? yearLength(year) : yearLength(year - 1); in unsafeNormalize()
1156 if (month < 0) { in unsafeNormalize()
1157 int years = (month + 1) / 12 - 1; in unsafeNormalize()
1159 month -= 12 * years; in unsafeNormalize()
1160 } else if (month >= 12) { in unsafeNormalize()
[all …]
DTime.java65 private int month; field in Time
117 month = mCalendar.get(Calendar.MONTH); in readFieldsFromCalendar()
126 mCalendar.set(year, month, monthDay, hour, minute, second); in writeFieldsToCalendar()
156 public void set(int day, int month, int year) { in set() argument
158 mCalendar.set(year, month, day); in set()
162 public void set(int second, int minute, int hour, int day, int month, int year) { in set() argument
164 mCalendar.set(year, month, day, hour, minute, second); in set()
310 public void setMonth(int month) { in setMonth() argument
311 this.month = month; in setMonth()
312 mCalendar.set(Calendar.MONTH, month); in setMonth()
[all …]
/frameworks/base/core/java/android/app/
DDatePickerDialog.java91 int year, int month, int dayOfMonth) { in DatePickerDialog() argument
92 this(context, 0, listener, null, year, month, dayOfMonth); in DatePickerDialog()
152 public void onDateChanged(@NonNull DatePicker view, int year, int month, int dayOfMonth) { in onDateChanged() argument
153 mDatePicker.init(year, month, dayOfMonth, this); in onDateChanged()
201 public void updateDate(int year, int month, int dayOfMonth) { in updateDate() argument
202 mDatePicker.updateDate(year, month, dayOfMonth); in updateDate()
218 final int month = savedInstanceState.getInt(MONTH); in onRestoreInstanceState() local
220 mDatePicker.init(year, month, day, this); in onRestoreInstanceState()
245 void onDateSet(DatePicker view, int year, int month, int dayOfMonth); in onDateSet() argument
/frameworks/base/core/tests/coretests/src/android/text/format/
DTimeTest.java200 if (local.year != test.year2 || local.month != test.month2 in testNormalize1()
206 local.year, local.month, local.monthDay, local.hour, local.minute); in testNormalize1()
218 if (local.year != test.year2 || local.month != test.month2 in testNormalize1()
224 local.year, local.month, local.monthDay, local.hour, local.minute); in testNormalize1()
241 if (local.year != test.year2 || local.month != test.month2 in testNormalize1()
248 local.year, local.month, local.monthDay, local.hour, local.minute, in testNormalize1()
263 if (local.year != test.year2 || local.month != test.month2 in testNormalize1()
270 local.year, local.month, local.monthDay, local.hour, local.minute, in testNormalize1()
372 if (!t.allDay || t.year != 1980 || t.month != 04 || t.monthDay != 23) { in testParse33390()
377 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()
790 this.month = that.month; in set()
802 public void set(int second, int minute, int hour, int monthDay, int month, int year) { in set() argument
808 this.month = month; in set()
825 public void set(int monthDay, int month, int year) { in set() argument
831 this.month = month; in set()
[all …]
DDateFormat.java601 private static String getMonthString(DateFormatSymbols dfs, int month, int count, int kind) { in getMonthString() argument
605 return dfs.getMonths(monthContext, DateFormatSymbols.NARROW)[month]; in getMonthString()
607 return dfs.getMonths(monthContext, DateFormatSymbols.WIDE)[month]; in getMonthString()
609 return dfs.getMonths(monthContext, DateFormatSymbols.ABBREVIATED)[month]; in getMonthString()
612 return zeroPad(month+1, count); in getMonthString()
/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/base/core/java/android/widget/
DDatePickerCalendarDelegate.java255 final int month = mCurrentDate.get(Calendar.MONTH);
256 final int daysInMonth = getDaysInMonth(month, year);
368 public void init(int year, int month, int dayOfMonth, in init() argument
370 setDate(year, month, dayOfMonth); in init()
377 public void updateDate(int year, int month, int dayOfMonth) { in updateDate() argument
378 setDate(year, month, dayOfMonth); in updateDate()
382 private void setDate(int year, int month, int dayOfMonth) { in setDate() argument
384 mCurrentDate.set(Calendar.MONTH, month); in setDate()
535 final int month = mCurrentDate.get(Calendar.MONTH); in onSaveInstanceState() local
548 return new SavedState(superState, year, month, day, mMinDate.getTimeInMillis(), in onSaveInstanceState()
[all …]
DDayPickerPagerAdapter.java248 final int month = getMonthForPosition(position); in instantiateItem() local
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()
273 v.setMonthParams(selectedDay, month, year, mFirstDayOfWeek, in instantiateItem()
DDatePicker.java260 public void updateDate(int year, int month, int dayOfMonth) { in updateDate() argument
261 mDelegate.updateDate(year, month, dayOfMonth); in updateDate()
547 void updateDate(int year, int month, int dayOfMonth); in updateDate() argument
711 public SavedState(Parcelable superState, int year, int month, int day, long minDate, in SavedState() argument
713 this(superState, year, month, day, minDate, maxDate, 0, 0, 0); in SavedState()
719 public SavedState(Parcelable superState, int year, int month, int day, long minDate, in SavedState() argument
723 mSelectedMonth = month; in SavedState()
DDatePickerSpinnerDelegate.java162 public void onSelectedDayChange(CalendarView view, int year, int month, int monthDay) { in DatePickerSpinnerDelegate()
163 setDate(year, month, monthDay); in DatePickerSpinnerDelegate()
177 mMonthSpinner = (NumberPicker) mDelegator.findViewById(com.android.internal.R.id.month); in DatePickerSpinnerDelegate()
250 public void updateDate(int year, int month, int dayOfMonth) { in updateDate() argument
251 if (!isNewDate(year, month, dayOfMonth)) { in updateDate()
254 setDate(year, month, dayOfMonth); in updateDate()
499 private boolean isNewDate(int year, int month, int dayOfMonth) { in isNewDate() argument
501 || mCurrentDate.get(Calendar.MONTH) != month in isNewDate()
506 private void setDate(int year, int month, int dayOfMonth) { in setDate() argument
507 mCurrentDate.set(year, month, dayOfMonth); in setDate()
DCalendarViewMaterialDelegate.java137 final int month = day.get(Calendar.MONTH);
139 mOnDateChangeListener.onSelectedDayChange(mDelegator, year, month, dayOfMonth);
DSimpleMonthView.java743 private static boolean isValidMonth(int month) { in isValidMonth() argument
744 return month >= Calendar.JANUARY && month <= Calendar.DECEMBER; in isValidMonth()
797 void setMonthParams(int selectedDay, int month, int year, int weekStart, int enabledDayStart, in setMonthParams() argument
801 if (isValidMonth(month)) { in setMonthParams()
802 mMonth = month; in setMonthParams()
839 private static int getDaysInMonth(int month, int year) { in getDaysInMonth() argument
840 switch (month) { in getDaysInMonth()
DCalendarViewLegacyDelegate.java891 int month; in onScroll()
893 month = child.getMonthOfFirstWeekDay(); in onScroll()
895 month = child.getMonthOfLastWeekDay(); in onScroll()
900 if (mCurrentMonthDisplayed == 11 && month == 0) { in onScroll()
902 } else if (mCurrentMonthDisplayed == 0 && month == 11) { in onScroll()
905 monthDiff = month - mCurrentMonthDisplayed; in onScroll()
1109 public void setFocusMonth(int month) { in setFocusMonth() argument
1110 if (mFocusedMonth == month) { in setFocusMonth()
1113 mFocusedMonth = month; in setFocusMonth()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DMissedIncomingCallSmsFilter.java126 private long getEpochTime(String year, String month, String day, String hour, String minute) { in getEpochTime() argument
139 time = LocalDateTime.parse(year + month + day + hour + minute, formatter); in getEpochTime()
176 String year = null, month = null, day = null, hour = null, minute = null; in processSms() local
179 month = matcher.group(SMS_MONTH_TAG); in processSms()
184 Rlog.v(TAG, "month=" + month + ", day=" + day + ", hour=" + hour in processSms()
204 missedCallTime = getEpochTime(year, month, day, hour, minute); in processSms()
DNitzData.java88 int month = Integer.parseInt(nitzSubs[1]); in parse() local
96 long epochMillis = LocalDateTime.of(year, month, date, hour, minute, second) 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 calendar.set(Calendar.MONTH, month); in parse()
/frameworks/av/media/mtp/
DMtpUtils.cpp57 int year, month, day, hour, minute, second; in parseDateTime() local
59 &year, &month, &day, &hour, &minute, &second) != 6) in parseDateTime()
83 tm.tm_mon = month - 1; // mktime uses months in 0 - 11 range in parseDateTime()
/frameworks/base/telephony/java/android/telephony/
DSmsCbEtwsInfo.java185 int month = IccUtils.gsmBcdByteToInt(mWarningSecurityInformation[1]); in getPrimaryNotificationTimestamp() local
209 month /* 1-12 */, in getPrimaryNotificationTimestamp()
/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()
/frameworks/base/cmds/incident_helper/java/com/android/commands/incident/sections/
DPersistLogSection.java241 int month = getDigit(line, 0) * 10 + getDigit(line, 1); in getEpochSec() local
244 int mmdd = month * 100 + day; in getEpochSec()
247 calendar.set(Calendar.MONTH, (month + 12 - 1) % 12); in getEpochSec()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DDatePicker.java113 mMonthPicker = findViewById(R.id.month); in DatePicker()
297 private SavedState(Parcelable superState, int year, int month, int day, boolean hasYear, in SavedState() argument
301 mMonth = month; in SavedState()
/frameworks/base/core/tests/coretests/src/android/widget/
DDatePickerFocusTest.java232 private void assertDateIs(int month, final int day, final int year) throws Throwable { in assertDateIs() argument
233 final int monthInt = month - 1; // months are 0-based in assertDateIs()
/frameworks/rs/script_api/include/
Drs_time.rsh52 int tm_mday; // Day of the month. This ranges from 1 to 31.
73 * Converts the time specified by timer into a rs_tm structure that provides year, month,

12