Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/text/
DSpannableStringInternal.java101 int count = mSpanCount; in setSpan()
119 if (mSpanCount + 1 >= mSpans.length) { in setSpan()
121 GrowingArrayUtils.growSize(mSpanCount)); in setSpan()
124 System.arraycopy(mSpans, 0, newtags, 0, mSpanCount); in setSpan()
125 System.arraycopy(mSpanData, 0, newdata, 0, mSpanCount * 3); in setSpan()
131 mSpans[mSpanCount] = what; in setSpan()
132 mSpanData[mSpanCount * COLUMNS + START] = start; in setSpan()
133 mSpanData[mSpanCount * COLUMNS + END] = end; in setSpan()
134 mSpanData[mSpanCount * COLUMNS + FLAGS] = flags; in setSpan()
135 mSpanCount++; in setSpan()
[all …]
DSpannableStringBuilder.java66 mSpanCount = 0; in SpannableStringBuilder()
150 for (int i = 0; i < mSpanCount; i++) { in resizeFor()
171 for (int i = 0; i < mSpanCount; i++) { in moveGapTo()
231 for (int i = mSpanCount - 1; i >= 0; i--) { in clearSpans()
241 mSpanCount = i; in clearSpans()
286 for (int i = mSpanCount - 1; i >= 0; i--) { in change()
339 while (i < mSpanCount) { in change()
365 for (int i = 0; i < mSpanCount; i++) { in change()
376 mSpanCountBeforeAdd = mSpanCount; in change()
439 int count = mSpanCount - (i + 1); in removeSpan()
[all …]
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DGridLayoutManager.java46 int mSpanCount = DEFAULT_SPAN_COUNT; field in GridLayoutManager
103 return mSpanCount; in getRowCountForAccessibility()
115 return mSpanCount; in getColumnCountForAccessibility()
137 mSpanCount > 1 && glp.getSpanSize() == mSpanCount, false)); in onInitializeAccessibilityNodeInfoForItem()
142 mSpanCount > 1 && glp.getSpanSize() == mSpanCount, false)); in onInitializeAccessibilityNodeInfoForItem()
249 mSizePerSpan = totalSpace / mSpanCount; in updateMeasurements()
259 if (mSet == null || mSet.length != mSpanCount) { in onAnchorReady()
260 mSet = new View[mSpanCount]; in onAnchorReady()
265 int span = mSpanSizeLookup.getCachedSpanIndex(anchorInfo.mPosition, mSpanCount); in ensureAnchorIsInFirstSpan()
268 span = mSpanSizeLookup.getCachedSpanIndex(anchorInfo.mPosition, mSpanCount); in ensureAnchorIsInFirstSpan()
[all …]
DStaggeredGridLayoutManager.java96 private int mSpanCount = -1; field in StaggeredGridLayoutManager
269 for (int i = 0; i < mSpanCount; i++) { in onDetachedFromWindow()
282 BitSet mSpansToCheck = new BitSet(mSpanCount); in hasGapsToFix()
283 mSpansToCheck.set(0, mSpanCount, true); in hasGapsToFix()
365 if (spanCount != mSpanCount) {
367 mSpanCount = spanCount;
368 mRemainingSpans = new BitSet(mSpanCount);
369 mSpans = new Span[mSpanCount];
370 for (int i = 0; i < mSpanCount; i++) {
477 return mSpanCount;
[all …]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DStaggeredGridLayoutManagerTest.java82 mLayoutManager = new WrappedLayoutManager(config.mSpanCount, in setupByConfig()
99 if (config.mSpanCount == 1) { in rtlTest()
100 config.mSpanCount = 2; in rtlTest()
118 : config.mSpanCount); in rtlTest()
151 lp.setFullSpan((postion * 7) % (config.mSpanCount + 1) == 0); in scrollBackAndPreservePositionsTest()
457 for (int deleteCount = 1; deleteCount < config.mSpanCount * 2; deleteCount ++) { in testGapAtTheBeginning()
458 for (int deletePosition = config.mSpanCount - 1; in testGapAtTheBeginning()
459 deletePosition < config.mSpanCount + 2; deletePosition ++) { in testGapAtTheBeginning()
469 if (config.mSpanCount < 2 || config.mGapStrategy == GAP_HANDLING_NONE) { in gapAtTheBeginningOfTheListTest()
598 viewSnapTest(config.itemCount(config.mSpanCount + 1)); in testViewSnapping()
[all …]
DGridLayoutManagerTest.java71 mGlm = new WrappedGridLayoutManager(getActivity(), config.mSpanCount, config.mOrientation, in setupBasic()
441 for (int i = 1; i < mAdapter.getItemCount(); i += config.mSpanCount + 2) { in scrollBackAndPreservePositionsTest()
579 int mSpanCount; field in GridLayoutManagerTest.Config
585 mSpanCount = spanCount; in Config()
590 mSpanCount = spanCount; in Config()
603 "mSpanCount=" + mSpanCount + in toString()