Home
last modified time | relevance | path

Searched refs:bottom (Results 1 – 25 of 509) sorted by relevance

12345678910>>...21

/packages/apps/Car/RotaryController/src/com/android/car/rotary/
DFocusFinder.java56 return destRect.top < srcRect.bottom; in isPartiallyInDirection()
58 return destRect.bottom > srcRect.top; in isPartiallyInDirection()
98 return destRect.bottom > srcRect.bottom; in isInDirection()
135 return (srcRect.bottom > destRect.bottom || srcRect.top >= destRect.bottom) in isCandidate()
138 return (srcRect.top < destRect.top || srcRect.bottom <= destRect.top) in isCandidate()
139 && srcRect.bottom < destRect.bottom; in isCandidate()
251 return (rect2.bottom > rect1.top) && (rect2.top < rect1.bottom); in beamsOverlap()
270 return src.top >= dest.bottom; in isToDirectionOf()
272 return src.bottom <= dest.top; in isToDirectionOf()
295 return source.top - dest.bottom; in majorAxisDistanceRaw()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/ui/
DSelectionRenderer.java24 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/
DEventGeometry.kt80 event.bottom = top as Float in computeEventRect()
81 event.bottom += (endTime * cellMinuteHeight).toInt() in computeEventRect()
82 event.bottom += endHour * mHourGap - 1 in computeEventRect()
85 if (event.bottom < event.top + mMinEventHeight) { in computeEventRect()
86 event.bottom = event.top + mMinEventHeight in computeEventRect()
99 event.top < selection.bottom && event.bottom >= selection.top) { in eventIntersectsSelection()
111 val bottom: Float = event.bottom in pointToEvent() constant
115 if (y <= bottom) { in pointToEvent()
118 } else y - bottom in pointToEvent()
131 if (y > bottom) { in pointToEvent()
[all …]
/packages/providers/MediaProvider/pdf/framework/libs/pdfClient/
Drect.cc37 output.bottom = std::max(y1, y2); in IntRect()
50 return IntRect(floor(input.left), floor(input.top), ceil(input.right), ceil(input.bottom)); in OuterIntRect()
58 output.bottom = std::max(y1, y2); in DoubleRect()
67 output.bottom = std::min(lhs.bottom, rhs.bottom); in Intersect()
79 output.bottom = std::min(lhs.bottom, rhs.bottom); in Intersect()
91 output.bottom = std::max(lhs.bottom, rhs.bottom); in Union()
100 output.bottom = std::max(lhs.bottom, rhs.bottom); in Union()
Drect.h45 int bottom; member
49 int Height() const { return bottom - top; } in Height()
51 Point_i Center() const { return Point_i{(left + right) / 2, (top + bottom) / 2}; } in Center()
63 double bottom; member
67 double Height() const { return bottom - top; } in Height()
69 Point_d Center() const { return Point_d{(left + right) / 2, (top + bottom) / 2}; } in Center()
84 lhs.bottom == rhs.bottom;
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
DCropDrawingUtils.java40 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 …]
DCropObject.java208 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 …]
DBoundedRect.java221 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()
DCropMath.java46 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/screensavers/PhotoTable/src/com/android/dreams/phototable/
DSoftLandingInterpolator.java34 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/Camera2/src/com/android/camera/ui/
DMarginDrawable.java59 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/Camera2/src/com/android/camera/
DCaptureLayoutHelper.java183 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/apps/Gallery/src/com/android/camera/
DHighlightView.java127 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/Launcher3/src/com/android/launcher3/celllayout/
DViewCluster.kt71 val bottom = cs.cellY + cs.spanY in <lambda>() constant
74 for (j in top until bottom) { in <lambda>()
80 for (j in top until bottom) { in <lambda>()
93 if (bottom > bottomEdge[j]) { in <lambda>()
94 bottomEdge[j] = bottom in <lambda>()
105 val bottom = cs.cellY + cs.spanY in <lambda>() constant
114 LEFT -> edgeContainsValue(top, bottom, leftEdge, right) in <lambda>()
115 RIGHT -> edgeContainsValue(top, bottom, rightEdge, left) in <lambda>()
116 TOP -> edgeContainsValue(left, right, topEdge, bottom) in <lambda>()
/packages/apps/DeskClock/src/com/android/deskclock/
DAnimatorUtils.kt209 return view.bottom in <lambda>()
212 override fun set(view: View, bottom: Int) { in <lambda>()
213 view.bottom = bottom in <lambda>()
249 val startBottom = from.bottom - fromInsets.bottom + targetInsets.bottom in <lambda>()
255 val endBottom = to.bottom - toInsets.bottom + targetInsets.bottom in <lambda>()
279 view.bottom = fromBottom in <lambda>()
/packages/apps/TV/tuner/src/com/android/tv/tuner/layout/
DScaledLayout.java199 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/Messaging/src/com/android/messaging/ui/animation/
DRectEvaluatorCompat.java42 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/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/
DOverlayRenderer.java31 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/Launcher3/quickstep/src/com/android/quickstep/
DOrientationRectF.java38 public OrientationRectF(float left, float top, float right, float bottom, int rotation) { in OrientationRectF() argument
39 super(left, top, right, bottom); in OrientationRectF()
41 mHeight = bottom; in OrientationRectF()
55 return left < right && top < bottom // check for empty first in contains()
56 && x >= left && x <= right && y >= top && y <= bottom; in contains()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/navbutton/
DNearestTouchFrame.java78 protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
79 super.onLayout(changed, left, top, right, bottom);
129 int distance = childRegion.top - previousChildBounds.bottom;
132 previousChildBounds.bottom += midPoint - ((distance % 2) == 0 ? 1 : 0);
143 childRegion.bottom = getHeight();
162 int bottom = top + child.getHeight();
163 return new Rect(left, top, right, bottom);
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DFilterCropRepresentation.java68 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()
/packages/apps/Settings/src/com/android/settings/widget/
DChartView.java119 childRect.bottom + child.getPaddingBottom()); in onLayout()
123 child.layout(childRect.left, childRect.top, childRect.right, childRect.bottom); in onLayout()
133 sweep.layout(childRect.left, childRect.top, childRect.right, childRect.bottom); in layoutSweep()
142 parentRect.bottom = parentRect.top; in layoutSweep()
152 parentRect.bottom += sweepMargins.bottom; in layoutSweep()
DChartSweepView.java184 - 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/Messaging/src/com/android/messaging/ui/conversation/
DConversationFastScroller.java423 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/Gallery2/src/com/android/gallery3d/ui/
DGLView.java196 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

12345678910>>...21