/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/ui/ |
D | SelectionRenderer.java | 24 public static void drawSelection(Canvas canvas, int left, int top, int right, int bottom, in drawSelection() argument 27 canvas.drawRect(left, bottom - stroke, right, bottom, paint); in drawSelection() 28 canvas.drawRect(left, top, left + stroke, bottom, paint); in drawSelection() 29 canvas.drawRect(right - stroke, top, right, bottom, paint); in drawSelection() 32 public static void drawSelection(Canvas canvas, int left, int top, int right, int bottom, in drawSelection() argument 35 canvas.drawRect(left, bottom - stroke, right, bottom, selectPaint); in drawSelection() 36 canvas.drawRect(left, top, left + stroke, bottom, selectPaint); in drawSelection() 37 canvas.drawRect(right - stroke, top, right, bottom, selectPaint); in drawSelection() 40 canvas.drawRect(left + stroke, bottom - stroke - border, right - stroke, in drawSelection() 41 bottom - stroke, borderPaint); in drawSelection() [all …]
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | EventGeometry.java | 91 event.bottom = top; in computeEventRect() 92 event.bottom += (int) (endTime * cellMinuteHeight); in computeEventRect() 93 event.bottom += endHour * mHourGap - 1; 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() 124 float bottom = event.bottom; in pointToEvent() local 129 if (y <= bottom) { in pointToEvent() 134 return y - bottom; in pointToEvent() 147 if (y > bottom) { in pointToEvent() [all …]
|
D | DayView.java | 1298 mExpandAllDayRect.bottom = mFirstCell - EXPAND_ALL_DAY_BOTTOM_MARGIN; in remeasure() 1299 mExpandAllDayRect.top = mExpandAllDayRect.bottom in remeasure() 1911 dest.bottom = (int) (mViewHeight - yTranslate); in onDraw() 2034 r.bottom = DAY_HEADER_HEIGHT; in drawAllDayHighlights() 2042 r.bottom = mFirstCell - 1; in drawAllDayHighlights() 2061 r.bottom = mFirstCell - 1; in drawAllDayHighlights() 2157 r.bottom = r.top + mCurrentTimeLine.getIntrinsicHeight(); in drawCurrentTimeLine() 2322 r.bottom = mDestRect.bottom; in drawBgColors() 2340 r.bottom = mViewStartY + mViewHeight; in drawBgColors() 2353 r.bottom = mViewStartY + mViewHeight; in drawBgColors() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/ |
D | CropDrawingUtils.java | 40 canvas.drawLine(x, bounds.top, x, bounds.bottom, p); in drawRuleOfThird() 69 r.set(bounds.left,bounds.bottom,w,h); in drawShade() 71 r.set(bounds.right,bounds.top,w,bounds.bottom); in drawShade() 94 drawIndicator(canvas, cropIndicator, indicatorSize, bounds.left, bounds.bottom); in drawIndicators() 97 drawIndicator(canvas, cropIndicator, indicatorSize, bounds.right, bounds.bottom); in drawIndicators() 104 … drawIndicator(canvas, cropIndicator, indicatorSize, bounds.centerX(), bounds.bottom); in drawIndicators() 136 path.lineTo(r1.left, r1.bottom); in drawWallpaperSelectionFrame() 137 path.moveTo(r1.left, r1.bottom); in drawWallpaperSelectionFrame() 138 path.lineTo(r1.right, r1.bottom); in drawWallpaperSelectionFrame() 140 path.lineTo(r1.right, r1.bottom); in drawWallpaperSelectionFrame() [all …]
|
D | CropObject.java | 208 dy = Math.min(crop.top + dY, crop.bottom - minWidthHeight) - crop.top; in moveCurrentSelection() 215 dy = Math.max(crop.bottom + dY, crop.top + minWidthHeight) in moveCurrentSelection() 216 - crop.bottom; in moveCurrentSelection() 221 crop.left, crop.bottom in moveCurrentSelection() 228 l2[1] = crop.bottom; in moveCurrentSelection() 254 crop.bottom += dy; in moveCurrentSelection() 270 float bottom = Math.abs(y - cropped.bottom); in calculateSelectedEdge() local 275 && ((y - mTouchTolerance) <= cropped.bottom) && (left < right)) { in calculateSelectedEdge() 279 && ((y - mTouchTolerance) <= cropped.bottom)) { in calculateSelectedEdge() 285 && ((x - mTouchTolerance) <= cropped.right) && (top < bottom)) { in calculateSelectedEdge() [all …]
|
D | BoundedRect.java | 221 ret.bottom = (p[1] < ret.bottom) ? p[1] : ret.bottom; in resizeInner() 226 ret.bottom = (p[1] < ret.bottom) ? p[1] : ret.bottom; in resizeInner() 265 } else if (inner.bottom == newInner.bottom) { in fixedAspectResizeInner() 315 ret.bottom = ret.top + heightSoFar; in fixedAspectResizeInner() 318 ret.bottom = ret.top + heightSoFar; in fixedAspectResizeInner() 321 ret.top = ret.bottom - heightSoFar; in fixedAspectResizeInner() 324 ret.top = ret.bottom - heightSoFar; in fixedAspectResizeInner()
|
D | CropMath.java | 46 r.right, r.bottom, in getCornersFromRect() 47 r.left, r.bottom in getCornersFromRect() 63 return !(x > r.right || x < r.left || y > r.bottom || y < r.top); in inclusiveContains() 82 r.bottom = (y > r.bottom) ? y : r.bottom; in trapToRect() 101 array[x + 1] = GeometryMathUtils.clamp(array[x + 1], imageBound.top, imageBound.bottom); in getEdgePoints() 200 r.bottom = r.top + finalH; in fixAspectRatioContained()
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/ |
D | RecentsUiFactory.java | 66 public void mapRect(int left, int top, int right, int bottom, Rect out) { 69 out.right = bottom; 70 out.bottom = left; 80 out.bottom = Math.max(insets.right, insets.bottom); 84 out.bottom = insets.right; 85 out.left = insets.bottom; 93 public void mapRect(int left, int top, int right, int bottom, Rect out) { 94 out.left = bottom; 97 out.bottom = right; 104 out.bottom = Math.max(insets.left, insets.bottom); [all …]
|
/packages/apps/Gallery/src/com/android/camera/ |
D | HighlightView.java | 127 int bottom = mDrawRect.bottom + 3; in draw() local 141 + ((mDrawRect.bottom - mDrawRect.top) / 2); in draw() 162 bottom - heightHeight, in draw() 164 bottom + heightHeight); in draw() 214 && (y < r.bottom + hysteresis); in getHit() 228 if ((Math.abs(r.bottom - y) < hysteresis) && horizCheck) { in getHit() 280 Math.min(0, mImageRect.bottom - mCropRect.bottom)); in moveBy() 339 } else if (r.bottom > mImageRect.bottom) { in growBy() 340 r.offset(0F, -(r.bottom - mImageRect.bottom)); in growBy() 351 (int) mCropRect.right, (int) mCropRect.bottom); in getCropRect() [all …]
|
/packages/apps/Camera2/src/com/android/camera/ |
D | CaptureLayoutHelper.java | 183 mPositionConfiguration.mBottomBarRect.bottom, in getUncoveredPreviewRect() 185 mPositionConfiguration.mPreviewRect.bottom); in getUncoveredPreviewRect() 198 mPositionConfiguration.mPreviewRect.bottom); in getUncoveredPreviewRect() 203 mPositionConfiguration.mPreviewRect.bottom); in getUncoveredPreviewRect() 306 float bottom = height; in getPositionConfiguration() local 307 float top = bottom - previewLongerEdge; in getPositionConfiguration() 308 config.mPreviewRect.set(0, top, previewShorterEdge, bottom); in getPositionConfiguration() 341 float bottom = height - barSize; in getPositionConfiguration() local 342 float top = bottom - previewLongerEdge; in getPositionConfiguration() 343 config.mPreviewRect.set(0, top, previewShorterEdge, bottom); in getPositionConfiguration() [all …]
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
D | SoftLandingInterpolator.java | 34 private final float bottom; field in SoftLandingInterpolator 43 bottom = mI - epsilon; in SoftLandingInterpolator() 45 upperRange = 1f - bottom; in SoftLandingInterpolator() 50 final float s = slide.getInterpolation((input - bottom) / upperRange) * (1f - mO) + mO; in getInterpolation() 53 if (input < bottom) { in getInterpolation() 56 final float alpha = (input - bottom) / (top - bottom); in getInterpolation()
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/layout/ |
D | ScaledLayout.java | 199 mRectArray[i].bottom += overflowedHeight; in onMeasure() 202 mRectArray[i].bottom -= mRectArray[i].top; in onMeasure() 205 if (mRectArray[i].bottom > height) { in onMeasure() 206 mRectArray[i].top -= mRectArray[i].bottom - height; in onMeasure() 207 mRectArray[i].bottom = height; in onMeasure() 239 visibleRectArray[i].bottom, in onMeasure() 241 visibleRectArray[i].bottom + visibleRectArray[j].height()); in onMeasure() 248 if (visibleRectArray[i].bottom > height) { in onMeasure() 249 int overflowedHeight = visibleRectArray[i].bottom - height; in onMeasure() 256 visibleRectArray[j].bottom - overflowedHeight); in onMeasure() [all …]
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
D | MarginDrawable.java | 59 if (s.top < s.bottom && s.left < s.right) { in draw() 65 canvas.drawRect(0, s.top, s.left + 1, s.bottom, mPaint); in draw() 68 canvas.drawRect(s.right - 1, s.top, cb.right, s.bottom, mPaint); in draw() 70 if (s.bottom < cb.bottom) { in draw() 71 canvas.drawRect(0, s.bottom - 1, cb.right, cb.bottom, mPaint); in draw()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | LauncherRootView.java | 67 && (insets.left > 0 || insets.right > 0 || insets.bottom > 0)) { in handleSystemWindowInsets() 70 mConsumedInsets.bottom = insets.bottom; in handleSystemWindowInsets() 77 insets.set(0, insets.top, 0, insets.bottom); in handleSystemWindowInsets() 93 lp.bottomMargin != mConsumedInsets.bottom) { in handleSystemWindowInsets() 97 lp.bottomMargin = mConsumedInsets.bottom; in handleSystemWindowInsets() 113 mConsumedInsets.right, mConsumedInsets.bottom); in onApplyWindowInsets() 145 if (mConsumedInsets.bottom > 0) { in dispatchDraw() 147 canvas.drawRect(0, height - mConsumedInsets.bottom, getWidth(), height, mOpaquePaint); in dispatchDraw()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/ |
D | PercentageBarChart.java | 78 final int bottom = getHeight() - getPaddingBottom(); in onDraw() local 97 canvas.drawRect(left, top, nextX, bottom, e.paint); in onDraw() 101 canvas.drawRect(lastX, top, nextX, bottom, e.paint); in onDraw() 106 canvas.drawRect(left, top, nextX, bottom, mEmptyPaint); in onDraw() 121 canvas.drawRect(lastX, top, right, bottom, e.paint); in onDraw() 125 canvas.drawRect(lastX, top, nextX, bottom, e.paint); in onDraw() 130 canvas.drawRect(lastX, top, right, bottom, mEmptyPaint); in onDraw()
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
D | PercentageBarChart.java | 78 final int bottom = getHeight() - getPaddingBottom(); in onDraw() local 97 canvas.drawRect(left, top, nextX, bottom, e.paint); in onDraw() 101 canvas.drawRect(lastX, top, nextX, bottom, e.paint); in onDraw() 106 canvas.drawRect(left, top, nextX, bottom, mEmptyPaint); in onDraw() 121 canvas.drawRect(lastX, top, right, bottom, e.paint); in onDraw() 125 canvas.drawRect(lastX, top, nextX, bottom, e.paint); in onDraw() 130 canvas.drawRect(lastX, top, right, bottom, mEmptyPaint); in onDraw()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/ |
D | ChartSweepView.java | 184 - mSweepPadding.bottom; in getTargetInset() 440 acceptDrag = event.getY() > getHeight() - (mSweepPadding.bottom * 8); in onTouchEvent() 496 requestedTargetY, clampRect.top, clampRect.bottom); in onTouchEvent() 620 if (beforeValid) clampRect.bottom = clampRect.top + (int) beforePoint; 658 - mSweepPadding.bottom; 660 mMargins.bottom = 0; 669 mMargins.bottom = mSweepPadding.bottom; 682 final int offset = mSweepPadding.bottom * 2; 683 mContentOffset.bottom -= offset; 684 mMargins.bottom += offset; [all …]
|
/packages/apps/Settings/src/com/android/settings/widget/ |
D | ChartSweepView.java | 184 - mSweepPadding.bottom; in getTargetInset() 440 acceptDrag = event.getY() > getHeight() - (mSweepPadding.bottom * 8); in onTouchEvent() 496 requestedTargetY, clampRect.top, clampRect.bottom); in onTouchEvent() 620 if (beforeValid) clampRect.bottom = clampRect.top + (int) beforePoint; 658 - mSweepPadding.bottom; 660 mMargins.bottom = 0; 669 mMargins.bottom = mSweepPadding.bottom; 682 final int offset = mSweepPadding.bottom * 2; 683 mContentOffset.bottom -= offset; 684 mMargins.bottom += offset; [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/graphics/ |
D | NinePatchDrawHelper.java | 48 mSrc.bottom = height; in draw() 50 mDst.bottom = top + height; in draw() 61 float right, float bottom) { in drawVerticallyStretched() argument 67 mSrc.bottom = height; in drawVerticallyStretched() 69 mDst.bottom = bottom; in drawVerticallyStretched()
|
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/ |
D | ConversationFastScroller.java | 423 public void onLayoutChange(View v, int left, int top, int right, int bottom, in onLayoutChange() argument 430 mContainer.set(left, top + mRv.getPaddingTop(), right, bottom); in onLayoutChange() 444 int bottom = mContainer.bottom; in layoutTrack() local 445 mTrackImageView.layout(left, top, right, bottom); in layoutTrack() 456 int bottom = top + mThumbHeight; in layoutThumb() local 457 mThumbImageView.layout(left, top, right, bottom); in layoutThumb() 481 int bottom = centerY; in layoutPreview() local 482 int top = bottom - mPreviewTextView.getMeasuredHeight(); in layoutPreview() 485 bottom = top + mPreviewTextView.getMeasuredHeight(); in layoutPreview() 487 mPreviewTextView.layout(left, top, right, bottom); in layoutPreview()
|
/packages/apps/Messaging/src/com/android/messaging/ui/animation/ |
D | RectEvaluatorCompat.java | 42 int bottom = startValue.bottom + (int) ((endValue.bottom - startValue.bottom) * fraction); in evaluate() local 43 return new Rect(left, top, right, bottom); in evaluate()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | GLView.java | 196 return mBounds.bottom - mBounds.top; in getHeight() 348 public void layout(int left, int top, int right, int bottom) { in layout() argument 349 boolean sizeChanged = setBounds(left, top, right, bottom); in layout() 355 onLayout(sizeChanged, left, top, right, bottom); in layout() 358 private boolean setBounds(int left, int top, int right, int bottom) { in setBounds() argument 360 || (bottom - top) != (mBounds.bottom - mBounds.top); in setBounds() 361 mBounds.set(left, top, right, bottom); in setBounds() 400 boolean changeSize, int left, int top, int right, int bottom) { in onLayout() argument
|
D | TileImageView.java | 193 boolean changeSize, int left, int top, int right, int bottom) { in onLayout() argument 194 super.onLayout(changeSize, left, top, right, bottom); in onLayout() 269 for (int y = r.top, bottom = r.bottom; y < bottom; y += size) { in layoutTiles() 318 int bottom = (int) Math.ceil(top + height / scale); in getRange() local 325 bottom = Math.min(mImageHeight, bottom); in getRange() 327 out.set(left, top, right, bottom); in getRange() 435 for (int ty = r.top, i = 0; ty < r.bottom; ty += size, i++) { in render() 643 source.bottom /= 2f; in drawTile() 646 source.bottom = (sTileSize + source.bottom) / 2f; in drawTile()
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/ |
D | OverlayRenderer.java | 31 private int bottom; field in OverlayRenderer 69 public void layout(int left, int top, int right, int bottom) { in layout() argument 73 this.bottom = bottom; in layout() 89 return bottom - top; in getHeight()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
D | FilterCropRepresentation.java | 68 if (mCrop.bottom != crop.mCrop.bottom in equals() 100 crop.bottom *= bitmapHeight; in findScaledCrop() 111 crop.bottom /= bitmapHeight; in findNormalizedCrop() 158 writer.name(BOUNDS[3]).value(mCrop.bottom); in serializeRepresentation() 174 mCrop.bottom = (float) reader.nextDouble(); in deSerializeRepresentation()
|