Home | History | Annotate | Download | only in calendar

Lines Matching refs:DAY

92  * View for multi-day view. So far only 1 and 7 day have been tested.
181 private int[] mEarliestStartHour; // indexed by the week day offset
182 private boolean[] mHasAllDayEvent; // indexed by the week day offset
314 private int mSelectionDay; // Julian day
320 private int mSelectionDayForAccessibility; // Julian day
329 /** Width of a day or non-conflicting event */
344 private int mFirstDayOfWeek; // First day of the week
513 * The height of the day names/numbers
517 * The height of the day names/numbers for multi-day views
521 * The height of the day names/numbers when viewing a single day
525 * Max of all day events in a given day in this view.
529 * A count of the number of allday events that were not drawn for each day
547 /** Top of the scrollable region i.e. below date labels and all day events */
834 // easily start the week display at any week day.
850 // If we don't have 2-letter day strings, fall back to 1-letter.
1123 // Move it forward one minute so the formatter doesn't lose a day
1129 // Don't show day of the month if for multi-day view
1178 // Midnight of following day
1228 // This would be about 1 day worth in a 7 day view
1239 * loading new events. This can change if there are all-day events.
1251 // indicating presence of an all-day event.
1252 for (int day = 0; day < mNumDays; day++) {
1253 mEarliestStartHour[day] = 25; // some big number
1254 mHasAllDayEvent[day] = false;
1270 // If there is at most one all-day event per day, then use less
1275 // Allow the all-day area to grow in height depending on the
1276 // number of all-day events we need to show, up to a limit.
1342 // When we change the base date, the number of all-day events may
1363 * The current view and new view are either both Week views or both Day
1387 // have scrolled to a different part of the day in some other view
1406 // With touch, we always switch to Day/Agenda View
1432 // Day/Agenda view.
1443 // This is the Day view.
1706 // Announce only the changes i.e. day or hour or both
1949 // If there are all-days events for the selected day but there
1950 // are no more normal events earlier in the day, then jump to
1951 // the all-day event area.
1953 // before jumping to the all-day event area.
1955 // 12am before going up to the all-day event area.
2044 // Create a shorter array for all day events
2110 // Compute the space needed for the all-day events, if any.
2112 // number of all-day events in any one day. Also, keep track of
2113 // the earliest event in each day.
2117 // Num of all-day-events on each day.
2129 for (int day = firstDay; day <= lastDay; day++) {
2130 final int count = ++eventsCount[day - mFirstJulianDay];
2145 for (int day = daynum; durationDays > 0; day++, durationDays--) {
2146 mHasAllDayEvent[day] = true;
2156 // one day.
2268 // all-day area.
2296 // Computes the x position for the left side of the given day (base 0)
2297 private int computeDayLeftPosition(int day) {
2299 return day * effectiveWidth / mNumDays + mHoursWidth;
2312 // and the area that says All day
2343 // Draw the selection highlight on the selected all-day area
2355 // Draw the horizontal day background banner
2384 for (int day = 0; day < mNumDays; day++, cell++) {
2385 int dayOfWeek = day + mFirstVisibleDayOfWeek;
2398 final int column = day % 7;
2407 drawDayHeader(dayNames[dayOfWeek], day, cell, canvas, p);
2434 private void drawCurrentTimeLine(Rect r, final int day, final int top, Canvas canvas,
2436 r.left = computeDayLeftPosition(day) - CURRENT_TIME_LINE_SIDE_BUFFER + 1;
2437 r.right = computeDayLeftPosition(day + 1) + CURRENT_TIME_LINE_SIDE_BUFFER + 1;
2461 // Draw each day
2466 for (int day = 0; day < mNumDays; day++, cell++) {
2469 drawEvents(cell, day, HOUR_GAP, canvas, p);
2477 drawCurrentTimeLine(r, day, lineY, canvas, p);
2506 // For the week view, show a "+", for day view, show "+ New event"
2551 private void drawDayHeader(String dayStr, int day, int cell, Canvas canvas, Paint p) {
2552 int dateNum = mFirstVisibleDate + day;
2560 // Draw day of the month
2565 // Draw day of the month
2566 x = computeDayLeftPosition(day + 1) - DAY_HEADER_RIGHT_MARGIN;
2570 p.setTypeface(todayIndex == day ? mBold : Typeface.DEFAULT);
2573 // Draw day of the week
2583 // Draw day of the week
2584 x = computeDayLeftPosition(day) + DAY_HEADER_ONE_DAY_LEFT_MARGIN;
2589 // Draw day of the month
2592 p.setTypeface(todayIndex == day ? mBold : Typeface.DEFAULT);
2628 for (int day = 0; day <= mNumDays; day++) {
2629 x = computeDayLeftPosition(day);
2871 // Line bounding the top of the all day area
2877 for (int day = 0; day <= mNumDays; day++) {
2878 x = computeDayLeftPosition(day);
2896 // max number of events being drawn in one day of the allday area
2900 // The number of events that weren't drawn in each day
2940 // Leave a one-pixel space between the vertical day lines and the
2967 // Check if this all-day event intersects the selected day
2990 // Compute the neighbors for the list of all-day events that
2991 // intersect the selected day.
3000 // Helper method for counting the number of allday events skipped on each day
3011 protected void drawMoreAlldayEvents(Canvas canvas, int remainingEvents, int day, Paint p) {
3012 int x = computeDayLeftPosition(day) + EVENT_ALL_DAY_TEXT_LEFT_MARGIN;
3054 // Find the event in the same row as the previously selected all-day
3579 // still allow the text to be shown without overflowing into the other all day rects.
3885 ViewType.DAY, CalendarController.EXTRA_GOTO_DATE, null, null);
3916 // view (mViewStartY) and the presence of all day events (mFirstCell)
4142 // Change the view to the previous day or week
4357 // Day view.
4453 ViewType.DAY);
4569 int day = (x - mHoursWidth) / (mCellWidth + DAY_GAP);
4570 if (day >= mNumDays) {
4571 day = mNumDays - 1;
4573 day += mFirstJulianDay;
4574 setSelectedDay(day);
4601 // Log.i("Cal", "setSelectionFromPosition( " + x + ", " + y + " ) day: " + day + " hour: "
4733 // Keep the selected hour and day consistent with the selected
4912 // all day area