/frameworks/base/core/tests/coretests/src/android/widget/gridview/touch/ |
D | GridTouchVerticalSpacingTest.java | 59 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 …]
|
D | GridTouchVerticalSpacingStackFromBottomTest.java | 107 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/ |
D | ViewAsserts.java | 127 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/ |
D | ListTouchManyTest.java | 151 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()
|
D | ListOfTouchablesTest.java | 61 int firstTop = firstChild.getTop(); in testShortScroll() local 68 assertEquals("View scrolled too early", firstTop, newFirstChild.getTop() + 10); in testShortScroll()
|
D | ListTouchBottomGravityManyTest.java | 145 int firstTop = firstChild.getTop(); in testLongScroll() local 151 assertEquals("View scrolled to wrong position", firstTop in testLongScroll()
|
/frameworks/support/compat/java/android/support/v4/widget/ |
D | ListViewCompat.java | 83 final int firstTop = listView.getChildAt(0).getTop(); in canScrollList() local 84 return firstPosition > 0 || firstTop < listView.getListPaddingTop(); in canScrollList()
|
/frameworks/base/core/java/android/widget/ |
D | GridView.java | 630 final int firstTop = firstChild.getTop(); in correctTooHigh() local 634 if (bottomOffset > 0 && (mFirstPosition > 0 || firstTop < mListPadding.top)) { in correctTooHigh() 637 bottomOffset = Math.min(bottomOffset, mListPadding.top - firstTop); in correctTooHigh() 660 final int firstTop = firstChild.getTop(); in correctTooLow() local 670 int topOffset = firstTop - start; in correctTooLow()
|
D | ListView.java | 1545 final int firstTop = firstChild.getTop(); in correctTooHigh() local 1549 if (bottomOffset > 0 && (mFirstPosition > 0 || firstTop < mListPadding.top)) { in correctTooHigh() 1552 bottomOffset = Math.min(bottomOffset, mListPadding.top - firstTop); in correctTooHigh() 1584 final int firstTop = firstChild.getTop(); in correctTooLow() local 1594 int topOffset = firstTop - start; in correctTooLow()
|
D | AbsListView.java | 5071 final int firstTop = getChildAt(0).getTop(); 5072 return firstPosition > 0 || firstTop < listPadding.top; 5090 final int firstTop = getChildAt(0).getTop(); 5106 final int spaceAbove = effectivePaddingTop - firstTop; 5127 mFirstPositionDistanceGuess = firstTop - listPadding.top; 5138 firstTop >= listPadding.top && incrementalDeltaY >= 0);
|