/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/ |
D | ListOfItemsShorterThanScreenTest.java | 47 assertEquals(0, mListView.getSelectedItemPosition()); in testPreconditions() 62 assertEquals(1, mListView.getSelectedItemPosition()); in testMoveDownToOnScreenNextItem() 74 assertEquals(0, mListView.getSelectedItemPosition()); in testMoveUpToOnScreenItem() 90 assertEquals(lastOnScreenItemIndex, mListView.getSelectedItemPosition()); in testMoveDownToItemRequiringScrolling() 120 assertEquals(1, mListView.getSelectedItemPosition()); in testMoveUpToItemRequiringScrolling() 130 assertEquals(0, mListView.getSelectedItemPosition()); in testPressUpWhenAlreadyAtTop() 139 assertEquals(lastItemPosition, mListView.getSelectedItemPosition()); in testPressDownWhenAlreadyAtBottom() 142 assertEquals(lastItemPosition, mListView.getSelectedItemPosition()); in testPressDownWhenAlreadyAtBottom() 151 assertEquals(lastItemPosition, mListView.getSelectedItemPosition()); in testNoVerticalFadingEdgeWhenMovingToBottom()
|
D | ListWithOffScreenNextSelectableTest.java | 56 assertEquals(0, mListView.getSelectedItemPosition()); in testPreconditions() 71 0, mListView.getSelectedItemPosition()); in testGoDownToOffScreenSelectable() 75 4, mListView.getSelectedItemPosition()); in testGoDownToOffScreenSelectable() 89 assertEquals(4, mListView.getSelectedItemPosition()); in testGoUpToOffScreenSelectable() 98 4, mListView.getSelectedItemPosition()); in testGoUpToOffScreenSelectable() 102 0, mListView.getSelectedItemPosition()); in testGoUpToOffScreenSelectable()
|
D | ListInterleaveFocusablesTest.java | 56 assertEquals("selected item position", 1, mListView.getSelectedItemPosition()); in testGoingFromUnFocusableSelectedToFocusable() 67 assertEquals("selected item position", 3, mListView.getSelectedItemPosition()); in testGoingDownFromUnFocusableSelectedToFocusableWithOtherFocusableAbove() 76 assertEquals("selected item position", 1, mListView.getSelectedItemPosition()); in testGoingUpFromUnFocusableSelectedToFocusableWithOtherFocusableAbove() 88 assertEquals("selected item position", 4, mListView.getSelectedItemPosition()); in testGoingDownFromFocusableToUnfocusableWhenFocusableIsBelow() 97 assertEquals("selected item position", 5, mListView.getSelectedItemPosition()); in testGoingUpFromFocusableToUnfocusableWhenFocusableIsBelow()
|
D | ListWithSeparatorsTest.java | 49 assertEquals(1, mListView.getSelectedItemPosition()); in testPreconditions() 56 1, mListView.getSelectedItemPosition()); in testGoingUpDoesnNotHitUnselectableItem() 67 mListView.getSelectedItemPosition()); in testGoingDownSkipsOverUnselectable() 74 assertEquals(1, mListView.getSelectedItemPosition()); in testGoingUpSkippingOverUnselectable()
|
D | ListOfShortTallShortTest.java | 52 1, mListView.getSelectedItemPosition()); in testGoDownFromShortToTall() 61 while (mListView.getSelectedItemPosition() != 2 && maxMoves > 0) { in testGoUpFromShortToTall() 66 mListView.getSelectedItemPosition()); in testGoUpFromShortToTall() 76 1, mListView.getSelectedItemPosition()); in testGoUpFromShortToTall()
|
D | ListItemFocusablesCloseTest.java | 49 assertEquals(0, mListView.getSelectedItemPosition()); in testPreconditions() 74 0, mListView.getSelectedItemPosition()); in testChangeFocusWithinItem() 94 1, mListView.getSelectedItemPosition()); in testMoveDownToButtonInDifferentSelection() 106 assertEquals(1, mListView.getSelectedItemPosition()); in testMoveUpToButtonInDifferentSelection() 112 mListView.getSelectedItemPosition()); in testMoveUpToButtonInDifferentSelection()
|
D | ListItemsExpandOnSelectionTest.java | 52 assertEquals(0, mListView.getSelectedItemPosition()); in testPreconditions() 62 assertEquals(1, mListView.getSelectedItemPosition()); in testMoveSelectionDownNotRequiringScroll() 72 assertEquals(1, mListView.getSelectedItemPosition()); in testMoveSelectionUpNotRequiringScroll() 93 assertEquals("list position", lastItemIndex, mListView.getSelectedItemPosition()); in testMoveSelectionDownRequiringScroll() 116 assertEquals("list position", 1, mListView.getSelectedItemPosition()); in testMoveSelectionUpRequiringScroll()
|
D | ListWithNoFadingEdgeTest.java | 57 assertEquals("selected position", i, mListView.getSelectedItemPosition()); in testScrollDownToBottom() 60 assertEquals("selected position", numItems - 1, mListView.getSelectedItemPosition()); in testScrollDownToBottom() 77 assertEquals(i, mListView.getSelectedItemPosition()); in testScrollFromBottomToTop() 81 assertEquals("selected position", 0, mListView.getSelectedItemPosition()); in testScrollFromBottomToTop()
|
D | ListWithScreenOfNoSelectablesTest.java | 66 … assertEquals("selected position", ListView.INVALID_POSITION, mListView.getSelectedItemPosition()); in testGoFromSelectedViewExistsToNoSelectedViewExists() 91 … assertEquals("selected position", ListView.INVALID_POSITION, mListView.getSelectedItemPosition()); in testGoFromNoSelectionToSelectionExists() 97 … assertEquals("selected position", ListView.INVALID_POSITION, mListView.getSelectedItemPosition()); in testGoFromNoSelectionToSelectionExists() 102 assertEquals("selected position", 0, mListView.getSelectedItemPosition()); in testGoFromNoSelectionToSelectionExists()
|
D | ListWithFirstScreenUnSelectableTest.java | 48 assertEquals(AdapterView.INVALID_POSITION, mListView.getSelectedItemPosition()); in testPreconditions() 53 assertEquals(AdapterView.INVALID_POSITION, mListView.getSelectedItemPosition()); in testRessurectSelection() 58 assertEquals(AdapterView.INVALID_POSITION, mListView.getSelectedItemPosition()); in testScrollUpDoesNothing()
|
D | ListOfItemsTallerThanScreenTest.java | 78 assertEquals("selected position", 0, mListView.getSelectedItemPosition()); in testScrollDownAcrossItem() 121 1, mListView.getSelectedItemPosition()); in testScrollFirstItemOffScreen() 136 while (mListView.getSelectedItemPosition() < (numItems - 1)) { in testScrollDownToLastItem() 154 assertEquals(numItems - 1, mListView.getSelectedItemPosition()); in testScrollDownToLastItem()
|
D | ListItemFocusableAboveUnfocusableTest.java | 42 assertEquals("selected position", 0, mListView.getSelectedItemPosition()); in testPreconditions() 53 assertEquals("selected position", 1, mListView.getSelectedItemPosition()); in testMovingToUnFocusableTakesFocusAway()
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | ListUtil.java | 73 if (desiredPos > mListView.getSelectedItemPosition()) { in arrowScrollToSelectedPosition() 82 while(mListView.getSelectedItemPosition() < position && --maxDowns > 0) { in arrowDownToSelectedPosition() 85 if (position != mListView.getSelectedItemPosition()) { in arrowDownToSelectedPosition() 93 while(mListView.getSelectedItemPosition() > position && --maxUps > 0) { in arrowUpToSelectedPosition() 96 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 | 81 assertEquals(0, mListView.getSelectedItemPosition()); in testScrollingDownInFirstItem() 95 assertEquals(0, mListView.getSelectedItemPosition()); in testScrollingDownInFirstItem() 127 1, mListView.getSelectedItemPosition()); in testScrollingToSecondItem() 143 assertEquals(mNumItems - 1, mListView.getSelectedItemPosition()); in testNoFadingEdgeAtBottomOfLastItem() 171 assertEquals(1, mListView.getSelectedItemPosition()); in testNavigatingUpThroughInternalSelection() 178 assertEquals(1, mListView.getSelectedItemPosition()); in testNavigatingUpThroughInternalSelection() 192 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 | 50 assertEquals("list position", 0, mListView.getSelectedItemPosition()); in testPreconditions() 58 assertEquals("list position", 0, mListView.getSelectedItemPosition()); in testOptionWithinItemTrumpsGlobal() 62 assertEquals("list position", 0, mListView.getSelectedItemPosition()); in testOptionWithinItemTrumpsGlobal()
|
D | ListWithEditTextHeaderTest.java | 58 …Equals("something is selected", AbsListView.INVALID_POSITION, mListView.getSelectedItemPosition()); in testClickingHeaderKeepsFocus() 65 assertEquals("selected position", 1, mListView.getSelectedItemPosition()); in testClickingHeaderWhenOtherItemHasFocusGivesHeaderFocus() 68 …Equals("something is selected", AbsListView.INVALID_POSITION, mListView.getSelectedItemPosition()); in testClickingHeaderWhenOtherItemHasFocusGivesHeaderFocus()
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
D | ListSetSelectionTest.java | 58 assertEquals("Set selection", i, mListView.getSelectedItemPosition()); in testSetSelection() 68 assertEquals("Set selection", 0, mListView.getSelectedItemPosition()); in testClearSelection() 72 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()
|
/frameworks/rs/tests/java_api/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());
|