/frameworks/base/graphics/java/android/graphics/ |
D | RectF.java | 35 public float right; field in RectF 53 public RectF(float left, float top, float right, float bottom) { in RectF() argument 56 this.right = right; in RectF() 69 left = top = right = bottom = 0.0f; in RectF() 73 right = r.right; in RectF() 80 left = top = right = bottom = 0.0f; in RectF() 84 right = r.right; in RectF() 95 return left == r.left && top == r.top && right == r.right && bottom == r.bottom; in equals() 102 result = 31 * result + (right != +0.0f ? Float.floatToIntBits(right) : 0); in hashCode() 109 + right + ", " + bottom + ")"; in toString() [all …]
|
D | Rect.java | 37 public int right; field in Rect 70 public Rect(int left, int top, int right, int bottom) { in Rect() argument 73 this.right = right; in Rect() 86 left = top = right = bottom = 0; in Rect() 90 right = r.right; in Rect() 101 return left == r.left && top == r.top && right == r.right && bottom == r.bottom; in equals() 108 result = 31 * result + right; in hashCode() 117 sb.append(top); sb.append(" - "); sb.append(right); in toString() 136 sb.append(top); sb.append("]["); sb.append(right); in toShortString() 157 sb.append(right); in flattenToString() [all …]
|
D | Insets.java | 33 public final int right; field in Insets 36 private Insets(int left, int top, int right, int bottom) { in Insets() argument 39 this.right = right; 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() 90 if (right != insets.right) return false; in equals() 100 result = 31 * result + right; in hashCode() 110 ", right=" + right + in toString()
|
D | Outline.java | 143 public void setRect(int left, int top, int right, int bottom) { in setRect() argument 144 setRoundRect(left, top, right, bottom, 0.0f); in setRect() 151 setRect(rect.left, rect.top, rect.right, rect.bottom); in setRect() 159 public void setRoundRect(int left, int top, int right, int bottom, float radius) { in setRoundRect() argument 160 if (left >= right || top >= bottom) { in setRoundRect() 166 mRect.set(left, top, right, bottom); in setRoundRect() 175 setRoundRect(rect.left, rect.top, rect.right, rect.bottom, radius); in setRoundRect() 181 public void setOval(int left, int top, int right, int bottom) { in setOval() argument 182 if (left >= right || top >= bottom) { in setOval() 187 if ((bottom - top) == (right - left)) { in setOval() [all …]
|
D | Path.java | 438 arcTo(oval.left, oval.top, oval.right, oval.bottom, startAngle, sweepAngle, forceMoveTo); in arcTo() 453 arcTo(oval.left, oval.top, oval.right, oval.bottom, startAngle, sweepAngle, false); in arcTo() 468 public void arcTo(float left, float top, float right, float bottom, float startAngle, in arcTo() argument 471 native_arcTo(mNativePath, left, top, right, bottom, startAngle, sweepAngle, forceMoveTo); in arcTo() 499 private void detectSimplePath(float left, float top, float right, float bottom, Direction dir) { in detectSimplePath() argument 507 rects.op((int) left, (int) top, (int) right, (int) bottom, Region.Op.UNION); in detectSimplePath() 518 addRect(rect.left, rect.top, rect.right, rect.bottom, dir); in addRect() 530 public void addRect(float left, float top, float right, float bottom, Direction dir) { in addRect() argument 531 detectSimplePath(left, top, right, bottom, dir); in addRect() 532 native_addRect(mNativePath, left, top, right, bottom, dir.nativeInt); in addRect() [all …]
|
D | Canvas.java | 447 return saveLayer(bounds.left, bounds.top, bounds.right, bounds.bottom, paint, saveFlags); in saveLayer() 460 public int saveLayer(float left, float top, float right, float bottom, @Nullable Paint paint, in saveLayer() argument 462 return native_saveLayer(mNativeCanvasWrapper, left, top, right, bottom, in saveLayer() 470 public int saveLayer(float left, float top, float right, float bottom, @Nullable Paint paint) { in saveLayer() argument 471 return saveLayer(left, top, right, bottom, paint, ALL_SAVE_FLAG); in saveLayer() 506 … return saveLayerAlpha(bounds.left, bounds.top, bounds.right, bounds.bottom, alpha, saveFlags); in saveLayerAlpha() 519 public int saveLayerAlpha(float left, float top, float right, float bottom, int alpha, in saveLayerAlpha() argument 522 return native_saveLayerAlpha(mNativeCanvasWrapper, left, top, right, bottom, in saveLayerAlpha() 529 public int saveLayerAlpha(float left, float top, float right, float bottom, int alpha) { in saveLayerAlpha() argument 530 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 | 33 (r).left, (r).top, (r).right, (r).bottom 35 (r).left(), (r).top(), (r).right(), (r).bottom() 45 float right; variable 57 right(0), in Rect() 61 inline Rect(float left, float top, float right, float bottom): in Rect() argument 64 right(right), in Rect() 71 right(width), in Rect() 78 right(rect.fRight), in Rect() 91 left = top = right = bottom = 0.0f; in clear() 97 return !((left < right) && (top < bottom)); in isEmpty() [all …]
|
D | OpenGLRenderer.h | 144 virtual void prepareDirty(float left, float top, float right, float bottom, 175 virtual int saveLayer(float left, float top, float right, float bottom, in saveLayer() argument 177 return saveLayer(left, top, right, bottom, paint, flags, nullptr); in saveLayer() 182 int saveLayer(float left, float top, float right, float bottom, 185 int saveLayerDeferred(float left, float top, float right, float bottom, 200 float left, float top, float right, float bottom, const SkPaint* paint); 202 void drawRect(float left, float top, float right, float bottom, 204 void drawRoundRect(float left, float top, float right, float bottom, 207 void drawOval(float left, float top, float right, float bottom, 209 void drawArc(float left, float top, float right, float bottom, [all …]
|
/frameworks/base/test-runner/src/junit/runner/ |
D | Sorter.java | 13 public void swap(Vector values, int left, int right); in swap() argument 16 public static void sortStrings(Vector values , int left, int right, Swapper swapper) { in sortStrings() argument 18 int oright= right; in sortStrings() 19 String mid= (String)values.elementAt((left + right) / 2); in sortStrings() 23 while (mid.compareTo((String)(values.elementAt(right))) < 0) in sortStrings() 24 right--; in sortStrings() 25 if (left <= right) { in sortStrings() 26 swapper.swap(values, left, right); in sortStrings() 28 right--; in sortStrings() 30 } while (left <= right); in sortStrings() [all …]
|
/frameworks/native/libs/ui/ |
D | Rect.cpp | 35 right = -1; in makeInvalid() 49 if (right < rhs.right) { in operator <() 59 right -= left - x; in offsetTo() 69 right += x; in offsetBy() 75 const Rect result(left + rhs.x, top + rhs.y, right + rhs.x, bottom + rhs.y); in operator +() 80 const Rect result(left - rhs.x, top - rhs.y, right - rhs.x, bottom - rhs.y); in operator -() 87 result->right = min(right, with.right); in intersect() 95 result = Rect(width - result.right, result.top, width - result.left, in transform() 99 result = Rect(result.left, height - result.bottom, result.right, in transform() 105 int right = height - result.top; in transform() local [all …]
|
D | Region.cpp | 129 int right = current->right; in reverseRectsResolvingJunctions() local 138 if (prev.right <= left) break; in reverseRectsResolvingJunctions() 140 if (prev.right > left && prev.right < right) { in reverseRectsResolvingJunctions() 141 dst.add(Rect(prev.right, top, right, bottom)); in reverseRectsResolvingJunctions() 142 right = prev.right; in reverseRectsResolvingJunctions() 145 if (prev.left > left && prev.left < right) { in reverseRectsResolvingJunctions() 146 dst.add(Rect(prev.left, top, right, bottom)); in reverseRectsResolvingJunctions() 147 right = prev.left; in reverseRectsResolvingJunctions() 152 if (prev.left >= right) { in reverseRectsResolvingJunctions() 157 if (prev.left >= right) break; in reverseRectsResolvingJunctions() [all …]
|
/frameworks/base/core/java/android/view/ |
D | Gravity.java | 191 + ((container.right - container.left - w)/2) + xAdj; in apply() 192 outRect.right = outRect.left + w; in apply() 198 if (outRect.right > container.right) { in apply() 199 outRect.right = container.right; in apply() 205 outRect.right = outRect.left + w; in apply() 208 if (outRect.right > container.right) { in apply() 209 outRect.right = container.right; in apply() 214 outRect.right = container.right - xAdj; in apply() 215 outRect.left = outRect.right - w; in apply() 225 outRect.right = container.right + xAdj; in apply() [all …]
|
D | WindowInsets.java | 147 return mSystemWindowInsets.right; in getSystemWindowInsetRight() 202 return mWindowDecorInsets.right; in getWindowDecorInsetRight() 230 mSystemWindowInsets.right != 0 || mSystemWindowInsets.bottom != 0; in hasSystemWindowInsets() 245 mWindowDecorInsets.right != 0 || mWindowDecorInsets.bottom != 0; in hasWindowDecorInsets() 311 boolean right, boolean bottom) { in consumeSystemWindowInsets() argument 312 if (left || top || right || bottom) { in consumeSystemWindowInsets() 317 right ? 0 : mSystemWindowInsets.right, in consumeSystemWindowInsets() 335 int right, int bottom) { in replaceSystemWindowInsets() argument 337 result.mSystemWindowInsets = new Rect(left, top, right, bottom); in replaceSystemWindowInsets() 369 boolean right, boolean bottom) { in consumeWindowDecorInsets() argument [all …]
|
/frameworks/native/include/ui/ |
D | Rect.h | 40 left = right = top = bottom = 0; in Rect() 45 right = w; in Rect() 61 right = w; in Rect() 68 right = r; in Rect() 75 right = rb.x; in Rect() 82 left = top = right = bottom = 0; in clear() 97 return right - left; in getWidth() 106 return Rect(right - left, bottom - top); in getBounds() 115 right = rb.x; in setRightBottom() 124 return Point(right, bottom); in rightBottom() [all …]
|
/frameworks/base/core/java/android/app/usage/ |
D | UsageStats.java | 162 public void add(UsageStats right) { in add() argument 163 if (!mPackageName.equals(right.mPackageName)) { in add() 165 mPackageName + "' with UsageStats for package '" + right.mPackageName + "'."); in add() 168 if (right.mBeginTimeStamp > mBeginTimeStamp) { in add() 173 mLastEvent = right.mLastEvent; in add() 174 mLastTimeUsed = right.mLastTimeUsed; in add() 175 mBeginIdleTime = right.mBeginIdleTime; in add() 176 mLastTimeSystemUsed = right.mLastTimeSystemUsed; in add() 178 mBeginTimeStamp = Math.min(mBeginTimeStamp, right.mBeginTimeStamp); in add() 179 mEndTimeStamp = Math.max(mEndTimeStamp, right.mEndTimeStamp); in add() [all …]
|
/frameworks/support/v7/gridlayout/tests/src/android/support/v7/widget/test/ |
D | GridLayoutTest.java | 53 int right = getActivity().findViewById(R.id.rightView).getWidth(); in testUseDefaultMargin() local 56 assertTrue("right item should get some width", right > 0); in testUseDefaultMargin() 58 assertTrue("left view should be almost two times right view " + left + " vs " + right, in testUseDefaultMargin() 59 Math.abs(right * 2 - left) < 2); in testUseDefaultMargin() 66 int right = getActivity().findViewById(R.id.rightView).getWidth(); in testImplicitFillHorizontal() local 69 assertTrue("right item should get some width", right > 0); in testImplicitFillHorizontal() 71 assertTrue("left view should be almost two times right view " + left + " vs " + right, in testImplicitFillHorizontal() 72 Math.abs(right * 2 - left) < 2); in testImplicitFillHorizontal() 79 final int right = getActivity().findViewById(R.id.rightView).getWidth(); in testMakeViewGone() local 82 assertTrue("right item should get some width", right > 0); in testMakeViewGone() [all …]
|
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
D | StyledCornersBitmapDrawable.java | 251 float right = bounds.right - mBorderWidth / 2; in draw() local 263 flapCornerRectF.offsetTo(right - mCornerFlapSide, top); in draw() 268 flapCornerRectF.offsetTo(right - mCornerFlapSide, bottom - mCornerFlapSide); in draw() 306 float right = bounds.right; in drawFakeCornersForCompatibilityMode() local 322 fakeCornerRectF.offsetTo(right - fakeCornerRectF.width(), top); in drawFakeCornersForCompatibilityMode() 324 mCompatibilityModePath.moveTo(right, top); in drawFakeCornersForCompatibilityMode() 325 mCompatibilityModePath.lineTo(right, top + mCornerRoundRadius); in drawFakeCornersForCompatibilityMode() 332 .offsetTo(right - fakeCornerRectF.width(), bottom - fakeCornerRectF.height()); in drawFakeCornersForCompatibilityMode() 334 mCompatibilityModePath.moveTo(right, bottom); in drawFakeCornersForCompatibilityMode() 335 mCompatibilityModePath.lineTo(right - mCornerRoundRadius, bottom); in drawFakeCornersForCompatibilityMode() [all …]
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | RecentApplicationsBackground.java | 60 protected boolean setFrame(int left, int top, int right, int bottom) { in setFrame() argument 62 if (mLeft != left || mRight != right || mTop != top || mBottom != bottom) { in setFrame() 65 return super.setFrame(left, top, right, bottom); in setFrame() 105 int left, right; in draw() local 109 right = chld.right + bkg.right; in draw() 113 right = getRight(); in draw() 115 background.setBounds(left, top, right, bottom); in draw() 145 r.bottom = r.right = Integer.MIN_VALUE; in getChildBounds() 152 r.right = Math.max(r.right, v.getRight()); in getChildBounds()
|
/frameworks/compile/mclinker/include/mcld/ADT/ |
D | TreeBase.h | 23 NodeBase* right; variable 26 NodeBase() : left(NULL), right(NULL) {} in NodeBase() 57 bool isRoot() const { return (m_pNode->right == m_pNode); } in isRoot() 60 return ((m_pNode->right) != (m_pNode->right->right)); in hasRightChild() 64 return ((m_pNode->left) != (m_pNode->left->right)); in hasLeftChild() 83 this->m_pNode = this->m_pNode->right; 95 this->m_pNode->right = pOther;
|
D | BinTree.h | 33 m_Stack.push(m_pNode->right); in DFSIterator() 42 m_pNode = m_pNode->right; // should be root in advance() 48 m_Stack.push(m_pNode->right); in advance() 63 m_Queue.push(m_pNode->right); in BFSIterator() 72 m_pNode = m_pNode->right; // should be root in advance() 78 m_Queue.push(m_pNode->right); in advance() 212 bool isRoot() const { return (m_pNode->right == m_pNode); } in isRoot() 275 TreeImpl() : NodeFactory<DataType>() { node.left = node.right = &node; } in TreeImpl() 289 if ((*data).right == &pClient.node) in summon() 290 (*data).right = &node; in summon() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/ |
D | RecentsResizeTaskDialog.java | 135 mBounds[0].right = mBounds[0].centerX(); in placeTasks() 136 mBounds[1].left = mBounds[0].right; in placeTasks() 140 mBounds[1].right = mBounds[1].centerX(); in placeTasks() 141 mBounds[0].left = mBounds[1].right; in placeTasks() 155 mBounds[0].right = mBounds[0].centerX(); in placeTasks() 157 mBounds[1].left = mBounds[0].right; in placeTasks() 159 mBounds[2].right = mBounds[0].right; in placeTasks() 161 mBounds[3].left = mBounds[0].right; in placeTasks() 168 mBounds[1].right = mBounds[0].left; in placeTasks() 172 mBounds[3].right = mBounds[0].left; in placeTasks() [all …]
|
/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/ |
D | CardViewBindingAdapter.java | 39 int right = view.getContentPaddingRight(); in setContentPaddingLeft() local 41 view.setContentPadding(left, top, right, bottom); in setContentPaddingLeft() 47 int right = view.getContentPaddingRight(); in setContentPaddingTop() local 49 view.setContentPadding(left, top, right, bottom); in setContentPaddingTop() 53 public static void setContentPaddingRight(CardView view, int right) { in setContentPaddingRight() argument 57 view.setContentPadding(left, top, right, bottom); in setContentPaddingRight() 64 int right = view.getContentPaddingRight(); in setContentPaddingBottom() local 65 view.setContentPadding(left, top, right, bottom); in setContentPaddingBottom()
|
/frameworks/base/core/java/android/animation/ |
D | RectEvaluator.java | 75 int right = startValue.right + (int) ((endValue.right - startValue.right) * fraction); in evaluate() local 78 return new Rect(left, top, right, bottom); in evaluate() 80 mRect.set(left, top, right, bottom); in evaluate()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/ |
D | FaceSquareFilter.java | 88 int right = (tempRect.right+WIDTH_OFFSET)*dims[0]/FACE_X_RANGE; in drawBoxes() local 105 if (right > dims[0]) { in drawBoxes() 106 right = dims[0]; in drawBoxes() 107 } else if (right < 0) { in drawBoxes() 108 right = 0; in drawBoxes() 123 if (right > 0 && top > 0) { in drawBoxes() 124 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + right) + in drawBoxes() 126 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + right) + in drawBoxes() 128 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + right) + in drawBoxes() 133 for (int k = 0; k < (right - left); k++) { in drawBoxes()
|