Searched refs:top (Results 1 - 25 of 746) 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.java29 * represented by the coordinates of its 4 edges (left, top, right bottom).
32 * the coordinates are sorted correctly (i.e. left <= right and top <= bottom).
36 * into the column and row described by its left and top coordinates, but not
41 public int top; field in class:Rect
68 * top <= bottom.
71 * @param top The Y coordinate of the top of the rectangle
75 public Rect(int left, int top, int right, int bottom) { argument
77 this.top = top;
265 set(int left, int top, int right, int bottom) argument
350 inset(int left, int top, int right, int bottom) argument
385 contains(int left, int top, int right, int bottom) argument
427 intersect(int left, int top, int right, int bottom) argument
492 intersects(int left, int top, int right, int bottom) argument
520 union(int left, int top, int right, int bottom) argument
[all...]
H A DOutline.java161 public void setRect(int left, int top, int right, int bottom) { argument
162 setRoundRect(left, top, right, bottom, 0.0f);
169 setRect(rect.left, rect.top, rect.right, rect.bottom);
177 public void setRoundRect(int left, int top, int right, int bottom, float radius) { argument
178 if (left >= right || top >= bottom) {
184 mRect.set(left, top, right, bottom);
193 setRoundRect(rect.left, rect.top, rect.right, rect.bottom, radius);
227 public void setOval(int left, int top, int right, int bottom) { argument
228 if (left >= right || top >= bottom) {
233 if ((bottom - top)
[all...]
/frameworks/native/services/surfaceflinger/DisplayHardware/
H A DFloatRect.h29 float top; member in class:android::FloatRect
34 : left(0), top(0), right(0), bottom(0) { }
36 : left(other.left), top(other.top), right(other.right), bottom(other.bottom) { }
39 inline float getHeight() const { return bottom - top; }
/frameworks/base/libs/hwui/
H A DRect.h34 (r).left, (r).top, (r).right, (r).bottom
36 (r).left(), (r).top(), (r).right(), (r).bottom()
45 float top; member in class:android::uirenderer::Rect
57 top(0),
62 inline Rect(float left, float top, float right, float bottom): argument
64 top(top),
71 top(0.0f),
78 top(rect.fTop),
85 top(rec
112 set(float left, float top, float right, float bottom) argument
[all...]
/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/ics/android/support/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/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/packages/SystemUI/src/com/android/systemui/recents/misc/
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/support/compat/java/android/support/v4/widget/
H A DTextViewCompat.java38 @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end,
41 @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end,
44 @DrawableRes int start, @DrawableRes int top, @DrawableRes int end,
55 @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end,
57 textView.setCompoundDrawables(start, top, end, bottom);
62 @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end,
64 textView.setCompoundDrawablesWithIntrinsicBounds(start, top, end, bottom);
69 @DrawableRes int start, @DrawableRes int top, @DrawableRes int end,
71 textView.setCompoundDrawablesWithIntrinsicBounds(start, top, end, bottom);
110 @Nullable Drawable start, @Nullable Drawable top,
37 setCompoundDrawablesRelative(@onNull TextView textView, @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, @Nullable Drawable bottom) argument
40 setCompoundDrawablesRelativeWithIntrinsicBounds(@onNull TextView textView, @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, @Nullable Drawable bottom) argument
43 setCompoundDrawablesRelativeWithIntrinsicBounds(@onNull TextView textView, @DrawableRes int start, @DrawableRes int top, @DrawableRes int end, @DrawableRes int bottom) argument
54 setCompoundDrawablesRelative(@onNull TextView textView, @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, @Nullable Drawable bottom) argument
61 setCompoundDrawablesRelativeWithIntrinsicBounds(@onNull TextView textView, @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, @Nullable Drawable bottom) argument
68 setCompoundDrawablesRelativeWithIntrinsicBounds(@onNull TextView textView, @DrawableRes int start, @DrawableRes int top, @DrawableRes int end, @DrawableRes int bottom) argument
109 setCompoundDrawablesRelative(@onNull TextView textView, @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, @Nullable Drawable bottom) argument
116 setCompoundDrawablesRelativeWithIntrinsicBounds(@onNull TextView textView, @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, @Nullable Drawable bottom) argument
124 setCompoundDrawablesRelativeWithIntrinsicBounds(@onNull TextView textView, @DrawableRes int start, @DrawableRes int top, @DrawableRes int end, @DrawableRes int bottom) argument
139 setCompoundDrawablesRelative(@onNull TextView textView, @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, @Nullable Drawable bottom) argument
146 setCompoundDrawablesRelativeWithIntrinsicBounds(@onNull TextView textView, @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, @Nullable Drawable bottom) argument
155 setCompoundDrawablesRelativeWithIntrinsicBounds(@onNull TextView textView, @DrawableRes int start, @DrawableRes int top, @DrawableRes int end, @DrawableRes int bottom) argument
207 setCompoundDrawablesRelative(@onNull TextView textView, @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, @Nullable Drawable bottom) argument
227 setCompoundDrawablesRelativeWithIntrinsicBounds(@onNull TextView textView, @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, @Nullable Drawable bottom) argument
251 setCompoundDrawablesRelativeWithIntrinsicBounds(@onNull TextView textView, @DrawableRes int start, @DrawableRes int top, @DrawableRes int end, @DrawableRes int bottom) argument
[all...]
/frameworks/base/tools/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/include/android/
H A Drect.h48 /** top position */
49 int32_t top; member in struct:ARect
/frameworks/support/design/base/android/support/design/widget/
H A DShadowViewDelegate.java23 void setShadowPadding(int left, int top, int right, int bottom); argument
/frameworks/base/core/java/com/android/internal/widget/
H A DBackgroundFallback.java51 int top = height;
74 top = Math.min(top, child.getTop());
79 if (left >= right || top >= bottom) {
84 if (top > 0) {
85 mBackgroundFallback.setBounds(0, 0, width, top);
89 mBackgroundFallback.setBounds(0, top, left, height);
93 mBackgroundFallback.setBounds(right, top, width, height);
/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/support/compat/jellybean-mr2/android/support/v4/widget/
H A DTextViewCompatJbMr2.java28 @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end,
30 textView.setCompoundDrawablesRelative(start, top, end, bottom);
34 @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end,
36 textView.setCompoundDrawablesRelativeWithIntrinsicBounds(start, top, end, bottom);
40 @DrawableRes int start, @DrawableRes int top, @DrawableRes int end,
42 textView.setCompoundDrawablesRelativeWithIntrinsicBounds(start, top, end, bottom);
27 setCompoundDrawablesRelative(@onNull TextView textView, @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, @Nullable Drawable bottom) argument
33 setCompoundDrawablesRelativeWithIntrinsicBounds(@onNull TextView textView, @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, @Nullable Drawable bottom) argument
39 setCompoundDrawablesRelativeWithIntrinsicBounds(@onNull TextView textView, @DrawableRes int start, @DrawableRes int top, @DrawableRes int end, @DrawableRes int bottom) argument
/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.java134 * Returns the top system window inset in pixels.
140 * @return The top system window inset
143 return mSystemWindowInsets.top;
187 * Returns the top window decor inset in pixels.
193 * @return The top window decor inset
197 return mWindowDecorInsets.top;
238 return mSystemWindowInsets.left != 0 || mSystemWindowInsets.top != 0 ||
253 return mWindowDecorInsets.left != 0 || mWindowDecorInsets.top != 0 ||
286 * <p>A round window's left, top, right and bottom edges reach all the way to the
313 * @param top tru
319 consumeSystemWindowInsets(boolean left, boolean top, boolean right, boolean bottom) argument
343 replaceSystemWindowInsets(int left, int top, int right, int bottom) argument
377 consumeWindowDecorInsets(boolean left, boolean top, boolean right, boolean bottom) argument
393 replaceWindowDecorInsets(int left, int top, int right, int bottom) argument
[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/native/include/ui/
H A DRect.h54 left = top = 0;
61 top = t;
68 top = lt.y;
76 left = top = right = bottom = 0;
96 return bottom - top;
100 return Rect(right - left, bottom - top);
105 top = lt.y;
115 return Point(left, top);
121 return Point(right, top);
129 return (left == rhs.left) && (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...]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/samples/simplecamera/
H A DFaceSquareFilterTest.java87 int top = (faceRect.top+HEIGHT_OFFSET)*bitmap.getHeight()/FACE_X_RANGE;
92 if (top < 0) {
93 top = 0;
94 } else if (top > bitmap.getHeight()) {
95 top = bitmap.getHeight();
113 for (int j = 0; j < (bottom - top); j++) {
115 if (left > 0 && top > 0) {
116 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + left) +
118 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top
[all...]
/frameworks/support/compat/jellybean-mr1/android/support/v4/widget/
H A DTextViewCompatJbMr1.java28 @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end,
31 textView.setCompoundDrawables(rtl ? end : start, top, rtl ? start : end, bottom);
35 @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end,
38 textView.setCompoundDrawablesWithIntrinsicBounds(rtl ? end : start, top, rtl ? start : end,
43 int start, int top, int end, int bottom) {
45 textView.setCompoundDrawablesWithIntrinsicBounds(rtl ? end : start, top, rtl ? start : end,
27 setCompoundDrawablesRelative(@onNull TextView textView, @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, @Nullable Drawable bottom) argument
34 setCompoundDrawablesRelativeWithIntrinsicBounds(@onNull TextView textView, @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, @Nullable Drawable bottom) argument
42 setCompoundDrawablesRelativeWithIntrinsicBounds(@onNull TextView textView, int start, int top, int end, int bottom) argument
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
H A DMarshalQueryableRect.java43 buffer.putInt(value.top);
51 int top = buffer.getInt();
56 int bottom = top + height;
58 return new Rect(left, top, right, bottom);

Completed in 738 milliseconds

1234567891011>>