Lines Matching refs:right
490 * should be ignored are 1) right after a scale gesture and 2) finger was
1313 mExpandAllDayRect.right = Math.min(mExpandAllDayRect.left + allDayIconWidth, mHoursWidth
2184 dest.right = mViewWidth;
2284 final int right = computeDayLeftPosition(mNumDays);
2292 canvas.drawLine(GRID_LINE_LEFT_MARGIN, y, right, y, p);
2308 r.right = mViewWidth;
2316 r.right = mHoursWidth;
2335 r.right = computeDayLeftPosition(mNumDays);
2348 mRect.right = computeDayLeftPosition(daynum + 1);
2360 // r.right = mHoursWidth + mNumDays * (mCellWidth + DAY_GAP);
2363 // Fill the extra space on the right side with the default background
2364 // r.left = r.right;
2365 // r.right = mViewWidth;
2373 p.setTextAlign(Paint.Align.RIGHT);
2417 p.setTextAlign(Paint.Align.RIGHT);
2437 r.right = computeDayLeftPosition(day + 1) + CURRENT_TIME_LINE_SIDE_BUFFER + 1;
2494 r.right = computeDayLeftPosition(daynum + 1) + 1;
2496 saveSelectionPosition(r.left, r.top, r.right, r.bottom);
2501 r.right -= DAY_GAP;
2510 int width = r.right - r.left;
2517 canvas.drawLine(r.left + horizontalPadding, midY, r.right - horizontalPadding,
2547 p.setTextAlign(Paint.Align.RIGHT);
2567 p.setTextAlign(Align.RIGHT);
2653 r.right = mHoursWidth;
2667 r.right = mViewWidth;
2680 r.right = computeDayLeftPosition(todayIndex + 1);
2690 r.right = computeDayLeftPosition(mNumDays);
2699 r.right = computeDayLeftPosition(mNumDays);
2753 private void saveSelectionPosition(float left, float top, float right, float bottom) {
2755 mPrevBox.right = (int) right;
2766 box.right = computeDayLeftPosition(daynum + 1);
2771 if (r.bottom <= r.top || r.right <= r.left) {
2773 r.right = r.left;
2781 if (r.right - r.left > EVENT_TEXT_LEFT_MARGIN + EVENT_TEXT_RIGHT_MARGIN) {
2783 r.right -= EVENT_TEXT_RIGHT_MARGIN;
2788 if (r.bottom <= r.top || r.right <= r.left) {
2790 r.right = r.left;
2798 if (r.right - r.left > EVENT_ALL_DAY_TEXT_LEFT_MARGIN + EVENT_ALL_DAY_TEXT_RIGHT_MARGIN) {
2800 r.right -= EVENT_ALL_DAY_TEXT_RIGHT_MARGIN;
2846 // Leave a one pixel boundary on the left and right of the rectangle for the event
2943 event.right = computeDayLeftPosition(endIndex + 1) - DAY_GAP;
3019 r.right = x + EVENT_SQUARE_WIDTH;
3103 selectionArea.right = selectionArea.left + cellWidth;
3149 // Computes the "nearest" neighbor event in four directions (left, right,
3180 prevRight = (int) mPrevSelectedEvent.right;
3185 || prevRight <= mPrevBox.left || prevLeft >= mPrevBox.right) {
3190 prevRight = mPrevBox.right;
3205 prevRight = mPrevBox.right;
3209 if (prevLeft >= box.right) {
3210 // The previously selected event was to the right of us.
3236 int right = (int) ev.right;
3253 // Log.i("Cal", "left: " + left + " right: " + right + " top: " + top + " bottom: "
3272 } else if (right <= prevCenter) {
3273 distance1 = prevCenter - right;
3279 } else if (right <= prevCenter) {
3280 distance1 = prevCenter - right;
3296 distance2 = prevLeft - right;
3306 // or right of me and compute the distance.
3313 int neighborRight = (int) neighbor.right;
3317 if (neighborLeft < right && neighborRight > left) {
3323 int center = (left + right) / 2;
3326 int currentRight = (int) upEvent.right;
3348 if (neighborLeft < right && neighborRight > left) {
3354 int center = (left + right) / 2;
3357 int currentRight = (int) downEvent.right;
3378 if (neighborLeft >= right) {
3379 // This neighbor is entirely to the right of me.
3395 int neighborDistance = neighborLeft - right;
3396 int currentDistance = (int) rightEvent.left - right;
3420 int currentDistance = left - (int) leftEvent.right;
3443 r.right = (int) event.right;
3478 r.right -= ceilHalfStroke;
3514 // r.right = r.left + CALENDAR_COLOR_SQUARE_SIZE + 1;
3522 // r.right--;
3530 r.right = (int) event.right - EVENT_RECT_RIGHT_MARGIN;
3559 int width = rect.right - rect.left;
3590 rect.right = width;
3609 // mLines[linesIndex++] = r.right;
3614 // mLines[linesIndex++] = r.right;
3622 // mLines[linesIndex++] = r.right;
3624 // mLines[linesIndex++] = r.right;
4559 // right accessibility message without affecting the selection.
4697 region.right = x + 10;