Lines Matching refs:r
2249 Rect r = mRect; in drawAfterScroll() local
2251 drawAllDayHighlights(r, canvas, p); in drawAfterScroll()
2254 drawUpperLeftCorner(r, canvas, p); in drawAfterScroll()
2257 drawScrollLine(r, canvas, p); in drawAfterScroll()
2258 drawDayHeaderLoop(r, canvas, p); in drawAfterScroll()
2269 private void drawUpperLeftCorner(Rect r, Canvas canvas, Paint p) { in drawUpperLeftCorner() argument
2283 private void drawScrollLine(Rect r, Canvas canvas, Paint p) { in drawScrollLine() argument
2302 private void drawAllDayHighlights(Rect r, Canvas canvas, Paint p) { in drawAllDayHighlights() argument
2305 r.top = 0; in drawAllDayHighlights()
2306 r.bottom = DAY_HEADER_HEIGHT; in drawAllDayHighlights()
2307 r.left = 0; in drawAllDayHighlights()
2308 r.right = mViewWidth; in drawAllDayHighlights()
2311 canvas.drawRect(r, p); in drawAllDayHighlights()
2313 r.top = DAY_HEADER_HEIGHT; in drawAllDayHighlights()
2314 r.bottom = mFirstCell - 1; in drawAllDayHighlights()
2315 r.left = 0; in drawAllDayHighlights()
2316 r.right = mHoursWidth; in drawAllDayHighlights()
2317 canvas.drawRect(r, p); in drawAllDayHighlights()
2332 r.top = 0; in drawAllDayHighlights()
2333 r.bottom = mFirstCell - 1; in drawAllDayHighlights()
2334 r.left = computeDayLeftPosition(startIndex) + 1; in drawAllDayHighlights()
2335 r.right = computeDayLeftPosition(mNumDays); in drawAllDayHighlights()
2338 canvas.drawRect(r, p); in drawAllDayHighlights()
2354 private void drawDayHeaderLoop(Rect r, Canvas canvas, Paint p) { in drawDayHeaderLoop() argument
2434 private void drawCurrentTimeLine(Rect r, final int day, final int top, Canvas canvas, in drawCurrentTimeLine() argument
2436 r.left = computeDayLeftPosition(day) - CURRENT_TIME_LINE_SIDE_BUFFER + 1; in drawCurrentTimeLine()
2437 r.right = computeDayLeftPosition(day + 1) + CURRENT_TIME_LINE_SIDE_BUFFER + 1; in drawCurrentTimeLine()
2439 r.top = top - CURRENT_TIME_LINE_TOP_OFFSET; in drawCurrentTimeLine()
2440 r.bottom = r.top + mCurrentTimeLine.getIntrinsicHeight(); in drawCurrentTimeLine()
2442 mCurrentTimeLine.setBounds(r); in drawCurrentTimeLine()
2445 mCurrentTimeAnimateLine.setBounds(r); in drawCurrentTimeLine()
2453 Rect r = mRect; in doDraw() local
2456 drawBgColors(r, canvas, p); in doDraw()
2458 drawGridBackground(r, canvas, p); in doDraw()
2459 drawHours(r, canvas, p); in doDraw()
2477 drawCurrentTimeLine(r, day, lineY, canvas, p); in doDraw()
2484 drawSelectedRect(r, canvas, p); in doDraw()
2487 private void drawSelectedRect(Rect r, Canvas canvas, Paint p) { in drawSelectedRect() argument
2491 r.top = mSelectionHour * (mCellHeight + HOUR_GAP); in drawSelectedRect()
2492 r.bottom = r.top + mCellHeight + HOUR_GAP; in drawSelectedRect()
2493 r.left = computeDayLeftPosition(daynum) + 1; in drawSelectedRect()
2494 r.right = computeDayLeftPosition(daynum + 1) + 1; in drawSelectedRect()
2496 saveSelectionPosition(r.left, r.top, r.right, r.bottom); in drawSelectedRect()
2500 r.top += HOUR_GAP; in drawSelectedRect()
2501 r.right -= DAY_GAP; in drawSelectedRect()
2503 canvas.drawRect(r, p); in drawSelectedRect()
2510 int width = r.right - r.left; in drawSelectedRect()
2511 int midX = r.left + width / 2; in drawSelectedRect()
2512 int midY = r.top + mCellHeight / 2; in drawSelectedRect()
2517 canvas.drawLine(r.left + horizontalPadding, midY, r.right - horizontalPadding, in drawSelectedRect()
2519 canvas.drawLine(midX, r.top + verticalPadding, midX, r.bottom - verticalPadding, p); in drawSelectedRect()
2525 canvas.drawText(mNewEventHintString, r.left + EVENT_TEXT_LEFT_MARGIN, in drawSelectedRect()
2526 r.top + Math.abs(p.getFontMetrics().ascent) + EVENT_TEXT_TOP_MARGIN , p); in drawSelectedRect()
2531 private void drawHours(Rect r, Canvas canvas, Paint p) { in drawHours() argument
2597 private void drawGridBackground(Rect r, Canvas canvas, Paint p) { in drawGridBackground() argument
2647 private void drawBgColors(Rect r, Canvas canvas, Paint p) { in drawBgColors() argument
2650 r.top = mDestRect.top; in drawBgColors()
2651 r.bottom = mDestRect.bottom; in drawBgColors()
2652 r.left = 0; in drawBgColors()
2653 r.right = mHoursWidth; in drawBgColors()
2657 canvas.drawRect(r, p); in drawBgColors()
2666 r.left = mHoursWidth; in drawBgColors()
2667 r.right = mViewWidth; in drawBgColors()
2668 r.top = lineY; in drawBgColors()
2669 r.bottom = mViewStartY + mViewHeight; in drawBgColors()
2671 canvas.drawRect(r, p); in drawBgColors()
2679 r.left = computeDayLeftPosition(todayIndex) + 1; in drawBgColors()
2680 r.right = computeDayLeftPosition(todayIndex + 1); in drawBgColors()
2681 r.top = lineY; in drawBgColors()
2682 r.bottom = mViewStartY + mViewHeight; in drawBgColors()
2684 canvas.drawRect(r, p); in drawBgColors()
2689 r.left = computeDayLeftPosition(todayIndex + 1) + 1; in drawBgColors()
2690 r.right = computeDayLeftPosition(mNumDays); in drawBgColors()
2691 r.top = mDestRect.top; in drawBgColors()
2692 r.bottom = mDestRect.bottom; in drawBgColors()
2694 canvas.drawRect(r, p); in drawBgColors()
2698 r.left = computeDayLeftPosition(0) + 1; in drawBgColors()
2699 r.right = computeDayLeftPosition(mNumDays); in drawBgColors()
2700 r.top = mDestRect.top; in drawBgColors()
2701 r.bottom = mDestRect.bottom; in drawBgColors()
2703 canvas.drawRect(r, p); in drawBgColors()
2770 private void setupTextRect(Rect r) { in setupTextRect() argument
2771 if (r.bottom <= r.top || r.right <= r.left) { in setupTextRect()
2772 r.bottom = r.top; in setupTextRect()
2773 r.right = r.left; in setupTextRect()
2777 if (r.bottom - r.top > EVENT_TEXT_TOP_MARGIN + EVENT_TEXT_BOTTOM_MARGIN) { in setupTextRect()
2778 r.top += EVENT_TEXT_TOP_MARGIN; in setupTextRect()
2779 r.bottom -= EVENT_TEXT_BOTTOM_MARGIN; in setupTextRect()
2781 if (r.right - r.left > EVENT_TEXT_LEFT_MARGIN + EVENT_TEXT_RIGHT_MARGIN) { in setupTextRect()
2782 r.left += EVENT_TEXT_LEFT_MARGIN; in setupTextRect()
2783 r.right -= EVENT_TEXT_RIGHT_MARGIN; in setupTextRect()
2787 private void setupAllDayTextRect(Rect r) { in setupAllDayTextRect() argument
2788 if (r.bottom <= r.top || r.right <= r.left) { in setupAllDayTextRect()
2789 r.bottom = r.top; in setupAllDayTextRect()
2790 r.right = r.left; in setupAllDayTextRect()
2794 if (r.bottom - r.top > EVENT_ALL_DAY_TEXT_TOP_MARGIN + EVENT_ALL_DAY_TEXT_BOTTOM_MARGIN) { in setupAllDayTextRect()
2795 r.top += EVENT_ALL_DAY_TEXT_TOP_MARGIN; in setupAllDayTextRect()
2796 r.bottom -= EVENT_ALL_DAY_TEXT_BOTTOM_MARGIN; in setupAllDayTextRect()
2798 if (r.right - r.left > EVENT_ALL_DAY_TEXT_LEFT_MARGIN + EVENT_ALL_DAY_TEXT_RIGHT_MARGIN) { in setupAllDayTextRect()
2799 r.left += EVENT_ALL_DAY_TEXT_LEFT_MARGIN; in setupAllDayTextRect()
2800 r.right -= EVENT_ALL_DAY_TEXT_RIGHT_MARGIN; in setupAllDayTextRect()
2808 Rect r) { in getEventLayout() argument
2817 if (layout == null || r.width() != layout.getWidth()) { in getEventLayout()
2847 layout = new StaticLayout(bob, 0, bob.length(), new TextPaint(paint), r.width(), in getEventLayout()
2848 Alignment.ALIGN_NORMAL, 1.0f, 0.0f, true, null, r.width()); in getEventLayout()
2961 Rect r = drawEventRect(event, canvas, p, eventTextPaint, (int) event.top, in drawAllDayEvents() local
2963 setupAllDayTextRect(r); in drawAllDayEvents()
2964 StaticLayout layout = getEventLayout(mAllDayLayouts, i, event, eventTextPaint, r); in drawAllDayEvents()
2965 drawEventText(layout, r, canvas, r.top, r.bottom, true); in drawAllDayEvents()
3015 Rect r = mRect; in drawMoreAlldayEvents() local
3016 r.top = y; in drawMoreAlldayEvents()
3017 r.left = x; in drawMoreAlldayEvents()
3018 r.bottom = y + EVENT_SQUARE_WIDTH; in drawMoreAlldayEvents()
3019 r.right = x + EVENT_SQUARE_WIDTH; in drawMoreAlldayEvents()
3024 canvas.drawRect(r, p); in drawMoreAlldayEvents()
3129 Rect r = drawEventRect(event, canvas, p, eventTextPaint, mViewStartY, viewEndY); in drawEvents() local
3130 setupTextRect(r); in drawEvents()
3133 if (r.top > viewEndY || r.bottom < mViewStartY) { in drawEvents()
3136 StaticLayout layout = getEventLayout(mLayouts, i, event, eventTextPaint, r); in drawEvents()
3138 drawEventText(layout, r, canvas, mViewStartY + 4, mViewStartY + mViewHeight in drawEvents()
3439 Rect r = mRect; in drawEventRect() local
3440 r.top = Math.max((int) event.top + EVENT_RECT_TOP_MARGIN, visibleTop); in drawEventRect()
3441 r.bottom = Math.min((int) event.bottom - EVENT_RECT_BOTTOM_MARGIN, visibleBot); in drawEventRect()
3442 r.left = (int) event.left + EVENT_RECT_LEFT_MARGIN; in drawEventRect()
3443 r.right = (int) event.right; in drawEventRect()
3474 r.top = Math.max((int) event.top + EVENT_RECT_TOP_MARGIN + floorHalfStroke, visibleTop); in drawEventRect()
3475 r.bottom = Math.min((int) event.bottom - EVENT_RECT_BOTTOM_MARGIN - ceilHalfStroke, in drawEventRect()
3477 r.left += floorHalfStroke; in drawEventRect()
3478 r.right -= ceilHalfStroke; in drawEventRect()
3483 canvas.drawRect(r, p); in drawEventRect()
3505 canvas.drawRect(r, p); in drawEventRect()
3527 r.top = (int) event.top + EVENT_RECT_TOP_MARGIN; in drawEventRect()
3528 r.bottom = (int) event.bottom - EVENT_RECT_BOTTOM_MARGIN; in drawEventRect()
3529 r.left = (int) event.left + EVENT_RECT_LEFT_MARGIN; in drawEventRect()
3530 r.right = (int) event.right - EVENT_RECT_RIGHT_MARGIN; in drawEventRect()
3531 return r; in drawEventRect()