Home
last modified time | relevance | path

Searched refs:INVALID_POSITION (Results 1 – 25 of 26) 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.java165 int mNextSelectedPosition = INVALID_POSITION;
178 int mSelectedPosition = INVALID_POSITION;
205 public static final int INVALID_POSITION = -1; field in AdapterView
216 int mOldSelectedPosition = INVALID_POSITION;
647 return INVALID_POSITION; in getPositionForView()
661 return INVALID_POSITION; in getPositionForView()
876 mSelectedPosition = INVALID_POSITION; in onInvalidated()
878 mNextSelectedPosition = INVALID_POSITION; in onInvalidated()
1101 mSelectedPosition = INVALID_POSITION; in handleDataChanged()
1103 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.java122 mOldSelectedPosition = INVALID_POSITION; in setAdapter()
133 int position = mItemCount > 0 ? 0 : INVALID_POSITION; in setAdapter()
161 mOldSelectedPosition = INVALID_POSITION; in resetList()
164 setSelectedPositionInt(INVALID_POSITION); in resetList()
165 setNextSelectedPositionInt(INVALID_POSITION); in resetList()
372 return INVALID_POSITION; in pointToPosition()
438 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.java572 mOldSelectedPosition = INVALID_POSITION; in setAdapter()
736 positionSelector(INVALID_POSITION, child); in requestChildRectangleOnScreen()
1475 return INVALID_POSITION; in findMotionRow()
1724 int accessibilityFocusPosition = INVALID_POSITION; in layoutChildren()
1880 positionSelector(INVALID_POSITION, sel); in layoutChildren()
1886 positionSelector(INVALID_POSITION, sel); in layoutChildren()
1898 } else if (mSelectorPosition != INVALID_POSITION) { in layoutChildren()
1935 } else if (accessibilityFocusPosition != INVALID_POSITION) { in layoutChildren()
2252 return INVALID_POSITION; in lookForSelectablePosition()
2271 return INVALID_POSITION; in lookForSelectablePosition()
[all …]
DAbsListView.java329 int mSelectorPosition = INVALID_POSITION;
526 int mResurrectToPosition = INVALID_POSITION;
998 return INVALID_POSITION; in getCheckedItemPosition()
1840 ss.firstId = INVALID_POSITION; in onSaveInstanceState()
1862 ss.firstId = INVALID_POSITION; in onSaveInstanceState()
1917 setSelectedPositionInt(INVALID_POSITION); in onRestoreInstanceState()
1919 setNextSelectedPositionInt(INVALID_POSITION); in onRestoreInstanceState()
1920 mSelectorPosition = INVALID_POSITION; in onRestoreInstanceState()
2025 mOldSelectedPosition = INVALID_POSITION; in resetList()
2027 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.java215 mOldSelectedPosition = INVALID_POSITION; in setAdapter()
254 return INVALID_POSITION; in lookForSelectablePosition()
258 return INVALID_POSITION; in lookForSelectablePosition()
559 return INVALID_POSITION; in findMotionRow()
1250 int accessibilityFocusPosition = INVALID_POSITION; in layoutChildren()
1324 INVALID_POSITION : 0); in layoutChildren()
1329 INVALID_POSITION : last); in layoutChildren()
1350 positionSelector(INVALID_POSITION, sel); in layoutChildren()
1361 } else if (mSelectedPosition != INVALID_POSITION) { in layoutChildren()
1392 } else if (accessibilityFocusPosition != INVALID_POSITION) { in layoutChildren()
DListPopupWindow.java724 mDropDownList.setSelection(ListView.INVALID_POSITION); in show()
886 return ListView.INVALID_POSITION;
DSearchView.java1071 && mSearchSrcTextView.getListSelection() != ListView.INVALID_POSITION) {
1155 if (position != ListView.INVALID_POSITION) { in onSuggestionsKey()
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/
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()
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()
/frameworks/base/core/tests/coretests/src/android/widget/listview/focus/
DListWithEditTextHeaderTest.java58 …assertEquals("something is selected", AbsListView.INVALID_POSITION, mListView.getSelectedItemPosit… in testClickingHeaderKeepsFocus()
68 …assertEquals("something is selected", AbsListView.INVALID_POSITION, mListView.getSelectedItemPosit… in testClickingHeaderWhenOtherItemHasFocusGivesHeaderFocus()
/frameworks/base/core/tests/coretests/src/android/widget/listview/
DListSetSelectionTest.java71 mListView.setSelection(ListView.INVALID_POSITION); in testClearSelection()
/frameworks/base/core/tests/coretests/src/android/view/accessibility/
DRecycleAccessibilityEventTest.java69 assertEquals(AccessibilityEvent.INVALID_POSITION, first.getCurrentItemIndex()); in testAccessibilityEventViewTextChangedType()
/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
435 mSavedTabPosition = INVALID_POSITION; in cleanupTabs()
615 mSavedTabPosition = tab != null ? tab.getPosition() : INVALID_POSITION; in selectTab()
628 mTabScrollView.setTabSelected(tab != null ? tab.getPosition() : Tab.INVALID_POSITION); in selectTab()
1339 if (mSavedTabPosition != INVALID_POSITION) { in setNavigationMode()
1341 mSavedTabPosition = INVALID_POSITION; in setNavigationMode()
DResolverActivity.java122 private int mLastSelected = AbsListView.INVALID_POSITION;
1715 mLastSelected = ListView.INVALID_POSITION;
1879 setAlwaysButtonEnabled(false, ListView.INVALID_POSITION, false);
1884 if (useLayoutWithDefault() && filteredPosition != ListView.INVALID_POSITION) {
1895 && currentAdapterView.getCheckedItemPosition() != ListView.INVALID_POSITION) {
2088 final boolean hasValidSelection = checkedPos != ListView.INVALID_POSITION;
DResolverListAdapter.java140 return AbsListView.INVALID_POSITION; in getFilteredPosition()
/frameworks/base/core/java/com/android/internal/view/menu/
DCascadingMenuPopup.java504 int ownerPosition = AbsListView.INVALID_POSITION; in findParentViewForSubmenu()
511 if (ownerPosition == AbsListView.INVALID_POSITION) { in findParentViewForSubmenu()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DPrintActivity.java1708 int oldMediaSizeNewIndex = AdapterView.INVALID_POSITION; in updateOptionsUi()
1724 if (oldMediaSizeNewIndex != AdapterView.INVALID_POSITION) { in updateOptionsUi()
1773 int oldColorModeNewIndex = AdapterView.INVALID_POSITION; in updateOptionsUi()
1791 if (oldColorModeNewIndex != AdapterView.INVALID_POSITION) { in updateOptionsUi()
1839 int oldDuplexModeNewIndex = AdapterView.INVALID_POSITION; in updateOptionsUi()
1858 if (oldDuplexModeNewIndex != AdapterView.INVALID_POSITION) { in updateOptionsUi()
2344 return AdapterView.INVALID_POSITION; in getPrinterIndex()
2759 if (position == AdapterView.INVALID_POSITION) { in onItemSelected()
/frameworks/base/core/java/android/app/
DActionBar.java1165 public static final int INVALID_POSITION = -1; field in ActionBar.Tab
/frameworks/base/core/java/android/view/accessibility/
DAccessibilityEvent.java407 public static final int INVALID_POSITION = -1; field in AccessibilityEvent
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt3264 field public static final int INVALID_POSITION = -1; // 0xffffffff
34837 field public static final int INVALID_POSITION = -1; // 0xffffffff
36834 field public static final int INVALID_POSITION = -1; // 0xffffffff

12