Home
last modified time | relevance | path

Searched refs:spanSize (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DPowerStatsStoreTest.java74 int spanSize = 500; in garbageCollectOldSpans() local
76 (int) (MAX_BATTERY_STATS_SNAPSHOT_STORAGE_BYTES / spanSize); in garbageCollectOldSpans()
79 span.addSection(new TestSection(i, spanSize)); in garbageCollectOldSpans()
/frameworks/base/core/java/com/android/internal/widget/
DGridLayoutManager.java341 int getSpaceForSpanRange(int startSpan, int spanSize) { in getSpaceForSpanRange() argument
344 - mCachedBorders[mSpanCount - startSpan - spanSize]; in getSpaceForSpanRange()
346 return mCachedBorders[startSpan + spanSize] - mCachedBorders[startSpan]; in getSpaceForSpanRange()
513 final int spanSize = mSpanSizeLookup.getSpanSize(pos); in collectPrefetchPositionsForLayoutState() local
514 remainingSpan -= spanSize; in collectPrefetchPositionsForLayoutState()
544 final int spanSize = getSpanSize(recycler, state, pos); in layoutChunk() local
545 if (spanSize > mSpanCount) { in layoutChunk()
547 + spanSize + " spans but GridLayoutManager has only " + mSpanCount in layoutChunk()
550 remainingSpan -= spanSize; in layoutChunk()
558 consumedSpanCount += spanSize; in layoutChunk()