Searched refs:spanCount (Results 1 - 11 of 11) sorted by relevance

/frameworks/support/car/src/main/java/androidx/car/widget/
H A DGridLayoutManagerUtils.java40 int spanCount = manager.getSpanCount();
44 while (pos < itemCount && spanSum < spanCount) {
78 int spanCount = ((GridLayoutManager) parent.getLayoutManager()).getSpanCount();
82 if (spanSum > spanCount) {
86 // Initial spanSum + spanSize would not exceed spanCount, so it's safe to
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
H A DGridLayoutManagerTest.java188 final int spanCount = 3;
196 Config config = new Config(spanCount, itemCount);
232 focusIndex = (focusIndex / spanCount) * spanCount + 1;
286 focusIndex = (focusIndex / spanCount) * spanCount + (spanCount - 1);
316 final int spanCount = 3;
320 * spanCount;
322 final RecyclerView recyclerView = setupBasic(new Config(spanCount, itemCoun
[all...]
H A DBaseGridLayoutManagerTest.java66 for (int spanCount : new int[]{1, 3, 4}) {
67 variations.add(new Config(spanCount, orientation, reverseLayout));
114 Config(int spanCount, int itemCount) { argument
115 mSpanCount = spanCount;
119 public Config(int spanCount, int orientation, boolean reverseLayout) { argument
120 mSpanCount = spanCount;
165 public WrappedGridLayoutManager(Context context, int spanCount) { argument
166 super(context, spanCount);
169 public WrappedGridLayoutManager(Context context, int spanCount, int orientation, argument
171 super(context, spanCount, orientatio
[all...]
H A DBaseStaggeredGridLayoutManagerTest.java72 for (int spanCount : new int[]{1, 3}) {
76 variations.add(new Config(orientation, reverseLayout, spanCount,
302 VisibleChildren(int spanCount) { argument
303 firstFullyVisiblePositions = new int[spanCount];
304 firstVisiblePositions = new int[spanCount];
305 lastVisiblePositions = new int[spanCount];
306 lastFullyVisiblePositions = new int[spanCount];
307 for (int i = 0; i < spanCount; i++) {
425 Config(int orientation, boolean reverseLayout, int spanCount, int gapStrategy) { argument
428 mSpanCount = spanCount;
446 spanCount(int spanCount) argument
636 WrappedLayoutManager(int spanCount, int orientation) argument
[all...]
H A DStaggeredGridLayoutManagerTest.java492 final int spanCount = 3;
495 setupByConfig(new Config(VERTICAL, true, spanCount, GAP_HANDLING_MOVE_ITEMS_BETWEEN_SPANS),
606 final int spanCount = 3;
609 setupByConfig(new Config(VERTICAL, false, spanCount, GAP_HANDLING_MOVE_ITEMS_BETWEEN_SPANS),
719 final int spanCount = 3;
723 setupByConfig(new Config(HORIZONTAL, true, spanCount,
828 final int spanCount = 3;
831 setupByConfig(new Config(HORIZONTAL, false, spanCount,
999 Config config = new Config().spanCount(2).itemCount(40);
1021 setupByConfig(new Config().spanCount(
[all...]
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/
H A DGridLayoutManager.java65 * "layoutManager". If spanCount is not specified in the XML, it defaults to a
74 setSpanCount(properties.spanCount);
81 * @param spanCount The number of columns in the grid
83 public GridLayoutManager(Context context, int spanCount) { argument
85 setSpanCount(spanCount);
90 * @param spanCount The number of columns or rows in the grid
95 public GridLayoutManager(Context context, int spanCount, argument
98 setSpanCount(spanCount);
315 * @param spanCount number of spans
320 static int[] calculateItemBorders(int[] cachedBorders, int spanCount, in argument
809 setSpanCount(int spanCount) argument
872 getCachedSpanIndex(int position, int spanCount) argument
908 getSpanIndex(int position, int spanCount) argument
969 getSpanGroupIndex(int adapterPosition, int spanCount) argument
1131 getSpanIndex(int position, int spanCount) argument
[all...]
H A DStaggeredGridLayoutManager.java232 setSpanCount(properties.spanCount);
241 * @param spanCount If orientation is vertical, spanCount is number of columns. If
242 * orientation is horizontal, spanCount is number of rows.
245 public StaggeredGridLayoutManager(int spanCount, int orientation) { argument
247 setSpanCount(spanCount);
423 * Calling this method will automatically result in a new layout request unless the spanCount
426 * @param spanCount Number of spans to layout
428 public void setSpanCount(int spanCount) { argument
430 if (spanCount !
[all...]
H A DRecyclerView.java10333 properties.spanCount = a.getInt(R.styleable.RecyclerView_spanCount, 1);
10380 public int spanCount; field in class:RecyclerView.LayoutManager.Properties
/frameworks/base/core/java/android/text/
H A DSpannableStringInternal.java329 int spanCount = mSpanCount;
335 for (int i = 0; i < spanCount; i++) {
365 ret = (Object[]) Array.newInstance(kind, spanCount - i + 1);
/frameworks/base/media/java/android/media/
H A DWebVttRenderer.java1846 final int spanCount = spans.length;
1847 for (int i = 0; i < spanCount; i++) {
/frameworks/base/core/java/com/android/internal/widget/
H A DRecyclerView.java9600 properties.spanCount = a.getInt(R.styleable.RecyclerView_spanCount, 1);
9647 public int spanCount; field in class:RecyclerView.LayoutManager.Properties

Completed in 122 milliseconds