Home
last modified time | relevance | path

Searched refs:firstTop (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/widget/gridview/touch/
DGridTouchVerticalSpacingTest.java59 int firstTop = firstChild.getTop(); in testNoScroll() local
66 assertEquals("View scrolled too early", firstTop, newFirstChild.getTop()); in testNoScroll()
76 int firstTop = firstChild.getTop(); in testShortScroll() local
83 assertEquals("View scrolled to wrong position", firstTop, newFirstChild.getTop() + 10); in testShortScroll()
107 int firstTop = Integer.MIN_VALUE; in testManyScrolls() local
112 prevTop = firstTop; in testManyScrolls()
119 firstTop = firstChild.getTop(); in testManyScrolls()
120 } while ((prevId != firstId) || (prevTop != firstTop)); in testManyScrolls()
128 firstTop = Integer.MIN_VALUE; in testManyScrolls()
131 prevTop = firstTop; in testManyScrolls()
[all …]
DGridTouchVerticalSpacingStackFromBottomTest.java107 int firstTop = firstChild.getTop(); in testLongScroll() local
113 assertEquals("View scrolled to wrong position", firstTop in testLongScroll()
123 int firstTop = Integer.MIN_VALUE; in testManyScrolls() local
128 prevTop = firstTop; in testManyScrolls()
135 firstTop = firstChild.getTop(); in testManyScrolls()
136 } while ((prevId != firstId) || (prevTop != firstTop)); in testManyScrolls()
143 firstTop = Integer.MIN_VALUE; in testManyScrolls()
146 prevTop = firstTop; in testManyScrolls()
153 firstTop = firstChild.getTop(); in testManyScrolls()
154 } while ((prevId != firstId) || (prevTop != firstTop)); in testManyScrolls()
/frameworks/base/test-runner/src/android/test/
DViewAsserts.java127 int firstTop = xy[1] + first.getBaseline(); in assertBaselineAligned() local
132 assertEquals("views are not baseline aligned", firstTop, secondTop); in assertBaselineAligned()
256 int firstTop = xy[1]; in assertTopAligned() local
261 assertEquals("views are not top aligned", firstTop, secondTop); in assertTopAligned()
275 int firstTop = xy[1]; in assertTopAligned() local
280 assertEquals("views are not top aligned", Math.abs(firstTop - secondTop), margin); in assertTopAligned()
/frameworks/base/core/tests/coretests/src/android/widget/listview/touch/
DListTouchManyTest.java151 int firstTop = firstChild.getTop(); in testNoScroll() local
158 assertEquals("View scrolled too early", firstTop, newFirstChild.getTop()); in testNoScroll()
168 int firstTop = firstChild.getTop(); in testShortScroll() local
175 assertEquals("View scrolled too early", firstTop, newFirstChild.getTop() + 10); in testShortScroll()
DListOfTouchablesTest.java60 int firstTop = firstChild.getTop(); in testShortScroll() local
67 assertEquals("View scrolled too early", firstTop, newFirstChild.getTop() + 10); in testShortScroll()
DListTouchBottomGravityManyTest.java145 int firstTop = firstChild.getTop(); in testLongScroll() local
151 assertEquals("View scrolled to wrong position", firstTop in testLongScroll()
/frameworks/base/core/java/android/widget/
DGridView.java649 final int firstTop = firstChild.getTop(); in correctTooHigh() local
653 if (bottomOffset > 0 && (mFirstPosition > 0 || firstTop < mListPadding.top)) { in correctTooHigh()
656 bottomOffset = Math.min(bottomOffset, mListPadding.top - firstTop); in correctTooHigh()
679 final int firstTop = firstChild.getTop(); in correctTooLow() local
689 int topOffset = firstTop - start; in correctTooLow()
DListView.java1560 final int firstTop = firstChild.getTop(); in correctTooHigh() local
1564 if (bottomOffset > 0 && (mFirstPosition > 0 || firstTop < mListPadding.top)) { in correctTooHigh()
1567 bottomOffset = Math.min(bottomOffset, mListPadding.top - firstTop); in correctTooHigh()
1600 final int firstTop = firstChild.getTop(); in correctTooLow() local
1610 int topOffset = firstTop - start; in correctTooLow()
DAbsListView.java5156 final int firstTop = getChildAt(0).getTop();
5157 return firstPosition > 0 || firstTop < listPadding.top;
5176 final int firstTop = getChildAt(0).getTop();
5192 final int spaceAbove = effectivePaddingTop - firstTop;
5213 mFirstPositionDistanceGuess = firstTop - listPadding.top;
5224 firstTop >= listPadding.top && incrementalDeltaY >= 0);