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
93
) sorted by null
1
2
3
4
/cts/tests/ApiDemosReferenceTest/src/android/apidemos/cts/
ApiDemosTest.java
50
assert(a.
getSelectedItemPosition
() == 0);
53
assert(a.
getSelectedItemPosition
() == 0);
56
assert(a.
getSelectedItemPosition
() == 1);
59
assert(a.
getSelectedItemPosition
() == 1);
62
assert(a.
getSelectedItemPosition
() == 1);
79
assert(a.
getSelectedItemPosition
() == x + 1);
84
assert(a.
getSelectedItemPosition
() == numberOfActivities);
/cts/tests/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
57
assertEquals("selected item position", 1, mListView.
getSelectedItemPosition
());
68
assertEquals("selected item position", 3, mListView.
getSelectedItemPosition
());
77
assertEquals("selected item position", 1, mListView.
getSelectedItemPosition
());
89
assertEquals("selected item position", 4, mListView.
getSelectedItemPosition
());
98
assertEquals("selected item position", 5, mListView.
getSelectedItemPosition
());
ListOfItemsShorterThanScreenTest.java
45
assertEquals(0, mListView.
getSelectedItemPosition
());
60
assertEquals(1, mListView.
getSelectedItemPosition
());
72
assertEquals(0, mListView.
getSelectedItemPosition
());
87
assertEquals(lastOnScreenItemIndex, mListView.
getSelectedItemPosition
());
116
assertEquals(1, mListView.
getSelectedItemPosition
());
126
assertEquals(0, mListView.
getSelectedItemPosition
());
135
assertEquals(lastItemPosition, mListView.
getSelectedItemPosition
());
138
assertEquals(lastItemPosition, mListView.
getSelectedItemPosition
());
147
assertEquals(lastItemPosition, mListView.
getSelectedItemPosition
());
ListWithOffScreenNextSelectableTest.java
53
assertEquals(0, mListView.
getSelectedItemPosition
());
68
0, mListView.
getSelectedItemPosition
());
72
4, mListView.
getSelectedItemPosition
());
86
assertEquals(4, mListView.
getSelectedItemPosition
());
95
4, mListView.
getSelectedItemPosition
());
99
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
66
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
());
/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
());
ListWithEditTextHeaderTest.java
55
assertEquals("something is selected", AbsListView.INVALID_POSITION, mListView.
getSelectedItemPosition
());
61
assertEquals("selected position", 1, mListView.
getSelectedItemPosition
());
64
assertEquals("something is selected", AbsListView.INVALID_POSITION, mListView.
getSelectedItemPosition
());
Completed in 825 milliseconds
1
2
3
4