Searched refs:leadingNulls (Results 1 – 6 of 6) sorted by relevance
/frameworks/support/paging/common/src/main/java/androidx/paging/ |
D | PageResult.java | 56 public final int leadingNulls; field in PageResult 62 PageResult(@NonNull List<T> list, int leadingNulls, int trailingNulls, int positionOffset) { in PageResult() argument 64 this.leadingNulls = leadingNulls; in PageResult() 71 this.leadingNulls = 0; in PageResult() 78 return "Result " + leadingNulls in toString()
|
D | PagedStorage.java | 75 PagedStorage(int leadingNulls, List<T> page, int trailingNulls) { in PagedStorage() argument 77 init(leadingNulls, page, trailingNulls, 0); in PagedStorage() 95 private void init(int leadingNulls, List<T> page, int trailingNulls, int positionOffset) { in init() argument 96 mLeadingNullCount = leadingNulls; in init() 112 void init(int leadingNulls, @NonNull List<T> page, int trailingNulls, int positionOffset, in init() argument 114 init(leadingNulls, page, trailingNulls, positionOffset); in init() 193 void onPagePrepended(int leadingNulls, int changed, int added); in onPagePrepended() argument 311 void initAndSplit(int leadingNulls, @NonNull List<T> multiPageList, in initAndSplit() argument 324 init(leadingNulls, sublist, initialTrailingNulls, positionOffset); in initAndSplit() 326 int insertPosition = leadingNulls + beginInclusive; in initAndSplit()
|
D | ContiguousPagedList.java | 54 mStorage.init(pageResult.leadingNulls, page, pageResult.trailingNulls, 60 pageResult.leadingNulls + pageResult.positionOffset + page.size() / 2; 260 public void onPagePrepended(int leadingNulls, int changedCount, int addedCount) { in onPagePrepended() argument 270 notifyChanged(leadingNulls, changedCount); in onPagePrepended()
|
D | TiledPagedList.java | 53 pageResult.leadingNulls, pageResult.page, pageResult.trailingNulls, 63 && pageResult.leadingNulls == 0 165 public void onPagePrepended(int leadingNulls, int changed, int added) { in onPagePrepended() argument
|
/frameworks/support/paging/runtime/src/androidTest/java/androidx/paging/ |
D | StringPagedList.kt | 19 class StringPagedList constructor(leadingNulls: Int, trailingNulls: Int, vararg items: String) 25 keyedStorage.init(leadingNulls, 48 override fun onPagePrepended(leadingNulls: Int, changed: Int, added: Int) {} in onPagePrepended()
|
/frameworks/support/paging/common/src/test/java/androidx/paging/ |
D | ItemKeyedDataSourceTest.kt | 59 assertEquals(45, result.leadingNulls) in loadInitial() 71 assertEquals(0, result.leadingNulls) in loadInitial_keyMatchesSingleItem() 84 assertEquals(90, result.leadingNulls) in loadInitial_keyMatchesLastItem() 96 assertEquals(0, result.leadingNulls) in loadInitial_nullKey() 112 assertEquals(95, result.leadingNulls) in loadInitial_keyPastEndOfList() 127 assertEquals(0, result.leadingNulls) in loadInitial_disablePlaceholders() 140 assertEquals(0, result.leadingNulls) in loadInitial_uncounted() 152 assertEquals(0, result.leadingNulls) in loadInitial_nullKey_uncounted() 167 assertEquals(0, result.leadingNulls) in loadInitial_empty() 177 assertEquals(0, result.leadingNulls) in loadInitial_nullKey_empty()
|