Searched defs:month (Results 1 - 17 of 17) sorted by relevance

/frameworks/av/media/mtp/
H A DMtpUtils.cpp30 representation, YYYY shall be replaced by the year, MM replaced by the month (01-12),
37 int year, month, day, hour, minute, second; local
41 &year, &month, &day, &hour, &minute, &second) != 6)
58 tm.tm_mon = month - 1; // mktime uses months in 0 - 11 range
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/
H A DDatePickerController.java29 void onDayOfMonthSelected(int year, int month, int day); argument
H A DSimpleMonthAdapter.java55 int month; field in class:SimpleMonthAdapter.CalendarDay
68 month = calendar.get(Calendar.MONTH);
72 public CalendarDay(int year, int month, int day) { argument
73 setDay(year, month, day);
78 month = date.month;
82 public void setDay(int year, int month, int day) { argument
84 this.month = month;
101 month
202 isSelectedDayInMonth(int year, int month) argument
[all...]
H A DDatePickerDialog.java62 private static final String KEY_SELECTED_MONTH = "month";
119 * @param monthOfYear The month that was set (0-11) for compatibility
121 * @param dayOfMonth The day of the month that was set.
142 * @param monthOfYear The initial month of the dialog.
383 // If the newly selected month / year does not contain the currently selected day number,
384 // change the selected day number to the last day of the selected month or year.
387 private void adjustDayInMonthIfNeeded(int month, int year) { argument
389 int daysInMonth = Utils.getDaysInMonth(month, year);
415 public void onDayOfMonthSelected(int year, int month, int day) { argument
417 mCalendar.set(Calendar.MONTH, month);
[all...]
/frameworks/base/core/java/android/util/
H A DDayOfMonthCursor.java20 * Helps control and display a month view of a calendar that has a current
23 * <li>Keeps track of current month, day, year</li>
29 * This should be used by anyone who presents a month view to users and wishes
31 * mind about when to flip the month, we can change it here only.
42 * @param month The initial month.
48 public DayOfMonthCursor(int year, int month, int dayOfMonth, int weekStartDay) { argument
49 super(year, month, weekStartDay);
73 * @return 0 if the selection is in the current month, otherwise -1 or +1
96 * Move up one box, potentially flipping to the previous month
[all...]
H A DMonthDisplayHelper.java22 * Helps answer common questions that come up when displaying a month in a
32 // holds current month, year, helps compute display
43 * @param month The month.
46 public MonthDisplayHelper(int year, int month, int weekStartDay) { argument
55 mCalendar.set(Calendar.MONTH, month);
66 public MonthDisplayHelper(int year, int month) { argument
67 this(year, month, Calendar.SUNDAY);
85 * @return The first day of the month using a constants such as
93 * @return The number of days in the month
[all...]
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/
H A DUtils.java61 public static int getDaysInMonth(int month, int year) { argument
62 switch (month) {
/frameworks/base/core/java/android/app/
H A DDatePickerDialog.java43 private static final String MONTH = "month";
60 * @param monthOfYear The month that was set (0-11) for compatibility
62 * @param dayOfMonth The day of the month that was set.
71 * @param monthOfYear The initial month of the dialog.
87 * @param monthOfYear The initial month of the dialog.
120 int month, int day) {
121 mDatePicker.init(year, month, day, this);
122 updateTitle(year, month, day);
138 * @param monthOfYear The date month.
139 * @param dayOfMonth The date day of month
119 onDateChanged(DatePicker view, int year, int month, int day) argument
159 updateTitle(int year, int month, int day) argument
[all...]
/frameworks/base/core/jni/
H A DTime.cpp69 static inline int days_this_month(int year, int month) argument
71 int n = DAYS_PER_MONTH[month];
/frameworks/testing/uiautomator_test_libraries/src/com/android/uiautomator/common/helpers/
H A DDatePickerHelper.java133 // while accounting for number of days in month and considering
148 // Adjust month - increment or decrement using the shortest path
184 * Get the number of days in the month
186 * @param month
189 private static int getDaysInMonth(int year, int month) { argument
192 cal.set(Calendar.MONTH, month);
/frameworks/base/core/java/android/text/format/
H A DDateFormat.java187 * {@code ja_JP} where there is only one length of month.
253 int month = value.indexOf('M');
257 if (month >= 0 && day >= 0 && year >= 0) {
259 if (year < month && year < day) {
260 if (month < day) {
265 } else if (month < day) {
271 } else { // day < month
272 if (month < year) {
314 * not just the day, month, and year, and not necessarily in the same
537 private static String getMonthString(LocaleData ld, int month, in argument
[all...]
H A DDateUtils.java105 * This is not actually a useful month name in all locales.
219 * Return a localized string for the month of the year.
220 * @param month One of {@link Calendar#JANUARY Calendar.JANUARY},
226 * @return Localized month of the year.
230 public static String getMonthString(int month, int abbrev) { argument
241 return names[month];
597 int thenMonth = time.month;
602 && (thenMonth == time.month)
723 * month name will be shown, not the day of the month
[all...]
H A DTime.java74 * Day of month [1-31]
81 public int month; field in class:Time
239 int n = DAYS_PER_MONTH[this.month];
280 this.month = 0;
562 this.month = that.month;
574 public void set(int second, int minute, int hour, int monthDay, int month, int year) { argument
580 this.month = month;
593 * @param monthDay the day of the month (i
597 set(int monthDay, int month, int year) argument
[all...]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DDatePicker.java41 * A view for selecting a month / year / day based on a calendar like layout.
79 * @param monthOfYear The month that was set (0-11) for compatibility
81 * @param dayOfMonth The day of the month that was set.
113 mMonthPicker = (NumberPicker) findViewById(R.id.month);
119 * If the user is in a locale where the month names are numeric,
120 * use just the number instead of the "month" character for
139 /* We display the month 1-12 but store it 0-11 so always
143 // Adjust max day of the month
297 private SavedState(Parcelable superState, int year, int month, int day, boolean hasYear, argument
301 mMonth = month;
[all...]
/frameworks/opt/calendar/src/com/android/calendarcommon2/
H A DRecurrenceProcessor.java204 iterator.month + 1);
321 * Compute the day of the week for the first day of the month. "instance" has a
326 * (day of the month - 1) mod 7, and then make sure it's positive. We can simplify
341 * Generate a set according to the BYDAY rules. For each day of the month, determine
349 // For each month day, see if it's part of the set. (This makes some assumptions
433 int realMonth = iterator.month;
439 + " " + iterator.month
444 // if might be past the end of the month, we need to normalize it
449 realMonth = t.month;
452 Log.i(TAG, "normalized t=" + t + " " + t.month
1247 monthLength(int year, int month) argument
1264 weekDay(int year, int month, int day) argument
1280 yearDay(int year, int month, int day) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DDatePicker.java54 * year, month, and day spinners or a {@link CalendarView}. The set of spinners
137 * @param monthOfYear The month that was set (0-11) for compatibility
139 * @param dayOfMonth The day of the month that was set.
218 public void onSelectedDayChange(CalendarView view, int year, int month, int monthDay) {
219 setDate(year, month, monthDay);
232 // month
233 mMonthSpinner = (NumberPicker) findViewById(R.id.month);
497 * Tests whether the current locale is one where there are no real month names,
557 * @param month The month whic
560 updateDate(int year, int month, int dayOfMonth) argument
625 isNewDate(int year, int month, int dayOfMonth) argument
631 setDate(int year, int month, int dayOfMonth) argument
805 SavedState(Parcelable superState, int year, int month, int day) argument
[all...]
H A DCalendarView.java104 * Affects when the month selection will change while scrolling upe
228 * The name of the month to display.
248 * Which month should be displayed/highlighted [0-11].
288 * The first day of the focused month.
322 * @param month The month that was set [0-11].
323 * @param dayOfMonth The day of the month that was set.
325 public void onSelectedDayChange(CalendarView view, int year, int month, int dayOfMonth); argument
477 * Sets the color for the dates of the focused month.
479 * @param color The focused month dat
1427 setFocusMonth(int month) argument
[all...]

Completed in 430 milliseconds