Home
last modified time | relevance | path

Searched refs:INVALID_POSITION (Results 1 – 25 of 41) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/android/widget/
DAutoCompleteTextViewPopup.java56 waitAssertListSelection(textView, ListView.INVALID_POSITION); in testPopupSetListSelection()
88 waitAssertListSelection(textView, ListView.INVALID_POSITION); in testPopupGetListSelection()
115 waitAssertListSelection(textView, ListView.INVALID_POSITION); in testPopupClearListSelection()
129 ListView.INVALID_POSITION); in testPopupClearListSelection()
148 waitAssertListSelection(textView, ListView.INVALID_POSITION); in testPopupNavigateNoAdapter()
242 int currentSelection = ListView.INVALID_POSITION; in waitAssertListSelection()
/frameworks/base/core/java/android/widget/
DAdapterView.java154 int mNextSelectedPosition = INVALID_POSITION;
165 int mSelectedPosition = INVALID_POSITION;
192 public static final int INVALID_POSITION = -1; field in AdapterView
202 int mOldSelectedPosition = INVALID_POSITION;
627 return INVALID_POSITION; in getPositionForView()
641 return INVALID_POSITION; in getPositionForView()
856 mSelectedPosition = INVALID_POSITION; in onInvalidated()
858 mNextSelectedPosition = INVALID_POSITION; in onInvalidated()
1075 mSelectedPosition = INVALID_POSITION; in handleDataChanged()
1077 mNextSelectedPosition = INVALID_POSITION; in handleDataChanged()
[all …]
DMenuPopupWindow.java121 setSelectedPositionInt(INVALID_POSITION); in clearSelection()
122 setNextSelectedPositionInt(INVALID_POSITION); in clearSelection()
137 setSelectedPositionInt(INVALID_POSITION); in onKeyDown()
138 setNextSelectedPositionInt(INVALID_POSITION); in onKeyDown()
168 if (position != INVALID_POSITION) { in onHoverEvent()
DAbsSpinner.java110 mOldSelectedPosition = INVALID_POSITION; in setAdapter()
121 int position = mItemCount > 0 ? 0 : INVALID_POSITION; in setAdapter()
149 mOldSelectedPosition = INVALID_POSITION; in resetList()
152 setSelectedPositionInt(INVALID_POSITION); in resetList()
153 setNextSelectedPositionInt(INVALID_POSITION); in resetList()
360 return INVALID_POSITION; in pointToPosition()
426 ss.position = INVALID_POSITION; in onSaveInstanceState()
DDropDownListView.java135 if (position != INVALID_POSITION && position != mSelectedPosition) { in onHoverEvent()
152 setSelectedPositionInt(INVALID_POSITION); in onHoverEvent()
153 setNextSelectedPositionInt(INVALID_POSITION); in onHoverEvent()
195 if (position == INVALID_POSITION) { in onForwardedEvent()
DListView.java484 mOldSelectedPosition = INVALID_POSITION; in setAdapter()
648 positionSelector(INVALID_POSITION, child); in requestChildRectangleOnScreen()
1384 return INVALID_POSITION; in findMotionRow()
1630 int accessibilityFocusPosition = INVALID_POSITION; in layoutChildren()
1786 positionSelector(INVALID_POSITION, sel); in layoutChildren()
1792 positionSelector(INVALID_POSITION, sel); in layoutChildren()
1804 } else if (mSelectorPosition != INVALID_POSITION) { in layoutChildren()
1841 } else if (accessibilityFocusPosition != INVALID_POSITION) { in layoutChildren()
2153 return INVALID_POSITION; in lookForSelectablePosition()
2172 return INVALID_POSITION; in lookForSelectablePosition()
[all …]
DAbsListView.java316 int mSelectorPosition = INVALID_POSITION;
499 int mResurrectToPosition = INVALID_POSITION;
967 return INVALID_POSITION; in getCheckedItemPosition()
1818 ss.firstId = INVALID_POSITION; in onSaveInstanceState()
1840 ss.firstId = INVALID_POSITION; in onSaveInstanceState()
1895 setSelectedPositionInt(INVALID_POSITION); in onRestoreInstanceState()
1897 setNextSelectedPositionInt(INVALID_POSITION); in onRestoreInstanceState()
1898 mSelectorPosition = INVALID_POSITION; in onRestoreInstanceState()
2003 mOldSelectedPosition = INVALID_POSITION; in resetList()
2005 setSelectedPositionInt(INVALID_POSITION); in resetList()
[all …]
DExpandableListConnector.java535 if (newGPos == AdapterView.INVALID_POSITION) { in refreshExpGroupMetadataList()
782 return AdapterView.INVALID_POSITION; in findGroupPosition()
787 return AdapterView.INVALID_POSITION; in findGroupPosition()
817 return AdapterView.INVALID_POSITION; in findGroupPosition()
851 return AdapterView.INVALID_POSITION; in findGroupPosition()
DGridView.java198 mOldSelectedPosition = INVALID_POSITION; in setAdapter()
237 return INVALID_POSITION; in lookForSelectablePosition()
241 return INVALID_POSITION; in lookForSelectablePosition()
540 return INVALID_POSITION; in findMotionRow()
1230 int accessibilityFocusPosition = INVALID_POSITION; in layoutChildren()
1304 INVALID_POSITION : 0); in layoutChildren()
1309 INVALID_POSITION : last); in layoutChildren()
1330 positionSelector(INVALID_POSITION, sel); in layoutChildren()
1341 } else if (mSelectedPosition != INVALID_POSITION) { in layoutChildren()
1372 } else if (accessibilityFocusPosition != INVALID_POSITION) { in layoutChildren()
/frameworks/support/v7/recyclerview/src/android/support/v7/util/
DSortedList.java42 public static final int INVALID_POSITION = -1; field in SortedList
244 if (sameItemPos != INVALID_POSITION) { in deduplicate()
272 return INVALID_POSITION; in findSameItem()
393 if (index == INVALID_POSITION) { in add()
444 if (index == INVALID_POSITION) { in remove()
580 if (index != INVALID_POSITION) { in indexOf()
584 if (index != INVALID_POSITION) { in indexOf()
587 return INVALID_POSITION; in indexOf()
605 return exact == INVALID_POSITION ? middle : exact; in findIndexOf()
614 return reason == INSERTION ? left : INVALID_POSITION; in findIndexOf()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/
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()
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()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DListViewCompat.java43 public static final int INVALID_POSITION = -1; field in ListViewCompat
159 return INVALID_POSITION; in lookForSelectablePosition()
177 return INVALID_POSITION; in lookForSelectablePosition()
182 return INVALID_POSITION; in lookForSelectablePosition()
192 if (selector != null && position != INVALID_POSITION) { in positionSelectorLikeTouchCompat()
201 final boolean manageState = selector != null && position != INVALID_POSITION; in positionSelectorLikeFocusCompat()
233 if (position != INVALID_POSITION) { in positionSelectorCompat()
DMenuPopupWindow.java154 setSelection(INVALID_POSITION); in clearSelection()
169 setSelection(INVALID_POSITION); in onKeyDown()
199 if (position != INVALID_POSITION) { in onHoverEvent()
DDropDownListView.java119 if (position == INVALID_POSITION) { in onForwardedEvent()
206 if (mMotionPosition != INVALID_POSITION) { in setPressedItem()
/frameworks/base/core/tests/coretests/src/android/widget/listview/focus/
DListWithEditTextHeaderTest.java57 …assertEquals("something is selected", AbsListView.INVALID_POSITION, mListView.getSelectedItemPosit… in testClickingHeaderKeepsFocus()
67 …assertEquals("something is selected", AbsListView.INVALID_POSITION, mListView.getSelectedItemPosit… in testClickingHeaderWhenOtherItemHasFocusGivesHeaderFocus()
/frameworks/support/compat/gingerbread/android/support/v4/widget/
DListViewCompatGingerbread.java26 if (firstPosition == ListView.INVALID_POSITION) { in scrollListBy()
/frameworks/base/core/tests/coretests/src/android/widget/listview/
DListSetSelectionTest.java70 mListView.setSelection(ListView.INVALID_POSITION); in testClearSelection()
/frameworks/base/core/java/com/android/internal/app/
DWindowDecorActionBar.java93 private int mSavedTabPosition = INVALID_POSITION;
108 private static final int INVALID_POSITION = -1; field in WindowDecorActionBar
434 mSavedTabPosition = INVALID_POSITION; in cleanupTabs()
614 mSavedTabPosition = tab != null ? tab.getPosition() : INVALID_POSITION; in selectTab()
627 mTabScrollView.setTabSelected(tab != null ? tab.getPosition() : Tab.INVALID_POSITION); in selectTab()
1343 if (mSavedTabPosition != INVALID_POSITION) { in setNavigationMode()
1345 mSavedTabPosition = INVALID_POSITION; in setNavigationMode()
/frameworks/support/v7/appcompat/src/android/support/v7/app/
DWindowDecorActionBar.java101 private int mSavedTabPosition = INVALID_POSITION;
113 private static final int INVALID_POSITION = -1; field in WindowDecorActionBar
426 mSavedTabPosition = INVALID_POSITION; in cleanupTabs()
605 mSavedTabPosition = tab != null ? tab.getPosition() : INVALID_POSITION; in selectTab()
624 mTabScrollView.setTabSelected(tab != null ? tab.getPosition() : Tab.INVALID_POSITION); in selectTab()
1319 if (mSavedTabPosition != INVALID_POSITION) { in setNavigationMode()
1321 mSavedTabPosition = INVALID_POSITION; in setNavigationMode()
/frameworks/base/core/tests/coretests/src/android/view/accessibility/
DRecycleAccessibilityEventTest.java69 assertEquals(AccessibilityEvent.INVALID_POSITION, first.getCurrentItemIndex()); in testAccessibilityEventViewTextChangedType()
/frameworks/support/design/src/android/support/design/widget/
DTabLayout.java1066 if (newPosition == Tab.INVALID_POSITION) {
1125 final int newPosition = tab != null ? tab.getPosition() : Tab.INVALID_POSITION;
1127 if ((currentTab == null || currentTab.getPosition() == Tab.INVALID_POSITION)
1128 && newPosition != Tab.INVALID_POSITION) {
1134 if (newPosition != Tab.INVALID_POSITION) {
1224 public static final int INVALID_POSITION = -1;
1230 private int mPosition = INVALID_POSITION;
1479 mPosition = INVALID_POSITION;
DAppBarLayout.java757 private static final int INVALID_POSITION = -1; field in AppBarLayout.Behavior
782 private int mOffsetToChildIndexOnLayout = INVALID_POSITION;
1070 mOffsetToChildIndexOnLayout = INVALID_POSITION;
1317 mOffsetToChildIndexOnLayout = INVALID_POSITION; in onRestoreInstanceState()
/frameworks/support/v7/preference/src/android/support/v7/preference/
DDropDownPreference.java111 return Spinner.INVALID_POSITION; in findSpinnerIndexOfValue()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DPrintActivity.java1620 int oldMediaSizeNewIndex = AdapterView.INVALID_POSITION; in updateOptionsUi()
1636 if (oldMediaSizeNewIndex != AdapterView.INVALID_POSITION) { in updateOptionsUi()
1685 int oldColorModeNewIndex = AdapterView.INVALID_POSITION; in updateOptionsUi()
1703 if (oldColorModeNewIndex != AdapterView.INVALID_POSITION) { in updateOptionsUi()
1751 int oldDuplexModeNewIndex = AdapterView.INVALID_POSITION; in updateOptionsUi()
1770 if (oldDuplexModeNewIndex != AdapterView.INVALID_POSITION) { in updateOptionsUi()
2257 return AdapterView.INVALID_POSITION; in getPrinterIndex()
2668 if (position == AdapterView.INVALID_POSITION) { in onItemSelected()

12