Home
last modified time | relevance | path

Searched refs:spanCount (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DGridLayoutManagerTest.java176 final int spanCount = 3; in topUnfocusableViewsVisibility() local
180 * spanCount; in topUnfocusableViewsVisibility()
182 final RecyclerView recyclerView = setupBasic(new Config(spanCount, itemCount) in topUnfocusableViewsVisibility()
210 if (position < spanCount * consecutiveFocusableRowsCount) { in topUnfocusableViewsVisibility()
235 int maxFocusIndex = (consecutiveFocusableRowsCount - 1) * spanCount + focusIndex; in topUnfocusableViewsVisibility()
237 * spanCount + visibleIndex; in topUnfocusableViewsVisibility()
243 int pos = focusIndex + spanCount; in topUnfocusableViewsVisibility()
247 focusIndex = Math.min(maxFocusIndex, (focusIndex + spanCount)); in topUnfocusableViewsVisibility()
249 visibleIndex = Math.min(maxVisibleIndex, (visibleIndex + spanCount)); in topUnfocusableViewsVisibility()
258 pos += spanCount; in topUnfocusableViewsVisibility()
[all …]
DBaseGridLayoutManagerTest.java66 for (int spanCount : new int[]{1, 3, 4}) { in createBaseVariations()
67 variations.add(new Config(spanCount, orientation, reverseLayout)); in createBaseVariations()
114 Config(int spanCount, int itemCount) { in Config() argument
115 mSpanCount = spanCount; in Config()
119 public Config(int spanCount, int orientation, boolean reverseLayout) { in Config() argument
120 mSpanCount = spanCount; in Config()
165 public WrappedGridLayoutManager(Context context, int spanCount) { in WrappedGridLayoutManager() argument
166 super(context, spanCount); in WrappedGridLayoutManager()
169 public WrappedGridLayoutManager(Context context, int spanCount, int orientation, in WrappedGridLayoutManager() argument
171 super(context, spanCount, orientation, reverseLayout); in WrappedGridLayoutManager()
DBaseStaggeredGridLayoutManagerTest.java53 for (int spanCount : new int[]{1, 3}) { in createBaseVariations()
57 variations.add(new Config(orientation, reverseLayout, spanCount, in createBaseVariations()
283 VisibleChildren(int spanCount) { in VisibleChildren() argument
284 firstFullyVisiblePositions = new int[spanCount]; in VisibleChildren()
285 firstVisiblePositions = new int[spanCount]; in VisibleChildren()
286 lastVisiblePositions = new int[spanCount]; in VisibleChildren()
287 lastFullyVisiblePositions = new int[spanCount]; in VisibleChildren()
288 for (int i = 0; i < spanCount; i++) { in VisibleChildren()
406 Config(int orientation, boolean reverseLayout, int spanCount, int gapStrategy) { in Config() argument
409 mSpanCount = spanCount; in Config()
[all …]
DStaggeredGridLayoutManagerTest.java409 final int spanCount = 3; in topUnfocusableViewsVisibility() local
412 setupByConfig(new Config(VERTICAL, true, spanCount, GAP_HANDLING_MOVE_ITEMS_BETWEEN_SPANS), in topUnfocusableViewsVisibility()
523 final int spanCount = 3; in bottomUnfocusableViewsVisibility() local
526 setupByConfig(new Config(VERTICAL, false, spanCount, GAP_HANDLING_MOVE_ITEMS_BETWEEN_SPANS), in bottomUnfocusableViewsVisibility()
636 final int spanCount = 3; in leftUnfocusableViewsVisibility() local
640 setupByConfig(new Config(HORIZONTAL, true, spanCount, in leftUnfocusableViewsVisibility()
745 final int spanCount = 3; in rightUnfocusableViewsVisibility() local
748 setupByConfig(new Config(HORIZONTAL, false, spanCount, in rightUnfocusableViewsVisibility()
916 Config config = new Config().spanCount(2).itemCount(40); in moveGapHandling()
938 setupByConfig(new Config().spanCount(2).itemCount(500)); in temporaryGapHandling()
[all …]
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DGridLayoutManager.java73 setSpanCount(properties.spanCount); in GridLayoutManager()
82 public GridLayoutManager(Context context, int spanCount) { in GridLayoutManager() argument
84 setSpanCount(spanCount); in GridLayoutManager()
94 public GridLayoutManager(Context context, int spanCount, int orientation, in GridLayoutManager() argument
97 setSpanCount(spanCount); in GridLayoutManager()
319 static int[] calculateItemBorders(int[] cachedBorders, int spanCount, int totalSpace) { in calculateItemBorders() argument
320 if (cachedBorders == null || cachedBorders.length != spanCount + 1 in calculateItemBorders()
322 cachedBorders = new int[spanCount + 1]; in calculateItemBorders()
325 int sizePerSpan = totalSpace / spanCount; in calculateItemBorders()
326 int sizePerSpanRemainder = totalSpace % spanCount; in calculateItemBorders()
[all …]
DStaggeredGridLayoutManager.java235 setSpanCount(properties.spanCount); in StaggeredGridLayoutManager()
249 public StaggeredGridLayoutManager(int spanCount, int orientation) { in StaggeredGridLayoutManager() argument
251 setSpanCount(spanCount); in StaggeredGridLayoutManager()
426 public void setSpanCount(int spanCount) {
428 if (spanCount != mSpanCount) {
430 mSpanCount = spanCount;
3048 int spanCount = in.readInt();
3049 if (spanCount > 0) {
3050 mGapPerSpan = new int[spanCount];
3242 int spanCount = spans.length;
[all …]
DRecyclerView.java9989 properties.spanCount = a.getInt(R.styleable.RecyclerView_spanCount, 1); in getProperties()
10036 public int spanCount; field in RecyclerView.LayoutManager.Properties
/frameworks/base/core/java/android/text/
DSpannableStringInternal.java294 int spanCount = mSpanCount; in getSpans() local
300 for (int i = 0; i < spanCount; i++) { in getSpans()
330 ret = (Object[]) Array.newInstance(kind, spanCount - i + 1); in getSpans()
/frameworks/base/media/java/android/media/
DWebVttRenderer.java1846 final int spanCount = spans.length; in update() local
1847 for (int i = 0; i < spanCount; i++) { in update()
/frameworks/support/api/
D22.2.0.txt7595 field public static int spanCount;
8108 field public int spanCount;
D22.2.1.txt7684 field public static int spanCount;
8201 field public int spanCount;
D23.0.0.txt9093 field public static int spanCount;
9644 field public int spanCount;
D23.2.1.txt9954 field public static int spanCount;
10531 field public int spanCount;
D23.2.0.txt9952 field public static int spanCount;
10529 field public int spanCount;
D23.1.1.txt9443 field public static int spanCount;
10003 field public int spanCount;
D23.4.0.txt9970 field public static int spanCount;
10547 field public int spanCount;
D23.1.0.txt9474 field public static int spanCount;
10034 field public int spanCount;
D24.0.0.txt10758 field public static int spanCount;
11344 field public int spanCount;
D24.1.0.txt10768 field public static int spanCount;
11354 field public int spanCount;
D25.1.0.txt10300 field public int spanCount;
D25.0.0.txt9838 field public int spanCount;
D25.2.0.txt10300 field public int spanCount;
D24.2.0.txt9749 field public int spanCount;
D26.0.0-alpha1.txt11207 field public int spanCount;
D25.3.0.txt10737 field public int spanCount;

12