/frameworks/base/graphics/java/android/graphics/ |
D | RectF.java | 33 public float top; field in RectF 52 public RectF(float left, float top, float right, float bottom) { in RectF() argument 54 this.top = top; in RectF() 68 top = r.top; in RectF() 75 top = r.top; in RectF() 81 return "RectF(" + left + ", " + top + ", " in toString() 89 return left >= right || top >= bottom; in isEmpty() 105 return bottom - top; in height() 121 return (top + bottom) * 0.5f; in centerY() 128 left = right = top = bottom = 0; in setEmpty() [all …]
|
D | Rect.java | 35 public int top; field in Rect 57 public Rect(int left, int top, int right, int bottom) { in Rect() argument 59 this.top = top; in Rect() 73 top = r.top; in Rect() 82 return left == r.left && top == r.top && right == r.right in equals() 92 sb.append(top); sb.append(" - "); sb.append(right); in toString() 111 sb.append(top); sb.append("]["); sb.append(right); in toShortString() 130 sb.append(top); in flattenToString() 159 pw.print(top); pw.print("]["); pw.print(right); in printShortString() 167 return left >= right || top >= bottom; in isEmpty() [all …]
|
D | Region.java | 56 nativeSetRect(mNativeRegion, r.left, r.top, r.right, r.bottom); in Region() 61 public Region(int left, int top, int right, int bottom) { in Region() argument 63 nativeSetRect(mNativeRegion, left, top, right, bottom); in Region() 81 return nativeSetRect(mNativeRegion, r.left, r.top, r.right, r.bottom); in set() 86 public boolean set(int left, int top, int right, int bottom) { in set() argument 87 return nativeSetRect(mNativeRegion, left, top, right, bottom); in set() 166 return quickContains(r.left, r.top, r.right, r.bottom); in quickContains() 175 public native boolean quickContains(int left, int top, int right, in quickContains() argument 184 return quickReject(r.left, r.top, r.right, r.bottom); in quickReject() 192 public native boolean quickReject(int left, int top, int right, int bottom); in quickReject() argument [all …]
|
D | YuvImage.java | 139 int[] offsets = calculateOffsets(rectangle.left, rectangle.top); in compressToJpeg() 182 int[] calculateOffsets(int left, int top) { in calculateOffsets() argument 185 offsets = new int[] {top * mStrides[0] + left, in calculateOffsets() 186 mHeight * mStrides[0] + top / 2 * mStrides[1] in calculateOffsets() 192 offsets = new int[] {top * mStrides[0] + left / 2 * 4}; in calculateOffsets() 222 rect.top &= ~1; in adjustRectangle() 224 rect.bottom = rect.top + height; in adjustRectangle()
|
D | Canvas.java | 294 public int saveLayer(float left, float top, float right, float bottom, in saveLayer() argument 296 return native_saveLayer(mNativeCanvas, left, top, right, bottom, in saveLayer() 325 public int saveLayerAlpha(float left, float top, float right, float bottom, in saveLayerAlpha() argument 327 return native_saveLayerAlpha(mNativeCanvas, left, top, right, bottom, in saveLayerAlpha() 465 rect.left, rect.top, rect.right, rect.bottom, in clipRect() 479 rect.left, rect.top, rect.right, rect.bottom, in clipRect() 516 public boolean clipRect(float left, float top, float right, float bottom, in clipRect() argument 518 return native_clipRect(mNativeCanvas, left, top, right, bottom, in clipRect() 535 public native boolean clipRect(float left, float top, in clipRect() argument 551 public native boolean clipRect(int left, int top, in clipRect() argument [all …]
|
D | LargeBitmap.java | 64 if (rect.left < 0 || rect.top < 0 || rect.right > getWidth() || rect.bottom > getHeight()) in decodeRegion() 66 return nativeDecodeRegion(mNativeLargeBitmap, rect.left, rect.top, in decodeRegion() 67 rect.right - rect.left, rect.bottom - rect.top, options); in decodeRegion()
|
/frameworks/base/core/java/android/view/ |
D | Gravity.java | 193 outRect.top = container.top in apply() 194 + ((container.bottom - container.top - h)/2) + yAdj; in apply() 195 outRect.bottom = outRect.top + h; in apply() 198 if (outRect.top < container.top) { in apply() 199 outRect.top = container.top; in apply() 207 outRect.top = container.top + yAdj; in apply() 208 outRect.bottom = outRect.top + h; in apply() 218 outRect.top = outRect.bottom - h; in apply() 221 if (outRect.top < container.top) { in apply() 222 outRect.top = container.top; in apply() [all …]
|
D | FocusFinder.java | 257 return (srcRect.bottom > destRect.bottom || srcRect.top >= destRect.bottom) in isCandidate() 258 && srcRect.top > destRect.top; in isCandidate() 260 return (srcRect.top < destRect.top || srcRect.bottom <= destRect.top) in isCandidate() 279 return (rect2.bottom >= rect1.top) && (rect2.top <= rect1.bottom); in beamsOverlap() 298 return src.top >= dest.bottom; in isToDirectionOf() 300 return src.bottom <= dest.top; in isToDirectionOf() 322 return source.top - dest.bottom; in majorAxisDistanceRaw() 324 return dest.top - source.bottom; in majorAxisDistanceRaw() 347 return source.top - dest.top; in majorAxisDistanceToFarEdgeRaw() 369 ((source.top + source.height() / 2) - in minorAxisDistance() [all …]
|
/frameworks/base/libs/ui/ |
D | Rect.cpp | 31 top = 0; in makeInvalid() 38 if (top<rhs.top) { in operator <() 40 } else if (top == rhs.top) { in operator <() 59 bottom -= top - y; in offsetTo() 61 top = y; in offsetTo() 68 top += y; in offsetBy() 76 const Rect result(left+rhs.x, top+rhs.y, right+rhs.x, bottom+rhs.y); in operator +() 82 const Rect result(left-rhs.x, top-rhs.y, right-rhs.x, bottom-rhs.y); in operator -() 89 result->top = max(top, with.top); in intersect()
|
D | Region.cpp | 248 bounds.top = bounds.bottom = 0; in rasterizer() 259 bounds.top = storage.itemAt(0).top; in ~rasterizer() 260 bounds.bottom = storage.top().bottom; in ~rasterizer() 274 if (cur->top != rect.top) { in operator ()() 294 if (p->top == q->bottom) { in flushSpan() 314 bounds.right = max(span.top().right, bounds.right); in flushSpan() 332 b.top = b.top < cur->top ? b.top : cur->top; in validate() 335 if (cur->top == prev->top) { in validate() 344 } else if (cur->top < prev->bottom) { in validate() 355 b.left, b.top, b.right, b.bottom, in validate() [all …]
|
/frameworks/base/include/ui/ |
D | Rect.h | 38 left = top = 0; right = w; bottom = h; in Rect() 41 left = l; top = t; right = r; bottom = b; in Rect() 44 left = lt.x; top = lt.y; right = rb.x; bottom = rb.y; in Rect() 50 left = top = right = bottom = 0; in clear() 74 return bottom-top; in height() 79 top = lt.y; in setLeftTop() 89 return Point(left, top); in leftTop() 95 return Point(right, top); in rightTop() 103 return (left == rhs.left) && (top == rhs.top) && 117 bottom -= top; in offsetToOrigin() [all …]
|
/frameworks/base/core/tests/coretests/src/android/text/ |
D | StaticLayoutTest.java | 74 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, in testGetters2() 75 fmi.top, fmi.bottom); in testGetters2() 90 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, in testGetters3() 91 fmi.top, fmi.descent, in testGetters3() 108 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, in testGetters4() 109 fmi.top, fmi.descent, in testGetters4() 136 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, in testGetters5() 137 fmi.top, fmi.descent, in testGetters5() 157 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, in testGetters6() 158 fmi.top, fmi.descent + spacingAdd, in testGetters6() [all …]
|
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
D | RecentApplicationsBackground.java | 61 protected boolean setFrame(int left, int top, int right, int bottom) { in setFrame() argument 63 if (mLeft != left || mRight != right || mTop != top || mBottom != bottom) { in setFrame() 66 return super.setFrame(left, top, right, bottom); in setFrame() 95 final int top = chld.top - bkg.top; in draw() local 110 background.setBounds(left, top, right, bottom); in draw() 139 r.left = r.top = Integer.MAX_VALUE; in getChildBounds() 146 r.top = Math.min(r.top, v.getTop()); in getChildBounds()
|
/frameworks/base/core/java/android/text/ |
D | Styled.java | 53 float x, int top, int y, int bottom, in drawUniformRun() argument 117 canvas.drawRect(x - ret, top, x, bottom, workPaint); in drawUniformRun() 119 canvas.drawRect(x, top, x + ret, bottom, workPaint); in drawUniformRun() 156 x - ret, top, y, bottom, workPaint); in drawUniformRun() 159 x, top, y, bottom, workPaint); in drawUniformRun() 240 float x, int top, int y, int bottom, in drawDirectionalRun() argument 299 x, top, y, bottom, fmi, paint, workPaint, in drawDirectionalRun() 308 if (fmi.top < minTop) in drawDirectionalRun() 309 minTop = fmi.top; in drawDirectionalRun() 321 fmi.top = minTop; in drawDirectionalRun() [all …]
|
D | Layout.java | 174 dtop = sTempRect.top; in draw() 179 int top = 0; in draw() local 182 if (dtop > top) { in draw() 183 top = dtop; in draw() 189 int first = getLineForVertical(top); in draw() 465 bounds.top = getLineTop(line); in getLineBounds() 1126 int top = getLineTop(line); in getCursorPath() local 1141 dist = (bottom - top) >> 2; in getCursorPath() 1144 top += dist; in getCursorPath() 1155 dest.moveTo(h1, top); in getCursorPath() [all …]
|
/frameworks/base/include/private/ui/ |
D | RegionHelper.h | 78 int inside = spanner.next(current.top, current.bottom); in operator() 85 current.top < current.bottom) { in operator() 163 SpannerBase::lhs_head = lhs.rects->top + lhs.dy; in Spanner() 165 SpannerBase::rhs_head = rhs.rects->top + rhs.dy; in Spanner() 173 inline int next(TYPE& top, TYPE& bottom) in next() argument 177 int inside = SpannerBase::next(top, bottom, more_lhs, more_rhs); in next() 194 const int top = rects->top; in advance() local 195 while (rects != end && rects->top == top) { in advance() 200 aTop = rects->top + reg.dy; in advance() 264 const int cur_span_top = reg.rects->top; in advance() [all …]
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
D | Region_Delegate.java | 182 int left, int top, int right, int bottom) { in quickContains() argument 189 regionDelegate.mArea.contains(left, top, right - left, bottom - top); in quickContains() 194 int left, int top, int right, int bottom) { in quickReject() argument 201 regionDelegate.mArea.intersects(left, top, right - left, bottom - top) == false; in quickReject() 297 int left, int top, int right, int bottom) { in nativeSetRect() argument 303 dstRegion.mArea = new Area(new Rectangle2D.Float(left, top, right - left, bottom - top)); in nativeSetRect() 338 rect.left = rect.top = rect.right = rect.bottom = 0; in nativeGetBounds() 343 rect.top = bounds.y; in nativeGetBounds() 372 int left, int top, int right, int bottom, int op) { in nativeOp() argument 379 new Rectangle2D.Float(left, top, right - left, bottom - top), op); in nativeOp() [all …]
|
D | Canvas_Delegate.java | 196 return clipRect(thisCanvas, rect.left, rect.top, rect.right, rect.bottom); in clipRect() 201 return clipRect(thisCanvas, (float) rect.left, (float) rect.top, in clipRect() 206 /*package*/ static boolean clipRect(Canvas thisCanvas, float left, float top, float right, in clipRect() argument 214 return canvasDelegate.clipRect(left, top, right, bottom, Region.Op.INTERSECT.nativeInt); in clipRect() 218 /*package*/ static boolean clipRect(Canvas thisCanvas, int left, int top, int right, in clipRect() argument 221 return clipRect(thisCanvas, (float) left, (float) top, (float) right, (float) bottom); in clipRect() 484 float left, float top, in native_clipRect() argument 494 return canvasDelegate.clipRect(left, top, right, bottom, regionOp); in native_clipRect() 559 bounds.top = rect.y; in native_getClipBounds() 603 float left, float top, in native_quickReject() argument [all …]
|
D | NinePatch_Delegate.java | 162 (int) loc.left, (int) loc.top, (int) loc.width(), (int) loc.height(), in nativeDraw() 171 loc.left, loc.top, loc.width(), loc.height(), in nativeDraw() 184 final int left, final int top, final int right, final int bottom, in draw() argument 198 new Rect(left, top, right, bottom), in draw() 220 left, top, right - left, bottom - top, destDensity, srcDensity); in draw()
|
/frameworks/base/opengl/java/android/opengl/ |
D | GLU.java | 93 float bottom, float top) { in gluOrtho2D() argument 94 gl.glOrthof(left, right, bottom, top, -1.0f, 1.0f); in gluOrtho2D() 113 float top = zNear * (float) Math.tan(fovy * (Math.PI / 360.0)); in gluPerspective() local 114 float bottom = -top; in gluPerspective() 116 float right = top * aspect; in gluPerspective() 117 gl.glFrustumf(left, right, bottom, top, zNear, zFar); in gluPerspective()
|
/frameworks/base/core/java/android/widget/ |
D | ScrollView.java | 673 final int top, View preferredFocusable) { in findFocusableViewInMyBounds() argument 680 final int topWithoutFadingEdge = top + fadingEdgeLength; in findFocusableViewInMyBounds() 681 final int bottomWithoutFadingEdge = top + getHeight() - fadingEdgeLength; in findFocusableViewInMyBounds() 708 private View findFocusableViewInBounds(boolean topFocus, int top, int bottom) { in findFocusableViewInBounds() argument 728 if (top < viewBottom && viewTop < bottom) { in findFocusableViewInBounds() 734 final boolean viewIsFullyContained = (top < viewTop) && in findFocusableViewInBounds() 793 mTempRect.top = getScrollY() + height; in pageScroll() 797 if (mTempRect.top + height > view.getBottom()) { in pageScroll() 798 mTempRect.top = view.getBottom() - height; in pageScroll() 802 mTempRect.top = getScrollY() - height; in pageScroll() [all …]
|
D | SlidingDrawer.java | 379 final int top = mHandle.getTop(); in onInterceptTouchEvent() local 380 mTouchDelta = (int) y - top; in onInterceptTouchEvent() 381 prepareTracking(top); in onInterceptTouchEvent() 439 final int top = mHandle.getTop(); in onTouchEvent() 443 if (vertical ? (mExpanded && top < mTapThreshold + mTopOffset) || in onTouchEvent() 444 (!mExpanded && top > mBottomOffset + mBottom - mTop - in onTouchEvent() 454 animateClose(vertical ? top : left); in onTouchEvent() 456 animateOpen(vertical ? top : left); in onTouchEvent() 459 performFling(vertical ? top : left, velocity, false); in onTouchEvent() 463 performFling(vertical ? top : left, velocity, false); in onTouchEvent() [all …]
|
D | ListView.java | 231 delta = child.getTop() - mListPadding.top; in adjustViewsUpOrDown() 534 final int listTop = mScrollY + mListPadding.top; in showingTopFadingEdge() 556 int rectTopWithinChild = rect.top; in requestChildRectangleOnScreen() 587 if (rect.bottom > listUnfadedBottom && rect.top > listUnfadedTop) { in requestChildRectangleOnScreen() 594 scrollYDelta += (rect.top - listUnfadedTop); in requestChildRectangleOnScreen() 603 } else if (rect.top < listUnfadedTop && rect.bottom < listUnfadedBottom) { in requestChildRectangleOnScreen() 613 scrollYDelta -= (listUnfadedTop - rect.top); in requestChildRectangleOnScreen() 617 int top = getChildAt(0).getTop(); in requestChildRectangleOnScreen() local 618 int deltaToTop = top - listUnfadedTop; in requestChildRectangleOnScreen() 695 int end = mListPadding.top; in fillUp() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | ExpandedView.java | 49 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { in onLayout() argument 50 super.onLayout(changed, left, top, right, bottom); in onLayout() 51 int height = bottom - top; in onLayout()
|
/frameworks/base/media/libstagefright/codecs/aacdec/ |
D | get_tns.cpp | 348 Int top; in get_tns() local 449 top = sfb_per_win; in get_tns() 453 tempInt = MINIMUM(top, tns_bands); in get_tns() 459 top -= get9_n_lessbits(num_start_band_bits, in get_tns() 462 tempInt = MINIMUM(top, tns_bands); in get_tns()
|