Home
last modified time | relevance | path

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

1234

/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/
DListOfItemsShorterThanScreenTest.java46 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()
DListWithOffScreenNextSelectableTest.java55 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()
DListInterleaveFocusablesTest.java55 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()
DListWithSeparatorsTest.java48 assertEquals(1, mListView.getSelectedItemPosition()); in testPreconditions()
55 1, mListView.getSelectedItemPosition()); in testGoingUpDoesnNotHitUnselectableItem()
66 mListView.getSelectedItemPosition()); in testGoingDownSkipsOverUnselectable()
73 assertEquals(1, mListView.getSelectedItemPosition()); in testGoingUpSkippingOverUnselectable()
DListItemsExpandOnSelectionTest.java51 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()
DListOfShortTallShortTest.java51 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()
DListWithNoFadingEdgeTest.java55 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()
DListItemFocusablesCloseTest.java48 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()
DListWithScreenOfNoSelectablesTest.java65 … 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()
DListWithFirstScreenUnSelectableTest.java45 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()
DListOfItemsTallerThanScreenTest.java77 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/
DListUtil.java75 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/
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.java77 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/
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.java52 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()
DListWithEditTextHeaderTest.java57 …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/
DListSetSelectionTest.java57 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()
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()
DListSetSelectionTest.java62 mListView.getSelectedItemPosition()); in testSetSelection()
92 mListView.getSelectedItemPosition()); in testSetSelectionFromTop()
130 mListView.getSelectedItemPosition()); in testSetSelection0()
/frameworks/rs/java/tests/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());

1234