Home
last modified time | relevance | path

Searched refs:top (Results 1 – 25 of 899) sorted by relevance

12345678910>>...36

/frameworks/base/graphics/java/android/graphics/
DRectF.java34 public float top; field in RectF
53 public RectF(float left, float top, float right, float bottom) { in RectF() argument
55 this.top = top; in RectF()
69 left = top = right = bottom = 0.0f; in RectF()
72 top = r.top; in RectF()
80 left = top = right = bottom = 0.0f; in RectF()
83 top = r.top; in RectF()
95 return left == r.left && top == r.top && right == r.right && bottom == r.bottom; in equals()
101 result = 31 * result + (top != +0.0f ? Float.floatToIntBits(top) : 0); in hashCode()
108 return "RectF(" + left + ", " + top + ", " in toString()
[all …]
DRect.java42 public int top; field in Rect
76 public Rect(int left, int top, int right, int bottom) { in Rect() argument
78 this.top = top; in Rect()
92 left = top = right = bottom = 0; in Rect()
95 top = r.top; in Rect()
107 return left == r.left && top == r.top && right == r.right && bottom == r.bottom; in equals()
113 result = 31 * result + top; in hashCode()
123 sb.append(top); sb.append(" - "); sb.append(right); in toString()
142 sb.append(top); sb.append("]["); sb.append(right); in toShortString()
161 sb.append(top); in flattenToString()
[all …]
DInsets.java32 public final int top; field in Insets
36 private Insets(int left, int top, int right, int bottom) { in Insets() argument
38 this.top = top; in Insets()
55 public static Insets of(int left, int top, int right, int bottom) { in of() argument
56 if (left == 0 && top == 0 && right == 0 && bottom == 0) { in of()
59 return new Insets(left, top, right, bottom); in of()
70 return (r == null) ? NONE : of(r.left, r.top, r.right, r.bottom); in of()
91 if (top != insets.top) return false; in equals()
99 result = 31 * result + top; in hashCode()
109 ", top=" + top + in toString()
DOutline.java173 public void setRect(int left, int top, int right, int bottom) { in setRect() argument
174 setRoundRect(left, top, right, bottom, 0.0f); in setRect()
181 setRect(rect.left, rect.top, rect.right, rect.bottom); in setRect()
189 public void setRoundRect(int left, int top, int right, int bottom, float radius) { in setRoundRect() argument
190 if (left >= right || top >= bottom) { in setRoundRect()
200 mRect.set(left, top, right, bottom); in setRoundRect()
208 setRoundRect(rect.left, rect.top, rect.right, rect.bottom, radius); in setRoundRect()
242 public void setOval(int left, int top, int right, int bottom) { in setOval() argument
243 if (left >= right || top >= bottom) { in setOval()
248 if ((bottom - top) == (right - left)) { in setOval()
[all …]
DPath.java458 arcTo(oval.left, oval.top, oval.right, oval.bottom, startAngle, sweepAngle, forceMoveTo); in arcTo()
473 arcTo(oval.left, oval.top, oval.right, oval.bottom, startAngle, sweepAngle, false); in arcTo()
488 public void arcTo(float left, float top, float right, float bottom, float startAngle, in arcTo() argument
491 nArcTo(mNativePath, left, top, right, bottom, startAngle, sweepAngle, forceMoveTo); in arcTo()
519 private void detectSimplePath(float left, float top, float right, float bottom, Direction dir) { in detectSimplePath() argument
527 rects.op((int) left, (int) top, (int) right, (int) bottom, Region.Op.UNION); in detectSimplePath()
538 addRect(rect.left, rect.top, rect.right, rect.bottom, dir); in addRect()
550 public void addRect(float left, float top, float right, float bottom, Direction dir) { in addRect() argument
551 detectSimplePath(left, top, right, bottom, dir); in addRect()
552 nAddRect(mNativePath, left, top, right, bottom, dir.nativeInt); in addRect()
[all …]
DCanvas.java445 return saveLayer(bounds.left, bounds.top, bounds.right, bounds.bottom, paint, saveFlags); in saveLayer()
483 public int saveLayer(float left, float top, float right, float bottom, @Nullable Paint paint, in saveLayer() argument
485 return nSaveLayer(mNativeCanvasWrapper, left, top, right, bottom, in saveLayer()
494 public int saveLayer(float left, float top, float right, float bottom, @Nullable Paint paint) { in saveLayer() argument
495 return saveLayer(left, top, right, bottom, paint, ALL_SAVE_FLAG); in saveLayer()
531 … return saveLayerAlpha(bounds.left, bounds.top, bounds.right, bounds.bottom, alpha, saveFlags); in saveLayerAlpha()
552 public int saveLayerAlpha(float left, float top, float right, float bottom, int alpha, in saveLayerAlpha() argument
555 return nSaveLayerAlpha(mNativeCanvasWrapper, left, top, right, bottom, in saveLayerAlpha()
563 public int saveLayerAlpha(float left, float top, float right, float bottom, int alpha) { in saveLayerAlpha() argument
564 return saveLayerAlpha(left, top, right, bottom, alpha, ALL_SAVE_FLAG); in saveLayerAlpha()
[all …]
/frameworks/base/libs/hwui/
DRect.h34 (r).left, (r).top, (r).right, (r).bottom
36 (r).left(), (r).top(), (r).right(), (r).bottom()
45 float top; variable
57 top(0), in Rect()
62 inline Rect(float left, float top, float right, float bottom): in Rect() argument
64 top(top), in Rect()
71 top(0.0f), in Rect()
78 top(rect.fTop), in Rect()
85 top(rect.fTop), in Rect()
99 left = top = right = bottom = 0.0f; in clear()
[all …]
/frameworks/native/libs/ui/
DRect.cpp35 top = 0; in makeInvalid()
41 if (top < rhs.top) { in operator <()
43 } else if (top == rhs.top) { in operator <()
61 bottom -= top - y; in offsetTo()
63 top = y; in offsetTo()
69 top += y; in offsetBy()
76 const Rect result(left + rhs.x, top + rhs.y, right + rhs.x, bottom + rhs.y); in operator +()
81 const Rect result(left - rhs.x, top - rhs.y, right - rhs.x, bottom - rhs.y); in operator -()
87 result->top = max(top, with.top); in intersect()
96 result = Rect(width - result.right, result.top, width - result.left, in transform()
[all …]
/frameworks/base/core/java/android/view/
DGravity.java231 outRect.top = container.top in apply()
232 + ((container.bottom - container.top - h)/2) + yAdj; in apply()
233 outRect.bottom = outRect.top + h; in apply()
236 if (outRect.top < container.top) { in apply()
237 outRect.top = container.top; in apply()
245 outRect.top = container.top + yAdj; in apply()
246 outRect.bottom = outRect.top + h; in apply()
256 outRect.top = outRect.bottom - h; in apply()
259 if (outRect.top < container.top) { in apply()
260 outRect.top = container.top; in apply()
[all …]
DWindowInsets.java143 return mSystemWindowInsets.top; in getSystemWindowInsetTop()
197 return mWindowDecorInsets.top; in getWindowDecorInsetTop()
238 return mSystemWindowInsets.left != 0 || mSystemWindowInsets.top != 0 || in hasSystemWindowInsets()
253 return mWindowDecorInsets.left != 0 || mWindowDecorInsets.top != 0 || in hasWindowDecorInsets()
319 public WindowInsets consumeSystemWindowInsets(boolean left, boolean top, in consumeSystemWindowInsets() argument
321 if (left || top || right || bottom) { in consumeSystemWindowInsets()
325 top ? 0 : mSystemWindowInsets.top, in consumeSystemWindowInsets()
343 public WindowInsets replaceSystemWindowInsets(int left, int top, in replaceSystemWindowInsets() argument
346 result.mSystemWindowInsets = new Rect(left, top, right, bottom); in replaceSystemWindowInsets()
377 public WindowInsets consumeWindowDecorInsets(boolean left, boolean top, in consumeWindowDecorInsets() argument
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/
DTaskPositionerTests.java80 final int midY = (r.top + r.bottom) / 2; in testBasicFreeWindowResizing()
84 false /*preserveOrientation*/, r.left - MOUSE_DELTA_X, r.top - MOUSE_DELTA_Y, r); in testBasicFreeWindowResizing()
98 mPositioner.resizeDrag(2000.0f, r.top); in testBasicFreeWindowResizing()
100 new Rect(r.right - mMinVisibleWidth, r.top + MOUSE_DELTA_Y, r.right, r.bottom), in testBasicFreeWindowResizing()
115 assertBoundsEquals(new Rect(MOUSE_DELTA_X, r.top, r.right, r.bottom), in testBasicFreeWindowResizing()
120 assertBoundsEquals(new Rect(200 + MOUSE_DELTA_X, r.top, r.right, r.bottom), in testBasicFreeWindowResizing()
125 assertBoundsEquals(new Rect(r.left + MOUSE_DELTA_X, r.top, r.right, r.bottom), in testBasicFreeWindowResizing()
130 assertBoundsEquals(new Rect(r.left + MOUSE_DELTA_X, r.top, r.right, r.bottom), in testBasicFreeWindowResizing()
142 final int midY = (r.top + r.bottom) / 2; in testFreeWindowResizingTestAllEdges()
146 false /*preserveOrientation*/, r.left - MOUSE_DELTA_X, r.top - MOUSE_DELTA_Y, r); in testFreeWindowResizingTestAllEdges()
[all …]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
DFaceSquareFilter.java85 int top = (tempRect.top+HEIGHT_OFFSET)*dims[1]/FACE_X_RANGE; in drawBoxes() local
90 if (top < 0) { in drawBoxes()
91 top = 0; in drawBoxes()
92 } else if (top > dims[1]) { in drawBoxes()
93 top = dims[1]; in drawBoxes()
111 for (int j = 0; j < (bottom - top); j++) { in drawBoxes()
113 if (left > 0 && top > 0) { in drawBoxes()
114 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + left) + in drawBoxes()
116 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + left) + in drawBoxes()
118 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + left) + in drawBoxes()
[all …]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/samples/simplecamera/
DFaceSquareFilterTest.java87 int top = (faceRect.top+HEIGHT_OFFSET)*bitmap.getHeight()/FACE_X_RANGE; in testFaceSquareFilter() local
92 if (top < 0) { in testFaceSquareFilter()
93 top = 0; in testFaceSquareFilter()
94 } else if (top > bitmap.getHeight()) { in testFaceSquareFilter()
95 top = bitmap.getHeight(); in testFaceSquareFilter()
113 for (int j = 0; j < (bottom - top); j++) { in testFaceSquareFilter()
115 if (left > 0 && top > 0) { in testFaceSquareFilter()
116 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + left) + in testFaceSquareFilter()
118 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + left) + in testFaceSquareFilter()
120 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + left) + in testFaceSquareFilter()
[all …]
/frameworks/native/libs/ui/include/ui/
DRect.h53 left = top = 0; in Rect()
60 top = t; in Rect()
67 top = lt.y; in Rect()
75 left = top = right = bottom = 0; in clear()
95 return bottom - top; in getHeight()
99 return Rect(right - left, bottom - top); in getBounds()
104 top = lt.y; in setLeftTop()
114 return Point(left, top); in leftTop()
120 return Point(right, top); in rightTop()
128 return (left == rhs.left) && (top == rhs.top) &&
[all …]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/graphics/
DBoundsRule.java129 if (top == null) { in calculateBounds()
130 result.top = rect.top; in calculateBounds()
132 result.top = doCalculate(rect.top, top, rect.height()); in calculateBounds()
138 result.bottom = doCalculate(rect.top, bottom, rect.height()); in calculateBounds()
147 this.top = boundsRule.top != null ? new ValueRule(boundsRule.top) : null; in BoundsRule()
159 public ValueRule top; field in BoundsRule
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
Dh264bsd_deblocking.c133 u32 top; member
1154 bS[0].top = bS[1].top = bS[2].top = bS[3].top = 4; in GetBoundaryStrengths()
1159 bS[0].top = EdgeBoundaryStrength(mb, mb->mbB, 0, 10); in GetBoundaryStrengths()
1160 bS[1].top = EdgeBoundaryStrength(mb, mb->mbB, 1, 11); in GetBoundaryStrengths()
1161 bS[2].top = EdgeBoundaryStrength(mb, mb->mbB, 4, 14); in GetBoundaryStrengths()
1162 bS[3].top = EdgeBoundaryStrength(mb, mb->mbB, 5, 15); in GetBoundaryStrengths()
1163 if (bS[0].top || bS[1].top || bS[2].top || bS[3].top) in GetBoundaryStrengths()
1169 bS[0].top = bS[1].top = bS[2].top = bS[3].top = 0; in GetBoundaryStrengths()
1199 bS[4].top = bS[5].top = bS[6].top = bS[7].top = in GetBoundaryStrengths()
1200 bS[8].top = bS[9].top = bS[10].top = bS[11].top = in GetBoundaryStrengths()
[all …]
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
DStyledCornersBitmapDrawable.java250 float top = bounds.top + mBorderWidth / 2; in draw() local
258 flapCornerRectF.offsetTo(left, top); in draw()
263 flapCornerRectF.offsetTo(right - mCornerFlapSide, top); in draw()
305 float top = bounds.top; in drawFakeCornersForCompatibilityMode() local
313 fakeCornerRectF.offsetTo(left, top); in drawFakeCornersForCompatibilityMode()
315 mCompatibilityModePath.moveTo(left, top); in drawFakeCornersForCompatibilityMode()
316 mCompatibilityModePath.lineTo(left + mCornerRoundRadius, top); in drawFakeCornersForCompatibilityMode()
322 fakeCornerRectF.offsetTo(right - fakeCornerRectF.width(), top); in drawFakeCornersForCompatibilityMode()
324 mCompatibilityModePath.moveTo(right, top); in drawFakeCornersForCompatibilityMode()
325 mCompatibilityModePath.lineTo(right, top + mCornerRoundRadius); in drawFakeCornersForCompatibilityMode()
[all …]
/frameworks/compile/mclinker/lib/Script/
DRpnEvaluator.cpp46 Operand* opd = operandStack.top(); in eval()
53 Operand* opd2 = operandStack.top(); in eval()
55 Operand* opd1 = operandStack.top(); in eval()
63 Operand* opd3 = operandStack.top(); in eval()
65 Operand* opd2 = operandStack.top(); in eval()
67 Operand* opd1 = operandStack.top(); in eval()
108 assert(operandStack.top()->type() == Operand::SYMBOL || in eval()
109 operandStack.top()->type() == Operand::INTEGER || in eval()
110 operandStack.top()->type() == Operand::FRAGMENT); in eval()
111 pResult = operandStack.top()->value(); in eval()
/frameworks/base/tests/UiBench/src/com/android/test/uibench/
DSaveLayerInterleaveActivity.java63 int top = bounds.top; in onCreate()
70 for (int i = 0; i < regions; i++, top += smallRectHeight) { in onCreate()
71 canvas.saveLayer(bounds.left, top, bounds.right, top + padding, in onCreate()
74 canvas.drawText("offscreen line "+ i, bounds.left, top + padding, in onCreate()
78 Rect partX = new Rect(bounds.left, top + padding, in onCreate()
79 bounds.right,top + smallRectHeight - padding); in onCreate()
82 top + smallRectHeight - padding, mGreenPaint); in onCreate()
/frameworks/base/core/java/com/android/internal/policy/
DPipSnapAlgorithm.java126 final int y = stackBounds.top; in getEdgeIntersect()
143 horizPoint.y = velY > 0 ? movementBounds.bottom : movementBounds.top; in getEdgeIntersect()
156 ? movementBounds.bottom - stackBounds.top in getEdgeIntersect()
157 : stackBounds.top - movementBounds.top; in getEdgeIntersect()
175 horizPoint.y = stackBounds.top + (velY > 0 ? distance : -distance); in getEdgeIntersect()
207 final Rect pipBounds = new Rect(movementBounds.left, movementBounds.top, in findClosestSnapBounds()
218 snapTargets[i] = new Point(tmpBounds.left, tmpBounds.top); in findClosestSnapBounds()
220 Point snapTarget = findClosestPoint(stackBounds.left, stackBounds.top, snapTargets); in findClosestSnapBounds()
221 float distance = distanceToPoint(snapTarget, stackBounds.left, stackBounds.top); in findClosestSnapBounds()
239 snapTargets[i] = new Point(tmpBounds.left, tmpBounds.top); in findClosestSnapBounds()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/
DBatteryMeterDrawableBase.java222 public void setBounds(int left, int top, int right, int bottom) { in setBounds() argument
223 super.setBounds(left, top, right, bottom); in setBounds()
230 mHeight = (bounds.bottom - mPadding.bottom) - (bounds.top + mPadding.top); in updateSize()
239 && mPadding.top == 0 in getPadding()
249 public void setPadding(int left, int top, int right, int bottom) { in setPadding() argument
251 mPadding.top = top; in setPadding()
306 final int top = bounds.bottom - mPadding.bottom - height; in draw() local
308 mFrame.set(left, top, width + left, height + top); in draw()
314 mFrame.top, in draw()
316 mFrame.top + buttonHeight); in draw()
[all …]
/frameworks/support/compat/java/android/support/v4/widget/
DTextViewCompat.java80 @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, in setCompoundDrawablesRelative() argument
82 textView.setCompoundDrawables(start, top, end, bottom); in setCompoundDrawablesRelative()
86 @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, in setCompoundDrawablesRelativeWithIntrinsicBounds() argument
88 textView.setCompoundDrawablesWithIntrinsicBounds(start, top, end, bottom); in setCompoundDrawablesRelativeWithIntrinsicBounds()
92 @DrawableRes int start, @DrawableRes int top, @DrawableRes int end, in setCompoundDrawablesRelativeWithIntrinsicBounds() argument
94 textView.setCompoundDrawablesWithIntrinsicBounds(start, top, end, bottom); in setCompoundDrawablesRelativeWithIntrinsicBounds()
241 @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, in setCompoundDrawablesRelative() argument
244 textView.setCompoundDrawables(rtl ? end : start, top, rtl ? start : end, bottom); in setCompoundDrawablesRelative()
249 @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, in setCompoundDrawablesRelativeWithIntrinsicBounds() argument
252 textView.setCompoundDrawablesWithIntrinsicBounds(rtl ? end : start, top, in setCompoundDrawablesRelativeWithIntrinsicBounds()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DSimpleItemAnimator.java93 int oldTop = preLayoutInfo.top; in animateDisappearance()
96 int newTop = postLayoutInfo == null ? disappearingItemView.getTop() : postLayoutInfo.top; in animateDisappearance()
117 || preLayoutInfo.top != postLayoutInfo.top)) { in animateAppearance()
122 return animateMove(viewHolder, preLayoutInfo.left, preLayoutInfo.top, in animateAppearance()
123 postLayoutInfo.left, postLayoutInfo.top); in animateAppearance()
135 if (preInfo.left != postInfo.left || preInfo.top != postInfo.top) { in animatePersistence()
141 preInfo.left, preInfo.top, postInfo.left, postInfo.top); in animatePersistence()
154 final int fromTop = preInfo.top; in animateChange()
158 toTop = preInfo.top; in animateChange()
161 toTop = postInfo.top; in animateChange()
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/processing/
DScope.java116 ScopeEntry top = sScopeItems.get(); in produceScopeLog() local
117 while (top != null) { in produceScopeLog()
118 ScopeProvider provider = top.mProvider; in produceScopeLog()
136 top = top.mParent; in produceScopeLog()
143 ScopeEntry top = sScopeItems.get(); in createReport() local
146 while (top != null && (filePath == null || locations == null)) { in createReport()
147 ScopeProvider provider = top.mProvider; in createReport()
149 locations = findAbsoluteLocationFrom(top, (LocationScopeProvider) provider); in createReport()
154 top = top.mParent; in createReport()
160 LocationScopeProvider top) { in findAbsoluteLocationFrom() argument
[all …]
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DSimpleItemAnimator.java93 int oldTop = preLayoutInfo.top; in animateDisappearance()
96 int newTop = postLayoutInfo == null ? disappearingItemView.getTop() : postLayoutInfo.top; in animateDisappearance()
117 || preLayoutInfo.top != postLayoutInfo.top)) { in animateAppearance()
122 return animateMove(viewHolder, preLayoutInfo.left, preLayoutInfo.top, in animateAppearance()
123 postLayoutInfo.left, postLayoutInfo.top); in animateAppearance()
135 if (preInfo.left != postInfo.left || preInfo.top != postInfo.top) { in animatePersistence()
141 preInfo.left, preInfo.top, postInfo.left, postInfo.top); in animatePersistence()
154 final int fromTop = preInfo.top; in animateChange()
158 toTop = preInfo.top; in animateChange()
161 toTop = postInfo.top; in animateChange()

12345678910>>...36