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

/packages/apps/Calendar/tests/src/com/android/calendar/
H A DWeekNumberTest.java37 public DateAndWeekNumber(int year, int month, int day, int expectedWeekNumber) { argument
41 date.set(0, 0, 0, day, month, year);
44 allDayDate.set(day, month, year);
H A DUtilsTests.java141 int month, int year) {
142 return createTimeInMillis(second, minute, hour, monthDay, month, year,
147 int month, int year, String timezone) {
149 t.set(second, minute, hour, monthDay, month, year);
140 createTimeInMillis(int second, int minute, int hour, int monthDay, int month, int year) argument
146 createTimeInMillis(int second, int minute, int hour, int monthDay, int month, int year, String timezone) argument
/packages/apps/Calendar/tests/src/com/android/calendar/alerts/
H A DUtils.java23 int month, int year, String timezone) {
25 t.set(second, minute, hour, monthDay, month, year);
22 createTimeInMillis(int second, int minute, int hour, int monthDay, int month, int year, String timezone) argument
/packages/apps/Calendar/src/com/android/calendar/
H A DDayOfMonthCursor.java22 * Helps control and display a month view of a calendar that has a current
25 * <li>Keeps track of current month, day, year</li>
31 * This should be used by anyone who presents a month view to users and wishes
33 * mind about when to flip the month, we can change it here only.
44 * @param month The initial month.
50 public DayOfMonthCursor(int year, int month, int dayOfMonth, int weekStartDay) { argument
51 super(year, month, weekStartDay);
75 * @return 0 if the selection is in the current month, otherwise -1 or +1
98 * Move up one box, potentially flipping to the previous month
[all...]
/packages/apps/Contacts/src/com/android/contacts/util/
H A DDateUtils.java112 private static final Calendar getUtcDate(int year, int month, int dayOfMonth) { argument
116 calendar.set(Calendar.MONTH, month);
200 * determine whether the month field should be displayed before the day field, and returns
/packages/apps/Email/tests/src/com/android/emailcommon/utility/
H A DUtilityTest.java36 private void testParseDateTimesHelper(String date, int year, int month, argument
40 assertEquals(month, cal.get(Calendar.MONTH) + 1);
59 private void testParseEmailDateTimeHelper(String date, int year, int month, argument
61 GregorianCalendar cal = new GregorianCalendar(year, month - 1, day,
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
H A DSimpleDate.java26 * Represents a date (year, month, day)
30 public int month; // MM field in class:SimpleDate
50 this.month = sCalendarInstance.get(Calendar.MONTH);
63 result = prime * result + month;
83 if (month != other.month) {
98 int monthDiff = this.month - other.getMonth();
112 return month;
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/ui/
H A DDateTileView.java91 public void setDate(int date, int month, int year) { argument
98 if (month == mMonth) {
102 if (month != mMonth) {
103 mMonth = month;
/packages/apps/Settings/src/com/android/settings/datetime/
H A DDatePreferenceController.java82 public void onDateSet(DatePicker view, int year, int month, int day) { argument
83 setDate(year, month, day);
106 void setDate(int year, int month, int day) { argument
110 c.set(Calendar.MONTH, month);
/packages/apps/Calendar/src/com/android/calendar/month/
H A DSimpleWeeksAdapter.java17 package com.android.calendar.month;
57 * Which month should be in focus currently.
248 * Changes which month is in focus and updates the view.
250 * @param month The month to show as in focus [0-11]
252 public void updateFocusMonth(int month) { argument
253 mFocusMonth = month;
H A DMonthListView.java17 package com.android.calendar.month;
38 // behavior. Between MIN_VELOCITY_FOR_FLING and MULTIPLE_MONTH_VELOCITY_THRESHOLD, do one month
39 // fling. Above MULTIPLE_MONTH_VELOCITY_THRESHOLD, do multiple month flings according to the
40 // fling strength. When doing multiple month fling, the velocity is reduced by this threshold
41 // to prevent moving from one month fling to 4 months and above flings.
131 // Do a "snap to start of month" fling
139 // Below the threshold, fling one month. Above the threshold , fling
147 // detected the list moved back one month.
162 // Get the day of the first day of the next/previous month
166 mTempTime.month
[all...]
H A DMonthByWeekAdapter.java17 package com.android.calendar.month;
291 // If agenda view is visible with month view , refresh the views
H A DMonthByWeekFragment.java17 package com.android.calendar.month;
245 // Synchronized the loading time of the month's events with the animation of the
460 if (time.year == mDesiredDay.year && time.month == mDesiredDay.month) {
H A DSimpleDayPickerFragment.java17 package com.android.calendar.month;
53 * easily display a month selection component in a given style.
61 // Affects when the month selection will change while scrolling up
70 // The size of the month name displayed above the week list
105 // The first day of the focus month
109 // The name of the month to display
113 // which month should be displayed/highlighted [0-11]
239 // set the title to the month of the second week
365 * in range it will move the list so that the first of the month containing
441 // and if so scroll to the month tha
[all...]
H A DSimpleWeekView.java17 package com.android.calendar.month;
82 * Which month is currently in focus, as defined by {@link Time#month}
87 * If this month should display week numbers. false if 0, true otherwise.
120 // Quick lookup for checking which days are in the focus month
122 // Quick lookup for checking which days are in an odd month (to set a different background)
126 // The month of the first day in this week
128 // The month of the last day in this week
204 * will only update if a new value is included, except for focus month,
205 * which will always default to no focus month i
[all...]
H A DMonthWeekEventsView.java17 package com.android.calendar.month;
255 // divided up by day for generating the large month version and the full
/packages/apps/Contacts/src/com/android/contacts/datepicker/
H A DDatePickerDialog.java50 private static final String MONTH = "month";
71 * @param monthOfYear The month that was set (0-11) for compatibility
73 * @param dayOfMonth The day of the month that was set.
83 * @param monthOfYear The initial month of the dialog.
104 * @param monthOfYear The initial month of the dialog.
149 public void onDateChanged(DatePicker view, int year, int month, int day) { argument
150 updateTitle(year, month, day);
153 private void updateTitle(int year, int month, int day) { argument
156 calendar.set(Calendar.MONTH, month);
177 int month
[all...]
H A DDatePicker.java46 * A view for selecting a month / year / day based on a calendar like layout.
87 * @param monthOfYear The month that was set (0-11) for compatibility
89 * @param dayOfMonth The day of the month that was set.
120 mMonthPicker = (NumberPicker) findViewById(R.id.month);
126 * If the user is in a locale where the month names are numeric,
127 * use just the number instead of the "month" character for
147 /* We display the month 1-12 but store it 0-11 so always
151 // Adjust max day of the month
255 private SavedState(Parcelable superState, int year, int month, int day, boolean hasYear, argument
259 mMonth = month;
[all...]
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/datetime/
H A DDateTime.java35 private final int month; field in class:DateTime
42 public DateTime(String yearString, int month, int day, int hour, int minute, int second, int timeZone) { argument
44 this.date = convertToDate(year, month, day, hour, minute, second, timeZone);
45 this.month = month;
69 public static Date convertToDate(int year, int month, int day, int hour, int minute, int second, int timeZone) { argument
71 c.set(year, month - 1, day, hour, minute, second);
91 return month;
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/datetime/parser/
H A DDateTimeParser.java101 private int month; field in class:DateTimeParser.Date
104 public Date(String year, int month, int day) { argument
106 this.month = month;
111 public int getMonth() { return month; }
205 m = month();
218 final public int month() throws ParseException { method in class:DateTimeParser
/packages/apps/Calendar/src/com/android/calendar/event/
H A DEditEventView.java338 public void onDateSet(DatePickerDialog view, int year, int month, int monthDay) { argument
339 Log.d(TAG, "onDateSet: " + year + " " + month + " " + monthDay);
352 int monthDuration = endTime.month - startTime.month;
356 startTime.month = month;
362 endTime.month = month + monthDuration;
375 endTime.month = month;
[all...]

Completed in 357 milliseconds