/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 50 * top <= bottom. 53 * @param top The Y coordinate of the top of the rectangle 57 public Rect(int left, int top, int right, int bottom) { argument 59 this.top = top; 73 left = top 247 set(int left, int top, int right, int bottom) argument 339 contains(int left, int top, int right, int bottom) argument 380 intersect(int left, int top, int right, int bottom) argument 443 intersects(int left, int top, int right, int bottom) argument 471 union(int left, int top, int right, int bottom) argument [all...] |
H A D | YuvImage.java | 28 * region by left, top, width and height. 139 int[] offsets = calculateOffsets(rectangle.left, rectangle.top); 182 int[] calculateOffsets(int left, int top) { argument 185 offsets = new int[] {top * mStrides[0] + left, 186 mHeight * mStrides[0] + top / 2 * mStrides[1] 192 offsets = new int[] {top * mStrides[0] + left / 2 * 4}; 218 // Make sure left, top, width and height are all even. 222 rect.top &= ~1; 224 rect.bottom = rect.top + height;
|
H A D | Region.java | 71 nativeSetRect(mNativeRegion, r.left, r.top, r.right, r.bottom); 76 public Region(int left, int top, int right, int bottom) { argument 78 nativeSetRect(mNativeRegion, left, top, right, bottom); 97 return nativeSetRect(mNativeRegion, r.left, r.top, r.right, r.bottom); 102 public boolean set(int left, int top, int right, int bottom) { argument 103 return nativeSetRect(mNativeRegion, left, top, right, bottom); 182 return quickContains(r.left, r.top, r.right, r.bottom); 191 public native boolean quickContains(int left, int top, int right, argument 200 return quickReject(r.left, r.top, r.right, r.bottom); 208 public native boolean quickReject(int left, int top, in argument 267 op(int left, int top, int right, int bottom, Op op) argument 411 nativeSetRect(int native_dst, int left, int top, int right, int bottom) argument 419 nativeOp(int native_dst, int left, int top, int right, int bottom, int op) argument [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 | 31 (r).left, (r).top, (r).right, (r).bottom 40 float top; member in class:android::uirenderer::Rect 52 top(0), 57 inline Rect(float left, float top, float right, float bottom): argument 59 top(top), 66 top(0.0f), 80 left = top = right = bottom = 0.0f; 86 return !((left < right) && (top < bottom)); 90 left = top 93 set(float left, float top, float right, float bottom) argument [all...] |
H A D | Snapshot.cpp | 81 clipRegion->setRect(clipRect->left, clipRect->top, clipRect->right, clipRect->bottom); 98 bool Snapshot::clipRegionOp(float left, float top, float right, float bottom, SkRegion::Op op) { argument 100 tmp.set(left, top, right, bottom); 114 bool Snapshot::clip(float left, float top, float right, float bottom, SkRegion::Op op) { argument 115 Rect r(left, top, right, bottom); 127 clipped = clipRegionOp(r.left, r.top, r.right, r.bottom, SkRegion::kIntersect_Op); 138 setClip(r.left, r.top, r.right, r.bottom); 144 clipped = clipRegionOp(r.left, r.top, r.right, r.bottom, op); 156 void Snapshot::setClip(float left, float top, float right, float bottom) { argument 157 clipRect->set(left, top, righ 178 resetClip(float left, float top, float right, float bottom) argument [all...] |
/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/animation/ |
H A D | RectEvaluator.java | 30 * (left, top, right, and bottom). 41 startValue.top + (int)((endValue.top - startValue.top) * fraction),
|
/frameworks/native/include/android/ |
H A D | rect.h | 32 int32_t top; member in struct:ARect
|
/frameworks/base/core/java/android/view/ |
H A D | IMagnificationCallbacks.aidl | 26 void onRectangleOnScreenRequested(int left, int top, int right, int bottom);
|
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/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/packages/Keyguard/src/com/android/keyguard/ |
H A D | KeyguardLinearLayout.java | 42 int top = indexOfChild(child); 43 mTopChild = top;
|
/frameworks/base/core/java/android/hardware/camera2/impl/ |
H A D | MetadataMarshalRect.java | 32 buffer.putInt(value.top); 43 int top = buffer.getInt(); 48 int bottom = top + height; 50 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/media/java/android/media/videoeditor/ |
H A D | EffectKenBurns.java | 97 start.top = getStartRect().top; 101 end.top = getEndRect().top;
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | ThinPatchesActivity.java | 79 final int top = (getHeight() - height) / 2; 84 mPatch3.setBounds(left, top, left + height, top + width); 89 mPatch1.setBounds(left, top, left + width, top + height); 95 mPatch2.setBounds(left, top, left + width, top + height);
|
H A D | PathDestructionActivity.java | 59 float left, top, right, bottom; 61 top = MathUtils.random(getHeight() - MIN_SIZE); 63 bottom = top + MathUtils.random(getHeight() - top); 65 path.moveTo(left, top); 66 path.lineTo(right, top);
|
/frameworks/compile/mclinker/lib/Support/ |
H A D | DefSymParser.cpp | 64 if (precedence(si) <= precedence(operatorStack.top())) { 66 // top of stack, we clear stack till top is lower precedence 69 if (precedence(si) <= precedence(operatorStack.top())) { 70 postfixString.push_back(std::string(operatorStack.top(),1)); 90 postfixString.push_back(std::string(operatorStack.top(),1)); 105 operand2 = operandStack.top(); 107 operand1 = operandStack.top(); 138 // once complete queue is processed, stack top is result 139 pSymVal = operandStack.top(); [all...] |
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
H A D | RecentApplicationsBackground.java | 61 protected boolean setFrame(int left, int top, int right, int bottom) { argument 63 if (mLeft != left || mRight != right || mTop != top || mBottom != bottom) { 66 return super.setFrame(left, top, right, bottom); 101 final int top = chld.top - bkg.top; 116 background.setBounds(left, top, right, bottom); 145 r.left = r.top = Integer.MAX_VALUE; 152 r.top = Math.min(r.top, [all...] |
/frameworks/base/core/tests/coretests/src/android/text/ |
H A D | StaticLayoutTest.java | 74 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, 75 fmi.top, fmi.bottom); 80 * Ascent of top line and descent of bottom line are affected. 90 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, 91 fmi.top, fmi.descent, 97 * First line ascent is top, bottom line descent is bottom. 108 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, 109 fmi.top, fmi.descent, 136 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, 137 fmi.top, fm 311 assertLineMetrics(Layout l, int line, int top, int ascent, int descent, int height) argument [all...] |