/frameworks/base/graphics/java/android/graphics/ |
H A D | RectF.java | 28 * 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 D | Insets.java | 32 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 D | Rect.java | 28 * 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 D | Outline.java | 142 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...] |
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
H A D | FloatRect.h | 28 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 D | Rect.h | 32 (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 D | Snapshot.cpp | 93 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 D | RectEvaluator.java | 59 * (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 D | Rect.cpp | 32 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 D | WindowInsets.java | 125 * 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 D | Gravity.java | 32 /** 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 D | SystemViewInfo.java | 29 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 D | rect.h | 32 int32_t top; member in struct:ARect
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | BackgroundFallback.java | 51 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 D | Rect.h | 40 left = top = 0; 47 top = t; 54 top = lt.y; 62 left = top = right = bottom = 0; 82 return bottom - top; 86 return Rect(right - left, bottom - top); 91 top = lt.y; 101 return Point(left, top); 107 return Point(right, top); 115 return (left == rhs.left) && (top [all...] |
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/ |
H A D | FaceSquareFilter.java | 85 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 D | FaceSquareFilterTest.java | 87 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 D | ClipRectAnimation.java | 49 int t = mFromRect.top + (int) ((mToRect.top - mFromRect.top) * it);
|
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
H A D | KeyguardLinearLayout.java | 42 int top = indexOfChild(child); 43 mTopChild = top;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
H A D | AnimateableViewBounds.java | 60 Math.max(mClipRect.top, mOutlineClipRect.top), 74 /** Animates the top clip. */ 75 void animateClipTop(int top, int duration, ValueAnimator.AnimatorUpdateListener updateListener) { argument 80 mClipTopAnimator = ObjectAnimator.ofInt(this, "clipTop", top); 89 /** Sets the top clip. */ 90 public void setClipTop(int top) { argument 91 if (top != mClipRect.top) { 92 mClipRect.top [all...] |
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/ |
H A D | MarshalQueryableRect.java | 43 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 D | LineBackgroundSpan.java | 27 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 D | ExpandableOutlineView.java | 66 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 D | RectUtils.java | 30 * 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 D | CardViewDelegate.java | 32 void setShadowPadding(int left, int top, int right, int bottom); argument
|