Home
last modified time | relevance | path

Searched refs:mTop (Results 1 – 25 of 44) 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 mTop; member
36 bool isEmpty() const { return mLeft == mRight || mTop == mBottom; } in isEmpty()
39 mTop = r.mTop; in set()
45 mTop += dy; in offset()
49 void setEmpty() { mLeft = mTop = mRight = mBottom = 0.0; } in setEmpty()
55 mTop = std::min(mTop, r.mTop); in join()
64 return os << "(" << r.mLeft << ", " << r.mTop << ")-(" << r.mRight << ", " << r.mBottom << ")";
/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/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DKeyguardUserSwitcherScrim.java44 private int mTop; field in KeyguardUserSwitcherScrim
59 float height = (mTop + bounds.height()) * OUTER_EXTENT; in draw()
60 canvas.translate(0, -mTop); in draw()
92 mTop = top; in onLayoutChange()
/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()
49 sp<uirenderer::CanvasPropertyPrimitive> mTop; variable
/frameworks/minikin/tests/unittest/
DLayoutTest.cpp69 EXPECT_EQ(10.0f, rect.mTop); in TEST_F()
87 EXPECT_EQ(10.0f, rect.mTop); in TEST_F()
105 EXPECT_EQ(10.0f, rect.mTop); in TEST_F()
123 EXPECT_EQ(10.0f, rect.mTop); in TEST_F()
153 EXPECT_EQ(10.0f, rect.mTop); in TEST_F()
171 EXPECT_EQ(10.0f, rect.mTop); in TEST_F()
190 EXPECT_EQ(10.0f, rect.mTop); in TEST_F()
210 EXPECT_EQ(10.0f, rect.mTop); in TEST_F()
243 EXPECT_EQ(10.0f, rect.mTop); in TEST_F()
261 EXPECT_EQ(10.0f, rect.mTop); in TEST_F()
[all …]
/frameworks/base/libs/hwui/
DRenderProperties.h366 if (RP_SET(mPrimitiveFields.mTop, top)) { in setTop()
367 mPrimitiveFields.mHeight = mPrimitiveFields.mBottom - mPrimitiveFields.mTop; in setTop()
376 int getTop() const { return mPrimitiveFields.mTop; } in getTop()
393 mPrimitiveFields.mHeight = mPrimitiveFields.mBottom - mPrimitiveFields.mTop; in setBottom()
411 if (left != mPrimitiveFields.mLeft || top != mPrimitiveFields.mTop || in setLeftTopRightBottom()
414 mPrimitiveFields.mTop = top; in setLeftTopRightBottom()
418 mPrimitiveFields.mHeight = mPrimitiveFields.mBottom - mPrimitiveFields.mTop; in setLeftTopRightBottom()
438 mPrimitiveFields.mTop += offset; in offsetTopBottom()
556 int mLeft = 0, mTop = 0, mRight = 0, mBottom = 0; member
DRenderProperties.cpp111 if (mPrimitiveFields.mLeft != 0 || mPrimitiveFields.mTop != 0) { in debugOutputProperties()
113 << mPrimitiveFields.mTop << ")" << std::endl; in debugOutputProperties()
/frameworks/layoutlib/bridge/src/android/graphics/
DRenderNode_Delegate.java52 private int mTop; field in RenderNode_Delegate
200 if (delegate != null && delegate.mTop != top) { in nSetTop()
201 delegate.mTop = top; in nSetTop()
231 if (delegate != null && (delegate.mLeft != left || delegate.mTop != top || delegate in nSetLeftTopRightBottom()
234 delegate.mTop = top; in nSetLeftTopRightBottom()
290 return (delegate.mBottom - delegate.mTop) / 2.0f; in nGetPivotY()
/frameworks/base/core/java/android/widget/
DRelativeLayout.java529 top = Math.min(top, params.mTop - params.topMargin); in onMeasure()
608 params.mTop = height - mPaddingBottom - childHeight; in onMeasure()
609 params.mBottom = params.mTop + childHeight; in onMeasure()
637 params.mTop += verticalOffset; in onMeasure()
667 final int topDiff = p1.mTop - p2.mTop; in compareLayoutPosition()
690 int childHeightMeasureSpec = getChildMeasureSpec(params.mTop, in measureChild()
882 if (params.mTop == VALUE_NOT_SET && params.mBottom != VALUE_NOT_SET) { in positionChildVertical()
884 params.mTop = params.mBottom - child.getMeasuredHeight(); in positionChildVertical()
885 } else if (params.mTop != VALUE_NOT_SET && params.mBottom == VALUE_NOT_SET) { in positionChildVertical()
887 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/core/java/com/android/server/wm/
DLetterbox.java47 private final LetterboxSurface mTop = new LetterboxSurface("top"); field in Letterbox
51 private final LetterboxSurface[] mSurfaces = { mLeft, mTop, mRight, mBottom };
77 mTop.layout(outer.left, outer.top, inner.right, inner.top, surfaceOrigin); in layout()
90 mTop.getHeight(), in getInsets()
/frameworks/av/media/libstagefright/foundation/
DMetaDataBase.cpp76 int32_t mLeft, mTop, mRight, mBottom; member
146 r.mTop = top; in setRect()
244 *top = r->mTop; in findRect()
405 r->mLeft, r->mTop, r->mRight, r->mBottom); in asString()
DAMessage.cpp342 item->u.rectValue.mTop = top; in setRect()
392 *top = item->u.rectValue.mTop; in findRect()
629 item.u.rectValue.mTop, in debugString()
874 item.mName, item.u.rectValue.mLeft, item.u.rectValue.mTop, in changesFrom()
/frameworks/base/libs/hwui/hwui/
DCanvas.cpp125 canvas->drawGlyphs(glyphFunc, glyphCount, outlinePaint, x, y, bounds.mLeft, bounds.mTop, in operator ()()
132 canvas->drawGlyphs(glyphFunc, glyphCount, innerPaint, x, y, bounds.mLeft, bounds.mTop, in operator ()()
136 canvas->drawGlyphs(glyphFunc, glyphCount, paint, x, y, bounds.mLeft, bounds.mTop, in operator ()()
DMinikinSkia.cpp86 bounds->mTop = skBounds.fTop; in GetBounds()
/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.java4302 protected int mTop; field in View
6310 out.append(mTop);
7721 position.offset(child.mLeft - child.getScrollX(), child.mTop -child.getScrollY());
8424 position.set(0, 0, mRight - mLeft, mBottom - mTop);
8442 rect.offset(mLeft, mTop);
8461 rect.offset(parentView.mLeft, parentView.mTop);
8672 ignoredParentTop += parentGroup.mTop;
8683 structure.setDimens(ignoredParentLeft + mLeft, ignoredParentTop + mTop, mScrollX, mScrollY,
8684 mRight - mLeft, mBottom - mTop);
15629 return (mBottom > mTop) && (mRight > mLeft); in hasSize()
[all …]
DViewGroup.java2042 final float offsetY = mScrollY - child.mTop; in dispatchResolvePointerIcon()
2372 final float offsetY = mScrollY - child.mTop; in dispatchTooltipHoverEvent()
2549 final float offsetY = mScrollY - child.mTop; in dispatchTransformedGenericPointerEvent()
2568 final float offsetY = mScrollY - child.mTop; in getTransformedMotionEvent()
3006 point[1] += mScrollY - child.mTop; in transformPointToViewLocal()
3057 final float offsetY = mScrollY - child.mTop; in dispatchTransformedTouchEvent()
3076 final float offsetY = mScrollY - child.mTop; in dispatchTransformedTouchEvent()
4158 mScrollY + mBottom - mTop - mPaddingBottom); in dispatchDraw()
5982 location[CHILD_TOP_INDEX] = child.mTop; in invalidateChild()
6071 dirty.union(0, 0, mRight - mLeft, mBottom - mTop); in invalidateChildInParent()
[all …]
DViewPropertyAnimator.java1005 renderNode.setTranslationY(value - mView.mTop); in setValue()
1045 return mView.mTop + node.getTranslationY(); in getValue()
/frameworks/base/core/java/android/transition/
DChangeBounds.java476 private int mTop; field in ChangeBounds.ViewBounds
489 mTop = Math.round(topLeft.y); in setTopLeft()
506 mView.setLeftTopRightBottom(mLeft, mTop, mRight, mBottom); in setLeftTopRightBottom()
/frameworks/minikin/tests/util/
DFreeTypeMinikinFontForTest.cpp105 bounds->mTop = FTPosToFloat(bbox.yMax); in GetBounds()
/frameworks/base/core/jni/android/graphics/text/
DMeasuredText.cpp125 r.fTop = rect.mTop; in nGetBounds()
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/
DAMessage.h190 int32_t mLeft, mTop, mRight, mBottom; member
/frameworks/layoutlib/bridge/src/android/view/
DViewGroup_Delegate.java158 canvas.translate(child.mLeft - sx, child.mTop - sy); in transformCanvas()

12