Searched refs:changedCount (Results 1 – 2 of 2) sorted by relevance
/frameworks/support/paging/common/src/main/java/androidx/paging/ |
D | ContiguousPagedList.java | 137 final int changedCount = Math.min(previousTrailing, newlyAppended); in dispatchUpdatesSinceSnapshot() local 138 final int addedCount = newlyAppended - changedCount; in dispatchUpdatesSinceSnapshot() 141 if (changedCount != 0) { in dispatchUpdatesSinceSnapshot() 142 callback.onChanged(endPosition, changedCount); in dispatchUpdatesSinceSnapshot() 145 callback.onInserted(endPosition + changedCount, addedCount); in dispatchUpdatesSinceSnapshot() 149 final int changedCount = Math.min(previousLeading, newlyPrepended); in dispatchUpdatesSinceSnapshot() local 150 final int addedCount = newlyPrepended - changedCount; in dispatchUpdatesSinceSnapshot() 152 if (changedCount != 0) { in dispatchUpdatesSinceSnapshot() 153 callback.onChanged(previousLeading, changedCount); in dispatchUpdatesSinceSnapshot() 260 public void onPagePrepended(int leadingNulls, int changedCount, int addedCount) { in onPagePrepended() argument [all …]
|
D | PagedStorage.java | 267 final int changedCount = Math.min(mLeadingNullCount, count); in prependPage() local 268 final int addedCount = count - changedCount; in prependPage() 270 if (changedCount != 0) { in prependPage() 271 mLeadingNullCount -= changedCount; in prependPage() 276 callback.onPagePrepended(mLeadingNullCount, changedCount, addedCount); in prependPage() 298 final int changedCount = Math.min(mTrailingNullCount, count); in appendPage() local 299 final int addedCount = count - changedCount; in appendPage() 301 if (changedCount != 0) { in appendPage() 302 mTrailingNullCount -= changedCount; in appendPage() 306 changedCount, addedCount); in appendPage()
|