/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/ |
D | ListOfItemsShorterThanScreenTest.java | 46 assertEquals(0, mListView.getSelectedItemPosition()); in testPreconditions() 61 assertEquals(1, mListView.getSelectedItemPosition()); in testMoveDownToOnScreenNextItem() 73 assertEquals(0, mListView.getSelectedItemPosition()); in testMoveUpToOnScreenItem() 89 assertEquals(lastOnScreenItemIndex, mListView.getSelectedItemPosition()); in testMoveDownToItemRequiringScrolling() 119 assertEquals(1, mListView.getSelectedItemPosition()); in testMoveUpToItemRequiringScrolling() 129 assertEquals(0, mListView.getSelectedItemPosition()); in testPressUpWhenAlreadyAtTop() 138 assertEquals(lastItemPosition, mListView.getSelectedItemPosition()); in testPressDownWhenAlreadyAtBottom() 141 assertEquals(lastItemPosition, mListView.getSelectedItemPosition()); in testPressDownWhenAlreadyAtBottom() 150 assertEquals(lastItemPosition, mListView.getSelectedItemPosition()); in testNoVerticalFadingEdgeWhenMovingToBottom()
|
D | ListWithOffScreenNextSelectableTest.java | 55 assertEquals(0, mListView.getSelectedItemPosition()); in testPreconditions() 70 0, mListView.getSelectedItemPosition()); in testGoDownToOffScreenSelectable() 74 4, mListView.getSelectedItemPosition()); in testGoDownToOffScreenSelectable() 88 assertEquals(4, mListView.getSelectedItemPosition()); in testGoUpToOffScreenSelectable() 97 4, mListView.getSelectedItemPosition()); in testGoUpToOffScreenSelectable() 101 0, mListView.getSelectedItemPosition()); in testGoUpToOffScreenSelectable()
|
D | ListInterleaveFocusablesTest.java | 55 assertEquals("selected item position", 1, mListView.getSelectedItemPosition()); in testGoingFromUnFocusableSelectedToFocusable() 66 assertEquals("selected item position", 3, mListView.getSelectedItemPosition()); in testGoingDownFromUnFocusableSelectedToFocusableWithOtherFocusableAbove() 75 assertEquals("selected item position", 1, mListView.getSelectedItemPosition()); in testGoingUpFromUnFocusableSelectedToFocusableWithOtherFocusableAbove() 87 assertEquals("selected item position", 4, mListView.getSelectedItemPosition()); in testGoingDownFromFocusableToUnfocusableWhenFocusableIsBelow() 96 assertEquals("selected item position", 5, mListView.getSelectedItemPosition()); in testGoingUpFromFocusableToUnfocusableWhenFocusableIsBelow()
|
D | ListWithSeparatorsTest.java | 48 assertEquals(1, mListView.getSelectedItemPosition()); in testPreconditions() 55 1, mListView.getSelectedItemPosition()); in testGoingUpDoesnNotHitUnselectableItem() 66 mListView.getSelectedItemPosition()); in testGoingDownSkipsOverUnselectable() 73 assertEquals(1, mListView.getSelectedItemPosition()); in testGoingUpSkippingOverUnselectable()
|
D | ListItemsExpandOnSelectionTest.java | 51 assertEquals(0, mListView.getSelectedItemPosition()); in testPreconditions() 61 assertEquals(1, mListView.getSelectedItemPosition()); in testMoveSelectionDownNotRequiringScroll() 71 assertEquals(1, mListView.getSelectedItemPosition()); in testMoveSelectionUpNotRequiringScroll() 92 assertEquals("list position", lastItemIndex, mListView.getSelectedItemPosition()); in testMoveSelectionDownRequiringScroll() 115 assertEquals("list position", 1, mListView.getSelectedItemPosition()); in testMoveSelectionUpRequiringScroll()
|
D | ListOfShortTallShortTest.java | 51 1, mListView.getSelectedItemPosition()); in testGoDownFromShortToTall() 60 while (mListView.getSelectedItemPosition() != 2 && maxMoves > 0) { in testGoUpFromShortToTall() 65 mListView.getSelectedItemPosition()); in testGoUpFromShortToTall() 75 1, mListView.getSelectedItemPosition()); in testGoUpFromShortToTall()
|
D | ListWithNoFadingEdgeTest.java | 55 assertEquals("selected position", i, mListView.getSelectedItemPosition()); in testScrollDownToBottom() 58 … assertEquals("selected position", numItems - 1, mListView.getSelectedItemPosition()); in testScrollDownToBottom() 73 assertEquals(i, mListView.getSelectedItemPosition()); in testScrollFromBottomToTop() 77 assertEquals("selected position", 0, mListView.getSelectedItemPosition()); in testScrollFromBottomToTop()
|
D | ListItemFocusablesCloseTest.java | 48 assertEquals(0, mListView.getSelectedItemPosition()); in testPreconditions() 73 0, mListView.getSelectedItemPosition()); in testChangeFocusWithinItem() 93 1, mListView.getSelectedItemPosition()); in testMoveDownToButtonInDifferentSelection() 105 assertEquals(1, mListView.getSelectedItemPosition()); in testMoveUpToButtonInDifferentSelection() 111 mListView.getSelectedItemPosition()); in testMoveUpToButtonInDifferentSelection()
|
D | ListWithScreenOfNoSelectablesTest.java | 65 … assertEquals("selected position", ListView.INVALID_POSITION, mListView.getSelectedItemPosition()); in testGoFromSelectedViewExistsToNoSelectedViewExists() 90 … assertEquals("selected position", ListView.INVALID_POSITION, mListView.getSelectedItemPosition()); in testGoFromNoSelectionToSelectionExists() 96 … assertEquals("selected position", ListView.INVALID_POSITION, mListView.getSelectedItemPosition()); in testGoFromNoSelectionToSelectionExists() 101 assertEquals("selected position", 0, mListView.getSelectedItemPosition()); in testGoFromNoSelectionToSelectionExists()
|
D | ListWithFirstScreenUnSelectableTest.java | 45 assertEquals(AdapterView.INVALID_POSITION, mListView.getSelectedItemPosition()); in testPreconditions() 50 assertEquals(AdapterView.INVALID_POSITION, mListView.getSelectedItemPosition()); in testRessurectSelection() 55 assertEquals(AdapterView.INVALID_POSITION, mListView.getSelectedItemPosition()); in testScrollUpDoesNothing()
|
D | ListOfItemsTallerThanScreenTest.java | 77 assertEquals("selected position", 0, mListView.getSelectedItemPosition()); in testScrollDownAcrossItem() 120 1, mListView.getSelectedItemPosition()); in testScrollFirstItemOffScreen() 135 while (mListView.getSelectedItemPosition() < (numItems - 1)) { in testScrollDownToLastItem() 153 assertEquals(numItems - 1, mListView.getSelectedItemPosition()); in testScrollDownToLastItem()
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | ListUtil.java | 75 if (desiredPos > mListView.getSelectedItemPosition()) { in arrowScrollToSelectedPosition() 84 while(mListView.getSelectedItemPosition() < position && --maxDowns > 0) { in arrowDownToSelectedPosition() 87 if (position != mListView.getSelectedItemPosition()) { in arrowDownToSelectedPosition() 95 while(mListView.getSelectedItemPosition() > position && --maxUps > 0) { in arrowUpToSelectedPosition() 98 if (position != mListView.getSelectedItemPosition()) { in arrowUpToSelectedPosition()
|
/frameworks/base/core/tests/coretests/src/android/widget/gridview/ |
D | GridSetSelectionBaseTest.java | 50 mGridView.getSelectedItemPosition()); in testPreconditions() 52 assertEquals(0, mGridView.getSelectedItemPosition()); in testPreconditions() 66 assertEquals(mGridView.getSelectedItemPosition(), target); in testSetSelectionToTheEnd() 82 assertEquals(mGridView.getSelectedItemPosition(), target); in testSetSelectionToMiddle() 97 assertEquals(mGridView.getSelectedItemPosition(), 0); in testSetSelectionToTheTop()
|
/frameworks/base/core/tests/coretests/src/android/widget/gridview/touch/ |
D | GridTouchStackFromBottomTest.java | 49 assertEquals(mGridView.getAdapter().getCount() - 1, mGridView.getSelectedItemPosition()); in testPreconditions() 58 mGridView.getSelectedItemPosition()); in testPushUp() 75 mGridView.getSelectedItemPosition()); in testPullDown() 92 mGridView.getSelectedItemPosition()); in testPushUpFast() 109 mGridView.getSelectedItemPosition()); in testPullDownFast()
|
D | GridTouchStackFromBottomManyTest.java | 50 assertEquals(mGridView.getAdapter().getCount() - 1, mGridView.getSelectedItemPosition()); in testPreconditions() 60 mGridView.getSelectedItemPosition()); in testScrollToTop() 76 mGridView.getSelectedItemPosition()); in testScrollToBottom()
|
/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
D | ScrollingThroughListOfFocusablesTest.java | 77 assertEquals(0, mListView.getSelectedItemPosition()); in testScrollingDownInFirstItem() 91 assertEquals(0, mListView.getSelectedItemPosition()); in testScrollingDownInFirstItem() 123 1, mListView.getSelectedItemPosition()); in testScrollingToSecondItem() 139 assertEquals(mNumItems - 1, mListView.getSelectedItemPosition()); in testNoFadingEdgeAtBottomOfLastItem() 167 assertEquals(1, mListView.getSelectedItemPosition()); in testNavigatingUpThroughInternalSelection() 174 assertEquals(1, mListView.getSelectedItemPosition()); in testNavigatingUpThroughInternalSelection() 188 assertEquals(1, mListView.getSelectedItemPosition()); in testNavigatingUpThroughInternalSelection()
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/focus/ |
D | ListButtonsDiagonalAcrossItemsTest.java | 60 assertEquals("selected position", 0, lv.getSelectedItemPosition()); in testPreconditions() 88 mListView.getSelectedItemPosition()); in testGoingRightDoesNotChangeSelection() 95 assertEquals("list view postion", 1, mListView.getSelectedItemPosition()); in testGoingLeftDoesNotChangeSelection() 101 mListView.getSelectedItemPosition()); in testGoingLeftDoesNotChangeSelection()
|
D | ListHorizontalFocusWithinItemWinsTest.java | 52 assertEquals("list position", 0, mListView.getSelectedItemPosition()); in testPreconditions() 66 assertEquals("list position", 0, mListView.getSelectedItemPosition()); in testOptionWithinItemTrumpsGlobal() 70 assertEquals("list position", 0, mListView.getSelectedItemPosition()); in testOptionWithinItemTrumpsGlobal()
|
D | ListWithEditTextHeaderTest.java | 57 …Equals("something is selected", AbsListView.INVALID_POSITION, mListView.getSelectedItemPosition()); in testClickingHeaderKeepsFocus() 64 assertEquals("selected position", 1, mListView.getSelectedItemPosition()); in testClickingHeaderWhenOtherItemHasFocusGivesHeaderFocus() 67 …Equals("something is selected", AbsListView.INVALID_POSITION, mListView.getSelectedItemPosition()); in testClickingHeaderWhenOtherItemHasFocusGivesHeaderFocus()
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
D | ListSetSelectionTest.java | 57 assertEquals("Set selection", i, mListView.getSelectedItemPosition()); in testSetSelection() 67 assertEquals("Set selection", 0, mListView.getSelectedItemPosition()); in testClearSelection() 71 assertEquals("Set selection", 0, mListView.getSelectedItemPosition()); in testClearSelection()
|
D | ListItemRequestRectAboveThinFirstItemTest.java | 59 assertEquals("selected position", 1, mListView.getSelectedItemPosition()); in testSecondItemRequestRectAboveTop() 80 while (mListView.getSelectedItemPosition() < secondToLastPos) { in testSecondToLastItemRequestRectBelowBottom() 84 mListView.getSelectedItemPosition()); in testSecondToLastItemRequestRectBelowBottom()
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/touch/ |
D | ListTouchTest.java | 52 assertEquals(0, mListView.getSelectedItemPosition()); in testPreconditions() 63 mListView.getSelectedItemPosition()); in testPullDown() 81 mListView.getSelectedItemPosition()); in testPushUp()
|
D | ListTouchBottomGravityTest.java | 53 assertEquals(mListView.getAdapter().getCount() - 1, mListView.getSelectedItemPosition()); in testPreconditions() 66 mListView.getSelectedItemPosition()); in testPullDown() 85 mListView.getSelectedItemPosition()); in testPushUp()
|
D | ListSetSelectionTest.java | 62 mListView.getSelectedItemPosition()); in testSetSelection() 92 mListView.getSelectedItemPosition()); in testSetSelectionFromTop() 130 mListView.getSelectedItemPosition()); in testSetSelection0()
|
/frameworks/rs/java/tests/ScriptGroupTest/src/com/android/rs/sgtest/ |
D | ScriptGroupTestActivity.java | 158 mTestSpinner1.getSelectedItemPosition(), 159 mTestSpinner2.getSelectedItemPosition(), 170 changeTest(pos, mTestSpinner2.getSelectedItemPosition(), 171 mModeSpinner.getSelectedItemPosition()); 181 changeTest(mTestSpinner1.getSelectedItemPosition(), pos, 182 mModeSpinner.getSelectedItemPosition());
|