/packages/apps/Calendar/src/com/android/calendar/ |
D | EventGeometry.java | 48 public boolean computeEventRect(int date, int left, int top, int cellWidth, Event event) { in computeEventRect() argument 87 event.top = top; in computeEventRect() 88 event.top += (int) (startTime * cellMinuteHeight); in computeEventRect() 89 event.top += startHour * mHourGap; in computeEventRect() 91 event.bottom = top; in computeEventRect() 96 if (event.bottom < event.top + mMinEventHeight) { in computeEventRect() 97 event.bottom = event.top + mMinEventHeight; in computeEventRect() 111 && event.top < selection.bottom && event.bottom >= selection.top) { in eventIntersectsSelection() 123 float top = event.top; in pointToEvent() local 128 if (y >= top) { in pointToEvent() [all …]
|
D | DayView.java | 1315 mExpandAllDayRect.top = mExpandAllDayRect.bottom in remeasure() 2177 dest.top = (int) (mFirstCell - yTranslate); in onDraw() 2301 r.top = 0; in drawAllDayHighlights() 2309 r.top = DAY_HEADER_HEIGHT; in drawAllDayHighlights() 2328 r.top = 0; in drawAllDayHighlights() 2340 mRect.top = DAY_HEADER_HEIGHT + 1; in drawAllDayHighlights() 2341 mRect.bottom = mRect.top + mAlldayHeight + ALLDAY_TOP_MARGIN - 2; in drawAllDayHighlights() 2430 private void drawCurrentTimeLine(Rect r, final int day, final int top, Canvas canvas, in drawCurrentTimeLine() argument 2435 r.top = top - CURRENT_TIME_LINE_TOP_OFFSET; in drawCurrentTimeLine() 2436 r.bottom = r.top + mCurrentTimeLine.getIntrinsicHeight(); in drawCurrentTimeLine() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/actions/ |
D | CropView.java | 94 bounds.set(0, bounds.top, 1, bounds.bottom); in setCropBounds() 106 RectF cropped = new RectF(cropBounds.left * width, cropBounds.top * height, in getCropBoundsDisplayed() 108 cropped.offset(displayBounds.left, displayBounds.top); in getCropBoundsDisplayed() 127 float top = Math.abs(y - cropped.top); in detectMovingEdges() local 129 if ((top <= TOUCH_TOLERANCE) & (top < bottom)) { in detectMovingEdges() 150 : Math.max(displayBounds.top - cropped.top, deltaY); in moveEdges() 160 cropped.top = Math.min(cropped.top + deltaY, cropped.bottom - minHeight); in moveEdges() 166 cropped.bottom = Math.max(cropped.bottom + deltaY, cropped.top + minHeight); in moveEdges() 209 int top = (int) centerY - indicatorSize / 2; in drawIndicator() local 210 indicator.setBounds(left, top, left + indicatorSize, top + indicatorSize); in drawIndicator() [all …]
|
/packages/apps/Mms/src/com/android/mms/model/ |
D | RegionModel.java | 30 public RegionModel(String regionId, int left, int top, in RegionModel() argument 32 this(regionId, DEFAULT_FIT, left, top, width, height); in RegionModel() 35 public RegionModel(String regionId, String fit, int left, int top, in RegionModel() argument 37 this(regionId, fit, left, top, width, height, null); in RegionModel() 40 public RegionModel(String regionId, String fit, int left, int top, in RegionModel() argument 45 mTop = top; in RegionModel() 98 public void setTop(int top) { in setTop() argument 99 mTop = top; in setTop()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | HighlightView.java | 93 mDrawRect.top + (height / 2), in draw() 117 int y = mDrawRect.top in draw() 126 int top = mDrawRect.top + 4; in draw() local 140 int yMiddle = mDrawRect.top in draw() 141 + ((mDrawRect.bottom - mDrawRect.top) / 2); in draw() 156 top - heightHeight, in draw() 158 top + heightHeight); in draw() 213 boolean verticalCheck = (y >= r.top - hysteresis) in getHit() 225 if ((Math.abs(r.top - y) < hysteresis) && horizCheck) { in getHit() 276 Math.max(0, mImageRect.top - mCropRect.top)); in moveBy() [all …]
|
D | EvenlySpacedLayout.java | 84 int top = 0; in layoutHorizontal() local 90 child.layout(left, top, left + w, top + h); in layoutHorizontal() 110 int top = mKeepEndSpace ? spacing : 0; in layoutVertical() local 117 child.layout(left, top, left + w, top + h); in layoutVertical() 118 top += h; in layoutVertical() 119 top += spacing; in layoutVertical()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | GLView.java | 191 return mBounds.bottom - mBounds.top; in getHeight() 234 int yoffset = component.mBounds.top - mScrollY; in renderChild() 261 int top = rect.top; in dispatchTouchEvent() local 263 event.offsetLocation(-left, -top); in dispatchTouchEvent() 265 event.offsetLocation(left, top); in dispatchTouchEvent() 268 event.offsetLocation(left, top); in dispatchTouchEvent() 310 public void layout(int left, int top, int right, int bottom) { in layout() argument 311 boolean sizeChanged = setBounds(left, top, right, bottom); in layout() 317 onLayout(sizeChanged, left, top, right, bottom); in layout() 320 private boolean setBounds(int left, int top, int right, int bottom) { in setBounds() argument [all …]
|
D | CropView.java | 184 RectF result = new RectF(rect.left * mImageWidth, rect.top * mImageHeight, in getCropRectangle() 218 canvas.fillRect(r.left, r.top, r.width(), r.height(), Color.TRANSPARENT); in renderFace() 219 canvas.drawRect(r.left, r.top, r.width(), r.height(), mFacePaint); in renderFace() 316 && r.top >= d && r.bottom < height - d) return; in startParkingAnimation() 349 offsetY + (input.top * mImageHeight - y) * s, in mapRect() 389 mImageHeight * (highlight.top + highlight.bottom) * 0.5f); in calculateTarget() 402 (highlight.top + highlight.bottom) * mImageHeight / 2); in calculateTarget() 461 dy = Utils.clamp(dy, -r.top , 1 - r.bottom); in moveEdges() 462 r.top += dy; in moveEdges() 472 float top = r.top + MIN_SELECTION_LENGTH / mImageHeight; in moveEdges() local [all …]
|
/packages/apps/Settings/src/com/android/settings/widget/ |
D | ChartView.java | 120 child.layout(childRect.left, childRect.top, childRect.right, childRect.bottom); in onLayout() 124 child.layout(childRect.left, childRect.top, childRect.right, childRect.bottom); in onLayout() 134 sweep.layout(childRect.left, childRect.top, childRect.right, childRect.bottom); in layoutSweep() 142 parentRect.top += sweepMargins.top + (int) sweep.getPoint(); in layoutSweep() 143 parentRect.bottom = parentRect.top; in layoutSweep() 152 parentRect.top += sweepMargins.top; in layoutSweep()
|
D | ChartSweepView.java | 181 final float targetHeight = mSweep.getIntrinsicHeight() - mSweepPadding.top in getTargetInset() 183 return mSweepPadding.top + (targetHeight / 2) + mSweepOffset.y; in getTargetInset() 447 mTrackingStart = getTop() - mMargins.top; in onTouchEvent() 482 final float currentTargetY = getTop() - mMargins.top; in onTouchEvent() 486 requestedTargetY, clampRect.top, clampRect.bottom); in onTouchEvent() 489 value = mAxis.convertToValue(clampedTargetY - parentContent.top); in onTouchEvent() 538 final float effectiveY = getY() - mMargins.top - parentContent.top; 610 if (beforeValid) clampRect.bottom = clampRect.top + (int) beforePoint; 611 if (afterValid) clampRect.top += afterPoint; 647 final int targetHeight = mSweep.getIntrinsicHeight() - mSweepPadding.top [all …]
|
/packages/apps/VideoEditor/src/com/android/videoeditor/ |
D | KenBurnsActivity.java | 438 + mStartRect.left + ", " + mStartRect.top + ", " in showBitmapRectangle() 443 mStartRect.top * scale * mImageViewScale); in showBitmapRectangle() 456 + mEndRect.left + ", " + mEndRect.top + ", " in showBitmapRectangle() 461 mEndRect.top * scale * mImageViewScale); in showBitmapRectangle() 489 + ", " + mMatrixRect.top + ", " + mMatrixRect.right in saveBitmapRectangle() 494 final int top = (int)((-mMatrixRect.top/scale) / mImageViewScale); in saveBitmapRectangle() local 496 final int bottom = (int)(((-mMatrixRect.top + lp.height)/scale) / mImageViewScale); in saveBitmapRectangle() 498 mStartRect.set(left, top, right, bottom); in saveBitmapRectangle() 500 Log.d(TAG, "START: " + mStartRect.left + ", " + mStartRect.top + ", " in saveBitmapRectangle() 516 + ", " + mMatrixRect.top + ", " + mMatrixRect.right in saveBitmapRectangle() [all …]
|
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
D | Geometry.h | 37 if (y > brect.top) brect.top = y; in ClipRect() 45 if (rrect.top > brect.top) brect.top = rrect.top; in ClipRect()
|
D | MosaicTypes.h | 37 left = right = top = bottom = 0.0; in MosaicRect() 47 return bottom - top; in Height() 53 int left, right, top, bottom; variable 59 double lft, rgt, top, bot;
|
/packages/apps/Camera/jni/feature_mos/src/mosaic/ |
D | Geometry.h | 37 if (y > brect.top) brect.top = y; in ClipRect() 45 if (rrect.top > brect.top) brect.top = rrect.top; in ClipRect()
|
D | MosaicTypes.h | 37 left = right = top = bottom = 0.0; in MosaicRect() 47 return bottom - top; in Height() 53 int left, right, top, bottom; variable 59 double lft, rgt, top, bot;
|
D | Blend.cpp | 139 global_rect.rgt = global_rect.top = -2e30; // max values in runBlend() 213 fullRect.top = (int) floor(global_rect.bot); // min-y in runBlend() 215 fullRect.bottom = (int) ceil(global_rect.top);// max-y in runBlend() 217 Mheight = (unsigned short) (fullRect.bottom - fullRect.top + 1); in runBlend() 226 yTopMost = max(0, max(yTopCorners[0], yTopCorners[1]) - fullRect.top + 1); in runBlend() 227 yBottomMost = min(Mheight - 1, min(yBottomCorners[0], yBottomCorners[1]) - fullRect.top - 1); in runBlend() 279 cropping_rect.top = yTopMost; in runBlend() 299 mosaicHeight = cropping_rect.bottom - cropping_rect.top + 1; in runBlend() 611 for (j = cropping_rect.top; j <= cropping_rect.bottom; j++) in CropFinalMosaic() 619 for (j = cropping_rect.top; j <= cropping_rect.bottom; j++) in CropFinalMosaic() [all …]
|
/packages/apps/Mms/src/com/android/mms/ui/ |
D | AdaptableSlideViewInterface.java | 27 void setTextRegion(int left, int top, int width, int height); in setTextRegion() argument 31 void setImageRegion(int left, int top, int width, int height); in setImageRegion() argument 35 void setVideoRegion(int left, int top, int width, int height); in setVideoRegion() argument
|
D | QuickContactDivot.java | 133 final int top = 0; in computeBounds() local 144 top + cornerOffset, in computeBounds() 146 top + cornerOffset + mDrawableIntrinsicHeight); in computeBounds() 152 top + cornerOffset, in computeBounds() 154 top + cornerOffset + mDrawableIntrinsicHeight); in computeBounds()
|
/packages/apps/Browser/src/com/android/browser/view/ |
D | PieListView.java | 60 int top = mTop; in layoutChildrenLinear() local 62 view.layout(mLeft, top, mLeft + mChildWidth, top + mChildHeight); in layoutChildrenLinear() 63 top += mChildHeight; in layoutChildrenLinear()
|
D | PieStackView.java | 75 int top = mTop; in layoutChildrenLinear() local 79 view.layout(x, top, x + mChildWidth, top + mChildHeight); in layoutChildrenLinear() 80 top += dy; in layoutChildrenLinear()
|
D | ScrollerView.java | 937 final int top, View preferredFocusable) { in findFocusableViewInMyBounds() argument 946 final int topWithoutFadingEdge = top + fadingEdgeLength; in findFocusableViewInMyBounds() 947 …final int bottomWithoutFadingEdge = top + (mHorizontal ? getWidth() : getHeight()) - fadingEdgeLen… in findFocusableViewInMyBounds() 975 private View findFocusableViewInBounds(boolean topFocus, int top, int bottom) { in findFocusableViewInBounds() argument 995 if (top < viewBottom && viewTop < bottom) { in findFocusableViewInBounds() 1001 final boolean viewIsFullyContained = (top < viewTop) && in findFocusableViewInBounds() 1063 mTempRect.top = getScrollY() + height; in pageScroll() 1067 if (mTempRect.top + height > view.getBottom()) { in pageScroll() 1068 mTempRect.top = view.getBottom() - height; in pageScroll() 1072 mTempRect.top = getScrollY() - height; in pageScroll() [all …]
|
/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/ |
D | HandleView.java | 204 final int top = (getHeight() - mIconDragClipLeft.getIntrinsicHeight()) / 2; in onDraw() local 207 top, in onDraw() 209 top + mIconDragClipLeft.getIntrinsicHeight()); in onDraw() 216 top, in onDraw() local 218 top + mIconDragClipRight.getIntrinsicHeight()); in onDraw()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | InputView.java | 65 final int y = (int)me.getY() + rect.top; in forwardTouchEvent() 73 final int forwardingLimitY = forwardingRect.top + mKeyboardTopPadding; in forwardTouchEvent() 104 translatedY = Math.min(y - receivingRect.top, receivingRect.height() - 1); in forwardTouchEvent() 106 translatedY = y - receivingRect.top; in forwardTouchEvent()
|
/packages/apps/Camera/src/com/android/camera/ui/ |
D | IndicatorControlWheelContainer.java | 117 boolean changed, int left, int top, int right, int bottom) { in onLayout() argument 125 mCenterY = (bottom - top) / 2; in onLayout() 132 mCenterY = bottom - top - Util.dpToPixel(WHEEL_CENTER_TO_SECANT); in onLayout() 134 bottom - top - shutterButtonHeight, in onLayout() 136 bottom - top); in onLayout() 140 mIndicatorControlWheel.layout(0, 0, right - left, bottom - top); in onLayout()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | LinearColorBar.java | 71 mRect.top = off; in updateIndicator() 115 final int midTopY = mRect.top; in onDraw() 118 mColorPath.moveTo(indicatorLeft, mRect.top); in onDraw() 125 indicatorRight, mRect.top); in onDraw() 131 indicatorLeft+lineOffset, mRect.top); in onDraw() 135 indicatorRight-lineOffset, mRect.top); in onDraw()
|