Home
last modified time | relevance | path

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

123

/frameworks/minikin/include/minikin/
DMinikinRect.h27 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()
35 void setEmpty() { mLeft = mRight = mTop = mBottom = 0; } in setEmpty()
40 mTop += dy; in offset()
49 mTop = t + dy; in join()
54 mTop = std::min(mTop, t + dy); in join()
61 void join(const MinikinRect& r) { return join(r.mLeft, r.mTop, r.mRight, r.mBottom, 0, 0); } in join()
63 return join(r.mLeft, r.mTop, r.mRight, r.mBottom, dx, dy); in join()
66 return join(r.mLeft, r.mTop, r.mRight, r.mBottom, p.x, p.y); in join()
[all …]
/frameworks/base/core/java/com/android/internal/widget/remotecompose/core/operations/
DDrawBitmap.java32 float mTop; field in DrawBitmap
50 mTop = top; in DrawBitmap()
61 mOutputTop = (Float.isNaN(mTop)) in updateVariables()
62 ? context.getFloat(Utils.idFromNan(mTop)) : mTop; in updateVariables()
74 if (Float.isNaN(mTop)) { in registerListening()
75 context.listensTo(Utils.idFromNan(mTop), this); in registerListening()
87 COMPANION.apply(buffer, mId, mLeft, mTop, mRight, mBottom, mDescriptionId); in write()
92 return "DrawBitmap (desc=" + mDescriptionId + ")" + mLeft + " " + mTop in toString()
DClickArea.java34 float mTop; field in ClickArea
60 this.mTop = top; in ClickArea()
68 COMPANION.apply(buffer, mId, mContentDescription, mLeft, mTop, mRight, mBottom, mMetadata); in write()
75 + mTop + " " + mRight + " " + mBottom + "+" 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/
DVerticalGravityTest.java36 private View mTop; field in VerticalGravityTest
52 mTop = activity.findViewById(R.id.cell_top); in setUp()
62 assertNotNull(mTop); in testSetUpConditions()
69 ViewAsserts.assertTopAligned(mReference1, mTop); in testTopGravity()
/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/
DCustomLayout.java28 private int mLeft, mTop, mRight, mBottom; field in CustomLayout.LayoutParams
33 mTop = top; in LayoutParams()
45 child.layout(lp.mLeft, lp.mTop, lp.mRight, lp.mBottom); in onLayout()
/frameworks/base/core/java/android/hardware/input/
DKeyboardLayoutPreviewDrawable.java322 private float mTop; field in KeyboardLayoutPreviewDrawable.IsoEnterKey.Builder
335 mTop = top; 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()
368 mTop + mRightHeight - 2 * mKeyRadius); in build()
371 enterKey.lineTo(mLeft + mTopWidth - mBottomWidth + mKeyRadius, mTop + mRightHeight); in build()
374 mTop + mRightHeight - 2 * mKeyRadius); in build()
377 enterKey.lineTo(mLeft + mTopWidth - mBottomWidth, mTop + mLeftHeight - mKeyRadius); in build()
[all …]
/frameworks/layoutlib/validator/src/com/android/tools/idea/validator/
DAtfBufferedImage.java48 private final int mTop; field in AtfBufferedImage
92 mTop = top; in AtfBufferedImage()
123 int scaledTop = (int)(mTop * mScaleY); in getPixels()
150 mLeft + "x" + mTop + ":" + in saveImage()
153 mMetric.mImageSizes.add(new ImageSize(mLeft, mTop, mWidth, mHeight)); in saveImage()
DValidatorResult.java179 private final int mTop; field in ValidatorResult.ImageSize
185 mTop = top; in ImageSize()
192 return "ImageSize{" + "mLeft=" + mLeft + ", mTop=" + mTop + ", mWidth=" + mWidth + in toString()
/frameworks/base/graphics/java/android/graphics/text/
DMeasuredText.java67 private final int mTop; field in MeasuredText
78 mTop = top; in MeasuredText()
164 outMetrics.top = Math.min(outMetrics.ascent, mTop); in getFontMetricsInt()
236 private int mTop = 0; field in MeasuredText.Builder
325 mTop = Math.min(mTop, mCachedMetrics.top); in appendStyleRun()
491 mComputeLayout, mComputeBounds, mTop, mBottom); in build()
/frameworks/base/libs/hwui/
DRenderProperties.h383 if (RP_SET(mPrimitiveFields.mTop, top)) { in setTop()
384 mPrimitiveFields.mHeight = mPrimitiveFields.mBottom - mPrimitiveFields.mTop; in setTop()
393 int getTop() const { return mPrimitiveFields.mTop; } in getTop()
410 mPrimitiveFields.mHeight = mPrimitiveFields.mBottom - mPrimitiveFields.mTop; in setBottom()
428 if (left != mPrimitiveFields.mLeft || top != mPrimitiveFields.mTop || in setLeftTopRightBottom()
431 mPrimitiveFields.mTop = top; in setLeftTopRightBottom()
435 mPrimitiveFields.mHeight = mPrimitiveFields.mBottom - mPrimitiveFields.mTop; in setLeftTopRightBottom()
455 mPrimitiveFields.mTop += offset; in offsetTopBottom()
574 int mLeft = 0, mTop = 0, mRight = 0, mBottom = 0; member
DRenderProperties.cpp126 if (mPrimitiveFields.mLeft != 0 || mPrimitiveFields.mTop != 0) { in debugOutputProperties()
128 << mPrimitiveFields.mTop << ")" << std::endl; in debugOutputProperties()
/frameworks/minikin/tests/unittest/
DLayoutTest.cpp77 EXPECT_EQ(-10.0f, rect.mTop); in TEST_F()
96 EXPECT_EQ(-10.0f, rect.mTop); in TEST_F()
115 EXPECT_EQ(-10.0f, rect.mTop); in TEST_F()
134 EXPECT_EQ(-10.0f, rect.mTop); in TEST_F()
165 EXPECT_EQ(-10.0f, rect.mTop); in TEST_F()
184 EXPECT_EQ(-10.0f, rect.mTop); in TEST_F()
204 EXPECT_EQ(-10.0f, rect.mTop); in TEST_F()
225 EXPECT_EQ(-10.0f, rect.mTop); in TEST_F()
259 EXPECT_EQ(-10.0f, rect.mTop); in TEST_F()
278 EXPECT_EQ(-10.0f, rect.mTop); in TEST_F()
[all …]
/frameworks/base/core/java/android/widget/
DRelativeLayout.java530 top = Math.min(top, params.mTop - params.topMargin); in onMeasure()
609 params.mTop = height - mPaddingBottom - childHeight; in onMeasure()
610 params.mBottom = params.mTop + childHeight; in onMeasure()
638 params.mTop += verticalOffset; in onMeasure()
668 final int topDiff = p1.mTop - p2.mTop; in compareLayoutPosition()
691 int childHeightMeasureSpec = getChildMeasureSpec(params.mTop, in measureChild()
883 if (params.mTop == VALUE_NOT_SET && params.mBottom != VALUE_NOT_SET) { in positionChildVertical()
885 params.mTop = params.mBottom - child.getMeasuredHeight(); in positionChildVertical()
886 } else if (params.mTop != VALUE_NOT_SET && params.mBottom == VALUE_NOT_SET) { in positionChildVertical()
888 params.mBottom = params.mTop + child.getMeasuredHeight(); in positionChildVertical()
[all …]
DSlidingDrawer.java473 (!mExpanded && top > mBottomOffset + mBottom - mTop - in onTouchEvent()
599 handle.offsetTopAndBottom(mBottomOffset + mBottom - mTop - in moveHandle()
607 } else if (deltaY > mBottomOffset + mBottom - mTop - mHandleHeight - top) { in moveHandle()
608 deltaY = mBottomOffset + mBottom - mTop - mHandleHeight - top; in moveHandle()
669 int height = mBottom - mTop - childHeight - mTopOffset; in prepareContent()
678 MeasureSpec.makeMeasureSpec(mBottom - mTop, MeasureSpec.EXACTLY)); in prepareContent()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DLetterboxTest.java123 final Rect mTop = new Rect(); field in LetterboxTest.LetterboxLayoutVerifier
141 mTop.set(top); in setBarRect()
148 assertEquals(mLetterbox.notIntersectsOrFullyContains(mTop), in verifyPositions()
157 mTempRect.set(mTop.left, mTop.top, mTop.right, mTop.bottom + 1); 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()
52 sp<uirenderer::CanvasPropertyPrimitive> mTop; variable
/frameworks/base/core/java/com/android/internal/widget/remotecompose/core/
DCoreDocument.java288 float mTop; field in CoreDocument.ClickAreaRepresentation
303 this.mTop = top; in ClickAreaRepresentation()
317 && y >= mTop && y < mBottom; in contains()
325 return mTop; in getTop()
333 return Math.max(0, mBottom - mTop); in height()
/frameworks/base/tests/benchmarks/internal/src/com/android/internal/
DLambdaPerfTest.java76 private boolean mTop; field in LambdaPerfTest
122 mTop = true; in test3ParamsPredicate()
126 evaluate(LAMBDA_FORM_REGULAR, () -> handleTask(t -> t.doSomething(mBounds, mTop, mTaskId))); in test3ParamsPredicate()
129 PooledLambda.__(Task.class), mBounds, mTop, mTaskId); in test3ParamsPredicate()
/frameworks/base/services/core/java/com/android/server/wm/
DLetterbox.java68 private final LetterboxSurface mTop = new LetterboxSurface("top"); field in Letterbox
78 private final LetterboxSurface[] mSurfaces = { mLeft, mTop, mRight, mBottom };
125 mTop.layout(outer.left, outer.top, outer.right, inner.top, surfaceOrigin); in layout()
138 mTop.getHeight(), in getInsets()
/frameworks/av/media/module/foundation/
DMetaDataBase.cpp78 int32_t mLeft, mTop, mRight, mBottom; member
151 r.mTop = top; in setRect()
249 *top = r->mTop; in findRect()
413 r->mLeft, r->mTop, r->mRight, r->mBottom); in asString()
/frameworks/base/core/java/android/view/
DView.java4759 protected int mTop; field in View
6984 out.append(mTop);
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);
9686 ignoredParentTop += parentGroup.mTop - parentGroup.mScrollY;
9697 structure.setDimens(ignoredParentLeft + mLeft, ignoredParentTop + mTop, mScrollX, mScrollY,
9698 mRight - mLeft, mBottom - mTop);
[all …]
DViewGroup.java2086 final float offsetY = mScrollY - child.mTop; in dispatchResolvePointerIcon()
2416 final float offsetY = mScrollY - child.mTop; in dispatchTooltipHoverEvent()
2593 final float offsetY = mScrollY - child.mTop; in dispatchTransformedGenericPointerEvent()
2612 final float offsetY = mScrollY - child.mTop; in getTransformedMotionEvent()
3068 point[1] += mScrollY - child.mTop; in transformPointToViewLocal()
3119 final float offsetY = mScrollY - child.mTop; in dispatchTransformedTouchEvent()
3138 final float offsetY = mScrollY - child.mTop; in dispatchTransformedTouchEvent()
4263 mScrollY + mBottom - mTop - mPaddingBottom); in dispatchDraw()
6099 location[CHILD_TOP_INDEX] = child.mTop; in invalidateChild()
6188 dirty.union(0, 0, mRight - mLeft, mBottom - mTop); in invalidateChildInParent()
[all …]
DRoundScrollbarRenderer.java157 final int height = mParent.mBottom - mParent.mTop; in getRoundVerticalScrollBarBounds()
/frameworks/base/core/java/android/transition/
DChangeBounds.java480 private int mTop; field in ChangeBounds.ViewBounds
493 mTop = Math.round(topLeft.y); in setTopLeft()
510 mView.setLeftTopRightBottom(mLeft, mTop, mRight, mBottom); in setLeftTopRightBottom()
/frameworks/minikin/tests/util/
DFreeTypeMinikinFontForTest.cpp104 bounds->mTop = -FTPosToFloat(bbox.yMax); in GetBounds()

123