Home
last modified time | relevance | path

Searched refs:getTop (Results 1 – 25 of 30) sorted by relevance

12

/cts/tests/tests/widget/src/android/widget/cts/
DRelativeLayoutTest.java127 assertEquals(view11.getTop(), view10.getBottom()); in testAccessGravity()
135 assertEquals(view11.getTop(), view10.getBottom()); in testAccessGravity()
144 assertEquals(view11.getTop(), view10.getBottom()); in testAccessGravity()
156 assertEquals(view11.getTop(), view10.getBottom()); in testAccessGravity()
163 int topSpace = view10.getTop(); in testAccessGravity()
167 assertEquals(view11.getTop(), view10.getBottom()); in testAccessGravity()
182 assertEquals(view11.getTop(), view10.getBottom()); in testSetHorizontalGravity()
191 assertEquals(view11.getTop(), view10.getBottom()); in testSetHorizontalGravity()
202 assertEquals(view11.getTop(), view10.getBottom()); in testSetHorizontalGravity()
217 assertEquals(view11.getTop(), view10.getBottom()); in testSetVerticalGravity()
[all …]
DLinearLayoutTest.java366 assertEquals(0, topView.getTop()); in testLayoutHorizontal()
372 assertEquals(offset, centerView.getTop()); in testLayoutHorizontal()
377 assertEquals(parent.getHeight() - bottomView.getHeight(), bottomView.getTop()); in testLayoutHorizontal()
424 assertEquals(0, leftView.getTop()); in testLayoutVertical()
425 assertEquals(centerView.getTop(), leftView.getBottom()); in testLayoutVertical()
430 assertEquals(leftView.getBottom(), centerView.getTop()); in testLayoutVertical()
431 assertEquals(rightView.getTop(), centerView.getBottom()); in testLayoutVertical()
435 assertEquals(centerView.getBottom(), rightView.getTop()); in testLayoutVertical()
470 assertEquals(verticalOffset, leftView.getTop()); in testVerticalCenterGravityOnHorizontalLayout()
476 assertEquals(verticalOffset, centerView.getTop()); in testVerticalCenterGravityOnHorizontalLayout()
[all …]
DAbsListView_ScrollTest.java161 boolean isTargetFullyVisible = (targetChild.getTop() >= 0) && in onScroll()
296 mListView.getChildAt(0).getTop(); in verifyScrollToPositionFromTop()
333 mListView.getChildAt(0).getTop(); in verifyScrollToPositionFromTop()
433 mListView.getChildAt(0).getTop(); in verifyScrollBy()
441 mListView.getChildAt(0).getTop(); in verifyScrollBy()
581 result.mFirstViewVerticalOffset = mListView.getChildAt(0).getTop();
DGridLayoutTest.java101 return v.getTop();
107 return (v.getTop() + v.getBottom()) / 2;
113 return v.getTop() + v.getBaseline();
DRelativeLayout_LayoutParamsTest.java107 assertEquals(view1.getBottom(), view2.getTop()); in testConstructor()
130 assertEquals(view3.getTop(), view4.getBottom()); in testConstructor()
214 assertEquals(view1.getBottom(), view2.getTop()); in testStartEnd()
256 assertEquals(view3.getTop(), view4.getBottom()); in testStartEnd()
DScrollViewTest.java454 assertEquals(0, child.getTop()); in testFillViewport()
476 assertEquals(10, child.getTop()); in testFillViewportWithScrollViewPadding()
501 assertEquals(10, child.getTop()); in testFillViewportWithChildMargins()
522 assertEquals(10, child.getTop()); in testFillViewportWithScrollViewPaddingAlreadyFills()
549 assertEquals(10, child.getTop()); in testFillViewportWithChildMarginsAlreadyFills()
DGridViewTest.java325 assertEquals(0, child1.getTop() - child0.getBottom()); in testAccessVerticalSpacing()
333 assertEquals(5, child1.getTop() - child0.getBottom()); in testAccessVerticalSpacing()
446 assertEquals(child0.getBottom(), child9.getTop());
551 assertEquals(child0.getBottom(), child1.getTop()); in testAccessColumnWidth()
DAutoCompleteTextViewTest.java447 assertEquals(1, mMockAutoCompleteTextView.getTop()); in testSetFrame()
454 assertEquals(1, mMockAutoCompleteTextView.getTop()); in testSetFrame()
461 assertEquals(3, mMockAutoCompleteTextView.getTop()); in testSetFrame()
DAbsSpinnerTest.java259 mAbsSpinner.layout(mAbsSpinner.getLeft(), mAbsSpinner.getTop(), in testOnSaveAndRestoreInstanceState()
DFrameLayoutTest.java315 int topDelta = rect.top - container.getTop(); in assertCenterAligned()
/cts/tests/tests/transition/src/android/transition/cts/
DChangeBoundsTest.java208 () -> red.getTop() > closestDistance && green.getTop() > closestDistance); in waitForMiddleOfTransition()
210 assertTrue(red.getTop() > closestDistance); in waitForMiddleOfTransition()
211 assertTrue(green.getTop() > closestDistance); in waitForMiddleOfTransition()
220 return red.getTop() < closestDistance || green.getTop() < closestDistance; in isRestartingAnimation()
252 assertEquals(0, aboveSquare.getTop()); in validateViewPlacement()
259 assertWithinAPixel(aboveSquareBottom, belowSquare.getTop()); in validateViewPlacement()
DChangeClipBoundsTest.java54 final Rect newClip = new Rect(redSquare.getLeft() + 10, redSquare.getTop() + 10, in testChangeClipBounds()
DTransitionManagerTest.java100 final Rect position = new Rect(view.getLeft(), view.getTop(), view.getRight(), in ensureRedSquareIsMoving()
111 nextArr[0] = new Rect(view.getLeft(), view.getTop(), view.getRight(), in ensureRedSquareIsMoving()
DTransitionTest.java492 transitionValues.values.put(TOP, transitionValues.view.getTop()); in testPropagation()
506 int diffTop = greenSquare.getTop() - redSquare.getTop(); in testPropagation()
/cts/tests/tests/systemui/src/android/systemui/cts/
DLightBarBaseActivity.java41 public int getTop() { in getTop() method in LightBarBaseActivity
DLightBarTestBase.java45 return Bitmap.createBitmap(fullBitmap, 0, 0, activity.getWidth(), activity.getTop()); in takeStatusBarScreenshot()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DViewAttributesTest.java233 assertThat(doubleNestedView.getTop()).isEqualTo( in checkViewLocationInAssistStructure()
243 assertThat(tripleNestedView.getTop()).isEqualTo(23); // doubleNestedView.top in checkViewLocationInAssistStructure()
268 assertThat(nestedView.getTop()).isEqualTo(2); // outerView.top in checkViewLocationInAssistStructureAfterForceAutofill()
280 assertThat(doubleNestedView.getTop()).isEqualTo(11); // nestedView.top in checkViewLocationInAssistStructureAfterForceAutofill()
/cts/tests/tests/view/src/android/view/cts/
DViewPaddingTest.java67 Rect defaultBounds = new Rect(view1.getLeft(), view1.getTop(), view1.getRight(), in testPadding()
98 assertEquals("Top", defaultBounds.top + insetTop, view.getTop()); in checkBounds()
DViewGroup_MarginLayoutParamsTest.java240 Rect defaultBounds = new Rect(view1.getLeft(), view1.getTop(), view1.getRight(), in testVerticalHorizontalMargins()
262 assertEquals("Top", defaultBounds.top + insetTop, view.getTop()); in checkBounds()
DView_LayoutPositionTest.java77 assertEquals(top, view.getTop()); in testPositionInParent()
DView_FocusHandlingTest.java535 but.setBottom(but.getTop() + 10); in testFocusAfterDescendantsTransfer()
/cts/tests/tests/assist/src/android/assist/cts/
DAssistTestBase.java280 assertEquals("Window top position wrong: was " + windowNode.getTop(), in verifyHierarchy()
281 windowNode.getTop(), appLocationOnScreen[1]); in verifyHierarchy()
423 assertEquals("Top positions do not match.", parentView.getTop(), parentNode.getTop()); in verifyViewProperties()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DLocationInWindowTests.java126 expected[1] += v.getTop(); in assertThatViewGetLocationInWindowIsCorrect()
/cts/tests/tests/widget/src/android/widget/cts/util/
DTestUtils.java97 offsetY += view.getTop(); in getCombinedBackgroundBitmap()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DCtsTouchUtils.java417 mFirstTop = mFirst.getTop(); in ViewStateSnapshot()

12