Searched refs:top (Results 1 - 25 of 940) sorted by relevance

1234567891011>>

/frameworks/base/graphics/java/android/graphics/
H A DRectF.java27 * represented by the coordinates of its 4 edges (left, top, right bottom).
30 * the coordinates are sorted correctly (i.e. left <= right and top <= bottom).
34 public float top; field in class:RectF
46 * top <= bottom.
49 * @param top The Y coordinate of the top of the rectangle
53 public RectF(float left, float top, float right, float bottom) { argument
55 this.top = top;
69 left = top
197 set(float left, float top, float right, float bottom) argument
302 contains(float left, float top, float right, float bottom) argument
344 intersect(float left, float top, float right, float bottom) argument
417 intersects(float left, float top, float right, float bottom) argument
466 union(float left, float top, float right, float bottom) argument
[all...]
H A DInsets.java32 public final int top; field in class:Insets
36 private Insets(int left, int top, int right, int bottom) { argument
38 this.top = top;
49 * @param top the top inset
55 public static Insets of(int left, int top, int right, int bottom) { argument
56 if (left == 0 && top == 0 && right == 0 && bottom == 0) {
59 return new Insets(left, top, right, bottom);
70 return (r == null) ? NONE : of(r.left, r.top,
[all...]
H A DRect.java32 * represented by the coordinates of its 4 edges (left, top, right bottom).
35 * the coordinates are sorted correctly (i.e. left <= right and top <= bottom).
39 * into the column and row described by its left and top coordinates, but not
44 public int top; field in class:Rect
71 * top <= bottom.
74 * @param top The Y coordinate of the top of the rectangle
78 public Rect(int left, int top, int right, int bottom) { argument
80 this.top = top;
299 set(int left, int top, int right, int bottom) argument
384 inset(int left, int top, int right, int bottom) argument
419 contains(int left, int top, int right, int bottom) argument
461 intersect(int left, int top, int right, int bottom) argument
539 intersects(int left, int top, int right, int bottom) argument
567 union(int left, int top, int right, int bottom) argument
[all...]
H A DOutline.java173 public void setRect(int left, int top, int right, int bottom) { argument
174 setRoundRect(left, top, right, bottom, 0.0f);
181 setRect(rect.left, rect.top, rect.right, rect.bottom);
189 public void setRoundRect(int left, int top, int right, int bottom, float radius) { argument
190 if (left >= right || top >= bottom) {
200 mRect.set(left, top, right, bottom);
208 setRoundRect(rect.left, rect.top, rect.right, rect.bottom, radius);
242 public void setOval(int left, int top, int right, int bottom) { argument
243 if (left >= right || top >= bottom) {
248 if ((bottom - top)
[all...]
/frameworks/base/libs/hwui/
H A DRect.h33 #define RECT_ARGS(r) (r).left, (r).top, (r).right, (r).bottom
34 #define SK_RECT_ARGS(r) (r).left(), (r).top(), (r).right(), (r).bottom()
43 float top; member in class:android::uirenderer::Rect
53 inline Rect() : left(0), top(0), right(0), bottom(0) {}
55 inline Rect(float left, float top, float right, float bottom) argument
56 : left(left), top(top), right(right), bottom(bottom) {}
58 inline Rect(float width, float height) : left(0.0f), top(0.0f), right(width), bottom(height) {}
63 , top(rect.fTop)
70 , top(rec
88 set(float left, float top, float right, float bottom) argument
[all...]
H A DProfileRenderer.cpp22 void ProfileRenderer::drawRect(float left, float top, float right, float bottom, argument
24 mRenderer.drawRect(left, top, right, bottom, &paint);
/frameworks/base/core/java/android/animation/
H A DRectEvaluator.java59 * (left, top, right, and bottom).
74 int top = startValue.top + (int) ((endValue.top - startValue.top) * fraction);
78 return new Rect(left, top, right, bottom);
80 mRect.set(left, top, right, bottom);
/frameworks/support/transition/src/main/java/androidx/transition/
H A DRectEvaluator.java61 * (left, top, right, and bottom).
76 int top = startValue.top + (int) ((endValue.top - startValue.top) * fraction);
80 return new Rect(left, top, right, bottom);
82 mRect.set(left, top, right, bottom);
/frameworks/native/include/ui/
H A DFloatRect.h25 : left(_left), top(_top), right(_right), bottom(_bottom) {}
28 float getHeight() const { return bottom - top; }
35 (top > other.top) ? top : other.top,
42 float top = 0.0f; member in class:android::FloatRect
48 return a.left == b.left && a.top == b.top && a.right == b.right && a.bottom == b.bottom;
/frameworks/native/libs/ui/include/ui/
H A DFloatRect.h25 : left(_left), top(_top), right(_right), bottom(_bottom) {}
28 float getHeight() const { return bottom - top; }
35 (top > other.top) ? top : other.top,
42 float top = 0.0f; member in class:android::FloatRect
48 return a.left == b.left && a.top == b.top && a.right == b.right && a.bottom == b.bottom;
/frameworks/native/libs/ui/include_vndk/ui/
H A DFloatRect.h25 : left(_left), top(_top), right(_right), bottom(_bottom) {}
28 float getHeight() const { return bottom - top; }
35 (top > other.top) ? top : other.top,
42 float top = 0.0f; member in class:android::FloatRect
48 return a.left == b.left && a.top == b.top && a.right == b.right && a.bottom == b.bottom;
/frameworks/native/libs/ui/
H A DRect.cpp35 top = 0;
41 if (top < rhs.top) {
43 } else if (top == rhs.top) {
61 bottom -= top - y;
63 top = y;
69 top += y;
76 const Rect result(left + rhs.x, top + rhs.y, right + rhs.x, bottom + rhs.y);
81 const Rect result(left - rhs.x, top
105 int top = result.left; local
[all...]
/frameworks/base/services/core/java/com/android/server/wm/utils/
H A DInsetUtils.java34 inOutInsets.top += insetsToAdd.top;
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/
H A DRectFEvaluator.java33 * (left, top, right, and bottom).
46 float top = startValue.top + ((endValue.top - startValue.top) * fraction);
49 mRect.set(left, top, right, bottom);
/frameworks/base/tests/UiBench/src/com/android/test/uibench/
H A DSaveLayerInterleaveActivity.java63 int top = bounds.top;
70 for (int i = 0; i < regions; i++, top += smallRectHeight) {
71 canvas.saveLayer(bounds.left, top, bounds.right, top + padding,
74 canvas.drawText("offscreen line "+ i, bounds.left, top + padding,
78 Rect partX = new Rect(bounds.left, top + padding,
79 bounds.right,top + smallRectHeight - padding);
82 top + smallRectHeight - padding, mGreenPaint);
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DSystemViewInfo.java29 public SystemViewInfo(String name, Object cookie, int left, int top, argument
31 super(name, cookie, left, top, right, bottom);
34 public SystemViewInfo(String name, Object cookie, int left, int top, argument
36 super(name, cookie, left, top, right, bottom, viewObject,
/frameworks/native/libs/arect/include/android/
H A Drect.h42 * In a valid ARect, left <= right and top <= bottom. ARect with left=0, top=10,
52 int32_t top; member in struct:ARect
/frameworks/support/leanback/src/main/java/androidx/leanback/graphics/
H A DBoundsRule.java23 * rectangular bound - left/top/right/bottom.
129 if (top == null) {
130 result.top = rect.top;
132 result.top = doCalculate(rect.top, top, rect.height());
138 result.bottom = doCalculate(rect.top, bottom, rect.height());
147 this.top = boundsRule.top !
159 public ValueRule top; field in class:BoundsRule
[all...]
/frameworks/base/libs/hwui/tests/common/scenes/
H A DSaveLayer2Animation.cpp41 int top = bounds.fTop; variable
49 for (int i = 0; i < regions; i++, top += smallRectHeight) {
50 canvas.saveLayer(bounds.fLeft, top, bounds.fRight, top + padding, &mBluePaint,
56 top + padding);
59 canvas.drawRect(bounds.fLeft, top + padding, bounds.fRight,
60 top + smallRectHeight - padding, mBluePaint);
63 top + smallRectHeight - padding);
/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/
H A DCardViewBindingAdapter.java38 int top = view.getContentPaddingTop();
41 view.setContentPadding(left, top, right, bottom);
45 public static void setContentPaddingTop(CardView view, int top) { argument
49 view.setContentPadding(left, top, right, bottom);
55 int top = view.getContentPaddingTop();
57 view.setContentPadding(left, top, right, bottom);
63 int top = view.getContentPaddingTop();
65 view.setContentPadding(left, top, right, bottom);
/frameworks/base/core/java/android/view/
H A DGravity.java32 /** Raw bit controlling how the left/top edge is placed. */
45 /** Push object to the top of its container, not changing its size. */
231 outRect.top = container.top
232 + ((container.bottom - container.top - h)/2) + yAdj;
233 outRect.bottom = outRect.top + h;
236 if (outRect.top < container.top) {
237 outRect.top = container.top;
[all...]
H A DWindowInsets.java154 * Returns the top system window inset in pixels.
160 * @return The top system window inset
163 return mSystemWindowInsets.top;
207 * Returns the top window decor inset in pixels.
213 * @return The top window decor inset
217 return mWindowDecorInsets.top;
258 return mSystemWindowInsets.left != 0 || mSystemWindowInsets.top != 0 ||
273 return mWindowDecorInsets.left != 0 || mWindowDecorInsets.top != 0 ||
332 * <p>A round window's left, top, right and bottom edges reach all the way to the
359 * @param top tru
365 consumeSystemWindowInsets(boolean left, boolean top, boolean right, boolean bottom) argument
389 replaceSystemWindowInsets(int left, int top, int right, int bottom) argument
423 consumeWindowDecorInsets(boolean left, boolean top, boolean right, boolean bottom) argument
439 replaceWindowDecorInsets(int left, int top, int right, int bottom) argument
581 inset(int left, int top, int right, int bottom) argument
632 insetInsets(Rect insets, int left, int top, int right, int bottom) argument
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/
H A DTaskPositionerTests.java100 final int midY = (r.top + r.bottom) / 2;
104 false /*preserveOrientation*/, r.left - MOUSE_DELTA_X, r.top - MOUSE_DELTA_Y, r);
118 mPositioner.resizeDrag(2000.0f, r.top);
120 new Rect(r.right - mMinVisibleWidth, r.top + MOUSE_DELTA_Y, r.right, r.bottom),
135 assertBoundsEquals(new Rect(MOUSE_DELTA_X, r.top, r.right, r.bottom),
140 assertBoundsEquals(new Rect(200 + MOUSE_DELTA_X, r.top, r.right, r.bottom),
143 // Drag to the top
145 assertBoundsEquals(new Rect(r.left + MOUSE_DELTA_X, r.top, r.right, r.bottom),
150 assertBoundsEquals(new Rect(r.left + MOUSE_DELTA_X, r.top, r.right, r.bottom),
162 final int midY = (r.top
[all...]
/frameworks/compile/mclinker/lib/Script/
H A DRpnEvaluator.cpp46 Operand* opd = operandStack.top();
53 Operand* opd2 = operandStack.top();
55 Operand* opd1 = operandStack.top();
63 Operand* opd3 = operandStack.top();
65 Operand* opd2 = operandStack.top();
67 Operand* opd1 = operandStack.top();
107 // stack top is result
108 assert(operandStack.top()->type() == Operand::SYMBOL ||
109 operandStack.top()->type() == Operand::INTEGER ||
110 operandStack.top()
[all...]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
H A DFaceSquareFilter.java85 int top = (tempRect.top+HEIGHT_OFFSET)*dims[1]/FACE_X_RANGE;
90 if (top < 0) {
91 top = 0;
92 } else if (top > dims[1]) {
93 top = dims[1];
111 for (int j = 0; j < (bottom - top); j++) {
113 if (left > 0 && top > 0) {
114 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + left) +
116 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top
[all...]

Completed in 663 milliseconds

1234567891011>>