Home
last modified time | relevance | path

Searched refs:mLeft (Results 1 – 25 of 51) sorted by relevance

123

/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;
31 float mLeft; member
36 bool isEmpty() const { return mLeft == mRight || mTop == mBottom; } in isEmpty()
38 mLeft = r.mLeft; in set()
44 mLeft += dx; in offset()
49 void setEmpty() { mLeft = mTop = mRight = mBottom = 0.0; } in setEmpty()
54 mLeft = std::min(mLeft, r.mLeft); in join()
64 return os << "(" << r.mLeft << ", " << r.mTop << ")-(" << r.mRight << ", " << r.mBottom << ")";
/frameworks/base/core/java/android/widget/
DRtlSpacingHelper.java28 private int mLeft = 0; field in RtlSpacingHelper
39 return mLeft; in getLeft()
47 return mIsRtl ? mRight : mLeft; in getStart()
51 return mIsRtl ? mLeft : mRight; in getEnd()
59 if (end != UNDEFINED) mLeft = end; in setRelative()
62 if (start != UNDEFINED) mLeft = start; in setRelative()
69 if (left != UNDEFINED) mLeft = mExplicitLeft = left; in setAbsolute()
80 mLeft = mEnd != UNDEFINED ? mEnd : mExplicitLeft; in setDirection()
83 mLeft = mStart != UNDEFINED ? mStart : mExplicitLeft; in setDirection()
87 mLeft = mExplicitLeft; in setDirection()
DRelativeLayout.java507 width = Math.max(width, myWidth - params.mLeft); in onMeasure()
509 width = Math.max(width, myWidth - params.mLeft + params.leftMargin); in onMeasure()
529 left = Math.min(left, params.mLeft - params.leftMargin); in onMeasure()
579 params.mLeft = width - mPaddingRight - childWidth; in onMeasure()
580 params.mRight = params.mLeft + childWidth; in onMeasure()
634 params.mLeft += horizontalOffset; in onMeasure()
652 params.mLeft -= offsetWidth; in onMeasure()
672 return p1.mLeft - p2.mLeft; in compareLayoutPosition()
686 int childWidthMeasureSpec = getChildMeasureSpec(params.mLeft, in measureChild()
701 final int childWidthMeasureSpec = getChildMeasureSpec(params.mLeft, params.mRight, in measureChildHorizontal()
[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.java32 private View mLeft; field in GlobalFocusChangeTest
43 mLeft = mActivity.findViewById(R.id.left); in setUp()
58 assertFalse(mLeft.isFocused()); in testFocusChange()
61 assertSame(mLeft, mActivity.mOldFocus); in testFocusChange()
68 assertTrue(mLeft.isFocused()); in testEnterTouchMode()
70 TouchUtils.tapView(this, mLeft); in testEnterTouchMode()
72 assertSame(mLeft, mActivity.mOldFocus); in testEnterTouchMode()
79 assertTrue(mLeft.isFocused()); in testLeaveTouchMode()
81 TouchUtils.tapView(this, mLeft); in testLeaveTouchMode()
84 assertTrue(mLeft.isFocused()); in testLeaveTouchMode()
[all …]
/frameworks/base/packages/DynamicSystemInstallationService/src/com/android/dynsystem/
DSparseInputStream.java85 private long mLeft; field in SparseInputStream
116 mLeft = mCurChunks = 0; in SparseInputStream()
125 if (mCur == null || mLeft <= 0) { in prepareChunk()
131 mLeft = mCur.mChunkSize * mBlockSize; in prepareChunk()
133 return mLeft == 0; in prepareChunk()
147 n = mIn.read(buf, 0, (int) min(mLeft, buf.length)); in read()
148 mLeft -= n; in read()
151 n = (int) min(mLeft, buf.length); in read()
153 mLeft -= n; in read()
180 ret = mCur.fill[(4 - ((int) mLeft & 0x3)) & 0x3]; in read()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/layout/table/
DHorizontalGravityTest.java35 private View mLeft; field in HorizontalGravityTest
49 mLeft = activity.findViewById(R.id.left); in setUp()
57 assertNotNull(mLeft); in testSetUpConditions()
67 ViewAsserts.assertLeftAligned(mReference, mLeft); in testLeftGravity()
/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/
DCustomLayout.java28 private int mLeft, mTop, mRight, mBottom; field in CustomLayout.LayoutParams
32 mLeft = left; in LayoutParams()
45 child.layout(lp.mLeft, lp.mTop, lp.mRight, lp.mBottom); in onLayout()
/frameworks/layoutlib/validator/src/com/android/tools/idea/validator/accessibility/
DAtfBufferedImage.java40 private final int mLeft; field in AtfBufferedImage
51 mLeft = 0; in AtfBufferedImage()
64 mLeft = left; in AtfBufferedImage()
91 BufferedImage cropped = mBufferedImage.getSubimage(mLeft, mTop, mWidth, mHeight); in getPixels()
/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()
48 sp<uirenderer::CanvasPropertyPrimitive> mLeft;
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DLetterboxTest.java113 final Rect mLeft = new Rect(); field in LetterboxTest.LetterboxLayoutVerifier
131 mLeft.set(left); in setBarRect()
140 assertEquals(mLetterbox.notIntersectsOrFullyContains(mLeft), in verifyPositions()
148 mTempRect.set(mLeft.left, mLeft.top, mLeft.right + 1, mLeft.bottom); in verifyPositions()
/frameworks/minikin/tests/unittest/
DLayoutTest.cpp68 EXPECT_EQ(0.0f, rect.mLeft); in TEST_F()
86 EXPECT_EQ(0.0f, rect.mLeft); in TEST_F()
104 EXPECT_EQ(0.0f, rect.mLeft); in TEST_F()
122 EXPECT_EQ(0.0f, rect.mLeft); in TEST_F()
152 EXPECT_EQ(0.0f, rect.mLeft); in TEST_F()
170 EXPECT_EQ(0.0f, rect.mLeft); in TEST_F()
189 EXPECT_EQ(0.0f, rect.mLeft); in TEST_F()
209 EXPECT_EQ(0.0f, rect.mLeft); in TEST_F()
242 EXPECT_EQ(0.0f, rect.mLeft); in TEST_F()
260 EXPECT_EQ(0.0f, rect.mLeft); in TEST_F()
[all …]
/frameworks/base/libs/hwui/
DRenderProperties.h356 if (RP_SET(mPrimitiveFields.mLeft, left)) { in setLeft()
357 mPrimitiveFields.mWidth = mPrimitiveFields.mRight - mPrimitiveFields.mLeft; in setLeft()
366 int getLeft() const { return mPrimitiveFields.mLeft; } in getLeft()
383 mPrimitiveFields.mWidth = mPrimitiveFields.mRight - mPrimitiveFields.mLeft; in setRight()
414 if (left != mPrimitiveFields.mLeft || top != mPrimitiveFields.mTop || in setLeftTopRightBottom()
416 mPrimitiveFields.mLeft = left; in setLeftTopRightBottom()
420 mPrimitiveFields.mWidth = mPrimitiveFields.mRight - mPrimitiveFields.mLeft; in setLeftTopRightBottom()
432 mPrimitiveFields.mLeft += offset; in offsetLeftRight()
563 int mLeft = 0, mTop = 0, mRight = 0, mBottom = 0; member
DRenderProperties.cpp111 if (mPrimitiveFields.mLeft != 0 || mPrimitiveFields.mTop != 0) { in debugOutputProperties()
112 output << indent << "(Translate (left, top) " << mPrimitiveFields.mLeft << ", " in debugOutputProperties()
/frameworks/layoutlib/bridge/src/android/graphics/
DRenderNode_Delegate.java50 private int mLeft; field in RenderNode_Delegate
190 if (delegate != null && delegate.mLeft != left) { in nSetLeft()
191 delegate.mLeft = left; in nSetLeft()
231 if (delegate != null && (delegate.mLeft != left || delegate.mTop != top || delegate in nSetLeftTopRightBottom()
233 delegate.mLeft = left; in nSetLeftTopRightBottom()
266 return (delegate.mRight - delegate.mLeft) / 2.0f; in nGetPivotX()
/frameworks/base/services/core/java/com/android/server/wm/
DLetterbox.java49 private final LetterboxSurface mLeft = new LetterboxSurface("left"); field in Letterbox
52 private final LetterboxSurface[] mSurfaces = { mLeft, mTop, mRight, mBottom };
81 mLeft.layout(outer.left, outer.top, inner.left, outer.bottom, surfaceOrigin); in layout()
92 mLeft.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/bufferpool/2.0/
DAccessorImpl.h127 size_t mLeft; member
134 mLeft(left), in Pending()
139 return isBufferInRange(mFrom, mTo, bufferId) && --mLeft == 0; in isInvalidated()
/frameworks/av/media/libstagefright/foundation/
DMetaDataBase.cpp76 int32_t mLeft, mTop, mRight, mBottom; member
145 r.mLeft = left; in setRect()
243 *left = r->mLeft; in findRect()
405 r->mLeft, r->mTop, r->mRight, r->mBottom); in asString()
/frameworks/base/libs/hwui/hwui/
DCanvas.cpp117 canvas->drawGlyphs(glyphFunc, glyphCount, outlinePaint, x, y, bounds.mLeft, bounds.mTop, in operator ()()
124 canvas->drawGlyphs(glyphFunc, glyphCount, innerPaint, x, y, bounds.mLeft, bounds.mTop, in operator ()()
128 canvas->drawGlyphs(glyphFunc, glyphCount, paint, x, y, bounds.mLeft, bounds.mTop, in operator ()()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DScreenshotSelectorView.java77 canvas.drawRect(mLeft, mTop, mRight, mBottom, mPaintBackground); in draw()
/frameworks/base/core/java/android/view/
DView.java4396 protected int mLeft; field in View
6476 out.append(mLeft);
7906 position.offset(child.mLeft - child.getScrollX(), child.mTop -child.getScrollY());
8640 position.set(0, 0, mRight - mLeft, mBottom - mTop);
8658 rect.offset(mLeft, mTop);
8677 rect.offset(parentView.mLeft, parentView.mTop);
8884 ignoredParentLeft += parentGroup.mLeft;
8896 structure.setDimens(ignoredParentLeft + mLeft, ignoredParentTop + mTop, mScrollX, mScrollY,
8897 mRight - mLeft, mBottom - mTop);
16015 return (mBottom > mTop) && (mRight > mLeft);
[all …]
/frameworks/minikin/tests/util/
DFreeTypeMinikinFontForTest.cpp104 bounds->mLeft = FTPosToFloat(bbox.xMin); in GetBounds()
/frameworks/base/core/java/android/transition/
DChangeBounds.java475 private int mLeft; field in ChangeBounds.ViewBounds
488 mLeft = Math.round(topLeft.x); in setTopLeft()
506 mView.setLeftTopRightBottom(mLeft, mTop, mRight, mBottom); in setLeftTopRightBottom()

123