Lines Matching refs:DAYS_IN_WEEK
61 private static final int DAYS_IN_WEEK = 7;
196 for (int i = 0; i < DAYS_IN_WEEK; i++) {
197 mDayOfWeekLabels[i] = tinyWeekdayNames[(mWeekStart + i - 1) % DAYS_IN_WEEK + 1];
485 mHighlightedDay = row == 0 ? 1 : (row * DAYS_IN_WEEK) - offset + 1;
490 mHighlightedDay = Math.min(mDaysInMonth, (row * DAYS_IN_WEEK) - offset);
496 mHighlightedDay = day < 1 ? day + DAYS_IN_WEEK : day;
501 final int maxWeeks = (offset + mDaysInMonth) / DAYS_IN_WEEK;
502 final int day = col - offset + (DAYS_IN_WEEK * maxWeeks) + 1;
503 mHighlightedDay = day > mDaysInMonth ? day - DAYS_IN_WEEK : day;
533 final int maxRows = (maxDay / DAYS_IN_WEEK) - ((maxDay % DAYS_IN_WEEK == 0) ? 1 : 0);
546 return DAYS_IN_WEEK / 2;
550 MathUtils.constrain(centerX / mCellWidth, 0, DAYS_IN_WEEK - 1);
551 return isLayoutRtl() ? DAYS_IN_WEEK - columnFromLeft - 1: columnFromLeft;
596 return (offset + day - 1) % DAYS_IN_WEEK == 0;
601 return (offset + day) % DAYS_IN_WEEK == 0;
641 for (int col = 0; col < DAYS_IN_WEEK; col++) {
717 if (col == DAYS_IN_WEEK) {
864 final int preferredWidth = mDesiredCellWidth * DAYS_IN_WEEK
907 final int cellWidth = mPaddedWidth / DAYS_IN_WEEK;
927 return offset + DAYS_IN_WEEK;
962 final int col = (paddedXRtl * DAYS_IN_WEEK) / mPaddedWidth;
963 final int index = col + row * DAYS_IN_WEEK;
986 final int col = index % DAYS_IN_WEEK;
996 final int row = index / DAYS_IN_WEEK;