/frameworks/base/graphics/java/android/graphics/ |
D | RectF.java | 34 public float top; field in RectF 53 public RectF(float left, float top, float right, float bottom) { in RectF() argument 55 this.top = top; in RectF() 69 left = top = right = bottom = 0.0f; in RectF() 72 top = r.top; in RectF() 80 left = top = right = bottom = 0.0f; in RectF() 83 top = r.top; in RectF() 95 return left == r.left && top == r.top && right == r.right && bottom == r.bottom; in equals() 101 result = 31 * result + (top != +0.0f ? Float.floatToIntBits(top) : 0); in hashCode() 108 return "RectF(" + left + ", " + top + ", " in toString() [all …]
|
D | Rect.java | 41 public int top; field in Rect 75 public Rect(int left, int top, int right, int bottom) { in Rect() argument 77 this.top = top; in Rect() 91 left = top = right = bottom = 0; in Rect() 94 top = r.top; in Rect() 106 return left == r.left && top == r.top && right == r.right && bottom == r.bottom; in equals() 112 result = 31 * result + top; in hashCode() 122 sb.append(top); sb.append(" - "); sb.append(right); in toString() 141 sb.append(top); sb.append("]["); sb.append(right); in toShortString() 160 sb.append(top); in flattenToString() [all …]
|
D | Insets.java | 32 public final int top; field in Insets 36 private Insets(int left, int top, int right, int bottom) { in Insets() argument 38 this.top = top; in Insets() 55 public static Insets of(int left, int top, int right, int bottom) { in of() argument 56 if (left == 0 && top == 0 && right == 0 && bottom == 0) { in of() 59 return new Insets(left, top, right, bottom); in of() 70 return (r == null) ? NONE : of(r.left, r.top, r.right, r.bottom); in of() 91 if (top != insets.top) return false; in equals() 99 result = 31 * result + top; in hashCode() 109 ", top=" + top + in toString()
|
D | Outline.java | 161 public void setRect(int left, int top, int right, int bottom) { in setRect() argument 162 setRoundRect(left, top, right, bottom, 0.0f); in setRect() 169 setRect(rect.left, rect.top, rect.right, rect.bottom); in setRect() 177 public void setRoundRect(int left, int top, int right, int bottom, float radius) { in setRoundRect() argument 178 if (left >= right || top >= bottom) { in setRoundRect() 184 mRect.set(left, top, right, bottom); in setRoundRect() 193 setRoundRect(rect.left, rect.top, rect.right, rect.bottom, radius); in setRoundRect() 227 public void setOval(int left, int top, int right, int bottom) { in setOval() argument 228 if (left >= right || top >= bottom) { in setOval() 233 if ((bottom - top) == (right - left)) { in setOval() [all …]
|
D | Path.java | 453 arcTo(oval.left, oval.top, oval.right, oval.bottom, startAngle, sweepAngle, forceMoveTo); in arcTo() 468 arcTo(oval.left, oval.top, oval.right, oval.bottom, startAngle, sweepAngle, false); in arcTo() 483 public void arcTo(float left, float top, float right, float bottom, float startAngle, in arcTo() argument 486 native_arcTo(mNativePath, left, top, right, bottom, startAngle, sweepAngle, forceMoveTo); in arcTo() 514 private void detectSimplePath(float left, float top, float right, float bottom, Direction dir) { in detectSimplePath() argument 522 rects.op((int) left, (int) top, (int) right, (int) bottom, Region.Op.UNION); in detectSimplePath() 533 addRect(rect.left, rect.top, rect.right, rect.bottom, dir); in addRect() 545 public void addRect(float left, float top, float right, float bottom, Direction dir) { in addRect() argument 546 detectSimplePath(left, top, right, bottom, dir); in addRect() 547 native_addRect(mNativePath, left, top, right, bottom, dir.nativeInt); in addRect() [all …]
|
D | Canvas.java | 429 return saveLayer(bounds.left, bounds.top, bounds.right, bounds.bottom, paint, saveFlags); in saveLayer() 442 public int saveLayer(float left, float top, float right, float bottom, @Nullable Paint paint, in saveLayer() argument 444 return native_saveLayer(mNativeCanvasWrapper, left, top, right, bottom, in saveLayer() 452 public int saveLayer(float left, float top, float right, float bottom, @Nullable Paint paint) { in saveLayer() argument 453 return saveLayer(left, top, right, bottom, paint, ALL_SAVE_FLAG); in saveLayer() 488 … return saveLayerAlpha(bounds.left, bounds.top, bounds.right, bounds.bottom, alpha, saveFlags); in saveLayerAlpha() 501 public int saveLayerAlpha(float left, float top, float right, float bottom, int alpha, in saveLayerAlpha() argument 504 return native_saveLayerAlpha(mNativeCanvasWrapper, left, top, right, bottom, in saveLayerAlpha() 511 public int saveLayerAlpha(float left, float top, float right, float bottom, int alpha) { in saveLayerAlpha() argument 512 return saveLayerAlpha(left, top, right, bottom, alpha, ALL_SAVE_FLAG); in saveLayerAlpha() [all …]
|
D | Region.java | 71 nativeSetRect(mNativeRegion, r.left, r.top, r.right, r.bottom); in Region() 76 public Region(int left, int top, int right, int bottom) { in Region() argument 78 nativeSetRect(mNativeRegion, left, top, right, bottom); in Region() 97 return nativeSetRect(mNativeRegion, r.left, r.top, r.right, r.bottom); in set() 102 public boolean set(int left, int top, int right, int bottom) { in set() argument 103 return nativeSetRect(mNativeRegion, left, top, right, bottom); in set() 182 return quickContains(r.left, r.top, r.right, r.bottom); in quickContains() 191 public native boolean quickContains(int left, int top, int right, in quickContains() argument 200 return quickReject(r.left, r.top, r.right, r.bottom); in quickReject() 208 public native boolean quickReject(int left, int top, int right, int bottom); in quickReject() argument [all …]
|
/frameworks/base/libs/hwui/ |
D | Rect.h | 34 (r).left, (r).top, (r).right, (r).bottom 36 (r).left(), (r).top(), (r).right(), (r).bottom() 45 float top; variable 57 top(0), in Rect() 62 inline Rect(float left, float top, float right, float bottom): in Rect() argument 64 top(top), in Rect() 71 top(0.0f), in Rect() 78 top(rect.fTop), in Rect() 92 left = top = right = bottom = 0.0f; in clear() 98 return !((left < right) && (top < bottom)); in isEmpty() [all …]
|
D | OpenGLRenderer.cpp | 119 float left, float top, float right, float bottom, bool opaque) { in setupFrameState() argument 122 left, top, right, bottom, mLightCenter); in setupFrameState() 124 mTilingClip.set(left, top, right, bottom); in setupFrameState() 133 discardFramebuffer(mTilingClip.left, mTilingClip.top, mTilingClip.right, mTilingClip.bottom); in startFrame() 139 clear(mTilingClip.left, mTilingClip.top, in startFrame() 144 float left, float top, float right, float bottom, bool opaque) { in prepareDirty() argument 146 setupFrameState(viewportWidth, viewportHeight, left, top, right, bottom, opaque); in prepareDirty() 160 void OpenGLRenderer::discardFramebuffer(float left, float top, float right, float bottom) { in discardFramebuffer() argument 165 … left <= 0.0f && top <= 0.0f && right >= mState.getWidth() && bottom >= mState.getHeight()) { in discardFramebuffer() 174 void OpenGLRenderer::clear(float left, float top, float right, float bottom, bool opaque) { in clear() argument [all …]
|
D | OpenGLRenderer.h | 138 float left, float top, float right, float bottom, bool opaque); 155 virtual int saveLayer(float left, float top, float right, float bottom, in saveLayer() argument 157 return saveLayer(left, top, right, bottom, paint, flags, nullptr); in saveLayer() 162 int saveLayer(float left, float top, float right, float bottom, 165 int saveLayerDeferred(float left, float top, float right, float bottom, 180 float left, float top, float right, float bottom, const SkPaint* paint); 182 void drawRect(float left, float top, float right, float bottom, 184 void drawRoundRect(float left, float top, float right, float bottom, 187 void drawOval(float left, float top, float right, float bottom, 189 void drawArc(float left, float top, float right, float bottom, [all …]
|
/frameworks/native/libs/ui/ |
D | Rect.cpp | 35 top = 0; in makeInvalid() 41 if (top < rhs.top) { in operator <() 43 } else if (top == rhs.top) { in operator <() 61 bottom -= top - y; in offsetTo() 63 top = y; in offsetTo() 69 top += y; in offsetBy() 76 const Rect result(left + rhs.x, top + rhs.y, right + rhs.x, bottom + rhs.y); in operator +() 81 const Rect result(left - rhs.x, top - rhs.y, right - rhs.x, bottom - rhs.y); in operator -() 87 result->top = max(top, with.top); in intersect() 96 result = Rect(width - result.right, result.top, width - result.left, in transform() [all …]
|
/frameworks/base/core/java/android/view/ |
D | Gravity.java | 231 outRect.top = container.top in apply() 232 + ((container.bottom - container.top - h)/2) + yAdj; in apply() 233 outRect.bottom = outRect.top + h; in apply() 236 if (outRect.top < container.top) { in apply() 237 outRect.top = container.top; in apply() 245 outRect.top = container.top + yAdj; in apply() 246 outRect.bottom = outRect.top + h; in apply() 256 outRect.top = outRect.bottom - h; in apply() 259 if (outRect.top < container.top) { in apply() 260 outRect.top = container.top; in apply() [all …]
|
D | WindowInsets.java | 143 return mSystemWindowInsets.top; in getSystemWindowInsetTop() 197 return mWindowDecorInsets.top; in getWindowDecorInsetTop() 238 return mSystemWindowInsets.left != 0 || mSystemWindowInsets.top != 0 || in hasSystemWindowInsets() 253 return mWindowDecorInsets.left != 0 || mWindowDecorInsets.top != 0 || in hasWindowDecorInsets() 319 public WindowInsets consumeSystemWindowInsets(boolean left, boolean top, in consumeSystemWindowInsets() argument 321 if (left || top || right || bottom) { in consumeSystemWindowInsets() 325 top ? 0 : mSystemWindowInsets.top, in consumeSystemWindowInsets() 343 public WindowInsets replaceSystemWindowInsets(int left, int top, in replaceSystemWindowInsets() argument 346 result.mSystemWindowInsets = new Rect(left, top, right, bottom); in replaceSystemWindowInsets() 377 public WindowInsets consumeWindowDecorInsets(boolean left, boolean top, in consumeWindowDecorInsets() argument [all …]
|
/frameworks/support/v4/java/android/support/v4/widget/ |
D | TextViewCompat.java | 39 @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, in setCompoundDrawablesRelative() argument 42 @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, in setCompoundDrawablesRelativeWithIntrinsicBounds() argument 45 @DrawableRes int start, @DrawableRes int top, @DrawableRes int end, in setCompoundDrawablesRelativeWithIntrinsicBounds() argument 55 @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, in setCompoundDrawablesRelative() argument 57 textView.setCompoundDrawables(start, top, end, bottom); in setCompoundDrawablesRelative() 62 @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, in setCompoundDrawablesRelativeWithIntrinsicBounds() argument 64 textView.setCompoundDrawablesWithIntrinsicBounds(start, top, end, bottom); in setCompoundDrawablesRelativeWithIntrinsicBounds() 69 @DrawableRes int start, @DrawableRes int top, @DrawableRes int end, in setCompoundDrawablesRelativeWithIntrinsicBounds() argument 71 textView.setCompoundDrawablesWithIntrinsicBounds(start, top, end, bottom); in setCompoundDrawablesRelativeWithIntrinsicBounds() 105 @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, in setCompoundDrawablesRelative() argument [all …]
|
D | FocusStrategy.java | 113 if (firstRect.top < secondRect.top) { in compare() 115 } else if (firstRect.top > secondRect.top) { in compare() 304 return (srcRect.bottom > destRect.bottom || srcRect.top >= destRect.bottom) in isCandidate() 305 && srcRect.top > destRect.top; in isCandidate() 307 return (srcRect.top < destRect.top || srcRect.bottom <= destRect.top) in isCandidate() 328 return (rect2.bottom >= rect1.top) && (rect2.top <= rect1.bottom); in beamsOverlap() 348 return src.top >= dest.bottom; in isToDirectionOf() 350 return src.bottom <= dest.top; in isToDirectionOf() 375 return source.top - dest.bottom; in majorAxisDistanceRaw() 377 return dest.top - source.bottom; in majorAxisDistanceRaw() [all …]
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/ |
D | FaceSquareFilter.java | 85 int top = (tempRect.top+HEIGHT_OFFSET)*dims[1]/FACE_X_RANGE; in drawBoxes() local 90 if (top < 0) { in drawBoxes() 91 top = 0; in drawBoxes() 92 } else if (top > dims[1]) { in drawBoxes() 93 top = dims[1]; in drawBoxes() 111 for (int j = 0; j < (bottom - top); j++) { in drawBoxes() 113 if (left > 0 && top > 0) { in drawBoxes() 114 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + left) + in drawBoxes() 116 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + left) + in drawBoxes() 118 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + left) + in drawBoxes() [all …]
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/samples/simplecamera/ |
D | FaceSquareFilterTest.java | 87 int top = (faceRect.top+HEIGHT_OFFSET)*bitmap.getHeight()/FACE_X_RANGE; in testFaceSquareFilter() local 92 if (top < 0) { in testFaceSquareFilter() 93 top = 0; in testFaceSquareFilter() 94 } else if (top > bitmap.getHeight()) { in testFaceSquareFilter() 95 top = bitmap.getHeight(); in testFaceSquareFilter() 113 for (int j = 0; j < (bottom - top); j++) { in testFaceSquareFilter() 115 if (left > 0 && top > 0) { in testFaceSquareFilter() 116 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + left) + in testFaceSquareFilter() 118 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + left) + in testFaceSquareFilter() 120 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + left) + in testFaceSquareFilter() [all …]
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/ |
D | h264bsd_deblocking.c | 133 u32 top; member 1154 bS[0].top = bS[1].top = bS[2].top = bS[3].top = 4; in GetBoundaryStrengths() 1159 bS[0].top = EdgeBoundaryStrength(mb, mb->mbB, 0, 10); in GetBoundaryStrengths() 1160 bS[1].top = EdgeBoundaryStrength(mb, mb->mbB, 1, 11); in GetBoundaryStrengths() 1161 bS[2].top = EdgeBoundaryStrength(mb, mb->mbB, 4, 14); in GetBoundaryStrengths() 1162 bS[3].top = EdgeBoundaryStrength(mb, mb->mbB, 5, 15); in GetBoundaryStrengths() 1163 if (bS[0].top || bS[1].top || bS[2].top || bS[3].top) in GetBoundaryStrengths() 1169 bS[0].top = bS[1].top = bS[2].top = bS[3].top = 0; in GetBoundaryStrengths() 1199 bS[4].top = bS[5].top = bS[6].top = bS[7].top = in GetBoundaryStrengths() 1200 bS[8].top = bS[9].top = bS[10].top = bS[11].top = in GetBoundaryStrengths() [all …]
|
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
D | StyledCornersBitmapDrawable.java | 250 float top = bounds.top + mBorderWidth / 2; in draw() local 258 flapCornerRectF.offsetTo(left, top); in draw() 263 flapCornerRectF.offsetTo(right - mCornerFlapSide, top); in draw() 305 float top = bounds.top; in drawFakeCornersForCompatibilityMode() local 313 fakeCornerRectF.offsetTo(left, top); in drawFakeCornersForCompatibilityMode() 315 mCompatibilityModePath.moveTo(left, top); in drawFakeCornersForCompatibilityMode() 316 mCompatibilityModePath.lineTo(left + mCornerRoundRadius, top); in drawFakeCornersForCompatibilityMode() 322 fakeCornerRectF.offsetTo(right - fakeCornerRectF.width(), top); in drawFakeCornersForCompatibilityMode() 324 mCompatibilityModePath.moveTo(right, top); in drawFakeCornersForCompatibilityMode() 325 mCompatibilityModePath.lineTo(right, top + mCornerRoundRadius); in drawFakeCornersForCompatibilityMode() [all …]
|
/frameworks/native/include/ui/ |
D | Rect.h | 54 left = top = 0; in Rect() 61 top = t; in Rect() 68 top = lt.y; in Rect() 76 left = top = right = bottom = 0; in clear() 96 return bottom - top; in getHeight() 100 return Rect(right - left, bottom - top); in getBounds() 105 top = lt.y; in setLeftTop() 115 return Point(left, top); in leftTop() 121 return Point(right, top); in rightTop() 129 return (left == rhs.left) && (top == rhs.top) && [all …]
|
/frameworks/compile/mclinker/lib/Script/ |
D | RpnEvaluator.cpp | 46 Operand* opd = operandStack.top(); in eval() 53 Operand* opd2 = operandStack.top(); in eval() 55 Operand* opd1 = operandStack.top(); in eval() 63 Operand* opd3 = operandStack.top(); in eval() 65 Operand* opd2 = operandStack.top(); in eval() 67 Operand* opd1 = operandStack.top(); in eval() 108 assert(operandStack.top()->type() == Operand::SYMBOL || in eval() 109 operandStack.top()->type() == Operand::INTEGER || in eval() 110 operandStack.top()->type() == Operand::FRAGMENT); in eval() 111 pResult = operandStack.top()->value(); in eval()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | BatteryMeterDrawable.java | 260 public void setBounds(int left, int top, int right, int bottom) { in setBounds() argument 261 super.setBounds(left, top, right, bottom); in setBounds() 262 mHeight = bottom - top; in setBounds() 343 mFrame.top, in draw() 345 mFrame.top + buttonHeight); in draw() 347 mButtonFrame.top += mSubpixelSmoothingLeft; in draw() 352 mFrame.top += buttonHeight; in draw() 354 mFrame.top += mSubpixelSmoothingLeft; in draw() 367 final float levelTop = drawFrac == 1f ? mButtonFrame.top in draw() 368 : (mFrame.top + (mFrame.height() * (1f - drawFrac))); in draw() [all …]
|
/frameworks/base/docs/html/ndk/reference/ |
D | classes.jd | 5 </div><!-- top --> 14 …top"><a class="el" href="struct_a_meta_data_event.html">AMetaDataEvent</a>   </td><… 15 …top"><a class="el" href="struct_a_native_activity.html">ANativeActivity</a>   </td>… 16 …top"><a class="el" href="struct_a_heart_rate_event.html">AHeartRateEvent</a>   </td…
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
D | SimpleItemAnimator.java | 79 int oldTop = preLayoutInfo.top; in animateDisappearance() 82 int newTop = postLayoutInfo == null ? disappearingItemView.getTop() : postLayoutInfo.top; in animateDisappearance() 103 || preLayoutInfo.top != postLayoutInfo.top)) { in animateAppearance() 108 return animateMove(viewHolder, preLayoutInfo.left, preLayoutInfo.top, in animateAppearance() 109 postLayoutInfo.left, postLayoutInfo.top); in animateAppearance() 121 if (preInfo.left != postInfo.left || preInfo.top != postInfo.top) { in animatePersistence() 127 preInfo.left, preInfo.top, postInfo.left, postInfo.top); in animatePersistence() 140 final int fromTop = preInfo.top; in animateChange() 144 toTop = preInfo.top; in animateChange() 147 toTop = postInfo.top; in animateChange()
|
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/processing/ |
D | Scope.java | 115 ScopeEntry top = sScopeItems.get(); in produceScopeLog() local 116 while (top != null) { in produceScopeLog() 117 ScopeProvider provider = top.mProvider; in produceScopeLog() 135 top = top.mParent; in produceScopeLog() 142 ScopeEntry top = sScopeItems.get(); in createReport() local 145 while (top != null && (filePath == null || locations == null)) { in createReport() 146 ScopeProvider provider = top.mProvider; in createReport() 148 locations = findAbsoluteLocationFrom(top, (LocationScopeProvider) provider); in createReport() 153 top = top.mParent; in createReport() 159 LocationScopeProvider top) { in findAbsoluteLocationFrom() argument [all …]
|