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.java108 int firstTop = firstChild.getTop(); in testLongScroll() local
115 assertEquals("View scrolled to wrong position", firstTop in testLongScroll()
125 int firstTop = Integer.MIN_VALUE; in testManyScrolls() local
130 prevTop = firstTop; in testManyScrolls()
137 firstTop = firstChild.getTop(); in testManyScrolls()
138 } while ((prevId != firstId) || (prevTop != firstTop)); in testManyScrolls()
145 firstTop = Integer.MIN_VALUE; in testManyScrolls()
148 prevTop = firstTop; in testManyScrolls()
155 firstTop = firstChild.getTop(); in testManyScrolls()
156 } 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.java650 final int firstTop = firstChild.getTop(); in correctTooHigh() local
654 if (bottomOffset > 0 && (mFirstPosition > 0 || firstTop < mListPadding.top)) { in correctTooHigh()
657 bottomOffset = Math.min(bottomOffset, mListPadding.top - firstTop); in correctTooHigh()
680 final int firstTop = firstChild.getTop(); in correctTooLow() local
690 int topOffset = firstTop - start; in correctTooLow()
DListView.java1554 final int firstTop = firstChild.getTop(); in correctTooHigh() local
1558 if (bottomOffset > 0 && (mFirstPosition > 0 || firstTop < mListPadding.top)) { in correctTooHigh()
1561 bottomOffset = Math.min(bottomOffset, mListPadding.top - firstTop); in correctTooHigh()
1594 final int firstTop = firstChild.getTop(); in correctTooLow() local
1604 int topOffset = firstTop - start; in correctTooLow()
DAbsListView.java5448 final int firstTop = getChildAt(0).getTop();
5449 return firstPosition > 0 || firstTop < listPadding.top;
5468 final int firstTop = getChildAt(0).getTop();
5484 final int spaceAbove = effectivePaddingTop - firstTop;
5505 mFirstPositionDistanceGuess = firstTop - listPadding.top;
5516 firstTop >= listPadding.top && incrementalDeltaY >= 0);