Home
last modified time | relevance | path

Searched refs:recycler (Results 1 – 25 of 30) sorted by relevance

12

/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DRecyclerViewLayoutTest.java125 public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) { in triggerFocusSearchInOnRecycledCallback()
126 detachAndScrapAttachedViews(recycler); in triggerFocusSearchInOnRecycledCallback()
127 layoutRange(recycler, 0, layoutCnt.get()); in triggerFocusSearchInOnRecycledCallback()
195 public void onDetachedFromWindow(RecyclerView view, RecyclerView.Recycler recycler) { in detachAttachGetReady()
196 super.onDetachedFromWindow(view, recycler); in detachAttachGetReady()
260 public void onDetachedFromWindow(RecyclerView view, RecyclerView.Recycler recycler) { in detachRvAndLayoutManagerProperly()
261 super.onDetachedFromWindow(view, recycler); in detachRvAndLayoutManagerProperly()
334 public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) { in focusSearchWithOtherFocusables()
335 detachAndScrapAttachedViews(recycler); in focusSearchWithOtherFocusables()
336 layoutRange(recycler, 0, 1); in focusSearchWithOtherFocusables()
[all …]
DBaseRecyclerViewAnimationsTest.java117 …private String prepareLog(RecyclerView.Recycler recycler, RecyclerView.State state, boolean done) { in prepareLog() argument
125 for (RecyclerView.ViewHolder vh : recycler.getScrapList()) { in prepareLog()
148 public final void onLayoutChildren(RecyclerView.Recycler recycler, in onLayoutChildren() argument
152 prepareLog(recycler, state, false); in onLayoutChildren()
154 validateOldPositions(recycler, state); in onLayoutChildren()
156 validateClearedOldPositions(recycler, state); in onLayoutChildren()
158 mOnLayoutCallbacks.onLayoutChildren(recycler, this, state); in onLayoutChildren()
159 prepareLog(recycler, state, true); in onLayoutChildren()
165 private void validateClearedOldPositions(RecyclerView.Recycler recycler, in validateClearedOldPositions() argument
178 private void validateOldPositions(RecyclerView.Recycler recycler, in validateOldPositions() argument
[all …]
DRecyclerViewAnimationsTest.java127 void doLayout(RecyclerView.Recycler recycler, AnimationLayoutManager lm, in changeAndDisappearTest()
130 super.doLayout(recycler, lm, state); in changeAndDisappearTest()
132 lm.detachAndScrapAttachedViews(recycler); in changeAndDisappearTest()
135 view = recycler.getScrapViewAt(0); in changeAndDisappearTest()
137 view = recycler.getViewForPosition(0); in changeAndDisappearTest()
217 void beforePreLayout(RecyclerView.Recycler recycler, in dontLayoutReusedViewWithoutPredictive()
223 void beforePostLayout(RecyclerView.Recycler recycler, in dontLayoutReusedViewWithoutPredictive()
227 View targetView = recycler in dontLayoutReusedViewWithoutPredictive()
230 super.beforePostLayout(recycler, layoutManager, state); in dontLayoutReusedViewWithoutPredictive()
234 void afterPostLayout(RecyclerView.Recycler recycler, in dontLayoutReusedViewWithoutPredictive()
[all …]
DRecyclerViewPrefetchTest.java47 public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) { in onLayoutChildren() argument
48 super.onLayoutChildren(recycler, state); in onLayoutChildren()
49 detachAndScrapAttachedViews(recycler); in onLayoutChildren()
50 layoutRange(recycler, 0, 5); in onLayoutChildren()
DBaseGridLayoutManagerTest.java208 public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) { in onLayoutChildren() argument
211 callback.onBeforeLayout(recycler, state); in onLayoutChildren()
213 super.onLayoutChildren(recycler, state); in onLayoutChildren()
215 callback.onAfterLayout(recycler, state); in onLayoutChildren()
227 View next(RecyclerView.Recycler recycler) { in createLayoutState()
230 View next = super.next(recycler); in createLayoutState()
358 public void onBeforeLayout(RecyclerView.Recycler recycler, RecyclerView.State state) {
361 public void onAfterLayout(RecyclerView.Recycler recycler, RecyclerView.State state) {
DBaseLinearLayoutManagerTest.java129 void after(RecyclerView.Recycler recycler, RecyclerView.State state) { in scrollToPositionWithPredictive()
266 void before(RecyclerView.Recycler recycler, RecyclerView.State state) { in before() argument
269 void after(RecyclerView.Recycler recycler, RecyclerView.State state) { in after() argument
467 public void removeAndRecycleView(View child, RecyclerView.Recycler recycler) { in removeAndRecycleView() argument
471 super.removeAndRecycleView(child, recycler); in removeAndRecycleView()
475 public void removeAndRecycleViewAt(int index, RecyclerView.Recycler recycler) { in removeAndRecycleViewAt() argument
480 super.removeAndRecycleViewAt(index, recycler); in removeAndRecycleViewAt()
496 View next(RecyclerView.Recycler recycler) { in createLayoutState()
499 View next = super.next(recycler); in createLayoutState()
623 public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) { in onLayoutChildren() argument
[all …]
DRecyclerViewBasicTest.java323 public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) { in dontSaveChildrenState()
324 super.onLayoutChildren(recycler, state); in dontSaveChildrenState()
325 View view = recycler.getViewForPosition(0); in dontSaveChildrenState()
361 RecyclerView.Recycler recycler = mRecyclerView.mRecycler; in prefetchChangesCacheSize() local
362 assertEquals(RecyclerView.Recycler.DEFAULT_CACHE_SIZE, recycler.mViewCacheMax); in prefetchChangesCacheSize()
364 assertEquals(RecyclerView.Recycler.DEFAULT_CACHE_SIZE + 3, recycler.mViewCacheMax); in prefetchChangesCacheSize()
395 public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) { in onLayoutChildren() argument
433 public int scrollHorizontallyBy(int dx, RecyclerView.Recycler recycler, in scrollHorizontallyBy() argument
439 public int scrollVerticallyBy(int dy, RecyclerView.Recycler recycler, in scrollVerticallyBy() argument
DWrapContentBasicTest.java180 public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) { in onLayoutChildren() argument
204 public void dispatchDetachedFromWindow(RecyclerView view, RecyclerView.Recycler recycler) { in dispatchDetachedFromWindow() argument
205 super.dispatchDetachedFromWindow(view, recycler); in dispatchDetachedFromWindow()
236 public void removeAndRecycleScrapInt(RecyclerView.Recycler recycler) { in removeAndRecycleScrapInt() argument
237 super.removeAndRecycleScrapInt(recycler); in removeAndRecycleScrapInt()
DBaseRecyclerViewInstrumentationTest.java553 public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) { in onLayoutChildren() argument
554 detachAndScrapAttachedViews(recycler); in onLayoutChildren()
555 layoutRange(recycler, 0, state.getItemCount()); in onLayoutChildren()
635 protected void layoutRange(RecyclerView.Recycler recycler, int start, int end) { in layoutRange() argument
636 assertScrap(recycler); in layoutRange()
646 View view = recycler.getViewForPosition(i); in layoutRange()
673 private void assertScrap(RecyclerView.Recycler recycler) { in assertScrap() argument
676 for (RecyclerView.ViewHolder viewHolder : recycler.getScrapList()) { in assertScrap()
693 public int scrollHorizontallyBy(int dx, RecyclerView.Recycler recycler, in scrollHorizontallyBy() argument
700 public int scrollVerticallyBy(int dy, RecyclerView.Recycler recycler, in scrollVerticallyBy() argument
[all …]
DRecyclerViewAccessibilityLifecycleTest.java147 public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) { in onLayoutChildren() argument
148 detachAndScrapAttachedViews(recycler); in onLayoutChildren()
149 layoutRange(recycler, 0, state.getItemCount()); in onLayoutChildren()
DRecyclerViewAccessibilityTest.java96 public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) { in onInitializeAccessibilityNodeInfoTest()
97 layoutRange(recycler, 0, 5); in onInitializeAccessibilityNodeInfoTest()
111 public int scrollHorizontallyBy(int dx, RecyclerView.Recycler recycler, in onInitializeAccessibilityNodeInfoTest()
122 public int scrollVerticallyBy(int dy, RecyclerView.Recycler recycler, in onInitializeAccessibilityNodeInfoTest()
DRecyclerViewFocusRecoveryTest.java381 public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) { in testDoNotOverrideLayoutManagerRequestedFocus()
382 detachAndScrapAttachedViews(recycler); in testDoNotOverrideLayoutManagerRequestedFocus()
383 layoutRange(recycler, 0, state.getItemCount()); in testDoNotOverrideLayoutManagerRequestedFocus()
465 public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) { in onLayoutChildren() argument
466 detachAndScrapAttachedViews(recycler); in onLayoutChildren()
467 layoutRange(recycler, 0, state.getItemCount()); in onLayoutChildren()
DBaseStaggeredGridLayoutManagerTest.java258 void before(RecyclerView.Recycler recycler, RecyclerView.State state) { in before() argument
261 void after(RecyclerView.Recycler recycler, RecyclerView.State state) { in after() argument
554 public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) { in onLayoutChildren() argument
563 mOnLayoutListener.before(recycler, state); in onLayoutChildren()
565 super.onLayoutChildren(recycler, state); in onLayoutChildren()
567 mOnLayoutListener.after(recycler, state); in onLayoutChildren()
578 int scrollBy(int dt, RecyclerView.Recycler recycler, RecyclerView.State state) { in scrollBy() argument
580 int result = super.scrollBy(dt, recycler, state); in scrollBy()
633 public View onFocusSearchFailed(View focused, int direction, RecyclerView.Recycler recycler, in onFocusSearchFailed() argument
637 result = super.onFocusSearchFailed(focused, direction, recycler, state); in onFocusSearchFailed()
DItemAnimatorV2ApiTest.java110 void onLayoutChildren(RecyclerView.Recycler recycler, in changeMovedOutsideWithPredictiveAndTwoViewHolders()
112 super.onLayoutChildren(recycler, lm, state); in changeMovedOutsideWithPredictiveAndTwoViewHolders()
114 mLayoutManager.addDisappearingView(recycler.getViewForPosition(0)); in changeMovedOutsideWithPredictiveAndTwoViewHolders()
115 mLayoutManager.addDisappearingView(recycler.getScrapList().get(0).itemView); in changeMovedOutsideWithPredictiveAndTwoViewHolders()
157 void onLayoutChildren(RecyclerView.Recycler recycler, in changeMovedOutsideWithPredictive()
159 super.onLayoutChildren(recycler, lm, state); in changeMovedOutsideWithPredictive()
160 List<RecyclerView.ViewHolder> scrapList = recycler.getScrapList(); in changeMovedOutsideWithPredictive()
DAsyncListUtilLayoutTest.java333 public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) { in onLayoutChildren() argument
335 super.onLayoutChildren(recycler, state); in onLayoutChildren()
DRecyclerViewCacheTest.java98 public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) { in prefetchReusesCacheItems()
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DLinearLayoutManager.java222 public void onDetachedFromWindow(RecyclerView view, RecyclerView.Recycler recycler) { in onDetachedFromWindow() argument
223 super.onDetachedFromWindow(view, recycler); in onDetachedFromWindow()
225 removeAndRecycleAllViews(recycler); in onDetachedFromWindow()
226 recycler.clear(); in onDetachedFromWindow()
457 public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) {
470 removeAndRecycleAllViews(recycler);
488 updateAnchorInfoForLayout(recycler, state, mAnchorInfo);
547 onAnchorReady(recycler, state, mAnchorInfo, firstLayoutDirection);
548 detachAndScrapAttachedViews(recycler);
555 fill(recycler, mLayoutState, state, false);
[all …]
DGridLayoutManager.java115 public int getRowCountForAccessibility(RecyclerView.Recycler recycler, in getRowCountForAccessibility() argument
125 return getSpanGroupIndex(recycler, state, state.getItemCount() - 1) + 1; in getRowCountForAccessibility()
129 public int getColumnCountForAccessibility(RecyclerView.Recycler recycler, in getColumnCountForAccessibility() argument
139 return getSpanGroupIndex(recycler, state, state.getItemCount() - 1) + 1; in getColumnCountForAccessibility()
143 public void onInitializeAccessibilityNodeInfoForItem(RecyclerView.Recycler recycler, in onInitializeAccessibilityNodeInfoForItem() argument
151 int spanGroupIndex = getSpanGroupIndex(recycler, state, glp.getViewLayoutPosition()); in onInitializeAccessibilityNodeInfoForItem()
166 public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) { in onLayoutChildren() argument
170 super.onLayoutChildren(recycler, state); in onLayoutChildren()
352 void onAnchorReady(RecyclerView.Recycler recycler, RecyclerView.State state, in onAnchorReady() argument
354 super.onAnchorReady(recycler, state, anchorInfo, itemDirection); in onAnchorReady()
[all …]
DStaggeredGridLayoutManager.java318 public void onDetachedFromWindow(RecyclerView view, RecyclerView.Recycler recycler) { in onDetachedFromWindow() argument
599 public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) {
600 onLayoutChildren(recycler, state, true);
604 private void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state,
609 removeAndRecycleAllViews(recycler);
662 detachAndScrapAttachedViews(recycler);
670 fill(recycler, mLayoutState, state);
674 fill(recycler, mLayoutState, state);
678 fill(recycler, mLayoutState, state);
682 fill(recycler, mLayoutState, state);
[all …]
DLayoutState.java99 View next(RecyclerView.Recycler recycler) { in next() argument
100 final View view = recycler.getViewForPosition(mCurrentPosition); in next()
DRecyclerView.java5980 abstract public View getViewForPositionAndType(Recycler recycler, int position, int type); in getViewForPositionAndType() argument
6925 void dispatchDetachedFromWindow(RecyclerView view, Recycler recycler) { in dispatchDetachedFromWindow() argument
6927 onDetachedFromWindow(view, recycler); in dispatchDetachedFromWindow()
7028 public void onDetachedFromWindow(RecyclerView view, Recycler recycler) { in onDetachedFromWindow() argument
7092 public void onLayoutChildren(Recycler recycler, State state) { in onLayoutChildren() argument
7195 public int scrollHorizontallyBy(int dx, Recycler recycler, State state) { in scrollHorizontallyBy() argument
7212 public int scrollVerticallyBy(int dy, Recycler recycler, State state) { in scrollVerticallyBy() argument
7677 public void detachAndScrapView(View child, Recycler recycler) { in detachAndScrapView() argument
7679 scrapOrRecycleView(recycler, index, child); in detachAndScrapView()
7691 public void detachAndScrapViewAt(int index, Recycler recycler) { in detachAndScrapViewAt() argument
[all …]
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/
DRecyclerViewActivity.java108 public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) { in onLayoutChildren() argument
116 detachAndScrapAttachedViews(recycler); in onLayoutChildren()
125 View v = recycler.getViewForPosition(mFirstPosition + i); in onLayoutChildren()
145 public int scrollVerticallyBy(int dy, RecyclerView.Recycler recycler, in scrollVerticallyBy() argument
163 View v = recycler.getViewForPosition(mFirstPosition); in scrollVerticallyBy()
183 View v = recycler.getViewForPosition(mFirstPosition + getChildCount()); in scrollVerticallyBy()
194 recycleViewsOutOfBounds(recycler); in scrollVerticallyBy()
200 RecyclerView.Recycler recycler, RecyclerView.State state) { in onFocusSearchFailed() argument
215 View v = recycler.getViewForPosition(mFirstPosition); in onFocusSearchFailed()
230 View v = recycler.getViewForPosition(mFirstPosition + getChildCount()); in onFocusSearchFailed()
[all …]
DAnimatedRecyclerView.java447 public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) { in onLayoutChildren() argument
458 detachAndScrapAttachedViews(recycler); in onLayoutChildren()
467 View v = recycler.getViewForPosition(mFirstPosition + i); in onLayoutChildren()
492 final List<RecyclerView.ViewHolder> previousViews = recycler.getScrapList(); in onLayoutChildren()
527 public int scrollVerticallyBy(int dy, RecyclerView.Recycler recycler, in scrollVerticallyBy() argument
545 View v = recycler.getViewForPosition(mFirstPosition); in scrollVerticallyBy()
564 View v = recycler.getViewForPosition(mFirstPosition + getChildCount()); in scrollVerticallyBy()
575 recycleViewsOutOfBounds(recycler); in scrollVerticallyBy()
581 RecyclerView.Recycler recycler, RecyclerView.State state) { in onFocusSearchFailed() argument
596 View v = recycler.getViewForPosition(mFirstPosition); in onFocusSearchFailed()
[all …]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DGridLayoutManager.java1056 private void saveContext(Recycler recycler, State state) { in saveContext() argument
1060 mRecycler = recycler; in saveContext()
1303 public void onMeasure(Recycler recycler, State state, int widthSpec, int heightSpec) { in onMeasure() argument
1304 saveContext(recycler, state); in onMeasure()
1784 public void removeAndRecycleAllViews(RecyclerView.Recycler recycler) { in removeAndRecycleAllViews() argument
1788 removeAndRecycleViewAt(i, recycler); in removeAndRecycleAllViews()
1823 public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) { in onLayoutChildren() argument
1844 removeAndRecycleAllViews(recycler); in onLayoutChildren()
1864 saveContext(recycler, state); in onLayoutChildren()
1982 public int scrollHorizontallyBy(int dx, Recycler recycler, RecyclerView.State state) { in scrollHorizontallyBy() argument
[all …]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/helper/
DItemTouchHelperTest.java66 public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) { in setup()
67 detachAndScrapAttachedViews(recycler); in setup()
68 layoutRange(recycler, 0, Math.min(5, state.getItemCount())); in setup()

12