Home | History | Annotate | Download | only in calendar

Lines Matching refs:WEEK

440      * Save default agenda/day/week/month view for next time
450 if (mAllowWeekForDetailView && viewId == CalendarController.ViewType.WEEK) {
585 * Returns the week since {@link Time#EPOCH_JULIAN_DAY} (Jan 1, 1970)
586 * adjusted for first day of week.
588 * This takes a julian day and the week start day and calculates which
589 * week since {@link Time#EPOCH_JULIAN_DAY} that day occurs in, starting
590 * at 0. *Do not* use this to compute the ISO week number for the year.
592 * @param julianDay The julian day to calculate the week number for
593 * @param firstDayOfWeek Which week day is the first day of the week,
608 * the Monday for that week.
610 * This assumes that the week containing the {@link Time#EPOCH_JULIAN_DAY}
611 * is considered week 0. It returns the Julian day for the Monday
612 * {@code week} weeks after the Monday of the week containing the epoch.
614 * @param week Number of weeks since the epoch
615 * @return The julian day for the Monday of the given week since the epoch
617 public static int getJulianMondayFromWeeksSinceEpoch(int week) {
618 return MONDAY_BEFORE_JULIAN_EPOCH + week * 7;
622 * Get first day of week as android.text.format.Time constant.
624 * @return the first day of week in android.text.format.Time
648 * Get first day of week as java.util.Calendar constant.
650 * @return the first day of week as a java.util.Calendar constant
657 * Converts the day of the week from android.text.format.Time to java.util.Calendar
682 * @return true when week number should be shown.
707 * @param firstDayOfWeek the first day of week in android.text.format.Time
720 * @param firstDayOfWeek the first day of week in android.text.format.Time
889 int startMinute; // in minutes since the start of the week
969 // Go through all the events for the week
1322 * correct week of the year for that time.
1332 // if the date is on Saturday or Sunday and the start of the week
1334 // week
1347 * Formats a day of the week string. This is either just the name of the day
1348 * or a combination of yesterday/today/tomorrow and the day of the week.