Home
last modified time | relevance | path

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

12345678910>>...32

/aosp14/frameworks/base/graphics/java/android/graphics/
H A DRectF.java60 this.bottom = bottom; in RectF()
77 bottom = r.bottom; in RectF()
88 bottom = r.bottom; in RectF()
207 this.bottom = bottom; in set()
220 this.bottom = src.bottom; in set()
233 this.bottom = src.bottom; in set()
362 if (this.bottom > bottom) { in intersect()
363 this.bottom = bottom; in intersect()
403 bottom = Math.min(a.bottom, b.bottom); in setIntersect()
487 this.bottom = bottom; in union()
[all …]
H A DRect.java88 this.bottom = bottom; in Rect()
105 bottom = r.bottom; in Rect()
119 bottom = r.bottom; in Rect()
370 this.bottom = bottom; in set()
440 bottom -= insets.bottom; in inset()
452 bottom -= insets.bottom; in inset()
467 this.bottom -= bottom; in inset()
545 if (this.bottom > bottom) this.bottom = bottom; in intersect()
577 bottom = Math.min(bottom, other.bottom); in intersectUnchecked()
598 bottom = Math.min(a.bottom, b.bottom); in setIntersect()
[all …]
H A DInsets.java38 public final int bottom; field in Insets
44 this.bottom = bottom; in Insets()
83 return new Rect(left, top, right, bottom); in toRect()
94 return Insets.of(a.left + b.left, a.top + b.top, a.right + b.right, a.bottom + b.bottom); in add()
105 return Insets.of(a.left - b.left, a.top - b.top, a.right - b.right, a.bottom - b.bottom); in subtract()
117 Math.max(a.right, b.right), Math.max(a.bottom, b.bottom)); in max()
129 Math.min(a.right, b.right), Math.min(a.bottom, b.bottom)); in min()
147 if (bottom != insets.bottom) return false; in equals()
160 result = 31 * result + bottom; in hashCode()
170 ", bottom=" + bottom + in toString()
[all …]
H A DOutline.java174 public void setRect(int left, int top, int right, int bottom) { in setRect() argument
175 setRoundRect(left, top, right, bottom, 0.0f); in setRect()
182 setRect(rect.left, rect.top, rect.right, rect.bottom); in setRect()
191 if (left >= right || top >= bottom) { in setRoundRect()
201 mRect.set(left, top, right, bottom); in setRoundRect()
243 public void setOval(int left, int top, int right, int bottom) { in setOval() argument
244 if (left >= right || top >= bottom) { in setOval()
249 if ((bottom - top) == (right - left)) { in setOval()
251 setRoundRect(left, top, right, bottom, (bottom - top) / 2.0f); in setOval()
262 mPath.addOval(left, top, right, bottom, Path.Direction.CW); in setOval()
[all …]
H A DPath.java546 addRect(rect.left, rect.top, rect.right, rect.bottom, dir); in addRect()
559 nAddRect(mNativePath, left, top, right, bottom, dir.nativeInt); in addRect()
569 addOval(oval.left, oval.top, oval.right, oval.bottom, dir); in addOval()
578 nAddOval(mNativePath, left, top, right, bottom, dir.nativeInt); in addOval()
612 nAddArc(mNativePath, left, top, right, bottom, startAngle, sweepAngle); in addArc()
652 addRoundRect(rect.left, rect.top, rect.right, rect.bottom, radii, dir); in addRoundRect()
663 public void addRoundRect(float left, float top, float right, float bottom, in addRoundRect() argument
858 float right, float bottom, int dir); in nAddRect() argument
860 float right, float bottom, int dir); in nAddOval() argument
865 float right, float bottom, float rx, float ry, int dir); in nAddRoundRect() argument
[all …]
H A DRegion.java76 nativeSetRect(mNativeRegion, r.left, r.top, r.right, r.bottom); in Region()
81 public Region(int left, int top, int right, int bottom) { in Region() argument
83 nativeSetRect(mNativeRegion, left, top, right, bottom); in Region()
107 public boolean set(int left, int top, int right, int bottom) { in set() argument
108 return nativeSetRect(mNativeRegion, left, top, right, bottom); in set()
189 return quickContains(r.left, r.top, r.right, r.bottom); in quickContains()
199 int bottom); in quickContains() argument
207 return quickReject(r.left, r.top, r.right, r.bottom); in quickReject()
267 return nativeOp(mNativeRegion, r.left, r.top, r.right, r.bottom, in op()
276 return nativeOp(mNativeRegion, left, top, right, bottom, in op()
[all …]
H A DCanvas.java552 return nSaveLayer(mNativeCanvasWrapper, left, top, right, bottom, in saveLayer()
561 return saveLayer(left, top, right, bottom, paint, ALL_SAVE_FLAG); in saveLayer()
978 return nClipRect(mNativeCanvasWrapper, left, top, right, bottom, in clipRect()
993 return nClipRect(mNativeCanvasWrapper, left, top, right, bottom, in clipOutRect()
1010 public boolean clipRect(int left, int top, int right, int bottom) { in clipRect() argument
1165 rect.left, rect.top, rect.right, rect.bottom); in quickReject()
1180 rect.left, rect.top, rect.right, rect.bottom); in quickReject()
1461 float right, float bottom);
1821 super.drawOval(left, top, right, bottom, paint);
1974 super.drawRect(left, top, right, bottom, paint);
[all …]
/aosp14/frameworks/base/libs/hwui/
H A DRect.h45 float bottom; variable
56 : left(left), top(top), right(right), bottom(bottom) {} in Rect()
78 a.bottom == b.bottom;
97 this->bottom = bottom; in set()
128 bottom = std::min(bottom, b); in doIntersect()
145 if (bottom < r.bottom) bottom = r.bottom; in unionWith()
151 bottom = r.bottom; in unionWith()
219 bottom = floorf(bottom + 0.5f); in snapToPixelBoundaries()
226 bottom = ceilf(bottom); in roundOut()
237 bottom = std::max(bottom, other.bottom); in expandToCover()
[all …]
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DTaskPositionerTests.java211 assertEquals(r.bottom, mPositioner.getWindowDragBounds().bottom); in testFreeWindowResizingTestAllEdges()
220 assertEquals(r.bottom, mPositioner.getWindowDragBounds().bottom); in testFreeWindowResizingTestAllEdges()
229 assertEquals(r.bottom, mPositioner.getWindowDragBounds().bottom); in testFreeWindowResizingTestAllEdges()
238 assertEquals(r.bottom, mPositioner.getWindowDragBounds().bottom); in testFreeWindowResizingTestAllEdges()
247 assertNotEquals(r.bottom, mPositioner.getWindowDragBounds().bottom); in testFreeWindowResizingTestAllEdges()
256 assertNotEquals(r.bottom, mPositioner.getWindowDragBounds().bottom); in testFreeWindowResizingTestAllEdges()
265 assertNotEquals(r.bottom, mPositioner.getWindowDragBounds().bottom); in testFreeWindowResizingTestAllEdges()
274 assertEquals(r.bottom, mPositioner.getWindowDragBounds().bottom); in testFreeWindowResizingTestAllEdges()
389 assertBoundsEquals(new Rect(r.left, r.bottom - h, r.right, r.bottom), in testLandscapePreservedWindowResizingDragTop()
422 new Rect(r.right - w, r.bottom - h, r.right, r.bottom), in testPortraitPreservedWindowResizingDragTopLeft()
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
H A DNotificationSection.java143 int newEndValue = mBounds.bottom; in startBottomAnimation()
183 mStartAnimationRect.bottom = mCurrentBounds.bottom; in startBottomAnimation()
194 mCurrentBounds.bottom = bottom; in setBackgroundBottom()
236 return (mBottomAnimator == null && mCurrentBounds.bottom == bottom) in isTargetBottom()
237 || (mBottomAnimator != null && mEndAnimationRect.bottom == bottom); in isTargetBottom()
250 int bottom = minTopPosition; in updateBounds() local
267 bottom = Math.max(bottom, finalTranslationY in updateBounds()
294 bottom = Math.max(bottom, Math.max(newBottom, minBottomPosition)); in updateBounds()
296 bottom = Math.max(top, bottom); in updateBounds()
298 mBounds.bottom = bottom; in updateBounds()
[all …]
/aosp14/frameworks/base/core/java/android/view/
H A DGravity.java265 outRect.bottom = outRect.top + h; in apply()
271 if (outRect.bottom > container.bottom) { in apply()
272 outRect.bottom = container.bottom; in apply()
281 if (outRect.bottom > container.bottom) { in apply()
282 outRect.bottom = container.bottom; in apply()
287 outRect.bottom = container.bottom - yAdj; in apply()
298 outRect.bottom = container.bottom + yAdj; in apply()
353 if (inoutObj.bottom > display.bottom) inoutObj.bottom = display.bottom; in applyDisplay()
357 else if (inoutObj.bottom > display.bottom) off = display.bottom-inoutObj.bottom; in applyDisplay()
361 inoutObj.bottom = display.bottom; in applyDisplay()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/
H A DFakeSessionTest.java89 assertEquals("requested bottom", 10, result.requested.bottom); in testCaptureAtZero()
91 assertEquals("captured bottom", 10, result.captured.bottom); in testCaptureAtZero()
109 assertEquals("requested bottom", 100, result.requested.bottom); in testCaptureAtPageBottom()
111 assertEquals("captured bottom", 100, result.captured.bottom); in testCaptureAtPageBottom()
129 assertEquals("requested bottom", -90, result.requested.bottom); in testCaptureFromPreviousPage()
131 assertEquals("captured bottom", -90, result.captured.bottom); in testCaptureFromPreviousPage()
151 assertEquals("captured bottom", 160, result.captured.bottom); in testCaptureFromNextPage()
171 assertEquals("captured bottom", -75, result.captured.bottom); in testCaptureTopPartiallyUnavailable()
191 assertEquals("captured bottom", 100, result.captured.bottom); in testCaptureBottomPartiallyUnavailable()
237 assertEquals("captured bottom", 75, result.captured.bottom); in testCaptureBottomPartiallyInvisible()
[all …]
/aosp14/frameworks/base/core/tests/coretests/src/android/text/
H A DLayoutBidiCursorPathTest.java74 expectedPath.lineTo(h1, bottom); in testGetCursorPathSegments()
99 final int dist = (bottom - top) / 4; in testGetCursorPath_whenShiftIsPressed()
100 bottom -= dist; in testGetCursorPath_whenShiftIsPressed()
105 expectedPath.lineTo(h1, bottom); in testGetCursorPath_whenShiftIsPressed()
107 expectedPath.moveTo(h1, bottom); in testGetCursorPath_whenShiftIsPressed()
108 expectedPath.lineTo(h1 - dist, bottom + dist); in testGetCursorPath_whenShiftIsPressed()
110 expectedPath.moveTo(h1 - dist, bottom + dist - 0.5f); in testGetCursorPath_whenShiftIsPressed()
113 expectedPath.moveTo(h1 + dist, bottom + dist); in testGetCursorPath_whenShiftIsPressed()
114 expectedPath.lineTo(h1, bottom); in testGetCursorPath_whenShiftIsPressed()
138 final int dist = (bottom - top) / 4; in testGetCursorPath_whenAltIsPressed()
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ui/
H A DCredentialPasswordView.kt65 super.onLayout(changed, left, top, right, bottom)
71 var headerBottomBounds = bottom
72 val subTitleBottom: Int = if (subtitleView.isGone) titleView.bottom else subtitleView.bottom
75 inputTopBound = (bottom - credentialInput.height) / 2
78 if (descriptionView.bottom > headerBottomBounds) {
79 headerTopBounds -= iconView.bottom.coerceAtMost(bottomInset)
86 if (bottom - inputTopBound < credentialInput.height) {
87 inputTopBound = bottom - credentialInput.height
90 if (descriptionView.bottom > inputTopBound) {
117 if (bottomInset != bottomInsets.bottom) {
[all …]
/aosp14/frameworks/base/packages/SystemUI/compose/core/src/com/android/compose/modifiers/
H A DPadding.kt48 bottom: Density.() -> Int = PaddingUnspecified,
55 bottom,
63 properties["bottom"] = bottom
78 bottom = vertical,
96 val bottom: Density.() -> Int,
107 val bottom = bottom() regex
110 val vertical = top + bottom
129 result = 31 * result + bottom.hashCode()
139 bottom == otherModifier.bottom &&
/aosp14/frameworks/base/core/java/android/animation/
H A DRectEvaluator.java76 int bottom = startValue.bottom + (int) ((endValue.bottom - startValue.bottom) * fraction); in evaluate() local
78 return new Rect(left, top, right, bottom); in evaluate()
80 mRect.set(left, top, right, bottom); in evaluate()
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/
H A DDragPositioningCallbackUtilityTest.kt102 assertThat(repositionTaskBounds.bottom).isEqualTo(STARTING_BOUNDS.bottom)
122 assertThat(repositionTaskBounds.bottom).isEqualTo(STARTING_BOUNDS.bottom)
142 assertThat(repositionTaskBounds.bottom).isEqualTo(STARTING_BOUNDS.bottom)
161 assertThat(repositionTaskBounds.bottom).isEqualTo(STARTING_BOUNDS.bottom)
180 assertThat(repositionTaskBounds.bottom).isEqualTo(STARTING_BOUNDS.bottom)
187 STARTING_BOUNDS.bottom.toFloat())
191 var newY = STARTING_BOUNDS.bottom.toFloat() + 10
207 assertThat(repositionTaskBounds.bottom).isEqualTo(STARTING_BOUNDS.bottom + 10)
222 DISPLAY_BOUNDS.bottom - NAVBAR_HEIGHT,
224 DISPLAY_BOUNDS.bottom)
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/phone/
H A DPhonePipKeepClearAlgorithmTest.java186 0, DISPLAY_BOUNDS.bottom - 100, 100, DISPLAY_BOUNDS.bottom); in adjust_aboveDisplayBounds_onLeftEdge_appliesBottomLeftGravity()
204 0, DISPLAY_BOUNDS.bottom - 50, 100, DISPLAY_BOUNDS.bottom + 50); in adjust_belowDisplayBounds_onLeftEdge_appliesBottomLeftGravity()
206 0, DISPLAY_BOUNDS.bottom - 100, 100, DISPLAY_BOUNDS.bottom); in adjust_belowDisplayBounds_onLeftEdge_appliesBottomLeftGravity()
227 DISPLAY_BOUNDS.right - 100, DISPLAY_BOUNDS.bottom - 100, in adjust_aboveDisplayBounds_onRightEdge_appliesBottomRightGravity()
228 DISPLAY_BOUNDS.right, DISPLAY_BOUNDS.bottom); in adjust_aboveDisplayBounds_onRightEdge_appliesBottomRightGravity()
246 DISPLAY_BOUNDS.right - 100, DISPLAY_BOUNDS.bottom - 50, in adjust_belowDisplayBounds_onRightEdge_appliesBottomRightGravity()
247 DISPLAY_BOUNDS.right, DISPLAY_BOUNDS.bottom + 50); in adjust_belowDisplayBounds_onRightEdge_appliesBottomRightGravity()
250 DISPLAY_BOUNDS.right, DISPLAY_BOUNDS.bottom); in adjust_belowDisplayBounds_onRightEdge_appliesBottomRightGravity()
270 0, DISPLAY_BOUNDS.bottom - 100, 100, DISPLAY_BOUNDS.bottom); in adjust_whileStashed_aboveDisplayBounds_alignsToBottomInset()
288 0, DISPLAY_BOUNDS.bottom - 50, 100, DISPLAY_BOUNDS.bottom + 50); in adjust_whileStashed_belowDisplayBounds_alignsToBottomInset()
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
H A DExpandableOutlineView.java72 int bottom = Math.max(getActualHeight() - mClipBottomAmount, top);
73 outline.setRect(left, top, right, bottom);
102 int bottom; in getClipPath() local
116 bottom = Math.max(mMinimumHeightForClipping, in getClipPath()
122 bottom = mOutlineRect.bottom; in getClipPath()
124 height = bottom - top; in getClipPath()
150 int bottom, in getRoundedRectPath() argument
294 setOutlineRect(rect.left, rect.top, rect.right, rect.bottom); in setOutlineRect()
349 protected void setOutlineRect(float left, float top, float right, float bottom) { in setOutlineRect() argument
352 mOutlineRect.set((int) left, (int) top, (int) right, (int) bottom); in setOutlineRect()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/wm/utils/
H A DInsetUtils.java46 r.set(r.top, r.right, r.bottom, r.left); in rotateInsets()
49 r.set(r.right, r.bottom, r.left, r.top); in rotateInsets()
52 r.set(r.bottom, r.left, r.top, r.right); in rotateInsets()
66 inOutInsets.bottom += insetsToAdd.bottom; in addInsets()
92 Math.min(h, Math.max(0, outerFrame.bottom - innerFrame.bottom))); in insetsBetweenFrames()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/scrim/
H A DScrimDrawable.java228 mBoundsRectF.bottom -= bottomEdgeRadius; in draw()
238 if (mBoundsRectF.bottom - mBoundsRectF.top > bottomEdgeRadius) { in draw()
248 mPath.lineTo(mBoundsRectF.left, mBoundsRectF.bottom - bottomEdgeRadius); in draw()
249 mPath.cubicTo(mBoundsRectF.left, mBoundsRectF.bottom - bottomEdgeRadius, in draw()
250 mBoundsRectF.left, mBoundsRectF.bottom, in draw()
251 mBoundsRectF.left + bottomEdgeRadius, mBoundsRectF.bottom); in draw()
252 mPath.lineTo(mBoundsRectF.right - bottomEdgeRadius, mBoundsRectF.bottom); in draw()
254 mBoundsRectF.right, mBoundsRectF.bottom, in draw()
255 mBoundsRectF.right, mBoundsRectF.bottom - bottomEdgeRadius); in draw()
261 getBounds().bottom, mPaint); in draw()
[all …]
/aosp14/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
H A DFaceSquareFilter.java86 int bottom = (tempRect.bottom+HEIGHT_OFFSET)*dims[1]/FACE_X_RANGE; in drawBoxes() local
100 if (bottom > dims[1]) { in drawBoxes()
101 bottom = dims[1]; in drawBoxes()
102 } else if (bottom < 0) { in drawBoxes()
103 bottom = 0; in drawBoxes()
111 for (int j = 0; j < (bottom - top); j++) { in drawBoxes()
145 if (bottom < dims[1]) { in drawBoxes()
146 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * bottom + left + k) + in drawBoxes()
148 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * bottom + left + k) + in drawBoxes()
150 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * bottom + left + k) + in drawBoxes()
/aosp14/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/helpers/
H A DLetterboxAppHelper.kt69 fun repositionVertically(displayBounds: Rect, bottom: Boolean) {
70 val y = if (bottom) displayBounds.bottom - BOUNDS_OFFSET else BOUNDS_OFFSET
104 bottom: Boolean
112 return@add if (bottom)
113 appRegionBounds.bottom == displayBounds.bottom &&
114 appRegionBounds.top == (displayBounds.bottom - appHeight + navBarHeight)
117 appRegionBounds.bottom == displayBounds.top + appHeight
/aosp14/frameworks/base/tools/orientationplot/
H A Dorientationplot.py341 self.timebase += timedelta(seconds=bottom)
342 self._scroll(self.raw_acceleration_x, bottom)
343 self._scroll(self.raw_acceleration_y, bottom)
344 self._scroll(self.raw_acceleration_z, bottom)
350 self._scroll(self.tilt_angle, bottom)
351 self._scroll(self.orientation_angle, bottom)
352 self._scroll(self.current_rotation, bottom)
353 self._scroll(self.proposed_rotation, bottom)
359 self._scroll(self.sample_latency, bottom)
384 def _scroll(self, timeseries, bottom): argument
[all …]
/aosp14/frameworks/base/core/jni/
H A Djni_common.cpp29 jfieldID bottom; member
39 int bottom = env->GetIntField(rectObj, gRectClassInfo.bottom); in rectFromObj() local
40 return Rect(left, top, right, bottom); in rectFromObj()
45 gRectClassInfo.bottom = GetFieldIDOrDie(env, rectClazz, "bottom", "I"); in register_jni_common()

12345678910>>...32