Home
last modified time | relevance | path

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

12345

/frameworks/base/core/tests/coretests/src/android/view/
DVisibilityTest.java76 int oldTop = mVictim.getTop(); in testVisibleToInvisible()
81 int newTop = mVictim.getTop(); in testVisibleToInvisible()
91 int oldTop = mVictim.getTop(); in testVisibleToGone()
96 int refDownTop = mRefDown.getTop(); in testVisibleToGone()
105 int oldTop = mVictim.getTop(); in testGoneToVisible()
110 int refDownTop = mRefDown.getTop(); in testGoneToVisible()
116 int newTop = mVictim.getTop(); in testGoneToVisible()
125 int oldTop = mVictim.getTop(); in testGoneToInvisible()
130 int refDownTop = mRefDown.getTop(); in testGoneToInvisible()
136 int newTop = mVictim.getTop(); in testGoneToInvisible()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/listview/touch/
DListTouchBottomGravityManyTest.java74 firstChild.getTop()); in testPullDown()
103 int lastTop = lastChild.getTop(); in testNoScroll()
110 assertEquals("View scrolled too early", lastTop, newLastChild.getTop()); in testNoScroll()
119 if (firstChild.getTop() < this.mListView.getListPaddingTop()) { in testShortScroll()
125 int lastTop = lastChild.getTop(); in testShortScroll()
132 assertEquals("View scrolled to wrong position", lastTop, newLastChild.getTop() - 10); in testShortScroll()
141 if (firstChild.getTop() < mListView.getListPaddingTop()) { in testLongScroll()
145 int firstTop = firstChild.getTop(); in testLongScroll()
152 + (distance - ViewConfiguration.getTouchSlop() - 1), firstChild.getTop()); in testLongScroll()
DListTouchManyTest.java71 firstChild.getTop()); in testPullDown()
106 if ((child.getTop() >= mListView.getListPaddingTop()) in testPress()
134 if ((child.getTop() >= mListView.getListPaddingTop()) in testLongPress()
151 int firstTop = firstChild.getTop(); in testNoScroll()
158 assertEquals("View scrolled too early", firstTop, newFirstChild.getTop()); in testNoScroll()
168 int firstTop = firstChild.getTop(); in testShortScroll()
175 assertEquals("View scrolled too early", firstTop, newFirstChild.getTop() + 10); in testShortScroll()
184 int lastTop = lastChild.getTop(); in testLongScroll()
187 Gravity.TOP | Gravity.LEFT, mListView.getTop()); in testLongScroll()
190 lastTop - (distance - ViewConfiguration.getTouchSlop() - 1), lastChild.getTop()); in testLongScroll()
DListOfTouchablesTest.java61 int firstTop = firstChild.getTop(); in testShortScroll()
68 assertEquals("View scrolled too early", firstTop, newFirstChild.getTop() + 10); in testShortScroll()
77 int lastTop = lastChild.getTop(); in testLongScroll()
80 Gravity.TOP | Gravity.LEFT, mListView.getTop()); in testLongScroll()
83 lastTop - (distance - ViewConfiguration.getTouchSlop() - 1), lastChild.getTop()); in testLongScroll()
DListTouchTest.java70 firstChild.getTop()); in testPullDown()
88 firstChild.getTop()); in testPushUp()
/frameworks/base/core/tests/coretests/src/android/widget/gridview/touch/
DGridTouchVerticalSpacingStackFromBottomTest.java65 int lastTop = lastChild.getTop(); in testNoScroll()
72 assertEquals("View scrolled too early", lastTop, newLastChild.getTop()); in testNoScroll()
81 if (firstChild.getTop() < this.mGridView.getListPaddingTop()) { in testShortScroll()
87 int lastTop = lastChild.getTop(); in testShortScroll()
94 assertEquals("View scrolled to wrong position", lastTop, newLastChild.getTop() - 10); in testShortScroll()
103 if (firstChild.getTop() < mGridView.getListPaddingTop()) { in testLongScroll()
107 int firstTop = firstChild.getTop(); in testLongScroll()
114 + (distance - mViewConfig.getScaledTouchSlop() - 1), firstChild.getTop()); in testLongScroll()
135 firstTop = firstChild.getTop(); in testManyScrolls()
153 firstTop = firstChild.getTop(); in testManyScrolls()
DGridTouchVerticalSpacingTest.java59 int firstTop = firstChild.getTop(); in testNoScroll()
66 assertEquals("View scrolled too early", firstTop, newFirstChild.getTop()); in testNoScroll()
76 int firstTop = firstChild.getTop(); in testShortScroll()
83 assertEquals("View scrolled to wrong position", firstTop, newFirstChild.getTop() + 10); in testShortScroll()
92 int lastTop = lastChild.getTop(); in testLongScroll()
95 mGridView.getTop()); in testLongScroll()
98 lastTop - (distance - ViewConfiguration.getTouchSlop() - 1), lastChild.getTop()); in testLongScroll()
119 firstTop = firstChild.getTop(); in testManyScrolls()
138 firstTop = firstChild.getTop(); in testManyScrolls()
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/
DListOfItemsTallerThanScreenTest.java58 view.getTop()); in testScrollDownAcrossItem()
69 view.getTop()); in testScrollDownAcrossItem()
79 assertEquals(view.getBottom(), peekingView.getTop()); in testScrollDownAcrossItem()
91 final int topOfPeekingNext = mListView.getChildAt(1).getTop(); in testScrollDownToNextItem()
104 assertEquals(topOfPeekingNext - (mListView.getMaxScrollAmount()), next.getTop()); in testScrollDownToNextItem()
120 final int listTop = mListView.getTop() + mListView.getListPaddingTop(); in testScrollFirstItemOffScreen()
122 mListView.getSelectedView().getTop() < listTop); in testScrollFirstItemOffScreen()
162 assertEquals(listTop, mListView.getSelectedView().getTop()); in testScrollUpAcrossFirstItem()
172 assertEquals(listTop, mListView.getSelectedView().getTop()); in testScrollUpAcrossFirstItem()
188 selected.getTop() < realBottom); in getNumDownPressesToScrollDownAcrossSelected()
DListItemFocusablesCloseTest.java53 first.getTop()); in testPreconditions()
68 final int topOfFirstItemBefore = first.getTop(); in testChangeFocusWithinItem()
75 topOfFirstItemBefore, first.getTop()); in testChangeFocusWithinItem()
82 topOfFirstItemBefore, first.getTop()); in testChangeFocusWithinItem()
88 final int topOfFirstItemBefore = first.getTop(); in testMoveDownToButtonInDifferentSelection()
98 topOfFirstItemBefore, first.getTop()); in testMoveDownToButtonInDifferentSelection()
DListItemFocusablesFarApartTest.java58 return child.getTop() + listItem.getTop(); in getTopOfChildOfItem()
64 return child.getBottom() + listItem.getTop(); in getBottomOfChildOfItem()
82 int expectedTop = mListView.getChildAt(0).getTop(); in testPanWhenNextFocusableTooFarDown()
103 expectedTop, mListView.getChildAt(0).getTop()); in testPanWhenNextFocusableTooFarDown()
DListOfItemsShorterThanScreenTest.java47 assertEquals(mListView.getListPaddingTop(), mListView.getSelectedView().getTop()); in testPreconditions()
57 next.getTop()); in testMoveDownToOnScreenNextItem()
64 next.getTop()); in testMoveDownToOnScreenNextItem()
81 assertEquals(mListView.getListPaddingTop(), mListView.getSelectedView().getTop()); in testMoveDownToItemRequiringScrolling()
119 mListView.getSelectedView().getTop()); in testMoveUpToItemRequiringScrolling()
DListOfShortShortTallShortShortTest.java63 mListView.getSelectedView().getTop() < mListUtil.getListTop()); in testFadeTopTwoItemsOut()
105 mListView.getSelectedView().getTop() <= mListUtil.getListTop()); in testFadeOutBottomTwoItems()
132 mListView.getChildAt(0).getTop() <= mListUtil.getListTop()); in testFadeInTopTwoItems()
DListOfThinItemsTest.java70 mListView.getChildAt(0).getTop() <= 0); in testScrollToBottom()
107 mListView.getSelectedView().getTop() >= topThreshold); in testScrollToTop()
109 firstChild.getTop() <= 0); in testScrollToTop()
DListOfShortTallShortTest.java47 int topBeforeMove = mListView.getChildAt(1).getTop(); in testGoDownFromShortToTall()
54 mListView.getSelectedView().getTop()); in testGoDownFromShortToTall()
DListLastItemPartiallyVisibleTest.java74 final int lastTop = lastChild.getTop(); in testMovingUpToFullyVisibleNoScroll()
77 lastTop, lastChild.getTop()); in testMovingUpToFullyVisibleNoScroll()
/frameworks/base/core/tests/coretests/src/android/widget/layout/linear/
DBaselineButtonsTest.java78 assertEquals("Pause wrong top", 0, mPause.getTop()); in testLayout()
79 assertEquals("Prev wrong top", (pauseHeight - prevHeight) / 2, mPrev.getTop()); in testLayout()
80 assertEquals("Next wrong top", (pauseHeight - nextHeight) / 2, mNext.getTop()); in testLayout()
83 assertTrue("CurrentTime too tall", mCurrentTime.getTop() > 0); in testLayout()
84 assertTrue("TotalTime too tall", mTotalTime.getTop() > 0); in testLayout()
/frameworks/base/core/java/android/widget/
DListView.java217 delta = child.getTop() - mListPadding.top; in adjustViewsUpOrDown()
552 return (mFirstPosition > 0) || (getChildAt(0).getTop() > listTop); in showingTopFadingEdge()
576 rect.offset(child.getLeft(), child.getTop()); in requestChildRectangleOnScreen()
634 int top = getChildAt(0).getTop(); in requestChildRectangleOnScreen()
643 mSelectedTop = child.getTop(); in requestChildRectangleOnScreen()
669 final int startOffset = count > 0 ? getChildAt(0).getTop() - mDividerHeight : in fillGap()
733 nextBottom = child.getTop() - mDividerHeight; in fillUp()
808 fillUp(position - 1, sel.getTop() - dividerHeight); in fillAboveAndBelow()
814 fillUp(position - 1, sel.getTop() - dividerHeight); in fillAboveAndBelow()
847 final int spaceAbove = sel.getTop() - topSelectionPixel; in fillFromSelection()
[all …]
DGridView.java270 getChildAt(0).getTop() - verticalSpacing : getHeight() - paddingBottom; in fillGap()
407 nextBottom = mReferenceView.getTop() - mVerticalSpacing; in fillUp()
478 fillUp(rowStart - numColumns, referenceView.getTop() - verticalSpacing); in fillSelection()
485 fillUp(rowStart - 1, referenceView.getTop() - verticalSpacing); in fillSelection()
496 final int top = getChildAt(0).getTop(); in pinToTop()
529 if (y >= getChildAt(i).getTop()) { in findMotionRow()
580 above = fillUp(motionRowStart - numColumns, referenceView.getTop() - verticalSpacing); in fillSpecific()
591 above = fillUp(motionRowStart - 1, referenceView.getTop() - verticalSpacing); in fillSpecific()
625 final int firstTop = firstChild.getTop(); in correctTooHigh()
641 firstChild.getTop() - verticalSpacing); in correctTooHigh()
[all …]
DSlidingDrawer.java326 isVertical ? handle.getTop() - mTopOffset : 0); in dispatchDraw()
406 final int top = mHandle.getTop(); in onInterceptTouchEvent()
466 final int top = mHandle.getTop(); in onTouchEvent()
592 handle.offsetTopAndBottom(mTopOffset - handle.getTop()); in moveHandle()
596 mHandleHeight - handle.getTop()); in moveHandle()
599 final int top = handle.getTop(); in moveHandle()
809 animateClose(mVertical ? mHandle.getTop() : mHandle.getLeft()); in animateClose()
831 animateOpen(mVertical ? mHandle.getTop() : mHandle.getLeft()); in animateOpen()
/frameworks/base/core/tests/coretests/src/android/widget/scroll/
DButtonAboveTallInternalSelectionViewTest.java44 getActivity().getIsv().getTop() > in testPreconditions()
60 getActivity().getIsv().getTop() > in testMovingFocusDownToItemTallerThanScreenStillOnScreen()
/frameworks/support/v4/java/android/support/v4/widget/
DListViewAutoScrollHelper.java48 final int newTop = firstView.getTop() - deltaY; in scrollTargetBy()
82 if (firstView.getTop() >= 0) { in canTargetScrollVertically()
DViewDragHelper.java585 final int startTop = mCapturedView.getTop(); in forceSettleCapturedViewAt()
702 mScroller.fling(mCapturedView.getLeft(), mCapturedView.getTop(), in flingCapturedView()
727 final int dy = y - mCapturedView.getTop(); in continueSettling()
927 y + scrollY >= child.getTop() && y + scrollY < child.getBottom() && in canScroll()
929 y + scrollY - child.getTop())) { in canScroll()
1027 final int oldTop = toCapture.getTop(); in shouldInterceptTouchEvent()
1148 dragTo(mCapturedView.getLeft() + idx, mCapturedView.getTop() + idy, idx, idy); in processTouchEvent()
1400 final int oldTop = mCapturedView.getTop(); in dragTo()
1446 y >= view.getTop() && in isViewUnder()
1463 y >= child.getTop() && y < child.getBottom()) { in findTopChildUnder()
[all …]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/graphics/
DColorOverlayDimmer.java151 float dy = v.getTop() + v.getTranslationY(); in drawColorOverlay()
156 c.drawRect(v.getLeft(), v.getTop(), v.getRight(), v.getBottom(), mPaint); in drawColorOverlay()
159 v.getTop() + v.getPaddingTop(), in drawColorOverlay()
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
DActionBarContainer.java96 mBackground.setBounds(mActionBarView.getLeft(), mActionBarView.getTop(), in setPrimaryBackground()
114 mStackedBackground.setBounds(mTabContainer.getLeft(), mTabContainer.getTop(), in setStackedBackground()
303 mBackground.setBounds(mActionBarView.getLeft(), mActionBarView.getTop(), in onLayout()
307 mBackground.setBounds(mContextView.getLeft(), mContextView.getTop(), in onLayout()
316 mStackedBackground.setBounds(tabContainer.getLeft(), tabContainer.getTop(), in onLayout()
/frameworks/base/core/tests/coretests/src/android/widget/listview/
DListItemRequestRectAboveThinFirstItemTest.java68 mListView.getListPaddingTop(), mListView.getChildAt(0).getTop()); in testSecondItemRequestRectAboveTop()
88 2 * (mListView.getBottom() - secondToLast.getTop())); in testSecondToLastItemRequestRectBelowBottom()

12345