Home
last modified time | relevance | path

Searched refs:mSpanCount (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/core/java/android/text/
DSpannableStringInternal.java84 mSpanCount = src.mSpanCount; in copySpans()
90 int limit = src.mSpanCount; in copySpans()
101 mSpanCount = count; in copySpans()
102 mSpans = ArrayUtils.newUnpaddedObjectArray(mSpanCount); in copySpans()
185 int count = mSpanCount; in setSpan()
203 if (mSpanCount + 1 >= mSpans.length) { in setSpan()
205 GrowingArrayUtils.growSize(mSpanCount)); in setSpan()
208 System.arraycopy(mSpans, 0, newtags, 0, mSpanCount); in setSpan()
209 System.arraycopy(mSpanData, 0, newdata, 0, mSpanCount * 3); in setSpan()
215 mSpans[mSpanCount] = what; in setSpan()
[all …]
DSpannableStringBuilder.java69 mSpanCount = 0; in SpannableStringBuilder()
157 if (mSpanCount != 0) { in resizeFor()
158 for (int i = 0; i < mSpanCount; i++) { in resizeFor()
181 if (mSpanCount != 0) { in moveGapTo()
182 for (int i = 0; i < mSpanCount; i++) { in moveGapTo()
245 for (int i = mSpanCount - 1; i >= 0; i--) { in clearSpans()
255 mSpanCount = i; in clearSpans()
307 if (i < mSpanCount) { in removeSpansForChange()
331 for (int i = mSpanCount - 1; i >= 0; i--) { in change()
385 while (mSpanCount > 0 && in change()
[all …]
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DStaggeredGridLayoutManager.java110 private int mSpanCount = -1; field in StaggeredGridLayoutManager
324 for (int i = 0; i < mSpanCount; i++) { in onDetachedFromWindow()
339 BitSet mSpansToCheck = new BitSet(mSpanCount); in hasGapsToFix()
340 mSpansToCheck.set(0, mSpanCount, true); in hasGapsToFix()
428 if (spanCount != mSpanCount) {
430 mSpanCount = spanCount;
431 mRemainingSpans = new BitSet(mSpanCount);
432 mSpans = new Span[mSpanCount];
433 for (int i = 0; i < mSpanCount; i++) {
538 return mSpanCount;
[all …]
DGridLayoutManager.java44 int mSpanCount = DEFAULT_SPAN_COUNT; field in GridLayoutManager
118 return mSpanCount; in getRowCountForAccessibility()
132 return mSpanCount; in getColumnCountForAccessibility()
156 mSpanCount > 1 && glp.getSpanSize() == mSpanCount, false)); in onInitializeAccessibilityNodeInfoForItem()
161 mSpanCount > 1 && glp.getSpanSize() == mSpanCount, false)); in onInitializeAccessibilityNodeInfoForItem()
309 mCachedBorders = calculateItemBorders(mCachedBorders, mSpanCount, totalSpace); in calculateItemBorders()
344 return mCachedBorders[mSpanCount - startSpan] in getSpaceForSpanRange()
345 - mCachedBorders[mSpanCount - startSpan - spanSize]; in getSpaceForSpanRange()
363 if (mSet == null || mSet.length != mSpanCount) { in ensureViewSet()
364 mSet = new View[mSpanCount]; in ensureViewSet()
[all …]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DGridLayoutManagerRtlTest.java79 if (mConfig.mSpanCount == 1) { in rtlTest()
80 mConfig.mSpanCount = 2; in rtlTest()
86 mConfig.mSpanCount = mConfig.mItemCount + 1; in rtlTest()
88 mConfig.mSpanCount = Math.min(mConfig.mItemCount - 1, mConfig.mSpanCount); in rtlTest()
123 : mConfig.mSpanCount; in rtlTest()
DGridLayoutManagerCachedBordersTest.java61 for (int i = 0; i < lastVisible; i += mConfig.mSpanCount) { in gridCachedBorderstTest()
62 if ((i + 1) * mConfig.mSpanCount - 1 < lastVisible) { in gridCachedBorderstTest()
64 for (int j = 0; j < mConfig.mSpanCount; j++) { in gridCachedBorderstTest()
65 View child = recyclerView.getChildAt(i * mConfig.mSpanCount + j); in gridCachedBorderstTest()
DStaggeredGridLayoutManagerCacheTest.java79 int[] positions = new int[mConfig.mSpanCount]; in findFirstVisibleItemPosition()
86 int[] positions = new int[mConfig.mSpanCount]; in findLastVisibleItemPosition()
89 return positions[mConfig.mSpanCount - 1]; in findLastVisibleItemPosition()
134 assertEquals(config.mSpanCount, cachedViews().size()); in cacheAndPrefetch()
140 for (int i = 0; i < config.mSpanCount; i++) { in cacheAndPrefetch()
DStaggeredGridLayoutManagerGapTest.java52 for (int deleteCount = 1; deleteCount < config.mSpanCount * 2; deleteCount++) { in getParams()
53 for (int deletePosition = config.mSpanCount - 1; in getParams()
54 deletePosition < config.mSpanCount + 2; deletePosition++) { in getParams()
64 if (mConfig.mSpanCount < 2 || mConfig.mGapStrategy == GAP_HANDLING_NONE) { in gapAtTheBeginningOfTheListTest()
DStaggeredGridLayoutManagerSavedStateTest.java120 if (config.mSpanCount < 2) { in getParams()
124 clone.mItemCount = clone.mSpanCount - 1; in getParams()
190 mLayoutManager = new WrappedLayoutManager(mConfig.mSpanCount, mConfig.mOrientation); in savedState()
211 mConfig.mSpanCount, mLayoutManager.getSpanCount()); in savedState()
DBaseGridLayoutManagerTest.java54 mGlm = new WrappedGridLayoutManager(getActivity(), config.mSpanCount, config.mOrientation, in setupBasic()
108 int mSpanCount; field in BaseGridLayoutManagerTest.Config
115 mSpanCount = spanCount; in Config()
120 mSpanCount = spanCount; in Config()
133 + "mSpanCount=" + mSpanCount in toString()
DGridLayoutManagerWrapContentTest.java46 private int mSpanCount = 3; field in GridLayoutManagerWrapContentTest
67 GridLayoutManager lm = new GridLayoutManager(getActivity(), mSpanCount); in createLayoutManager()
130 mSpanCount = 2; in testHorizontal()
203 mSpanCount = 1; in testHorizontalWithHorizontalMargins()
DGridLayoutManagerCacheTest.java120 assertEquals(config.mSpanCount, cachedViews().size()); in cacheAndPrefetch()
126 for (int i = 0; i < config.mSpanCount; i++) { in cacheAndPrefetch()
DStaggeredGridLayoutManagerBaseConfigSetTest.java91 if (mConfig.mSpanCount == 1) { in rtlTest()
92 mConfig.mSpanCount = 2; in rtlTest()
126 : mConfig.mSpanCount); in rtlTest()
163 lp.setFullSpan((position * 7) % (mConfig.mSpanCount + 1) == 0); in scrollBackAndPreservePositionsTest()
264 mLayoutManager = new WrappedLayoutManager(config.mSpanCount, in saveRestore()
401 final Config config = ((Config) mConfig.clone()).itemCount(mConfig.mSpanCount + 1); in viewSnapTest()
430 recyclerViewBounds.bottom -= recyclerViewBounds.height() % config.mSpanCount; in viewSnapTest()
432 recyclerViewBounds.right -= recyclerViewBounds.width() % config.mSpanCount; in viewSnapTest()
DGridLayoutManagerWrapContentWithAspectRatioTest.java146 mConfig.mSpanCount, parentSize); in testChildWithMultipleSpans()
223 int[] borders = GridLayoutManager.calculateItemBorders(null, mConfig.mSpanCount, in testChildWithMatchParentInOtherDirection()
300 mConfig.mSpanCount, parentSize); in testAllChildrenWrapContentInOtherDirection()
352 return new GridLayoutManager(getActivity(), mConfig.mSpanCount, in createFromConfig()
DBaseStaggeredGridLayoutManagerTest.java92 mLayoutManager = new WrappedLayoutManager(config.mSpanCount, config.mOrientation); in setupByConfig()
398 int mSpanCount = 3; field in BaseStaggeredGridLayoutManagerTest.Config
409 mSpanCount = spanCount; in Config()
428 mSpanCount = spanCount; in spanCount()
450 + "span:" + mSpanCount in toString()
DGridLayoutManagerBaseConfigSetTest.java58 for (int i = 1; i < mAdapter.getItemCount(); i += config.mSpanCount + 2) { in scrollBackAndPreservePositionsTest()
DStaggeredGridLayoutManagerTest.java1199 mLayoutManager = new WrappedLayoutManager(config.mSpanCount, config.mOrientation); in spanCountChangeOnRestoreSavedState()