Home
last modified time | relevance | path

Searched refs:mTop (Results 1 – 25 of 46) 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/services/core/java/com/android/server/wm/
DEnsureActivitiesVisibleHelper.java33 private ActivityRecord mTop; field in EnsureActivitiesVisibleHelper
59 mTop = mContiner.topRunningActivity(); in reset()
62 mAboveTop = mTop != null; in reset()
88 if (DEBUG_VISIBILITY) Slog.v(TAG_VISIBILITY, "ensureActivitiesVisible behind " + mTop in process()
90 if (mTop != null) { in process()
91 mContiner.checkTranslucentActivityWaiting(mTop); in process()
97 final boolean resumeTopActivity = mTop != null && !mTop.mLaunchTaskBehind in process()
110 final boolean isTop = r == mTop; in setActivityVisibilityState()
DLetterbox.java48 private final LetterboxSurface mTop = new LetterboxSurface("top"); field in Letterbox
52 private final LetterboxSurface[] mSurfaces = { mLeft, mTop, mRight, mBottom };
80 mTop.layout(outer.left, outer.top, outer.right, inner.top, surfaceOrigin); in layout()
93 mTop.getHeight(), in getInsets()
/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/layoutlib/validator/src/com/android/tools/idea/validator/accessibility/
DAtfBufferedImage.java41 private final int mTop; field in AtfBufferedImage
52 mTop = 0; in AtfBufferedImage()
65 mTop = top; in AtfBufferedImage()
91 BufferedImage cropped = mBufferedImage.getSubimage(mLeft, mTop, mWidth, mHeight); in getPixels()
/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/base/services/tests/wmtests/src/com/android/server/wm/
DLetterboxTest.java111 final Rect mTop = new Rect(); field in LetterboxTest.LetterboxLayoutVerifier
129 mTop.set(top); in setBarRect()
136 assertEquals(mLetterbox.notIntersectsOrFullyContains(mTop), in verifyPositions()
145 mTempRect.set(mTop.left, mTop.top, mTop.right, mTop.bottom + 1); in verifyPositions()
/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.h369 if (RP_SET(mPrimitiveFields.mTop, top)) { in setTop()
370 mPrimitiveFields.mHeight = mPrimitiveFields.mBottom - mPrimitiveFields.mTop; in setTop()
379 int getTop() const { return mPrimitiveFields.mTop; } in getTop()
396 mPrimitiveFields.mHeight = mPrimitiveFields.mBottom - mPrimitiveFields.mTop; in setBottom()
414 if (left != mPrimitiveFields.mLeft || top != mPrimitiveFields.mTop || in setLeftTopRightBottom()
417 mPrimitiveFields.mTop = top; in setLeftTopRightBottom()
421 mPrimitiveFields.mHeight = mPrimitiveFields.mBottom - mPrimitiveFields.mTop; in setLeftTopRightBottom()
441 mPrimitiveFields.mTop += offset; in offsetTopBottom()
563 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.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/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.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.java4412 protected int mTop; field in View
6478 out.append(mTop);
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);
8885 ignoredParentTop += parentGroup.mTop;
8896 structure.setDimens(ignoredParentLeft + mLeft, ignoredParentTop + mTop, mScrollX, mScrollY,
8897 mRight - mLeft, mBottom - mTop);
16015 return (mBottom > mTop) && (mRight > mLeft);
[all …]
DViewGroup.java2097 final float offsetY = mScrollY - child.mTop; in dispatchResolvePointerIcon()
2427 final float offsetY = mScrollY - child.mTop; in dispatchTooltipHoverEvent()
2604 final float offsetY = mScrollY - child.mTop; in dispatchTransformedGenericPointerEvent()
2623 final float offsetY = mScrollY - child.mTop; in getTransformedMotionEvent()
3064 point[1] += mScrollY - child.mTop; in transformPointToViewLocal()
3115 final float offsetY = mScrollY - child.mTop; in dispatchTransformedTouchEvent()
3134 final float offsetY = mScrollY - child.mTop; in dispatchTransformedTouchEvent()
4242 mScrollY + mBottom - mTop - mPaddingBottom); in dispatchDraw()
6067 location[CHILD_TOP_INDEX] = child.mTop; in invalidateChild()
6156 dirty.union(0, 0, mRight - mLeft, mBottom - mTop); in invalidateChildInParent()
[all …]
/frameworks/minikin/tests/util/
DFreeTypeMinikinFontForTest.cpp105 bounds->mTop = FTPosToFloat(bbox.yMax); in GetBounds()
/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/base/libs/hwui/jni/text/
DMeasuredText.cpp124 r.fTop = rect.mTop; in nGetBounds()
/frameworks/layoutlib/bridge/src/android/view/
DViewGroup_Delegate.java150 canvas.translate(child.mLeft, child.mTop); in transformCanvas()

12