OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:getSelectedItemPosition
(Results
1 - 25
of
202
) sorted by null
1
2
3
4
5
6
7
8
9
/cts/tests/tests/widget/src/android/widget/cts/util/
ListUtil.java
73
if (desiredPos > mListView.
getSelectedItemPosition
()) {
82
while(mListView.
getSelectedItemPosition
() < position && --maxDowns > 0) {
85
if (position != mListView.
getSelectedItemPosition
()) {
93
while(mListView.
getSelectedItemPosition
() > position && --maxUps > 0) {
96
if (position != mListView.
getSelectedItemPosition
()) {
/frameworks/base/core/tests/coretests/src/android/util/
ListUtil.java
75
if (desiredPos > mListView.
getSelectedItemPosition
()) {
84
while(mListView.
getSelectedItemPosition
() < position && --maxDowns > 0) {
87
if (position != mListView.
getSelectedItemPosition
()) {
95
while(mListView.
getSelectedItemPosition
() > position && --maxUps > 0) {
98
if (position != mListView.
getSelectedItemPosition
()) {
/frameworks/base/core/tests/coretests/src/android/widget/listview/
ListSetSelectionTest.java
57
assertEquals("Set selection", i, mListView.
getSelectedItemPosition
());
67
assertEquals("Set selection", 0, mListView.
getSelectedItemPosition
());
71
assertEquals("Set selection", 0, mListView.
getSelectedItemPosition
());
ListWithOnItemSelectedAction.java
36
if (positon != getListView().
getSelectedItemPosition
()) {
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/
ListWithFirstScreenUnSelectableTest.java
45
assertEquals(AdapterView.INVALID_POSITION, mListView.
getSelectedItemPosition
());
50
assertEquals(AdapterView.INVALID_POSITION, mListView.
getSelectedItemPosition
());
55
assertEquals(AdapterView.INVALID_POSITION, mListView.
getSelectedItemPosition
());
ListOfShortTallShortTest.java
51
1, mListView.
getSelectedItemPosition
());
60
while (mListView.
getSelectedItemPosition
() != 2 && maxMoves > 0) {
65
mListView.
getSelectedItemPosition
());
75
1, mListView.
getSelectedItemPosition
());
ListWithNoFadingEdgeTest.java
55
assertEquals("selected position", i, mListView.
getSelectedItemPosition
());
58
assertEquals("selected position", numItems - 1, mListView.
getSelectedItemPosition
());
73
assertEquals(i, mListView.
getSelectedItemPosition
());
77
assertEquals("selected position", 0, mListView.
getSelectedItemPosition
());
ListWithSeparatorsTest.java
48
assertEquals(1, mListView.
getSelectedItemPosition
());
55
1, mListView.
getSelectedItemPosition
());
66
mListView.
getSelectedItemPosition
());
73
assertEquals(1, mListView.
getSelectedItemPosition
());
ListInterleaveFocusablesTest.java
55
assertEquals("selected item position", 1, mListView.
getSelectedItemPosition
());
66
assertEquals("selected item position", 3, mListView.
getSelectedItemPosition
());
75
assertEquals("selected item position", 1, mListView.
getSelectedItemPosition
());
87
assertEquals("selected item position", 4, mListView.
getSelectedItemPosition
());
96
assertEquals("selected item position", 5, mListView.
getSelectedItemPosition
());
ListOfItemsShorterThanScreenTest.java
46
assertEquals(0, mListView.
getSelectedItemPosition
());
61
assertEquals(1, mListView.
getSelectedItemPosition
());
73
assertEquals(0, mListView.
getSelectedItemPosition
());
89
assertEquals(lastOnScreenItemIndex, mListView.
getSelectedItemPosition
());
119
assertEquals(1, mListView.
getSelectedItemPosition
());
129
assertEquals(0, mListView.
getSelectedItemPosition
());
138
assertEquals(lastItemPosition, mListView.
getSelectedItemPosition
());
141
assertEquals(lastItemPosition, mListView.
getSelectedItemPosition
());
150
assertEquals(lastItemPosition, mListView.
getSelectedItemPosition
());
ListWithOffScreenNextSelectableTest.java
55
assertEquals(0, mListView.
getSelectedItemPosition
());
70
0, mListView.
getSelectedItemPosition
());
74
4, mListView.
getSelectedItemPosition
());
88
assertEquals(4, mListView.
getSelectedItemPosition
());
97
4, mListView.
getSelectedItemPosition
());
101
0, mListView.
getSelectedItemPosition
());
ListItemFocusableAboveUnfocusableTest.java
41
assertEquals("selected position", 0, mListView.
getSelectedItemPosition
());
52
assertEquals("selected position", 1, mListView.
getSelectedItemPosition
());
ListWithOnItemSelectedActionTest.java
45
assertEquals(0, mListView.
getSelectedItemPosition
());
55
assertEquals(1, mListView.
getSelectedItemPosition
());
ListWithScreenOfNoSelectablesTest.java
65
assertEquals("selected position", ListView.INVALID_POSITION, mListView.
getSelectedItemPosition
());
90
assertEquals("selected position", ListView.INVALID_POSITION, mListView.
getSelectedItemPosition
());
96
assertEquals("selected position", ListView.INVALID_POSITION, mListView.
getSelectedItemPosition
());
101
assertEquals("selected position", 0, mListView.
getSelectedItemPosition
());
ListItemFocusablesCloseTest.java
48
assertEquals(0, mListView.
getSelectedItemPosition
());
73
0, mListView.
getSelectedItemPosition
());
93
1, mListView.
getSelectedItemPosition
());
105
assertEquals(1, mListView.
getSelectedItemPosition
());
111
mListView.
getSelectedItemPosition
());
ListItemsExpandOnSelectionTest.java
51
assertEquals(0, mListView.
getSelectedItemPosition
());
61
assertEquals(1, mListView.
getSelectedItemPosition
());
71
assertEquals(1, mListView.
getSelectedItemPosition
());
92
assertEquals("list position", lastItemIndex, mListView.
getSelectedItemPosition
());
115
assertEquals("list position", 1, mListView.
getSelectedItemPosition
());
/frameworks/base/core/tests/coretests/src/android/widget/gridview/
GridSetSelectionBaseTest.java
50
mGridView.
getSelectedItemPosition
());
52
assertEquals(0, mGridView.
getSelectedItemPosition
());
66
assertEquals(mGridView.
getSelectedItemPosition
(), target);
82
assertEquals(mGridView.
getSelectedItemPosition
(), target);
97
assertEquals(mGridView.
getSelectedItemPosition
(), 0);
/frameworks/base/core/tests/coretests/src/android/widget/gridview/touch/
GridTouchStackFromBottomTest.java
49
assertEquals(mGridView.getAdapter().getCount() - 1, mGridView.
getSelectedItemPosition
());
58
mGridView.
getSelectedItemPosition
());
75
mGridView.
getSelectedItemPosition
());
92
mGridView.
getSelectedItemPosition
());
109
mGridView.
getSelectedItemPosition
());
GridTouchStackFromBottomManyTest.java
50
assertEquals(mGridView.getAdapter().getCount() - 1, mGridView.
getSelectedItemPosition
());
60
mGridView.
getSelectedItemPosition
());
76
mGridView.
getSelectedItemPosition
());
/frameworks/base/core/tests/coretests/src/android/widget/listview/touch/
ListGetSelectedViewTest.java
53
assertEquals(0, mListView.
getSelectedItemPosition
());
63
assertEquals(-1, mListView.
getSelectedItemPosition
());
ListTouchBottomGravityTest.java
53
assertEquals(mListView.getAdapter().getCount() - 1, mListView.
getSelectedItemPosition
());
66
mListView.
getSelectedItemPosition
());
85
mListView.
getSelectedItemPosition
());
ListTouchTest.java
52
assertEquals(0, mListView.
getSelectedItemPosition
());
63
mListView.
getSelectedItemPosition
());
81
mListView.
getSelectedItemPosition
());
/frameworks/base/core/tests/coretests/src/android/widget/listview/focus/
ListButtonsDiagonalAcrossItemsTest.java
60
assertEquals("selected position", 0, lv.
getSelectedItemPosition
());
88
mListView.
getSelectedItemPosition
());
95
assertEquals("list view postion", 1, mListView.
getSelectedItemPosition
());
101
mListView.
getSelectedItemPosition
());
ListHorizontalFocusWithinItemWinsTest.java
52
assertEquals("list position", 0, mListView.
getSelectedItemPosition
());
66
assertEquals("list position", 0, mListView.
getSelectedItemPosition
());
70
assertEquals("list position", 0, mListView.
getSelectedItemPosition
());
/frameworks/base/core/tests/coretests/src/android/widget/focus/
ScrollingThroughListOfFocusablesTest.java
77
assertEquals(0, mListView.
getSelectedItemPosition
());
91
assertEquals(0, mListView.
getSelectedItemPosition
());
123
1, mListView.
getSelectedItemPosition
());
139
assertEquals(mNumItems - 1, mListView.
getSelectedItemPosition
());
167
assertEquals(1, mListView.
getSelectedItemPosition
());
174
assertEquals(1, mListView.
getSelectedItemPosition
());
188
assertEquals(1, mListView.
getSelectedItemPosition
());
Completed in 149 milliseconds
1
2
3
4
5
6
7
8
9