Home
last modified time | relevance | path

Searched refs:adapterSize (Results 1 – 6 of 6) sorted by relevance

/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DControlBarPresenter.java127 int adapterSize = adapter == null ? 0 : adapter.size(); in showControls() local
130 if (focusedView != null && adapterSize > 0 && in showControls()
131 mControlBar.indexOfChild(focusedView) >= adapterSize) { in showControls()
134 for (int i = mControlBar.getChildCount() - 1; i >= adapterSize; i--) { in showControls()
137 for (int position = 0; position < adapterSize && position < MAX_CONTROLS; in showControls()
142 getChildMarginFromCenter(mControlBar.getContext(), adapterSize)); in showControls() local
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DLinearLayoutManagerTest.java121 public void removeAnchorItemTest(final Config config, int adapterSize, in removeAnchorItemTest() argument
123 config.adapter(new TestAdapter(adapterSize) { in removeAnchorItemTest()
DGridLayoutManagerTest.java571 public void removeAnchorItemTest(final Config config, int adapterSize, in removeAnchorItemTest() argument
573 GridTestAdapter adapter = new GridTestAdapter(adapterSize) { in removeAnchorItemTest()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
DPlaybackOverlayFragment.java687 final int adapterSize = getAdapter() == null ? 0 : getAdapter().size(); in updateControlsBottomSpace() local
690 adapterSize > 1); in updateControlsBottomSpace() local
DPlaybackOverlaySupportFragment.java689 final int adapterSize = getAdapter() == null ? 0 : getAdapter().size(); in updateControlsBottomSpace() local
692 adapterSize > 1); in updateControlsBottomSpace() local
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DRecyclerView.java4368 final int adapterSize = mState.getItemCount(); in run() local
4369 if (adapterSize == 0) { in run()
4371 } else if (smoothScroller.getTargetPosition() >= adapterSize) { in run()
4372 smoothScroller.setTargetPosition(adapterSize - 1); in run()