Searched refs:mDataCallback (Results 1 – 3 of 3) sorted by relevance
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/ |
D | AsyncListUtilTest.java | 39 private TestDataCallback mDataCallback; field in AsyncListUtilTest 46 mDataCallback = new TestDataCallback(); in setupCallbacks() 48 mDataCallback.expectTiles(0, 10, 20); in setupCallbacks() 50 mDataCallback.waitForTiles("initial load"); in setupCallbacks() 57 String.class, TILE_SIZE, mDataCallback, mViewCallback); in setUpUi() 93 mDataCallback.mCacheSize = 3; in tileCaching() 101 mDataCallback.expectTiles(0, 10, 20); in dataRefresh() 104 mDataCallback.waitForTiles("increasing item count"); in dataRefresh() 107 mDataCallback.expectTiles(0, 10); in dataRefresh() 110 mDataCallback.waitForTiles("decreasing item count"); in dataRefresh() [all …]
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
D | AsyncListUtilLayoutTest.java | 54 private TestDataCallback mDataCallback; field in AsyncListUtilLayoutTest 86 mDataCallback = new TestDataCallback(); in asyncListUtil() 89 mDataCallback.expectTilesInRange(rangeStart, rangeSize); in asyncListUtil() 96 String.class, TILE_SIZE, mDataCallback, mViewCallback); in asyncListUtil() 135 assertTrue(context + ", timed out while waiting for tiles", mDataCallback.waitForTiles(2)); in assertAllLoaded() 141 mDataCallback.expectTilesInRange(rangeStart, rangeSize); in scrollAndAssert() 143 mDataCallback.expectNoNewTilesLoaded(); in scrollAndAssert()
|
/frameworks/support/v7/recyclerview/src/android/support/v7/util/ |
D | AsyncListUtil.java | 53 final DataCallback<T> mDataCallback; field in AsyncListUtil 91 mDataCallback = dataCallback; in AsyncListUtil() 306 mItemCount = mDataCallback.refreshData(); 371 mDataCallback.fillData(tile.mItems, tile.mStartPosition, tile.mItemCount); 381 mDataCallback.recycleData(tile.mItems, tile.mItemCount); 417 final int cacheSizeLimit = mDataCallback.getMaxCachedTiles();
|