Home
last modified time | relevance | path

Searched refs:getSelectedItemPosition (Results 1 – 25 of 67) sorted by relevance

123

/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/
DListOfItemsShorterThanScreenTest.java47 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()
DListWithOffScreenNextSelectableTest.java56 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()
DListInterleaveFocusablesTest.java56 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()
DListWithSeparatorsTest.java49 assertEquals(1, mListView.getSelectedItemPosition()); in testPreconditions()
56 1, mListView.getSelectedItemPosition()); in testGoingUpDoesnNotHitUnselectableItem()
67 mListView.getSelectedItemPosition()); in testGoingDownSkipsOverUnselectable()
74 assertEquals(1, mListView.getSelectedItemPosition()); in testGoingUpSkippingOverUnselectable()
DListOfShortTallShortTest.java52 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()
DListItemFocusablesCloseTest.java49 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()
DListItemsExpandOnSelectionTest.java52 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()
DListWithNoFadingEdgeTest.java57 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()
DListWithScreenOfNoSelectablesTest.java66 … 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()
DListWithFirstScreenUnSelectableTest.java48 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()
DListOfItemsTallerThanScreenTest.java78 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()
DListItemFocusableAboveUnfocusableTest.java42 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/
DListUtil.java73 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/
DGridSetSelectionBaseTest.java50 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/
DGridTouchStackFromBottomTest.java49 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()
DGridTouchStackFromBottomManyTest.java50 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/
DScrollingThroughListOfFocusablesTest.java81 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/
DListButtonsDiagonalAcrossItemsTest.java60 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()
DListHorizontalFocusWithinItemWinsTest.java50 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()
DListWithEditTextHeaderTest.java58 …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/
DListSetSelectionTest.java58 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()
DListItemRequestRectAboveThinFirstItemTest.java59 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/
DListTouchTest.java52 assertEquals(0, mListView.getSelectedItemPosition()); in testPreconditions()
63 mListView.getSelectedItemPosition()); in testPullDown()
81 mListView.getSelectedItemPosition()); in testPushUp()
DListTouchBottomGravityTest.java53 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/
DScriptGroupTestActivity.java158 mTestSpinner1.getSelectedItemPosition(),
159 mTestSpinner2.getSelectedItemPosition(),
170 changeTest(pos, mTestSpinner2.getSelectedItemPosition(),
171 mModeSpinner.getSelectedItemPosition());
181 changeTest(mTestSpinner1.getSelectedItemPosition(), pos,
182 mModeSpinner.getSelectedItemPosition());

123