Searched refs:trailingNulls (Results 1 – 6 of 6) sorted by relevance
/frameworks/support/paging/common/src/main/java/androidx/paging/ |
D | PageResult.java | 58 public final int trailingNulls; field in PageResult 62 PageResult(@NonNull List<T> list, int leadingNulls, int trailingNulls, int positionOffset) { in PageResult() argument 65 this.trailingNulls = trailingNulls; in PageResult() 72 this.trailingNulls = 0; in PageResult() 80 + ", " + trailingNulls 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 99 mTrailingNullCount = trailingNulls; 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() 312 int trailingNulls, int positionOffset, int pageSize, @NonNull Callback callback) { in initAndSplit() argument 323 int initialTrailingNulls = trailingNulls + multiPageList.size() - sublist.size(); in initAndSplit()
|
D | TiledPagedList.java | 53 pageResult.leadingNulls, pageResult.page, pageResult.trailingNulls, 67 && ((type == PageResult.INIT && pageResult.trailingNulls == 0)
|
D | ContiguousPagedList.java | 54 mStorage.init(pageResult.leadingNulls, page, pageResult.trailingNulls,
|
/frameworks/support/paging/common/src/test/java/androidx/paging/ |
D | ItemKeyedDataSourceTest.kt | 61 assertEquals(45, result.trailingNulls) in loadInitial() 73 assertEquals(0, result.trailingNulls) in loadInitial_keyMatchesSingleItem() 86 assertEquals(0, result.trailingNulls) in loadInitial_keyMatchesLastItem() 98 assertEquals(90, result.trailingNulls) in loadInitial_nullKey() 114 assertEquals(0, result.trailingNulls) in loadInitial_keyPastEndOfList() 129 assertEquals(0, result.trailingNulls) in loadInitial_disablePlaceholders() 142 assertEquals(0, result.trailingNulls) in loadInitial_uncounted() 154 assertEquals(0, result.trailingNulls) in loadInitial_nullKey_uncounted() 169 assertEquals(0, result.trailingNulls) in loadInitial_empty() 179 assertEquals(0, result.trailingNulls) in loadInitial_nullKey_empty()
|
/frameworks/support/paging/runtime/src/androidTest/java/androidx/paging/ |
D | StringPagedList.kt | 19 class StringPagedList constructor(leadingNulls: Int, trailingNulls: Int, vararg items: String) 27 trailingNulls,
|