Searched refs:top (Results 1 - 25 of 608) 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 public int top; field in class:Rect
63 * top <= bottom.
66 * @param top The Y coordinate of the top of the rectangle
70 public Rect(int left, int top, int right, int bottom) { argument
72 this.top = top;
86 left = top
260 set(int left, int top, int right, int bottom) argument
352 contains(int left, int top, int right, int bottom) argument
394 intersect(int left, int top, int right, int bottom) argument
459 intersects(int left, int top, int right, int bottom) argument
487 union(int left, int top, int right, int bottom) argument
[all...]
H A DOutline.java143 public void setRect(int left, int top, int right, int bottom) { argument
144 setRoundRect(left, top, right, bottom, 0.0f);
151 setRect(rect.left, rect.top, rect.right, rect.bottom);
159 public void setRoundRect(int left, int top, int right, int bottom, float radius) { argument
160 if (left >= right || top >= bottom) {
166 mRect.set(left, top, right, bottom);
175 setRoundRect(rect.left, rect.top, rect.right, rect.bottom, radius);
181 public void setOval(int left, int top, int right, int bottom) { argument
182 if (left >= right || top >= bottom) {
187 if ((bottom - top)
[all...]
/frameworks/native/services/surfaceflinger/DisplayHardware/
H A DFloatRect.h28 float top; member in class:android::FloatRect
34 : left(other.left), top(other.top), right(other.right), bottom(other.bottom) { }
37 inline float getHeight() const { return bottom - top; }
/frameworks/base/libs/hwui/
H A DRect.h33 (r).left, (r).top, (r).right, (r).bottom
35 (r).left(), (r).top(), (r).right(), (r).bottom()
44 float top; member in class:android::uirenderer::Rect
56 top(0),
61 inline Rect(float left, float top, float right, float bottom): argument
63 top(top),
70 top(0.0f),
77 top(rect.fTop),
91 left = top
104 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/v4/jellybean-mr2/android/support/v4/widget/
H A DTextViewCompatJbMr2.java27 @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end,
29 textView.setCompoundDrawablesRelative(start, top, end, bottom);
33 @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end,
35 textView.setCompoundDrawablesRelativeWithIntrinsicBounds(start, top, end, bottom);
39 int start, int top, int end, int bottom) {
40 textView.setCompoundDrawablesRelativeWithIntrinsicBounds(start, top, end, bottom);
26 setCompoundDrawablesRelative(@onNull TextView textView, @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, @Nullable Drawable bottom) argument
32 setCompoundDrawablesRelativeWithIntrinsicBounds(@onNull TextView textView, @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, @Nullable Drawable bottom) argument
38 setCompoundDrawablesRelativeWithIntrinsicBounds(@onNull TextView textView, int start, int top, int end, int bottom) argument
/frameworks/native/libs/ui/
H A DRect.cpp34 top = 0;
40 if (top < rhs.top) {
42 } else if (top == rhs.top) {
60 bottom -= top - y;
62 top = y;
68 top += y;
75 const Rect result(left + rhs.x, top + rhs.y, right + rhs.x, bottom + rhs.y);
80 const Rect result(left - rhs.x, top
104 int top = result.left; local
[all...]
/frameworks/base/core/java/android/view/
H A DWindowInsets.java125 * Returns the top system window inset in pixels.
131 * @return The top system window inset
134 return mSystemWindowInsets.top;
178 * Returns the top window decor inset in pixels.
184 * @return The top window decor inset
188 return mWindowDecorInsets.top;
229 return mSystemWindowInsets.left != 0 || mSystemWindowInsets.top != 0 ||
244 return mWindowDecorInsets.left != 0 || mWindowDecorInsets.top != 0 ||
277 * <p>A round window's left, top, right and bottom edges reach all the way to the
304 * @param top tru
310 consumeSystemWindowInsets(boolean left, boolean top, boolean right, boolean bottom) argument
334 replaceSystemWindowInsets(int left, int top, int right, int bottom) argument
368 consumeWindowDecorInsets(boolean left, boolean top, boolean right, boolean bottom) argument
384 replaceWindowDecorInsets(int left, int top, int right, int bottom) argument
[all...]
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...]
/frameworks/base/core/java/android/view/animation/
H A DClipRectTBAnimation.java22 * Special case of ClipRectAnimation that animates only the top/bottom
44 tr.setClipRect(oldClipRect.left, mFromRect.top + (int) ((mToRect.top - mFromRect.top) * it),
/frameworks/support/v4/java/android/support/v4/widget/
H A DTextViewCompat.java38 @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end,
42 @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end,
46 int start, int top, int end, int bottom);
54 @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end,
56 textView.setCompoundDrawables(start, top, end, bottom);
61 @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end,
63 textView.setCompoundDrawablesWithIntrinsicBounds(start, top, end, bottom);
68 int start, int top, int end, int bottom) {
69 textView.setCompoundDrawablesWithIntrinsicBounds(start, top, end, bottom);
78 @Nullable Drawable start, @Nullable Drawable top,
37 setCompoundDrawablesRelative(@onNull TextView textView, @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, @Nullable Drawable bottom) argument
41 setCompoundDrawablesRelativeWithIntrinsicBounds(@onNull TextView textView, @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, @Nullable Drawable bottom) argument
45 setCompoundDrawablesRelativeWithIntrinsicBounds(@onNull TextView textView, int start, int top, int end, int bottom) argument
53 setCompoundDrawablesRelative(@onNull TextView textView, @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, @Nullable Drawable bottom) argument
60 setCompoundDrawablesRelativeWithIntrinsicBounds(@onNull TextView textView, @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, @Nullable Drawable bottom) argument
67 setCompoundDrawablesRelativeWithIntrinsicBounds(@onNull TextView textView, int start, int top, int end, int bottom) argument
77 setCompoundDrawablesRelative(@onNull TextView textView, @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, @Nullable Drawable bottom) argument
84 setCompoundDrawablesRelativeWithIntrinsicBounds(@onNull TextView textView, @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, @Nullable Drawable bottom) argument
92 setCompoundDrawablesRelativeWithIntrinsicBounds(@onNull TextView textView, int start, int top, int end, int bottom) argument
103 setCompoundDrawablesRelative(@onNull TextView textView, @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, @Nullable Drawable bottom) argument
110 setCompoundDrawablesRelativeWithIntrinsicBounds(@onNull TextView textView, @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, @Nullable Drawable bottom) argument
119 setCompoundDrawablesRelativeWithIntrinsicBounds(@onNull TextView textView, int start, int top, int end, int bottom) argument
154 setCompoundDrawablesRelative(@onNull TextView textView, @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, @Nullable Drawable bottom) argument
174 setCompoundDrawablesRelativeWithIntrinsicBounds(@onNull TextView textView, @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, @Nullable Drawable bottom) argument
198 setCompoundDrawablesRelativeWithIntrinsicBounds(@onNull TextView textView, int start, int top, int end, 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/v4/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/native/include/ui/
H A DRect.h40 left = right = top = bottom = 0;
44 left = top = 0;
60 left = top = 0;
67 top = t;
74 top = lt.y;
82 left = top = right = bottom = 0;
102 return bottom - top;
106 return Rect(right - left, bottom - top);
111 top = lt.y;
121 return Point(left, 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...]
/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/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);
/frameworks/base/core/java/android/text/style/
H A DLineBackgroundSpan.java27 int top, int baseline, int bottom,
25 drawBackground(Canvas c, Paint p, int left, int right, int top, int baseline, int bottom, CharSequence text, int start, int end, int lnum) argument

Completed in 1096 milliseconds

1234567891011>>