Home
last modified time | relevance | path

Searched refs:day (Results 1 – 25 of 40) sorted by relevance

12

/packages/apps/Calendar/src/com/android/calendar/month/
DMonthByWeekAdapter.java288 protected void onDayTapped(Time day) { in onDayTapped() argument
289 setDayParameters(day); in onDayTapped()
293 mController.sendEvent(mContext, EventType.GO_TO, day, day, -1, in onDayTapped()
297 mController.sendEvent(mContext, EventType.GO_TO, day, day, -1, in onDayTapped()
304 private void setDayParameters(Time day) { in setDayParameters() argument
305 day.timezone = mHomeTimeZone; in setDayParameters()
308 day.hour = currTime.hour; in setDayParameters()
309 day.minute = currTime.minute; in setDayParameters()
310 day.allDay = false; in setDayParameters()
311 day.normalize(true); in setDayParameters()
[all …]
DSimpleWeeksAdapter.java261 Time day = ((SimpleWeekView)v).getDayFromLocation(event.getX()); in onTouch() local
263 Log.d(TAG, "Touched day at Row=" + view.mWeek + " day=" + day.toString()); in onTouch()
265 if (day != null) { in onTouch()
266 onDayTapped(day); in onTouch()
278 protected void onDayTapped(Time day) { in onDayTapped() argument
279 day.hour = mSelectedDay.hour; in onDayTapped()
280 day.minute = mSelectedDay.minute; in onDayTapped()
281 day.second = mSelectedDay.second; in onDayTapped()
282 setSelectedDay(day); in onDayTapped()
DMonthWeekEventsView.java290 for (int day = 0; day < numDays; day++) { in createDna()
291 mDayXs[day] = computeDayLeftPosition(day) + DNA_WIDTH / 2 + DNA_SIDE_PADDING; in createDna()
575 private int computeDayLeftPosition(int day) { in computeDayLeftPosition() argument
583 x = day * effectiveWidth / mNumDays + xOffset; in computeDayLeftPosition()
725 int day = -1; in drawEvents() local
727 day++; in drawEvents()
732 int xSquare = computeDayLeftPosition(day) + SIDE_PADDING_MONTH_NUMBER + 1; in drawEvents()
733 int rightEdge = computeDayLeftPosition(day + 1); in drawEvents()
1036 int day = mFirstJulianDay + dayPosition; in getDayFromLocation() local
1041 if (day < Time.EPOCH_JULIAN_DAY) { in getDayFromLocation()
[all …]
DMonthListView.java161 int day = getUpperRightJulianDay(); in doFling() local
164 mTempTime.setJulianDay(day); in doFling()
181 int viewsToFling = (scrollToDay - day) / 7 - ((monthsToJump <= 0) ? 1 : 0); in doFling()
DSimpleWeekView.java375 int day = mFirstJulianDay + dayPosition; in getDayFromLocation() local
380 if (day < Time.EPOCH_JULIAN_DAY) { in getDayFromLocation()
381 day++; in getDayFromLocation()
382 } else if (day == Time.EPOCH_JULIAN_DAY) { in getDayFromLocation()
389 time.setJulianDay(day); in getDayFromLocation()
/packages/services/Telephony/src/org/apache/james/mime4j/field/datetime/
DDateTime.java36 private final int day; field in DateTime
42 …public DateTime(String yearString, int month, int day, int hour, int minute, int second, int timeZ… in DateTime() argument
44 this.date = convertToDate(year, month, day, hour, minute, second, timeZone); in DateTime()
46 this.day = day; in DateTime()
69 …public static Date convertToDate(int year, int month, int day, int hour, int minute, int second, i… in convertToDate() argument
71 c.set(year, month - 1, day, hour, minute, second); in convertToDate()
95 return day; in getDay()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/datetime/
DDateTime.java36 private final int day; field in DateTime
42 …public DateTime(String yearString, int month, int day, int hour, int minute, int second, int timeZ… in DateTime() argument
44 this.date = convertToDate(year, month, day, hour, minute, second, timeZone); in DateTime()
46 this.day = day; in DateTime()
69 …public static Date convertToDate(int year, int month, int day, int hour, int minute, int second, i… in convertToDate() argument
71 c.set(year, month - 1, day, hour, minute, second); in convertToDate()
95 return day; in getDay()
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
DSimpleDate.java31 public int day; // DD field in SimpleDate
49 this.day = sCalendarInstance.get(Calendar.DATE); in setTimestamp()
62 result = prime * result + day; in hashCode()
86 if (day != other.day) { in equals()
102 return this.day - other.getDay(); in compareTo()
108 return day; in getDay()
/packages/apps/Settings/src/com/android/settings/notification/
DZenModeScheduleDaysSelection.java66 final int day = DAYS[i]; in ZenModeScheduleDaysSelection() local
69 c.set(Calendar.DAY_OF_WEEK, day); in ZenModeScheduleDaysSelection()
71 checkBox.setChecked(mDays.get(day)); in ZenModeScheduleDaysSelection()
75 mDays.put(day, isChecked); in ZenModeScheduleDaysSelection()
86 final int day = mDays.keyAt(i); in getDays() local
88 rt.put(day, true); in getDays()
/packages/apps/Calendar/src/com/android/calendar/
DEventRecurrenceFormatter.java97 int day = EventRecurrence.timeDay2Day(recurrence.startDate.weekDay); in getRepeatString() local
98 string = dayToString(day, DateUtils.LENGTH_LONG); in getRepeatString()
152 private static String dayToString(int day, int dayOfWeekLength) { in dayToString() argument
153 return DateUtils.getDayOfWeekString(dayToUtilDay(day), dayOfWeekLength); in dayToString()
161 private static int dayToUtilDay(int day) { in dayToUtilDay() argument
162 switch (day) { in dayToUtilDay()
170 default: throw new IllegalArgumentException("bad day argument: " + day); in dayToUtilDay()
DDayView.java1252 for (int day = 0; day < mNumDays; day++) { in remeasure()
1253 mEarliestStartHour[day] = 25; // some big number in remeasure()
1254 mHasAllDayEvent[day] = false; in remeasure()
2129 for (int day = firstDay; day <= lastDay; day++) { in computeEventRelations()
2130 final int count = ++eventsCount[day - mFirstJulianDay]; in computeEventRelations()
2145 for (int day = daynum; durationDays > 0; day++, durationDays--) { in computeEventRelations()
2146 mHasAllDayEvent[day] = true; in computeEventRelations()
2297 private int computeDayLeftPosition(int day) { in computeDayLeftPosition() argument
2299 return day * effectiveWidth / mNumDays + mHoursWidth; in computeDayLeftPosition()
2384 for (int day = 0; day < mNumDays; day++, cell++) { in drawDayHeaderLoop()
[all …]
DDayOfMonthDrawable.java73 public void setDayOfMonth(int day) { in setDayOfMonth() argument
74 mDayOfMonth = Integer.toString(day); in setDayOfMonth()
/packages/apps/Contacts/src/com/android/contacts/datepicker/
DDatePickerDialog.java182 public void onDateChanged(DatePicker view, int year, int month, int day) { in onDateChanged() argument
183 updateTitle(year, month, day); in onDateChanged()
193 private void updateTitle(int year, int month, int day) { in updateTitle() argument
197 calendar.set(Calendar.DAY_OF_MONTH, day); in updateTitle()
218 int day = savedInstanceState.getInt(DAY); in onRestoreInstanceState() local
220 mDatePicker.init(year, month, day, yearOptional, this); in onRestoreInstanceState()
221 updateTitle(year, month, day); in onRestoreInstanceState()
/packages/apps/Calendar/src/com/android/calendar/widget/
DCalendarAppWidgetModel.java319 for (int day = from; day <= to; day++) { in buildFromCursor()
320 LinkedList<RowInfo> bucket = mBuckets.get(day - mTodayJulianDay); in buildFromCursor()
330 int day = mTodayJulianDay; in buildFromCursor() local
335 if (day != mTodayJulianDay) { in buildFromCursor()
336 final DayInfo dayInfo = populateDayInfo(day, recycle); in buildFromCursor()
347 day++; in buildFromCursor()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/datetime/parser/
DDateTimeParser.java102 private int day; field in DateTimeParser.Date
104 public Date(String year, int month, int day) { in Date() argument
107 this.day = day; in Date()
112 public int getDay() { return day; } in getDay()
204 d = day(); in date()
211 final public int day() throws ParseException { in day() method in DateTimeParser
/packages/services/Telephony/src/org/apache/james/mime4j/field/datetime/parser/
DDateTimeParser.java102 private int day; field in DateTimeParser.Date
104 public Date(String year, int month, int day) { in Date() argument
107 this.day = day; in Date()
112 public int getDay() { return day; } in getDay()
204 d = day(); in date()
211 final public int day() throws ParseException { in day() method in DateTimeParser
/packages/apps/DeskClock/src/com/android/deskclock/provider/
DDaysOfWeek.java52 static int convertDayToBitIndex(int day) { in convertDayToBitIndex() argument
53 return (day + 5) % DAYS_IN_A_WEEK; in convertDayToBitIndex()
128 for (int day : daysOfWeek) { in setDaysOfWeek()
129 setBit(convertDayToBitIndex(day), value); in setDaysOfWeek()
/packages/apps/Email/tests/src/com/android/emailcommon/utility/
DUtilityTest.java37 int day, int hour, int minute, int second) throws Exception { in testParseDateTimesHelper() argument
41 assertEquals(day, cal.get(Calendar.DAY_OF_MONTH)); in testParseDateTimesHelper()
60 int day, int hour, int minute, int second, int millis) throws Exception { in testParseEmailDateTimeHelper() argument
61 GregorianCalendar cal = new GregorianCalendar(year, month - 1, day, in testParseEmailDateTimeHelper()
/packages/apps/Calendar/src/com/android/calendar/event/
DCreateEventDialogFragment.java108 public CreateEventDialogFragment(Time day) { in CreateEventDialogFragment() argument
109 setDay(day); in CreateEventDialogFragment()
112 public void setDay(Time day) { in setDay() argument
113 mDateString = day.format(EVENT_DATE_FORMAT); in setDay()
114 mDateInMillis = day.toMillis(true); in setDay()
DEditEventHelper.java975 for (int day = 0; day < dayCount; day++) { in updateRecurrenceRule()
976 bydayNum[day] = 0; in updateRecurrenceRule()
1334 int day = EventRecurrence.day2TimeDay(mEventRecurrence.byday[i]); in offsetStartTimeIfNecessary() local
1335 if (day == startDay) { in offsetStartTimeIfNecessary()
1340 if (day < weekstart) { in offsetStartTimeIfNecessary()
1342 day += 7; in offsetStartTimeIfNecessary()
1345 if (day > startDay && (day < closestWeekday || closestWeekday < startDay)) { in offsetStartTimeIfNecessary()
1346 closestWeekday = day; in offsetStartTimeIfNecessary()
1352 if (day < closestWeekday) { in offsetStartTimeIfNecessary()
1353 closestWeekday = day; in offsetStartTimeIfNecessary()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DSetDateTimeActivity.java62 int day = Integer.parseInt(result.get(dIndex)); in onCommitResult() local
73 setDate(SetDateTimeActivity.this, year, monthInt, day); in onCommitResult()
153 public static void setDate(Context context, int year, int month, int day) { in setDate() argument
158 c.set(Calendar.DAY_OF_MONTH, day); in setDate()
/packages/apps/Calendar/tests/src/com/android/calendar/alerts/
DAlertServiceTest.java621 int day = now.monthDay; in testGenerateAlerts_refreshTime() local
628 long allDayStart = Utils.createTimeInMillis(0, 0, 0, day, month, year, Time.TIMEZONE_UTC); in testGenerateAlerts_refreshTime()
632 Utils.createTimeInMillis(0, 0, 10, day, month, year, Time.getCurrentTimezone()), in testGenerateAlerts_refreshTime()
633 Utils.createTimeInMillis(0, 30, 10, day, month, year, Time.getCurrentTimezone()), in testGenerateAlerts_refreshTime()
637 Utils.createTimeInMillis(0, 0, 6, day, month, year, Time.getCurrentTimezone()), in testGenerateAlerts_refreshTime()
638 Utils.createTimeInMillis(0, 0, 6, day, month, year, Time.getCurrentTimezone()), 0); in testGenerateAlerts_refreshTime()
646 Utils.createTimeInMillis(0, 0, 7, day, month, year, Time.getCurrentTimezone()), 0); in testGenerateAlerts_refreshTime()
650 long currentTime = Utils.createTimeInMillis(0, 0, 0, day, month, year, in testGenerateAlerts_refreshTime()
662 currentTime = Utils.createTimeInMillis(0, 30, 0, day, month, year, in testGenerateAlerts_refreshTime()
674 currentTime = Utils.createTimeInMillis(0, 55, 5, day, month, year, in testGenerateAlerts_refreshTime()
[all …]
/packages/apps/Calendar/tests/src/com/android/calendar/
DWeekNumberTest.java37 public DateAndWeekNumber(int year, int month, int day, int expectedWeekNumber) { in DateAndWeekNumber() argument
41 date.set(0, 0, 0, day, month, year); in DateAndWeekNumber()
44 allDayDate.set(day, month, year); in DateAndWeekNumber()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/picker/
DDatePicker.java173 protected boolean setDate(int year, int month, int day) { in setDate() argument
180 GregorianCalendar cal = new GregorianCalendar(year, month, day); in setDate()
193 updateSelection(mColDayIndex, day - 1); in setDate()
/packages/apps/Settings/src/com/android/settings/
DDateTimeSettings.java169 public void onDateSet(DatePicker view, int year, int month, int day) { in onDateSet() argument
172 setDate(activity, year, month, day); in onDateSet()
318 /* package */ static void setDate(Context context, int year, int month, int day) { in setDate() argument
323 c.set(Calendar.DAY_OF_MONTH, day); in setDate()

12