Home | History | Annotate | Download | only in widget

Lines Matching defs:DAYS_IN_WEEK

62     private static final int DAYS_IN_WEEK = 7;
197 for (int i = 0; i < DAYS_IN_WEEK; i++) {
198 mDayOfWeekLabels[i] = tinyWeekdayNames[(mWeekStart + i - 1) % DAYS_IN_WEEK + 1];
486 mHighlightedDay = row == 0 ? 1 : (row * DAYS_IN_WEEK) - offset + 1;
491 mHighlightedDay = Math.min(mDaysInMonth, (row * DAYS_IN_WEEK) - offset);
497 mHighlightedDay = day < 1 ? day + DAYS_IN_WEEK : day;
502 final int maxWeeks = (offset + mDaysInMonth) / DAYS_IN_WEEK;
503 final int day = col - offset + (DAYS_IN_WEEK * maxWeeks) + 1;
504 mHighlightedDay = day > mDaysInMonth ? day - DAYS_IN_WEEK : day;
536 final int maxRows = (maxDay / DAYS_IN_WEEK) - ((maxDay % DAYS_IN_WEEK == 0) ? 1 : 0);
549 return DAYS_IN_WEEK / 2;
555 MathUtils.constrain(centerX / mCellWidth, 0, DAYS_IN_WEEK - 1);
556 return isLayoutRtl() ? DAYS_IN_WEEK - columnFromLeft - 1: columnFromLeft;
601 return (offset + day - 1) % DAYS_IN_WEEK == 0;
606 return (offset + day) % DAYS_IN_WEEK == 0;
646 for (int col = 0; col < DAYS_IN_WEEK; col++) {
722 if (col == DAYS_IN_WEEK) {
869 final int preferredWidth = mDesiredCellWidth * DAYS_IN_WEEK
912 final int cellWidth = mPaddedWidth / DAYS_IN_WEEK;
932 return offset + DAYS_IN_WEEK;
967 final int col = (paddedXRtl * DAYS_IN_WEEK) / mPaddedWidth;
968 final int index = col + row * DAYS_IN_WEEK;
991 final int col = index % DAYS_IN_WEEK;
1001 final int row = index / DAYS_IN_WEEK;