Searched refs:INVALID_POSITION (Results 1 - 25 of 36) sorted by last modified time

12

/frameworks/support/v7/appcompat/src/android/support/v7/app/
H A DActionBar.java1177 public static final int INVALID_POSITION = -1; field in class:ActionBar.Tab
1182 * @return Current position, or {@link #INVALID_POSITION} if this tab is not currently in
H A DWindowDecorActionBar.java101 private int mSavedTabPosition = INVALID_POSITION;
113 private static final int INVALID_POSITION = -1; field in class:WindowDecorActionBar
435 mSavedTabPosition = INVALID_POSITION;
627 mSavedTabPosition = tab != null ? tab.getPosition() : INVALID_POSITION;
646 mTabScrollView.setTabSelected(tab != null ? tab.getPosition() : Tab.INVALID_POSITION);
1348 if (mSavedTabPosition != INVALID_POSITION) {
1350 mSavedTabPosition = INVALID_POSITION;
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/
H A DCascadingMenuPopup.java546 int ownerPosition = AbsListView.INVALID_POSITION;
553 if (ownerPosition == AbsListView.INVALID_POSITION) {
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DDropDownListView.java118 if (position == INVALID_POSITION) {
205 if (mMotionPosition != INVALID_POSITION) {
H A DListPopupWindow.java735 mDropDownList.setSelection(ListView.INVALID_POSITION);
881 * @return The position of the currently selected item or {@link ListView#INVALID_POSITION}
888 return ListView.INVALID_POSITION;
H A DListViewCompat.java47 public static final int INVALID_POSITION = -1; field in class:ListViewCompat
158 * down. Returns {@link #INVALID_POSITION} if nothing can be found.
163 return INVALID_POSITION;
181 return INVALID_POSITION;
186 return INVALID_POSITION;
196 if (selector != null && position != INVALID_POSITION) {
205 final boolean manageState = selector != null && position != INVALID_POSITION;
237 if (position != INVALID_POSITION) {
H A DMenuPopupWindow.java156 setSelection(INVALID_POSITION);
171 setSelection(INVALID_POSITION);
201 if (position != INVALID_POSITION) {
H A DSearchView.java1012 && mSearchSrcTextView.getListSelection() != ListView.INVALID_POSITION) {
/frameworks/support/v7/preference/src/android/support/v7/preference/
H A DDropDownPreference.java115 return Spinner.INVALID_POSITION;
/frameworks/support/v7/recyclerview/jvm-tests/src/android/support/v7/util/
H A DSortedListTest.java248 assertFalse(mList.indexOf(copy.get(index)) == SortedList.INVALID_POSITION);
/frameworks/support/v7/recyclerview/src/android/support/v7/util/
H A DSortedList.java42 public static final int INVALID_POSITION = -1; field in class:SortedList
244 if (sameItemPos != INVALID_POSITION) {
272 return INVALID_POSITION;
393 if (index == INVALID_POSITION) {
444 if (index == INVALID_POSITION) {
574 * @return The position of the provided item or {@link #INVALID_POSITION} if item is not in the
580 if (index != INVALID_POSITION) {
584 if (index != INVALID_POSITION) {
587 return INVALID_POSITION;
605 return exact == INVALID_POSITION
[all...]
/frameworks/support/compat/java/android/support/v4/widget/
H A DListViewCompat.java42 if (firstPosition == ListView.INVALID_POSITION) {
/frameworks/support/design/src/android/support/design/widget/
H A DAppBarLayout.java790 private static final int INVALID_POSITION = -1; field in class:AppBarLayout.Behavior
811 private int mOffsetToChildIndexOnLayout = INVALID_POSITION;
1058 mOffsetToChildIndexOnLayout = INVALID_POSITION;
1311 mOffsetToChildIndexOnLayout = INVALID_POSITION;
H A DTabLayout.java1072 if (newPosition == Tab.INVALID_POSITION) {
1140 final int newPosition = tab != null ? tab.getPosition() : Tab.INVALID_POSITION;
1142 if ((currentTab == null || currentTab.getPosition() == Tab.INVALID_POSITION)
1143 && newPosition != Tab.INVALID_POSITION) {
1149 if (newPosition != Tab.INVALID_POSITION) {
1243 public static final int INVALID_POSITION = -1; field in class:TabLayout.Tab
1249 private int mPosition = INVALID_POSITION;
1343 * @return Current position, or {@link #INVALID_POSITION} if this tab is not currently in
1498 mPosition = INVALID_POSITION;
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
H A DPrintActivity.java1676 int oldMediaSizeNewIndex = AdapterView.INVALID_POSITION;
1692 if (oldMediaSizeNewIndex != AdapterView.INVALID_POSITION) {
1741 int oldColorModeNewIndex = AdapterView.INVALID_POSITION;
1759 if (oldColorModeNewIndex != AdapterView.INVALID_POSITION) {
1807 int oldDuplexModeNewIndex = AdapterView.INVALID_POSITION;
1826 if (oldDuplexModeNewIndex != AdapterView.INVALID_POSITION) {
2311 return AdapterView.INVALID_POSITION;
2726 if (position == AdapterView.INVALID_POSITION) {
/frameworks/base/core/tests/coretests/src/android/view/accessibility/
H A DRecycleAccessibilityEventTest.java69 assertEquals(AccessibilityEvent.INVALID_POSITION, first.getCurrentItemIndex());
/frameworks/base/core/tests/coretests/src/android/widget/
H A DAutoCompleteTextViewPopup.java56 waitAssertListSelection(textView, ListView.INVALID_POSITION);
88 waitAssertListSelection(textView, ListView.INVALID_POSITION);
115 waitAssertListSelection(textView, ListView.INVALID_POSITION);
128 waitAssertListSelection("setListSelection(ListView.INVALID_POSITION)", textView,
129 ListView.INVALID_POSITION);
148 waitAssertListSelection(textView, ListView.INVALID_POSITION);
242 int currentSelection = ListView.INVALID_POSITION;
/frameworks/base/core/tests/coretests/src/android/widget/listview/
H A DListSetSelectionTest.java70 mListView.setSelection(ListView.INVALID_POSITION);
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/
H A DListWithFirstScreenUnSelectableTest.java45 assertEquals(AdapterView.INVALID_POSITION, mListView.getSelectedItemPosition());
50 assertEquals(AdapterView.INVALID_POSITION, mListView.getSelectedItemPosition());
55 assertEquals(AdapterView.INVALID_POSITION, mListView.getSelectedItemPosition());
H A DListWithScreenOfNoSelectablesTest.java65 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());
/frameworks/base/core/tests/coretests/src/android/widget/listview/focus/
H A DListWithEditTextHeaderTest.java57 assertEquals("something is selected", AbsListView.INVALID_POSITION, mListView.getSelectedItemPosition());
67 assertEquals("something is selected", AbsListView.INVALID_POSITION, mListView.getSelectedItemPosition());
/frameworks/base/core/java/android/view/accessibility/
H A DAccessibilityEvent.java540 public static final int INVALID_POSITION = -1; field in class:AccessibilityEvent
/frameworks/base/core/java/android/widget/
H A DAbsListView.java318 int mSelectorPosition = INVALID_POSITION;
501 int mResurrectToPosition = INVALID_POSITION;
967 * {@link #INVALID_POSITION} if nothing is selected
976 return INVALID_POSITION;
1827 ss.firstId = INVALID_POSITION;
1849 ss.firstId = INVALID_POSITION;
1904 setSelectedPositionInt(INVALID_POSITION);
1906 setNextSelectedPositionInt(INVALID_POSITION);
1907 mSelectorPosition = INVALID_POSITION;
2012 mOldSelectedPosition = INVALID_POSITION;
[all...]
H A DAbsSpinner.java120 mOldSelectedPosition = INVALID_POSITION;
131 int position = mItemCount > 0 ? 0 : INVALID_POSITION;
159 mOldSelectedPosition = INVALID_POSITION;
162 setSelectedPositionInt(INVALID_POSITION);
163 setNextSelectedPositionInt(INVALID_POSITION);
351 * {@link #INVALID_POSITION} if the point does not intersect an item.
370 return INVALID_POSITION;
436 ss.position = INVALID_POSITION;
H A DAdapterView.java156 int mNextSelectedPosition = INVALID_POSITION;
167 int mSelectedPosition = INVALID_POSITION;
194 public static final int INVALID_POSITION = -1; field in class:AdapterView
204 int mOldSelectedPosition = INVALID_POSITION;
564 * @return int Position (starting at 0), or {@link #INVALID_POSITION} if there is nothing selected.
623 * {@link #INVALID_POSITION} if the view does not correspond to a
635 return INVALID_POSITION;
649 return INVALID_POSITION;
864 mSelectedPosition = INVALID_POSITION;
866 mNextSelectedPosition = INVALID_POSITION;
[all...]

Completed in 9160 milliseconds

12