/packages/apps/Car/RotaryController/src/com/android/car/rotary/ |
D | FocusFinder.java | 56 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/ |
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/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/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/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/DeskClock/src/com/android/deskclock/ |
D | AnimatorUtils.kt | 209 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/Launcher3/quickstep/src/com/android/quickstep/views/ |
D | TaskThumbnailView.java | 238 Math.round(bitmapRect.bottom - boundsInBitmapSpace.bottom)); in getScaledInsets() 267 getMeasuredHeight() + currentDrawnInsets.bottom, in onDraw() 318 float bottom = height - rounding; in drawOnCanvas() local 320 canvas.drawRoundRect(left, top, right, bottom, cornerRadius, cornerRadius, in drawOnCanvas() 322 canvas.drawRoundRect(left, top, right, bottom, cornerRadius, cornerRadius, in drawOnCanvas() 480 - (thumbnailClipHint.top + thumbnailClipHint.bottom); in updateThumbnailMatrix() 542 thumbnailClipHint.bottom += availableHeight - croppedHeight; in updateThumbnailMatrix() 544 thumbnailClipHint.bottom += thumbnailClipHint.top; in updateThumbnailMatrix() 546 } else if (thumbnailClipHint.bottom < 0) { in updateThumbnailMatrix() 547 thumbnailClipHint.top += thumbnailClipHint.bottom; in updateThumbnailMatrix() [all …]
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/ |
D | OrientationTouchTransformer.java | 287 orientationRectF.top = orientationRectF.bottom - touchHeight; in createRegionForDisplay() 303 orientationRectF.top = orientationRectF.bottom - touchHeight; in createRegionForDisplay() 307 mOneHandedModeRegion.set(0, orientationRectF.bottom - mNavBarLargerGesturalHeight, in createRegionForDisplay() 317 mAssistantLeftRegion.bottom = mAssistantRightRegion.bottom = orientationRectF.bottom; in updateAssistantRegions() 319 orientationRectF.bottom - assistantHeight; in updateAssistantRegions() 433 OrientationRectF(float left, float top, float right, float bottom, int rotation) { in OrientationRectF() argument 434 super(left, top, right, bottom); in OrientationRectF() 436 mHeight = bottom; in OrientationRectF() 450 return left < right && top < bottom // check for empty first in contains() 451 && x >= left && x <= right && y >= top && y <= bottom; in contains()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | Hotseat.java | 117 ? grid.workspacePadding.bottom in setInsets() 119 + (grid.isTaskbarPresent ? grid.taskbarSize : insets.bottom); in setInsets() 126 setPadding(padding.left, padding.top, padding.right, padding.bottom); in setInsets() 196 int bottom = b - t - getQsbOffsetY(); in onLayout() local 197 int top = bottom - mQsbHeight; in onLayout() 198 mQsb.layout(left, top, right, bottom); in onLayout() 207 ? dp.workspacePadding.bottom in getQsbOffsetY() 210 if (dp.isScalableGrid && dp.qsbBottomMarginPx > dp.getInsets().bottom) { in getQsbOffsetY() 215 : dp.getInsets().bottom); in getQsbOffsetY()
|
D | Utilities.java | 251 points[3] = viewBounds.bottom; in getBoundsForViewInDragLayer() 324 rectOut.bottom = (int) rectFSrc.bottom; in setRect() 337 r.bottom = r.bottom * scale; in scaleRectFAboutPivot() 357 r.bottom = (int) (r.bottom * scale + 0.5f); in scaleRect() 363 r.top = Math.min(r.bottom, r.top + insets.top); in insetRect() 365 r.bottom = Math.max(r.top, r.bottom - insets.bottom); in insetRect() 377 r.bottom -= deltaY; in shrinkRect() 461 return (int) Math.ceil(fm.bottom - fm.top); in calculateTextHeight() 798 inOutBounds.right = inOutBounds.bottom; 799 inOutBounds.bottom = parentWidth - origLeft; [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/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/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/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/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
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/ |
D | WallpaperCropUtils.java | 222 rect.bottom, in calculateCropRect() 223 cropRect.bottom + extraHeightTopAndBottom) - cropRect.bottom; in calculateCropRect() 228 cropRect.bottom += availableExtraHeightTopAndBottom; in calculateCropRect() 273 int bottom = (int) (centerY + (height / 2) / scale); in adjustCropRect() local 274 cropRect.set(left, top, right, bottom); in adjustCropRect() 335 wallpaperSize.bottom = (int) (wallpaperSize.bottom * scale + 0.5f); in fitToSize()
|
/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()
|