Home
last modified time | relevance | path

Searched refs:mRight (Results 1 – 25 of 42) 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;
33 float mRight; member
36 bool isEmpty() const { return mLeft == mRight || mTop == mBottom; } in isEmpty()
40 mRight = r.mRight; in set()
46 mRight += dx; in offset()
49 void setEmpty() { mLeft = mTop = mRight = mBottom = 0.0; } in setEmpty()
56 mRight = std::max(mRight, r.mRight); in join()
64 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.java1650 float x = (mRight - mLeft) / 2; in onDraw()
1658 mVirtualButtonPressedDrawable.setBounds(0, 0, mRight, mTopSelectionDividerTop); in onDraw()
1663 mVirtualButtonPressedDrawable.setBounds(0, mBottomSelectionDividerBottom, mRight, in onDraw()
1691 mSelectionDivider.setBounds(0, topOfTopDivider, mRight, bottomOfTopDivider); in onDraw()
1697 mSelectionDivider.setBounds(0, topOfBottomDivider, mRight, bottomOfBottomDivider); in onDraw()
2321 invalidate(0, mBottomSelectionDividerBottom, mRight, mBottom); in cancel()
2325 invalidate(0, 0, mRight, mTopSelectionDividerTop); in cancel()
2350 invalidate(0, mBottomSelectionDividerBottom, mRight, mBottom); in run()
2354 invalidate(0, 0, mRight, mTopSelectionDividerTop); in run()
2366 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.java651 int childrenWidth = mRight - mLeft - mSpinnerPadding.left - mSpinnerPadding.right; in layout()
738 curRightEdge = mRight - mLeft - mPaddingRight; in fillToGalleryLeftRtl()
767 curRightEdge = mRight - mLeft - mPaddingRight; in fillToGalleryLeftLtr()
795 int galleryRight = mRight - mLeft - mPaddingRight; in fillToGalleryRightRtl()
826 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/pipeline/skia/
DAnimatedDrawables.h36 : mLeft(left), mTop(top), mRight(right), mBottom(bottom), mRx(rx), mRy(ry), mPaint(p) {} in AnimatedRoundRect()
40 return SkRect::MakeLTRB(mLeft->value, mTop->value, mRight->value, mBottom->value); in onGetBounds()
43 SkRect rect = SkRect::MakeLTRB(mLeft->value, mTop->value, mRight->value, mBottom->value); in onDraw()
50 sp<uirenderer::CanvasPropertyPrimitive> mRight; variable
/frameworks/minikin/tests/unittest/
DLayoutTest.cpp70 EXPECT_EQ(70.0f, rect.mRight); in TEST_F()
88 EXPECT_EQ(90.0f, rect.mRight); in TEST_F()
106 EXPECT_EQ(160.0f, rect.mRight); in TEST_F()
124 EXPECT_EQ(110.0f, rect.mRight); in TEST_F()
154 EXPECT_EQ(70.0f, rect.mRight); in TEST_F()
172 EXPECT_EQ(95.0f, rect.mRight); in TEST_F()
191 EXPECT_EQ(170.0f, rect.mRight); in TEST_F()
211 EXPECT_EQ(120.0f, rect.mRight); in TEST_F()
244 EXPECT_EQ(70.0f, rect.mRight); in TEST_F()
262 EXPECT_EQ(85.0f, rect.mRight); in TEST_F()
[all …]
/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/libs/hwui/
DRenderProperties.h354 mPrimitiveFields.mWidth = mPrimitiveFields.mRight - mPrimitiveFields.mLeft; in setLeft()
379 if (RP_SET(mPrimitiveFields.mRight, right)) { in setRight()
380 mPrimitiveFields.mWidth = mPrimitiveFields.mRight - mPrimitiveFields.mLeft; in setRight()
389 int getRight() const { return mPrimitiveFields.mRight; } in getRight()
412 right != mPrimitiveFields.mRight || bottom != mPrimitiveFields.mBottom) { in setLeftTopRightBottom()
415 mPrimitiveFields.mRight = right; in setLeftTopRightBottom()
417 mPrimitiveFields.mWidth = mPrimitiveFields.mRight - mPrimitiveFields.mLeft; in setLeftTopRightBottom()
430 mPrimitiveFields.mRight += offset; in offsetLeftRight()
556 int mLeft = 0, mTop = 0, mRight = 0, mBottom = 0; member
/frameworks/base/services/core/java/com/android/server/wm/
DLetterbox.java50 private final LetterboxSurface mRight = new LetterboxSurface("right"); field in Letterbox
51 private final LetterboxSurface[] mSurfaces = { mLeft, mTop, mRight, mBottom };
80 mRight.layout(inner.right, outer.top, outer.right, inner.bottom, surfaceOrigin); in layout()
91 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()
DActivityTransitionCoordinator.java651 state.mRight = view.getRight(); in getOldSharedElementState()
727 view.layout(state.mLeft, state.mTop, state.mRight, state.mBottom); in setOriginalSharedElementState()
1112 int mRight; field in ActivityTransitionCoordinator.SharedElementOriginalState
/frameworks/base/libs/hwui/hwui/
DCanvas.cpp126 bounds.mRight, bounds.mBottom, totalAdvance); in operator ()()
133 bounds.mRight, bounds.mBottom, totalAdvance); in operator ()()
137 bounds.mRight, bounds.mBottom, totalAdvance); in operator ()()
DMinikinSkia.cpp87 bounds->mRight = skBounds.fRight; in GetBounds()
/frameworks/av/media/libstagefright/foundation/
DMetaDataBase.cpp73 int32_t mLeft, mTop, mRight, mBottom; member
144 r.mRight = right; in setRect()
242 *right = r->mRight; in findRect()
402 r->mLeft, r->mTop, r->mRight, r->mBottom); in asString()
DAMessage.cpp340 item->u.rectValue.mRight = right; in setRect()
390 *right = item->u.rectValue.mRight; in findRect()
627 item.u.rectValue.mRight, in debugString()
870 item.u.rectValue.mRight, item.u.rectValue.mBottom); in changesFrom()
/frameworks/base/core/java/android/view/
DViewOverlay.java143 mRight = hostView.getWidth(); in OverlayViewGroup()
146 mRenderNode.setLeftTopRightBottom(0, 0, mRight, mBottom); in OverlayViewGroup()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DScreenshotSelectorView.java77 canvas.drawRect(mLeft, mTop, mRight, mBottom, mPaintBackground); in draw()
/frameworks/minikin/tests/util/
DFreeTypeMinikinFontForTest.cpp106 bounds->mRight = FTPosToFloat(bbox.xMax); in GetBounds()
/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/base/core/jni/android/graphics/text/
DMeasuredText.cpp126 r.fRight = rect.mRight; in nGetBounds()
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/
DAMessage.h188 int32_t mLeft, mTop, mRight, mBottom; member

12