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

1234567891011>>

/frameworks/base/graphics/java/android/graphics/
H A DRectF.java28 * represented by the coordinates of its 4 edges (left, top, right bottom).
31 * the coordinates are sorted correctly (i.e. left <= right and top <= bottom).
35 public float top; field in class:RectF
47 * top <= bottom.
50 * @param top The Y coordinate of the top of the rectangle
54 public RectF(float left, float top, float right, float bottom) { argument
56 this.top = top;
70 left = top
198 set(float left, float top, float right, float bottom) argument
303 contains(float left, float top, float right, float bottom) argument
345 intersect(float left, float top, float right, float bottom) argument
418 intersects(float left, float top, float right, float bottom) argument
467 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.java28 * represented by the coordinates of its 4 edges (left, top, right bottom).
31 * the coordinates are sorted correctly (i.e. left <= right and top <= bottom).
35 public int top; field in class:Rect
62 * top <= bottom.
65 * @param top The Y coordinate of the top of the rectangle
69 public Rect(int left, int top, int right, int bottom) { argument
71 this.top = top;
85 left = top
259 set(int left, int top, int right, int bottom) argument
351 contains(int left, int top, int right, int bottom) argument
392 intersect(int left, int top, int right, int bottom) argument
455 intersects(int left, int top, int right, int bottom) argument
483 union(int left, int top, int right, int bottom) argument
[all...]
H A DOutline.java142 public void setRect(int left, int top, int right, int bottom) { argument
143 setRoundRect(left, top, right, bottom, 0.0f);
150 setRect(rect.left, rect.top, rect.right, rect.bottom);
158 public void setRoundRect(int left, int top, int right, int bottom, float radius) { argument
159 if (left >= right || top >= bottom) {
165 mRect.set(left, top, right, bottom);
174 setRoundRect(rect.left, rect.top, rect.right, rect.bottom, radius);
180 public void setOval(int left, int top, int right, int bottom) { argument
181 if (left >= right || top >= bottom) {
186 if ((bottom - top)
[all...]
H A DPath.java438 arcTo(oval.left, oval.top, oval.right, oval.bottom, startAngle, sweepAngle, forceMoveTo);
453 arcTo(oval.left, oval.top, oval.right, oval.bottom, startAngle, sweepAngle, false);
468 public void arcTo(float left, float top, float right, float bottom, float startAngle, argument
471 native_arcTo(mNativePath, left, top, right, bottom, startAngle, sweepAngle, forceMoveTo);
499 private void detectSimplePath(float left, float top, float right, float bottom, Direction dir) { argument
507 rects.op((int) left, (int) top, (int) right, (int) bottom, Region.Op.UNION);
518 addRect(rect.left, rect.top, rect.right, rect.bottom, dir);
525 * @param top The top of a rectangle to add to the path
530 public void addRect(float left, float top, floa argument
550 addOval(float left, float top, float right, float bottom, Direction dir) argument
585 addArc(float left, float top, float right, float bottom, float startAngle, float sweepAngle) argument
610 addRoundRect(float left, float top, float right, float bottom, float rx, float ry, Direction dir) argument
640 addRoundRect(float left, float top, float right, float bottom, float[] radii, Direction dir) argument
804 native_arcTo(long nPath, float left, float top, float right, float bottom, float startAngle, float sweepAngle, boolean forceMoveTo) argument
808 native_addRect(long nPath, float left, float top, float right, float bottom, int dir) argument
810 native_addOval(long nPath, float left, float top, float right, float bottom, int dir) argument
813 native_addArc(long nPath, float left, float top, float right, float bottom, float startAngle, float sweepAngle) argument
816 native_addRoundRect(long nPath, float left, float top, float right, float bottom, float rx, float ry, int dir) argument
819 native_addRoundRect(long nPath, float left, float top, float right, float bottom, float[] radii, int dir) argument
[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.h32 (r).left, (r).top, (r).right, (r).bottom
34 (r).left(), (r).top(), (r).right(), (r).bottom()
43 float top; member in class:android::uirenderer::Rect
55 top(0),
60 inline Rect(float left, float top, float right, float bottom): argument
62 top(top),
69 top(0.0f),
76 top(rect.fTop),
90 left = top
103 set(float left, float top, float right, float bottom) argument
[all...]
H A DSnapshot.cpp93 clipRegion->setRect(clipRect->left, clipRect->top, clipRect->right, clipRect->bottom);
110 bool Snapshot::clipRegionOp(float left, float top, float right, float bottom, SkRegion::Op op) { argument
112 tmp.set(left, top, right, bottom);
126 bool Snapshot::clip(float left, float top, float right, float bottom, SkRegion::Op op) { argument
127 Rect r(left, top, right, bottom);
139 clipped = clipRegionOp(r.left, r.top, r.right, r.bottom, SkRegion::kIntersect_Op);
150 setClip(r.left, r.top, r.right, r.bottom);
156 clipped = clipRegionOp(r.left, r.top, r.right, r.bottom, op);
168 void Snapshot::setClip(float left, float top, float right, float bottom) { argument
169 clipRect->set(left, top, righ
190 resetClip(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/native/libs/ui/
H A DRect.cpp32 top = 0;
38 if (top < rhs.top) {
40 } else if (top == rhs.top) {
58 bottom -= top - y;
60 top = y;
66 top += y;
73 const Rect result(left + rhs.x, top + rhs.y, right + rhs.x, bottom + rhs.y);
78 const Rect result(left - rhs.x, top
102 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/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.h32 int32_t top; member in struct:ARect
/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/native/include/ui/
H A DRect.h37 left = right = top = bottom = 0;
41 left = top = 0;
48 top = t;
55 top = lt.y;
63 left = top = right = bottom = 0;
83 return bottom - top;
87 return Rect(right - left, bottom - top);
92 top = lt.y;
102 return Point(left, top);
108 return Point(right, 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/view/animation/
H A DClipRectAnimation.java49 int t = mFromRect.top + (int) ((mToRect.top - mFromRect.top) * it);
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DKeyguardLinearLayout.java42 int top = indexOfChild(child);
43 mTopChild = top;
/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
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DExpandableOutlineView.java66 setOutlineRect(rect.left, rect.top, rect.right, rect.bottom);
73 protected void setOutlineRect(float left, float top, float right, float bottom) { argument
76 mOutlineRect.set((int) left, (int) top, (int) right, (int) bottom);
79 mOutlineRect.bottom = (int) Math.max(top, mOutlineRect.bottom);
/frameworks/opt/bitmap/src/com/android/bitmap/util/
H A DRectUtils.java30 * The top-left of the transformed full rectangle will always be placed at (0, 0).
49 matrix.setTranslate(-fullRectF.left, -fullRectF.top);
53 fullRect.set((int) fullRectF.left, (int) fullRectF.top, (int) fullRectF.right,
55 partialRect.set((int) partialRectF.left, (int) partialRectF.top, (int) partialRectF.right,
64 rect.set((int) rectF.left, (int) rectF.top, (int) rectF.right, (int) rectF.bottom);
/frameworks/support/v7/cardview/base/android/support/v7/widget/
H A DCardViewDelegate.java32 void setShadowPadding(int left, int top, int right, int bottom); argument

Completed in 654 milliseconds

1234567891011>>