/packages/apps/Calendar/src/com/android/calendar/ |
D | Event.java | 128 public int startDay; // start Julian day field in Event 165 e.startDay = startDay; in clone() 186 dest.startDay = startDay; in copyTo() 207 e.startDay = 0; in newInstance() 223 public static void loadEvents(Context context, ArrayList<Event> events, int startDay, int days, in loadEvents() argument 235 int endDay = startDay + days - 1; in loadEvents() 261 cEvents = instancesQuery(context.getContentResolver(), EVENT_PROJECTION, startDay, in loadEvents() 263 cAllday = instancesQuery(context.getContentResolver(), EVENT_PROJECTION, startDay, in loadEvents() 272 buildEventsFromCursor(events, cEvents, context, startDay, endDay); in loadEvents() 273 buildEventsFromCursor(events, cAllday, context, startDay, endDay); in loadEvents() [all …]
|
D | EventLoader.java | 63 public int startDay; field in EventLoader.LoadEventDaysRequest 75 public LoadEventDaysRequest(int startDay, int numDays, boolean[] eventDays, in LoadEventDaysRequest() argument 78 this.startDay = startDay; in LoadEventDaysRequest() 94 Cursor cursor = EventDays.query(cr, startDay, numDays, PROJECTION); in processRequest() 104 int firstIndex = Math.max(firstDay - startDay, 0); in processRequest() 105 int lastIndex = Math.min(lastDay - startDay, 30); in processRequest() 127 public int startDay; field in EventLoader.LoadEventsRequest 133 public LoadEventsRequest(int id, int startDay, int numDays, ArrayList<Event> events, in LoadEventsRequest() argument 136 this.startDay = startDay; in LoadEventsRequest() 144 Event.loadEvents(eventLoader.mContext, events, startDay, in processRequest() [all …]
|
D | Utils.java | 623 int startDay; in getFirstDayOfWeek() local 625 startDay = Calendar.getInstance().getFirstDayOfWeek(); in getFirstDayOfWeek() 627 startDay = Integer.parseInt(pref); in getFirstDayOfWeek() 630 if (startDay == Calendar.SATURDAY) { in getFirstDayOfWeek() 632 } else if (startDay == Calendar.MONDAY) { in getFirstDayOfWeek() 942 if (currEvent.endDay < firstJulianDay || currEvent.startDay > lastJulianDay) { in createDNAStrands() 951 if (event.startDay < firstJulianDay) { in createDNAStrands() 952 event.startDay = firstJulianDay; in createDNAStrands() 973 if (event.startDay == event.endDay && in createDNAStrands() 1001 int startMinute = (event.startDay - firstJulianDay) * DAY_IN_MINUTES + event.startTime; in createDNAStrands() [all …]
|
D | EventGeometry.java | 54 int startDay = event.startDay; in computeEventRect() local 57 if (startDay > date || endDay < date) { in computeEventRect() 66 if (startDay < date) { in computeEventRect()
|
D | DayView.java | 2122 if (event.startDay > mLastJulianDay || event.endDay < mFirstJulianDay) { in computeEventRelations() 2127 final int firstDay = Math.max(event.startDay, mFirstJulianDay); in computeEventRelations() 2136 int daynum = event.startDay - mFirstJulianDay; in computeEventRelations() 2137 int durationDays = event.endDay - event.startDay + 1; in computeEventRelations() 2149 int daynum = event.startDay - mFirstJulianDay; in computeEventRelations() 2729 event.startDay = julianDay; in getNewEvent() 2919 int startDay = event.startDay; in drawAllDayEvents() local 2921 if (startDay > lastDay || endDay < firstDay) { in drawAllDayEvents() 2924 if (startDay < firstDay) { in drawAllDayEvents() 2925 startDay = firstDay; in drawAllDayEvents() [all …]
|
/packages/apps/Calendar/src/com/android/calendar/agenda/ |
D | AgendaByDayAdapter.java | 310 int startDay = cursor.getInt(AgendaWindowAdapter.INDEX_START_DAY); in calculateDays() local 321 startDay = Math.max(startDay, dayAdapterInfo.start); in calculateDays() 324 long adapterStartTime = tempTime.setJulianDay(startDay); in calculateDays() 327 if (startDay != prevStartDay) { in calculateDays() 330 rowInfo.add(new RowInfo(TYPE_DAY, startDay)); in calculateDays() 336 for (int currentDay = prevStartDay + 1; currentDay <= startDay; currentDay++) { in calculateDays() 370 rowInfo.add(new RowInfo(TYPE_DAY, startDay)); in calculateDays() 373 prevStartDay = startDay; in calculateDays() 382 if (endDay > startDay) { in calculateDays() 388 rowInfo.add(new RowInfo(TYPE_MEETING, startDay, position, id, startTime, in calculateDays() [all …]
|
D | AgendaWindowAdapter.java | 305 int startDay; field in AgendaWindowAdapter.AgendaItem 616 item.startDay = info.dayAdapter.findJulianDayFromPosition(positionInAdapter - in getAgendaItemByPosition() 634 agendaItem.startDay = cursor.getInt(AgendaWindowAdapter.INDEX_START_DAY); in buildAgendaItemFromCursor() 698 int startDay = Time.getJulianDay(goToTime.toMillis(false), goToTime.gmtoff); in refresh() local 700 if (!forced && isInRange(startDay, startDay)) { in refresh() 740 int endDay = startDay + MIN_QUERY_DURATION; in refresh() 744 queueQuery(startDay, endDay, goToTime, searchQuery, QUERY_TYPE_CLEAN, id); in refresh()
|
D | AgendaListView.java | 279 t.setJulianDay(agendaItem.startDay); in getFirstVisibleTime()
|
/packages/apps/Calendar/src/com/android/calendar/month/ |
D | MonthByWeekAdapter.java | 159 int startDay = event.startDay - mFirstJulianDay; in setEvents() local 161 if (startDay < numDays || endDay >= 0) { in setEvents() 162 if (startDay < 0) { in setEvents() 163 startDay = 0; in setEvents() 165 if (startDay > numDays) { in setEvents() 174 for (int j = startDay; j < endDay; j++) { in setEvents()
|
/packages/apps/Calendar/src/com/android/calendar/widget/ |
D | CalendarAppWidgetModel.java | 290 final int startDay = cursor.getInt(CalendarAppWidgetService.INDEX_START_DAY); in buildFromCursor() local 314 mEventInfos.add(populateEventInfo(eventId, allDay, start, end, startDay, endDay, title, in buildFromCursor() 317 int from = Math.max(startDay, mTodayJulianDay); in buildFromCursor() 355 int startDay, int endDay, String title, String location, int color, int selfStatus) { in populateEventInfo() argument 371 if (endDay > startDay) { in populateEventInfo()
|
/packages/apps/Calendar/src/com/android/calendar/event/ |
D | EditEventHelper.java | 1331 int startDay = startTime.weekDay; in offsetStartTimeIfNecessary() local 1334 if (day == startDay) { in offsetStartTimeIfNecessary() 1344 if (day > startDay && (day < closestWeekday || closestWeekday < startDay)) { in offsetStartTimeIfNecessary() 1349 if (closestWeekday == Integer.MAX_VALUE || closestWeekday < startDay) { in offsetStartTimeIfNecessary() 1360 if (closestWeekday < startDay) { in offsetStartTimeIfNecessary() 1363 int daysOffset = closestWeekday - startDay; in offsetStartTimeIfNecessary()
|
/packages/apps/Calendar/tests/src/com/android/calendar/ |
D | UtilsTests.java | 235 Event buildTestEvent(int startTime, int endTime, boolean allDay, int startDay, int endDay) { in buildTestEvent() argument 240 e.startDay = startDay; in buildTestEvent() 242 e.startMillis = e.startDay * 1000L * 3600L * 24L + e.startTime * 60L * 1000L; in buildTestEvent()
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
D | CalendarInstancesHelper.java | 892 int startDay = Time.getJulianDay(begin, local.gmtoff); in computeTimezoneDependentFields() local 903 if (endMinute == 0 && endDay > startDay) { in computeTimezoneDependentFields() 908 values.put(Instances.START_DAY, startDay); in computeTimezoneDependentFields()
|
D | MetaData.java | 170 public void write(String timezone, long begin, long end, int startDay, int endDay) { in write() argument
|
D | CalendarProvider2.java | 941 int startDay; in query() local 944 startDay = Integer.valueOf(uri.getPathSegments().get(2)); in query() 956 return handleEventDayQuery(qb, startDay, endDay, projection, selection, in query()
|
/packages/apps/Calendar/src/com/android/calendar/alerts/ |
D | AlertUtils.java | 320 int startDay = Time.getJulianDay(startMillis, timeObj.gmtoff); 322 return Time.getJulianDay(endMillis, timeObj.gmtoff) - startDay;
|