Home
last modified time | relevance | path

Searched refs:mLeft (Results 1 – 25 of 48) 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;
32 float mLeft; member
37 bool isEmpty() const { return mLeft == mRight || mTop == mBottom; } in isEmpty()
39 mLeft = r.mLeft; in set()
45 mLeft += dx; in offset()
50 void setEmpty() { mLeft = mTop = mRight = mBottom = 0.0; } in setEmpty()
55 mLeft = std::min(mLeft, r.mLeft); in join()
65 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.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.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()
145 n = mIn.read(buf, off, (int) min(mLeft, len)); in read()
146 mLeft -= n; in read()
149 n = (int) min(mLeft, len); in read()
151 mLeft -= n; in read()
176 ret = Byte.toUnsignedInt(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/
DAtfBufferedImage.java47 private final int mLeft; field in AtfBufferedImage
91 mLeft = left; in AtfBufferedImage()
122 int scaledLeft = (int)(mLeft * mScaleX); in getPixels()
150 mLeft + "x" + mTop + ":" + in saveImage()
153 mMetric.mImageSizes.add(new ImageSize(mLeft, mTop, mWidth, mHeight)); in saveImage()
DValidatorResult.java162 private final int mLeft; field in ValidatorResult.ImageSize
168 mLeft = left; in ImageSize()
176 return "ImageSize{" + "mLeft=" + mLeft + ", mTop=" + mTop + ", mWidth=" + mWidth + in toString()
/frameworks/base/libs/hwui/
DRenderProperties.h368 if (RP_SET(mPrimitiveFields.mLeft, left)) { in setLeft()
369 mPrimitiveFields.mWidth = mPrimitiveFields.mRight - mPrimitiveFields.mLeft; in setLeft()
378 int getLeft() const { return mPrimitiveFields.mLeft; } in getLeft()
395 mPrimitiveFields.mWidth = mPrimitiveFields.mRight - mPrimitiveFields.mLeft; in setRight()
426 if (left != mPrimitiveFields.mLeft || top != mPrimitiveFields.mTop || in setLeftTopRightBottom()
428 mPrimitiveFields.mLeft = left; in setLeftTopRightBottom()
432 mPrimitiveFields.mWidth = mPrimitiveFields.mRight - mPrimitiveFields.mLeft; in setLeftTopRightBottom()
444 mPrimitiveFields.mLeft += offset; in offsetLeftRight()
576 int mLeft = 0, mTop = 0, mRight = 0, mBottom = 0; member
DRenderProperties.cpp119 if (mPrimitiveFields.mLeft != 0 || mPrimitiveFields.mTop != 0) { in debugOutputProperties()
120 output << indent << "(Translate (left, top) " << mPrimitiveFields.mLeft << ", " in debugOutputProperties()
/frameworks/minikin/tests/unittest/
DLayoutTest.cpp76 EXPECT_EQ(0.0f, rect.mLeft); in TEST_F()
95 EXPECT_EQ(0.0f, rect.mLeft); in TEST_F()
114 EXPECT_EQ(0.0f, rect.mLeft); in TEST_F()
133 EXPECT_EQ(0.0f, rect.mLeft); in TEST_F()
164 EXPECT_EQ(0.0f, rect.mLeft); in TEST_F()
183 EXPECT_EQ(0.0f, rect.mLeft); in TEST_F()
203 EXPECT_EQ(0.0f, rect.mLeft); in TEST_F()
224 EXPECT_EQ(0.0f, rect.mLeft); in TEST_F()
258 EXPECT_EQ(0.0f, rect.mLeft); in TEST_F()
277 EXPECT_EQ(0.0f, rect.mLeft); in TEST_F()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DLetterboxTest.java123 final Rect mLeft = new Rect(); field in LetterboxTest.LetterboxLayoutVerifier
141 mLeft.set(left); in setBarRect()
150 assertEquals(mLetterbox.notIntersectsOrFullyContains(mLeft), in verifyPositions()
158 mTempRect.set(mLeft.left, mLeft.top, mLeft.right + 1, mLeft.bottom); in verifyPositions()
/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()
51 sp<uirenderer::CanvasPropertyPrimitive> mLeft;
/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/base/services/core/java/com/android/server/wm/
DLetterbox.java64 private final LetterboxSurface mLeft = new LetterboxSurface("left"); field in Letterbox
73 private final LetterboxSurface[] mSurfaces = { mLeft, mTop, mRight, mBottom };
121 mLeft.layout(outer.left, outer.top, inner.left, outer.bottom, surfaceOrigin); in layout()
132 mLeft.getWidth(), in getInsets()
/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/core/java/android/view/
DView.java4429 protected int mLeft; field in View
6565 out.append(mLeft);
8000 position.offset(child.mLeft - child.getScrollX(), child.mTop -child.getScrollY());
8808 position.set(0, 0, mRight - mLeft, mBottom - mTop);
8824 rect.offset(mLeft, mTop);
8843 rect.offset(parentView.mLeft, parentView.mTop);
9054 ignoredParentLeft += parentGroup.mLeft;
9066 structure.setDimens(ignoredParentLeft + mLeft, ignoredParentTop + mTop, mScrollX, mScrollY,
9067 mRight - mLeft, mBottom - mTop);
16781 return (mBottom > mTop) && (mRight > mLeft); in hasSize()
[all …]
DViewGroup.java2085 final float offsetX = mScrollX - child.mLeft; in dispatchResolvePointerIcon()
2415 final float offsetX = mScrollX - child.mLeft; in dispatchTooltipHoverEvent()
2592 final float offsetX = mScrollX - child.mLeft; in dispatchTransformedGenericPointerEvent()
2611 final float offsetX = mScrollX - child.mLeft; in getTransformedMotionEvent()
3066 point[0] += mScrollX - child.mLeft; in transformPointToViewLocal()
3117 final float offsetX = mScrollX - child.mLeft; in dispatchTransformedTouchEvent()
3136 final float offsetX = mScrollX - child.mLeft; in dispatchTransformedTouchEvent()
4254 mScrollX + mRight - mLeft - mPaddingRight, in dispatchDraw()
6090 location[CHILD_LEFT_INDEX] = child.mLeft; in invalidateChild()
6180 dirty.union(0, 0, mRight - mLeft, mBottom - mTop); in invalidateChildInParent()
[all …]
/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()
/frameworks/minikin/tests/util/
DFreeTypeMinikinFontForTest.cpp102 bounds->mLeft = FTPosToFloat(bbox.xMin); in GetBounds()
/frameworks/base/libs/hwui/jni/text/
DMeasuredText.cpp127 r.fLeft = rect.mLeft; in nGetBounds()

12