/frameworks/minikin/include/minikin/ |
D | MinikinRect.h | 27 MinikinRect() : mLeft(0), mTop(0), mRight(0), mBottom(0) {} in MinikinRect() 29 : mLeft(left), mTop(top), mRight(right), mBottom(bottom) {} in MinikinRect() 31 bool isEmpty() const { return mLeft == mRight || mTop == mBottom; } in isEmpty() 32 bool isValid() const { return !std::isnan(mLeft); } in isValid() 33 float width() const { return mRight - mLeft; } in width() 35 void setEmpty() { mLeft = mRight = mTop = mBottom = 0; } in setEmpty() 39 mLeft += dx; in offset() 48 mLeft = l + dx; in join() 53 mLeft = std::min(mLeft, l + dx); in join() 61 void join(const MinikinRect& r) { return join(r.mLeft, r.mTop, r.mRight, r.mBottom, 0, 0); } in join() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | RtlSpacingHelper.java | 28 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()
|
D | RelativeLayout.java | 507 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 …]
|
D | SlidingDrawer.java | 476 (!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()
|
D | Gallery.java | 652 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/ |
D | GlobalFocusChangeTest.java | 32 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/ |
D | SparseInputStream.java | 85 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/java/com/android/internal/widget/remotecompose/core/operations/ |
D | DrawBitmap.java | 31 float mLeft; field in DrawBitmap 49 mLeft = left; in DrawBitmap() 59 mOutputLeft = (Float.isNaN(mLeft)) in updateVariables() 60 ? context.getFloat(Utils.idFromNan(mLeft)) : mLeft; in updateVariables() 71 if (Float.isNaN(mLeft)) { in registerListening() 72 context.listensTo(Utils.idFromNan(mLeft), this); in registerListening() 87 COMPANION.apply(buffer, mId, mLeft, mTop, mRight, mBottom, mDescriptionId); in write() 92 return "DrawBitmap (desc=" + mDescriptionId + ")" + mLeft + " " + mTop in toString()
|
D | ClickArea.java | 33 float mLeft; field in ClickArea 59 this.mLeft = left; in ClickArea() 68 COMPANION.apply(buffer, mId, mContentDescription, mLeft, mTop, mRight, mBottom, mMetadata); in write() 74 + "<" + mMetadata + ">+" + mLeft + " " in toString() 76 + " (" + (mRight - mLeft) + " x " + (mBottom - mTop) + " }"; in toString() 84 context.addClickArea(mId, mContentDescription, mLeft, mTop, mRight, mBottom, mMetadata); in apply()
|
/frameworks/base/core/tests/coretests/src/android/widget/layout/table/ |
D | HorizontalGravityTest.java | 35 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/ |
D | CustomLayout.java | 28 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/base/core/java/android/hardware/input/ |
D | KeyboardLayoutPreviewDrawable.java | 321 private float mLeft; field in KeyboardLayoutPreviewDrawable.IsoEnterKey.Builder 334 mLeft = left; in setStartPoint() 359 enterKey.moveTo(mLeft + mKeyRadius, mTop); in build() 360 enterKey.lineTo(mLeft + mTopWidth - mKeyRadius, mTop); in build() 362 oval.offsetTo(mLeft + mTopWidth - 2 * mKeyRadius, mTop); in build() 365 enterKey.lineTo(mLeft + mTopWidth, mTop + mRightHeight - mKeyRadius); in build() 367 oval.offsetTo(mLeft + mTopWidth - 2 * mKeyRadius, in build() 371 enterKey.lineTo(mLeft + mTopWidth - mBottomWidth + mKeyRadius, mTop + mRightHeight); in build() 373 oval.offsetTo(mLeft + mTopWidth - mBottomWidth, in build() 377 enterKey.lineTo(mLeft + mTopWidth - mBottomWidth, mTop + mLeftHeight - mKeyRadius); in build() [all …]
|
/frameworks/layoutlib/validator/src/com/android/tools/idea/validator/ |
D | AtfBufferedImage.java | 47 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()
|
D | ValidatorResult.java | 178 private final int mLeft; field in ValidatorResult.ImageSize 184 mLeft = left; in ImageSize() 192 return "ImageSize{" + "mLeft=" + mLeft + ", mTop=" + mTop + ", mWidth=" + mWidth + in toString()
|
/frameworks/base/libs/hwui/ |
D | RenderProperties.h | 370 if (RP_SET(mPrimitiveFields.mLeft, left)) { in setLeft() 371 mPrimitiveFields.mWidth = mPrimitiveFields.mRight - mPrimitiveFields.mLeft; in setLeft() 380 int getLeft() const { return mPrimitiveFields.mLeft; } in getLeft() 397 mPrimitiveFields.mWidth = mPrimitiveFields.mRight - mPrimitiveFields.mLeft; in setRight() 428 if (left != mPrimitiveFields.mLeft || top != mPrimitiveFields.mTop || in setLeftTopRightBottom() 430 mPrimitiveFields.mLeft = left; in setLeftTopRightBottom() 434 mPrimitiveFields.mWidth = mPrimitiveFields.mRight - mPrimitiveFields.mLeft; in setLeftTopRightBottom() 446 mPrimitiveFields.mLeft += offset; in offsetLeftRight() 574 int mLeft = 0, mTop = 0, mRight = 0, mBottom = 0; member
|
D | RenderProperties.cpp | 126 if (mPrimitiveFields.mLeft != 0 || mPrimitiveFields.mTop != 0) { in debugOutputProperties() 127 output << indent << "(Translate (left, top) " << mPrimitiveFields.mLeft << ", " in debugOutputProperties()
|
/frameworks/minikin/tests/unittest/ |
D | LayoutTest.cpp | 76 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/ |
D | LetterboxTest.java | 125 final Rect mLeft = new Rect(); field in LetterboxTest.LetterboxLayoutVerifier 143 mLeft.set(left); in setBarRect() 152 assertEquals(mLetterbox.notIntersectsOrFullyContains(mLeft), in verifyPositions() 160 mTempRect.set(mLeft.left, mLeft.top, mLeft.right + 1, mLeft.bottom); in verifyPositions()
|
/frameworks/base/libs/hwui/pipeline/skia/ |
D | AnimatedDrawables.h | 39 : 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/com/android/internal/widget/remotecompose/core/ |
D | CoreDocument.java | 287 float mLeft; field in CoreDocument.ClickAreaRepresentation 302 this.mLeft = left; in ClickAreaRepresentation() 316 return x >= mLeft && x < mRight in contains() 321 return mLeft; in getLeft() 329 return Math.max(0, mRight - mLeft); in width()
|
/frameworks/base/core/java/android/app/ |
D | FragmentBreadCrumbs.java | 217 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/module/bufferpool/2.0/ |
D | AccessorImpl.h | 134 size_t mLeft; member 141 mLeft(left), in Pending() 146 return isBufferInRange(mFrom, mTo, bufferId) && --mLeft == 0; in isInvalidated()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | Letterbox.java | 69 private final LetterboxSurface mLeft = new LetterboxSurface("left"); field in Letterbox 78 private final LetterboxSurface[] mSurfaces = { mLeft, mTop, mRight, mBottom }; 126 mLeft.layout(outer.left, outer.top, inner.left, outer.bottom, surfaceOrigin); in layout() 137 mLeft.getWidth(), in getInsets()
|
/frameworks/av/media/module/foundation/ |
D | MetaDataBase.cpp | 78 int32_t mLeft, mTop, mRight, mBottom; member 150 r.mLeft = left; in setRect() 248 *left = r->mLeft; in findRect() 413 r->mLeft, r->mTop, r->mRight, r->mBottom); in asString()
|
/frameworks/base/core/java/android/view/ |
D | View.java | 4738 protected int mLeft; field in View 6982 out.append(mLeft); 8493 position.offset(child.mLeft - child.getScrollX(), child.mTop -child.getScrollY()); 9418 position.set(0, 0, mRight - mLeft, mBottom - mTop); 9423 position.set(0, 0, mRight - mLeft, mBottom - mTop); 9451 rect.offset(mLeft, mTop); 9470 rect.offset(parentView.mLeft, parentView.mTop); 9685 ignoredParentLeft += parentGroup.mLeft - parentGroup.mScrollX; 9697 structure.setDimens(ignoredParentLeft + mLeft, ignoredParentTop + mTop, mScrollX, mScrollY, 9698 mRight - mLeft, mBottom - mTop); [all …]
|