Home
last modified time | relevance | path

Searched refs:mRight (Results 1 – 25 of 44) sorted by relevance

12

/frameworks/minikin/include/minikin/
DMinikinRect.h25 MinikinRect() : mLeft(0), mTop(0), mRight(0), mBottom(0) {} in MinikinRect()
27 : mLeft(left), mTop(top), mRight(right), mBottom(bottom) {} in MinikinRect()
29 return mLeft == o.mLeft && mTop == o.mTop && mRight == o.mRight && mBottom == o.mBottom;
34 float mRight; member
37 bool isEmpty() const { return mLeft == mRight || mTop == mBottom; } in isEmpty()
41 mRight = r.mRight; in set()
47 mRight += dx; in offset()
50 void setEmpty() { mLeft = mTop = mRight = mBottom = 0.0; } in setEmpty()
57 mRight = std::max(mRight, r.mRight); in join()
65 return os << "(" << r.mLeft << ", " << r.mTop << ")-(" << r.mRight << ", " << r.mBottom << ")";
/frameworks/base/core/java/android/widget/
DRtlSpacingHelper.java29 private int mRight = 0; field in RtlSpacingHelper
43 return mRight; in getRight()
47 return mIsRtl ? mRight : mLeft; in getStart()
51 return mIsRtl ? mLeft : mRight; in getEnd()
60 if (start != UNDEFINED) mRight = start; in setRelative()
63 if (end != UNDEFINED) mRight = end; in setRelative()
70 if (right != UNDEFINED) mRight = mExplicitRight = right; in setAbsolute()
81 mRight = mStart != UNDEFINED ? mStart : mExplicitRight; in setDirection()
84 mRight = mEnd != UNDEFINED ? mEnd : mExplicitRight; in setDirection()
88 mRight = mExplicitRight; in setDirection()
DRelativeLayout.java513 width = Math.max(width, params.mRight); in onMeasure()
515 width = Math.max(width, params.mRight + params.rightMargin); in onMeasure()
534 right = Math.max(right, params.mRight + params.rightMargin); in onMeasure()
580 params.mRight = params.mLeft + childWidth; in onMeasure()
635 params.mRight += horizontalOffset; in onMeasure()
653 params.mRight -= offsetWidth; in onMeasure()
687 params.mRight, params.width, in measureChild()
701 final int childWidthMeasureSpec = getChildMeasureSpec(params.mLeft, params.mRight, in measureChildHorizontal()
844 if (params.mLeft == VALUE_NOT_SET && params.mRight != VALUE_NOT_SET) { in positionChildHorizontal()
846 params.mLeft = params.mRight - child.getMeasuredWidth(); in positionChildHorizontal()
[all …]
DNumberPicker.java1651 float x = (mRight - mLeft) / 2; in onDraw()
1659 mVirtualButtonPressedDrawable.setBounds(0, 0, mRight, mTopSelectionDividerTop); in onDraw()
1664 mVirtualButtonPressedDrawable.setBounds(0, mBottomSelectionDividerBottom, mRight, in onDraw()
1692 mSelectionDivider.setBounds(0, topOfTopDivider, mRight, bottomOfTopDivider); in onDraw()
1698 mSelectionDivider.setBounds(0, topOfBottomDivider, mRight, bottomOfBottomDivider); in onDraw()
2322 invalidate(0, mBottomSelectionDividerBottom, mRight, mBottom); in cancel()
2326 invalidate(0, 0, mRight, mTopSelectionDividerTop); in cancel()
2351 invalidate(0, mBottomSelectionDividerBottom, mRight, mBottom); in run()
2355 invalidate(0, 0, mRight, mTopSelectionDividerTop); in run()
2367 invalidate(0, mBottomSelectionDividerBottom, mRight, mBottom); in run()
[all …]
DSlidingDrawer.java476 (!mExpanded && left > mBottomOffset + mRight - mLeft - in onTouchEvent()
629 handle.offsetLeftAndRight(mBottomOffset + mRight - mLeft - in moveHandle()
637 } else if (deltaX > mBottomOffset + mRight - mLeft - mHandleWidth - left) { in moveHandle()
638 deltaX = mBottomOffset + mRight - mLeft - mHandleWidth - left; in moveHandle()
670 content.measure(MeasureSpec.makeMeasureSpec(mRight - mLeft, MeasureSpec.EXACTLY), in prepareContent()
676 int width = mRight - mLeft - childWidth - mTopOffset; in prepareContent()
DGallery.java652 int childrenWidth = mRight - mLeft - mSpinnerPadding.left - mSpinnerPadding.right; in layout()
739 curRightEdge = mRight - mLeft - mPaddingRight; in fillToGalleryLeftRtl()
768 curRightEdge = mRight - mLeft - mPaddingRight; in fillToGalleryLeftLtr()
796 int galleryRight = mRight - mLeft - mPaddingRight; in fillToGalleryRightRtl()
827 int galleryRight = mRight - mLeft - mPaddingRight; in fillToGalleryRightLtr()
/frameworks/base/core/tests/coretests/src/android/view/
DGlobalFocusChangeTest.java33 private View mRight; field in GlobalFocusChangeTest
44 mRight = mActivity.findViewById(R.id.right); in setUp()
59 assertTrue(mRight.isFocused()); in testFocusChange()
62 assertSame(mRight, mActivity.mNewFocus); in testFocusChange()
/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/
DCustomLayout.java28 private int mLeft, mTop, mRight, mBottom; field in CustomLayout.LayoutParams
34 mRight = right; in LayoutParams()
45 child.layout(lp.mLeft, lp.mTop, lp.mRight, lp.mBottom); in onLayout()
/frameworks/base/libs/hwui/
DRenderProperties.h369 mPrimitiveFields.mWidth = mPrimitiveFields.mRight - mPrimitiveFields.mLeft; in setLeft()
394 if (RP_SET(mPrimitiveFields.mRight, right)) { in setRight()
395 mPrimitiveFields.mWidth = mPrimitiveFields.mRight - mPrimitiveFields.mLeft; in setRight()
404 int getRight() const { return mPrimitiveFields.mRight; } in getRight()
427 right != mPrimitiveFields.mRight || bottom != mPrimitiveFields.mBottom) { in setLeftTopRightBottom()
430 mPrimitiveFields.mRight = right; in setLeftTopRightBottom()
432 mPrimitiveFields.mWidth = mPrimitiveFields.mRight - mPrimitiveFields.mLeft; in setLeftTopRightBottom()
445 mPrimitiveFields.mRight += offset; in offsetLeftRight()
576 int mLeft = 0, mTop = 0, mRight = 0, mBottom = 0; member
/frameworks/layoutlib/bridge/src/android/graphics/
DRenderNode_Delegate.java51 private int mRight; field in RenderNode_Delegate
210 if (delegate != null && delegate.mRight != right) { in nSetRight()
211 delegate.mRight = right; in nSetRight()
232 .mRight != right || delegate.mBottom != bottom)) { in nSetLeftTopRightBottom()
235 delegate.mRight = right; in nSetLeftTopRightBottom()
266 return (delegate.mRight - delegate.mLeft) / 2.0f; in nGetPivotX()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DLetterboxTest.java121 final Rect mRight = new Rect(); field in LetterboxTest.LetterboxLayoutVerifier
139 mRight.set(right); in setBarRect()
149 assertEquals(mLetterbox.notIntersectsOrFullyContains(mRight), in verifyPositions()
158 mTempRect.set(mRight.left - 1, mRight.top, mRight.right, mRight.bottom); in verifyPositions()
/frameworks/minikin/tests/unittest/
DLayoutTest.cpp78 EXPECT_EQ(70.0f, rect.mRight); in TEST_F()
97 EXPECT_EQ(90.0f, rect.mRight); in TEST_F()
116 EXPECT_EQ(160.0f, rect.mRight); in TEST_F()
135 EXPECT_EQ(110.0f, rect.mRight); in TEST_F()
166 EXPECT_EQ(70.0f, rect.mRight); in TEST_F()
185 EXPECT_EQ(95.0f, rect.mRight); in TEST_F()
205 EXPECT_EQ(170.0f, rect.mRight); in TEST_F()
226 EXPECT_EQ(120.0f, rect.mRight); in TEST_F()
260 EXPECT_EQ(70.0f, rect.mRight); in TEST_F()
279 EXPECT_EQ(85.0f, rect.mRight); in TEST_F()
[all …]
/frameworks/base/libs/hwui/pipeline/skia/
DAnimatedDrawables.h39 : mLeft(left), mTop(top), mRight(right), mBottom(bottom), mRx(rx), mRy(ry), mPaint(p) {} in AnimatedRoundRect()
43 return SkRect::MakeLTRB(mLeft->value, mTop->value, mRight->value, mBottom->value); in onGetBounds()
46 SkRect rect = SkRect::MakeLTRB(mLeft->value, mTop->value, mRight->value, mBottom->value); in onDraw()
53 sp<uirenderer::CanvasPropertyPrimitive> mRight; variable
/frameworks/base/services/core/java/com/android/server/wm/
DLetterbox.java60 private final LetterboxSurface mRight = new LetterboxSurface("right"); field in Letterbox
65 private final LetterboxSurface[] mSurfaces = { mLeft, mTop, mRight, mBottom };
106 mRight.layout(inner.right, outer.top, outer.right, outer.bottom, surfaceOrigin); in layout()
118 mRight.getWidth(), in getInsets()
/frameworks/base/core/java/android/app/
DFragmentBreadCrumbs.java217 childRight = mRight - mLeft - mPaddingRight; in onLayout()
222 childLeft = mPaddingLeft + (mRight - mLeft - child.getMeasuredWidth()) / 2; in onLayout()
237 if (childRight > mRight - mLeft - mPaddingRight) { in onLayout()
238 childRight = mRight - mLeft - mPaddingRight; in onLayout()
/frameworks/av/media/libstagefright/foundation/
DMetaDataBase.cpp76 int32_t mLeft, mTop, mRight, mBottom; member
147 r.mRight = right; in setRect()
245 *right = r->mRight; in findRect()
405 r->mLeft, r->mTop, r->mRight, r->mBottom); in asString()
DAMessage.cpp355 item->u.rectValue.mRight = right; in setRect()
406 *right = item->u.rectValue.mRight; in findRect()
643 item.u.rectValue.mRight, in debugString()
886 item.u.rectValue.mRight, item.u.rectValue.mBottom); in changesFrom()
/frameworks/base/core/java/android/view/
DViewOverlay.java144 mRight = hostView.getWidth(); in OverlayViewGroup()
147 mRenderNode.setLeftTopRightBottom(0, 0, mRight, mBottom); in OverlayViewGroup()
DView.java4379 protected int mRight; field in View
6472 out.append(mRight);
8642 position.set(0, 0, mRight - mLeft, mBottom - mTop);
8903 mRight - mLeft, mBottom - mTop);
16264 return (mBottom > mTop) && (mRight > mLeft); in hasSize()
16703 return mRight - mLeft; in getWidth()
16728 outRect.right = mScrollX + (mRight - mLeft); in getDrawingRect()
17507 invalidate(0, yLoc, mRight - mLeft, mBottom - minTop); in setTop()
17514 int width = mRight - mLeft; in setTop()
17572 invalidate(0, 0, mRight - mLeft, maxBottom - mTop); in setBottom()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DScreenshotSelectorView.java80 canvas.drawRect(mLeft, mTop, mRight, mBottom, mPaintBackground); in draw()
/frameworks/base/core/java/android/transition/
DChangeBounds.java477 private int mRight; field in ChangeBounds.ViewBounds
497 mRight = Math.round(bottomRight.x); in setBottomRight()
506 mView.setLeftTopRightBottom(mLeft, mTop, mRight, mBottom); in setLeftTopRightBottom()
/frameworks/minikin/tests/util/
DFreeTypeMinikinFontForTest.cpp104 bounds->mRight = FTPosToFloat(bbox.xMax); in GetBounds()
/frameworks/base/libs/hwui/jni/text/
DMeasuredText.cpp125 r.fRight = rect.mRight; in nGetBounds()
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/
DAMessage.h193 int32_t mLeft, mTop, mRight, mBottom; member
/frameworks/base/libs/hwui/hwui/
DMinikinSkia.cpp87 bounds->mRight = skBounds.fRight; in GetBounds()

12