Home
last modified time | relevance | path

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

/frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/
DTileListTest.java34 TileList<Integer> mTileList; field in TileListTest
38 mTileList = new TileList<>(mTileSize); in setUp()
43 assertThat(mTileList.getItemAt(3), nullValue()); in emptyGet()
44 assertThat(mTileList.getItemAt(100), nullValue()); in emptyGet()
49 assertThat(mTileList.addOrReplace(createTile(0, 1, 2, 3)), nullValue()); in getItemAt()
50 assertThat(mTileList.getItemAt(0), is(1)); in getItemAt()
51 assertThat(mTileList.getItemAt(1), is(2)); in getItemAt()
52 assertThat(mTileList.getItemAt(2), is(3)); in getItemAt()
53 assertThat(mTileList.getItemAt(3), nullValue()); in getItemAt()
58 assertThat(mTileList.size(), is(0)); in size()
[all …]
/frameworks/support/v7/recyclerview/src/android/support/v7/util/
DAsyncListUtil.java56 final TileList<T> mTileList; field in AsyncListUtil
94 mTileList = new TileList<T>(mTileSize); in AsyncListUtil()
154 T item = mTileList.getItemAt(position); in getItem()
236 TileList.Tile<T> duplicate = mTileList.addOrReplace(tile);
243 generation, tile.mStartPosition, mTileList.size());
263 TileList.Tile<T> tile = mTileList.removeAtPos(position);
269 log("recycling tile @%d, total tiles: %d", tile.mStartPosition, mTileList.size());
276 log("recycling all %d tiles", mTileList.size());
278 for (int i = 0; i < mTileList.size(); i++) {
279 mBackgroundProxy.recycleTile(mTileList.getAtIndex(i));
[all …]