/frameworks/base/core/java/android/text/ |
D | SpannableStringInternal.java | 84 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 …]
|
D | SpannableStringBuilder.java | 69 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/ |
D | StaggeredGridLayoutManager.java | 110 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 …]
|
D | GridLayoutManager.java | 44 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/ |
D | GridLayoutManagerRtlTest.java | 79 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()
|
D | GridLayoutManagerCachedBordersTest.java | 61 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()
|
D | StaggeredGridLayoutManagerCacheTest.java | 79 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()
|
D | StaggeredGridLayoutManagerGapTest.java | 52 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()
|
D | StaggeredGridLayoutManagerSavedStateTest.java | 120 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()
|
D | BaseGridLayoutManagerTest.java | 54 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()
|
D | GridLayoutManagerWrapContentTest.java | 46 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()
|
D | GridLayoutManagerCacheTest.java | 120 assertEquals(config.mSpanCount, cachedViews().size()); in cacheAndPrefetch() 126 for (int i = 0; i < config.mSpanCount; i++) { in cacheAndPrefetch()
|
D | StaggeredGridLayoutManagerBaseConfigSetTest.java | 91 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()
|
D | GridLayoutManagerWrapContentWithAspectRatioTest.java | 146 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()
|
D | BaseStaggeredGridLayoutManagerTest.java | 92 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()
|
D | GridLayoutManagerBaseConfigSetTest.java | 58 for (int i = 1; i < mAdapter.getItemCount(); i += config.mSpanCount + 2) { in scrollBackAndPreservePositionsTest()
|
D | StaggeredGridLayoutManagerTest.java | 1199 mLayoutManager = new WrappedLayoutManager(config.mSpanCount, config.mOrientation); in spanCountChangeOnRestoreSavedState()
|