Home
last modified time | relevance | path

Searched refs:NO_POSITION (Results 1 – 25 of 35) sorted by relevance

12

/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DGridLayoutManager.java33 import static android.support.v7.widget.RecyclerView.NO_POSITION;
440 private int mFocusPosition = NO_POSITION;
851 return NO_POSITION; in getPositionByView()
856 return NO_POSITION; in getPositionByView()
896 View view = mFocusPosition == NO_POSITION ? null : findViewByPosition(mFocusPosition); in dispatchChildSelected()
906 mChildSelectedListener.onChildSelected(mBaseGridView, null, NO_POSITION, NO_ID); in dispatchChildSelected()
908 fireOnChildViewHolderSelected(mBaseGridView, null, NO_POSITION, 0); in dispatchChildSelected()
1084 mFocusPosition = NO_POSITION; in layoutInit()
1089 } else if (mFocusPosition == NO_POSITION && newItemCount > 0) { in layoutInit()
1099 if (!focusViewWasInTree && mFocusPosition != NO_POSITION) { in layoutInit()
[all …]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DBaseRecyclerViewAnimationsTest.java172 RecyclerView.NO_POSITION, viewHolder.mOldPosition); in validateClearedOldPositions()
174 RecyclerView.NO_POSITION, viewHolder.mPreLayoutPosition); in validateClearedOldPositions()
186 viewHolder.mOldPosition != RecyclerView.NO_POSITION); in validateOldPositions()
281 + "layout position", RecyclerView.NO_POSITION, vh.mPreLayoutPosition); in assertPreLayoutPosition()
283 + "layout position", RecyclerView.NO_POSITION, vh.mOldPosition); in assertPreLayoutPosition()
557 constraint.mOldPos = RecyclerView.NO_POSITION; in adapterScrap()
566 constraint.mPreLayoutPos = RecyclerView.NO_POSITION; in adapter()
567 constraint.mOldPos = RecyclerView.NO_POSITION; in adapter()
604 RecyclerView.NO_POSITION, result.adapterResult.getOldPosition()); in validate()
DBaseLinearLayoutManagerTest.java229 int firstVisiblePosition = RecyclerView.NO_POSITION;
231 int firstFullyVisiblePosition = RecyclerView.NO_POSITION;
233 int lastVisiblePosition = RecyclerView.NO_POSITION;
235 int lastFullyVisiblePosition = RecyclerView.NO_POSITION;
468 visibleChildren.firstFullyVisiblePosition == RecyclerView.NO_POSITION) { in traverseAndFindVisibleChildren()
478 visibleChildren.firstVisiblePosition == RecyclerView.NO_POSITION) { in traverseAndFindVisibleChildren()
DBaseStaggeredGridLayoutManagerTest.java285 firstFullyVisiblePositions[i] = RecyclerView.NO_POSITION; in VisibleChildren()
286 firstVisiblePositions[i] = RecyclerView.NO_POSITION; in VisibleChildren()
287 lastVisiblePositions[i] = RecyclerView.NO_POSITION; in VisibleChildren()
288 lastFullyVisiblePositions[i] = RecyclerView.NO_POSITION; in VisibleChildren()
627 == RecyclerView.NO_POSITION) { in traverseAndFindVisibleChildren()
637 visibleChildren.firstVisiblePositions[span] == RecyclerView.NO_POSITION) { in traverseAndFindVisibleChildren()
DStaggeredGridLayoutManagerTest.java108 CoreMatchers.is(new int[]{RecyclerView.NO_POSITION, RecyclerView.NO_POSITION, in getPositionsBeforeInitialization()
109 RecyclerView.NO_POSITION})); in getPositionsBeforeInitialization()
DBaseRecyclerViewInstrumentationTest.java370 vh.getAdapterPosition(), RecyclerView.NO_POSITION); in setRecyclerView()
778 assertEquals(log, shouldHavePosition, adapterPosition != RecyclerView.NO_POSITION); in onViewRecycled()
DRecyclerViewLayoutTest.java60 import static android.support.v7.widget.RecyclerView.NO_POSITION;
838 int scrollPos = RecyclerView.NO_POSITION; in scrollToPositionCallback()
843 if (scrollPos == RecyclerView.NO_POSITION) { in scrollToPositionCallback()
1423 RecyclerView.NO_POSITION); in adapterPositionInvalidation()
1429 RecyclerView.NO_POSITION); in adapterPositionInvalidation()
4032 if (pendingScrollPosition != NO_POSITION) {
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DStaggeredGridLayoutManager.java23 import static android.support.v7.widget.RecyclerView.NO_POSITION;
148 int mPendingScrollPosition = NO_POSITION;
604 if (mPendingSavedState != null || mPendingScrollPosition != NO_POSITION) {
612 if (!anchorInfo.mValid || mPendingScrollPosition != NO_POSITION ||
625 if (mPendingSavedState == null && mPendingScrollPosition == NO_POSITION) {
709 mPendingScrollPosition = NO_POSITION;
791 if (mPendingSavedState.mAnchorPosition != NO_POSITION) {
831 if (state.isPreLayout() || mPendingScrollPosition == NO_POSITION) {
836 mPendingScrollPosition = NO_POSITION;
841 if (mPendingSavedState == null || mPendingSavedState.mAnchorPosition == NO_POSITION
[all …]
DLinearLayoutManager.java19 import static android.support.v7.widget.RecyclerView.NO_POSITION;
121 int mPendingScrollPosition = NO_POSITION;
466 if (mPendingSavedState != null || mPendingScrollPosition != NO_POSITION) {
481 if (!mAnchorInfo.mValid || mPendingScrollPosition != NO_POSITION ||
509 if (state.isPreLayout() && mPendingScrollPosition != NO_POSITION &&
640 mPendingScrollPosition = NO_POSITION; in onLayoutCompleted()
787 if (state.isPreLayout() || mPendingScrollPosition == NO_POSITION) {
792 mPendingScrollPosition = NO_POSITION;
1689 return child == null ? NO_POSITION : getPosition(child); in findFirstVisibleItemPosition()
1706 return child == null ? NO_POSITION : getPosition(child); in findFirstCompletelyVisibleItemPosition()
[all …]
DRecyclerView.java182 public static final int NO_POSITION = -1; field in RecyclerView
3094 mState.mFocusedItemPosition = mDataSetHasChangedAfterLayout ? NO_POSITION : in saveFocusInfo()
3102 mState.mFocusedItemPosition = NO_POSITION; in resetFocusInfo()
3118 if (mState.mFocusedItemPosition != NO_POSITION) { in recoverFocusFromState()
3949 return holder != null ? holder.getAdapterPosition() : NO_POSITION; in getChildAdapterPosition()
3964 return holder != null ? holder.getLayoutPosition() : NO_POSITION; in getChildLayoutPosition()
5379 if (layoutIndex == RecyclerView.NO_POSITION) { in getScrapViewForPosition()
9251 int mPosition = NO_POSITION;
9252 int mOldPosition = NO_POSITION;
9255 int mPreLayoutPosition = NO_POSITION;
[all …]
DAdapterHelper.java602 return RecyclerView.NO_POSITION; in applyPendingUpdatesToPosition()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/
DFocusManager.java62 private int mLastFocusPosition = RecyclerView.NO_POSITION;
101 if (endPos != RecyclerView.NO_POSITION) { in handleKey()
128 if (mLastFocusPosition != RecyclerView.NO_POSITION) { in restoreLastFocus()
214 return RecyclerView.NO_POSITION; in findTargetPosition()
DMultiSelectManager.java348 if (position == RecyclerView.NO_POSITION) { in toggleSelection()
427 if (position == RecyclerView.NO_POSITION) { in setSelectionRangeBegin()
566 assert(position != RecyclerView.NO_POSITION); in snapSelection()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DEvents.java146 : RecyclerView.NO_POSITION; in MotionInputEvent()
186 return getItemPosition() != RecyclerView.NO_POSITION; in isOverItem()
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/
DTestInputEvent.java60 return position != Integer.MIN_VALUE && position != RecyclerView.NO_POSITION; in isOverItem()
/frameworks/support/v7/preference/src/android/support/v7/preference/
DPreferenceGroupAdapter.java314 return RecyclerView.NO_POSITION; in getPreferenceAdapterPosition()
326 return RecyclerView.NO_POSITION; in getPreferenceAdapterPosition()
DPreferenceFragmentCompat.java679 if (position != RecyclerView.NO_POSITION) { in scrollToPreferenceInternal()
719 if (position != RecyclerView.NO_POSITION) { in scrollToPreference()
/frameworks/support/v17/preference-leanback/src/android/support/v17/preference/
DLeanbackListPreferenceDialogFragment.java158 if (index == RecyclerView.NO_POSITION) { in onItemClick()
213 if (index == RecyclerView.NO_POSITION) { in onItemClick()
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/dirlist/
DMultiSelectManagerTest.java84 click(RecyclerView.NO_POSITION); in testMouseClick_NoPosition_ClearsSelection()
115 tap(RecyclerView.NO_POSITION); in testSingleTapUp_NoPosition_ClearsSelection()
/frameworks/support/v14/preference/src/android/support/v14/preference/
DPreferenceFragment.java696 if (position != RecyclerView.NO_POSITION) { in scrollToPreferenceInternal()
736 if (position != RecyclerView.NO_POSITION) { in scrollToPreference()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DListViewCompat.java44 public static final int NO_POSITION = -1; field in ListViewCompat
DListPopupWindow.java1280 0, DropDownListView.NO_POSITION, maxHeight - otherHeights, -1); in buildDropDown()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
DBrowseFragment.java16 import static android.support.v7.widget.RecyclerView.NO_POSITION;
1402 if (position == NO_POSITION) { in setSelection()
DBrowseSupportFragment.java18 import static android.support.v7.widget.RecyclerView.NO_POSITION;
1404 if (position == NO_POSITION) { in setSelection()
/frameworks/base/core/java/android/widget/
DListPopupWindow.java1234 0, DropDownListView.NO_POSITION, maxHeight - otherHeights, -1); in buildDropDown()

12