Home | History | Annotate | Download | only in calendar

Lines Matching refs:top

1227         // If the selected hour is at least 2 time slots from the top and
1372 src.top = mViewStartY;
1377 dest.top = mFirstCell;
1419 r.top = mBannerPlusMargin;
1420 r.bottom = r.top + mAllDayHeight + ALLDAY_TOP_MARGIN;
1429 r.top = 0;
1446 r.top = 0;
1499 private void drawCurrentTimeMarker(int top, Canvas canvas, Paint p) {
1501 r.top = top - CURRENT_TIME_LINE_HEIGHT / 2;
1502 r.bottom = top + CURRENT_TIME_LINE_HEIGHT / 2;
1510 private void drawCurrentTimeLine(Rect r, int left, int top, Canvas canvas, Paint p) {
1513 r.top = top - CURRENT_TIME_LINE_HEIGHT / 2 - CURRENT_TIME_LINE_BORDER_WIDTH;
1514 r.bottom = top + CURRENT_TIME_LINE_HEIGHT / 2 + CURRENT_TIME_LINE_BORDER_WIDTH;
1520 r.top = top - CURRENT_TIME_LINE_HEIGHT / 2;
1521 r.bottom = top + CURRENT_TIME_LINE_HEIGHT / 2;
1557 r.top = 0;
1564 r.top = r.bottom;
1572 r.top = mSelectionHour * (mCellHeight + HOUR_GAP);
1573 r.bottom = r.top + mCellHeight + 2 * HOUR_GAP;
1580 r.top += HOUR_GAP;
1594 r.top += HOUR_GAP;
1597 path.addRect(r.left, r.top, r.right, r.bottom, Direction.CW);
1601 saveSelectionPosition(r.left, r.top, r.right, r.bottom);
1801 r.top = 0;
1882 private void saveSelectionPosition(float left, float top, float right, float bottom) {
1885 mPrevBox.top = (int) top;
1891 box.top = mSelectionHour * (mCellHeight + HOUR_GAP);
1892 box.bottom = box.top + mCellHeight + HOUR_GAP;
1906 r.top = mBannerPlusMargin;
1907 r.bottom = r.top + mAllDayHeight + ALLDAY_TOP_MARGIN;
1924 float startY = r.top;
1967 event.top = y + height * event.getColumn();
1970 event.bottom = event.top + height * 0.9f;
1994 float top = mBannerPlusMargin + 1;
1995 float bottom = top + mAllDayHeight + ALLDAY_TOP_MARGIN - 1;
2005 path.addRect(left, top, right, bottom, Direction.CW);
2086 rf.top = event.top;
2097 top, Canvas canvas, Paint p) {
2104 selectionArea.top = top + mSelectionHour * (cellHeight + HOUR_GAP);
2105 selectionArea.bottom = selectionArea.top + cellHeight;
2115 if (!geometry.computeEventRect(date, left, top, cellWidth, event)) {
2166 prevTop = (int) mPrevSelectedEvent.top;
2173 if (prevTop >= mPrevBox.bottom || prevBottom <= mPrevBox.top
2176 prevTop = mPrevBox.top;
2181 // Clip the top and bottom to the previous selection box.
2182 if (prevTop < mPrevBox.top) {
2183 prevTop = mPrevBox.top;
2191 prevTop = mPrevBox.top;
2206 } else if (prevBottom <= box.top) {
2226 int top = (int) ev.top;
2227 if (top < box.top) {
2228 top = box.top;
2242 Log.i("Cal", "left: " + left + " right: " + right + " top: " + top
2264 distance2 = top - prevBottom;
2275 } else if (top >= prevCenter) {
2276 distance1 = top - prevCenter;
2282 } else if (top >= prevCenter) {
2283 distance1 = top - prevCenter;
2370 int center = (top + bottom) / 2;
2373 int neighborTop = (int) neighbor.top;
2394 int center = (top + bottom) / 2;
2397 int neighborTop = (int) neighbor.top;
2463 rf.top = event.top;
2501 float height = rf.bottom - rf.top;
2527 float top = rf.top + mEventTextAscent + topMargin;
2578 canvas.drawText(fragment, rf.left + 1, top, p);
2580 top += lineHeight;
3176 int top = 0;
3231 region.top = y - 10;
3239 if (!geometry.computeEventRect(date, left, top, cellWidth, event)) {