History log of /frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/BaseLinearLayoutManagerTest.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
3104d446bcf3da9ffb7a761fd30f0506c30f0cc9 21-Nov-2016 Chris Craik <ccraik@google.com> Make RecyclerView prefetch APIs public

Bug: 27106058
Test: @SmallTests still pass

Change-Id: I086b17fb8ba8164a680d03a5b6255670334784a5
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/BaseLinearLayoutManagerTest.java
1e0a453dff8d7bb7a966d006541454c770d1ed05 25-Oct-2016 Chris Craik <ccraik@google.com> Nested RecyclerView Prefetch

Bug: 27106058
Fixes: 32343355
Test: tests added, existing @SmallTests pass

- Stash RecyclerView if found within ViewHolder
- Prefetch nested LinearLayout content based on anchor
- Avoid double query of Display#getRefreshRate()
- Avoid dispatching recycled callbacks for unbound holders
- Reorganized State members based on lifecycle.

Change-Id: I51701576d8f5985e3cab7b684694c50bf03ef280
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/BaseLinearLayoutManagerTest.java
945dc1e8a9ee0b71e6b2454ccb3e61145d2132f5 30-Sep-2016 Chris Craik <ccraik@google.com> Improve LayoutManager prefetch API

Bug: 27106058
Test: new prefetch test for SGLM, existing caching tests still pass

Additionally, refactors prefetch logic to separate view specific work
from general GapWorker behavior.

Change-Id: I2b98ec689eef606cee7eb3cada92957a0641babd
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/BaseLinearLayoutManagerTest.java
42e7d6fafcde7bfe261dd7d8d75ee53ca0cd6790 28-Sep-2016 Aurimas Liutikas <aurimas@google.com> Replace usage of Instrumentation#runOnMainSync with ActivityTestRule#runOnUiThread.

ActivityTestRule#runOnUiThread handles exceptions correctly and thus should be used
in place of Instrumentation#runOnMainSync. This changes most of these use-cases
except for tricky cases.

Bug: 31801302
Test: ran support-design:connectedCheck and support-appcompat:connectedCheck
Change-Id: I70904aef89e6bbc2a3cff1b3be697258d666e316
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/BaseLinearLayoutManagerTest.java
3876bebeea440474dfecf34e7a759d265bf67e0e 28-Sep-2016 Aga Madurska <amad@google.com> Resolve merge conflicts of 571fe86 to master

Test: Merge conflict resolution. CL adds tests.

Change-Id: Ib4a18c02761273cde62de57b1a959da2d37d803d
3911e1c2d38e301d5ffbdf11f808fdc593dd83e9 09-Sep-2016 Aga Madurska <amad@google.com> Add tests for edge view to the LinearLayoutManagerSnappingTest

Also, stabilize the Linear- and GridLayoutManagerSnappingTest
as they seemed to have a flaky setup.

Bug:31399980

Change-Id:If7780a5cc863a53cf4df946d186dfd5ae28274cc
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/BaseLinearLayoutManagerTest.java
210acb1081c292500390aaeb7a3eba249933dd9f 20-Sep-2016 Aurimas Liutikas <aurimas@google.com> Update RecyclerView parameterised test names not to have spaces.

Spaces cause issues with the test runner. Remove the spaces as we
have , to separate different parameters.

Test: ./gradlew assembleAndroidTest still builds
Change-Id: I9e5aca7f8511f4f28374017a34fca2cd7e672c7e
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/BaseLinearLayoutManagerTest.java
9907d83bd665af4321ee4562f58a3d048d1ed1cd 14-Sep-2016 Aurimas Liutikas <aurimas@google.com> Fix LinearLayoutManagerPrepareForDropTest test names.

- Remove spaces from the config in BaseLinearLayoutManager.
- Add toString in SelectTargetChildren in LLMPFDT.

Test name goes from:
prepareForDropTest[Config{mStackFromEnd=true, mOrientation=0, mReverseLayout=true, mRecycleChildrenOnDetach=false, mItemCount=250, wrap=true}_android.support.v7.widget.LinearLayoutManagerPrepareForDropTest\$6@c7b61ef]
to:
prepareForDropTest[Config{mStackFromEnd=true,mOrientation=0,mReverseLayout=true,mRecycleChildrenOnDetach=false,mItemCount=250,wrap=true},selectTargetChildren:{0,1}]

Change-Id: I7fee1188e9c133f602797f7df97162d3569c79a4
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/BaseLinearLayoutManagerTest.java
ec4b5429886bfe93707a85823cf40de107bd9dc6 16-Aug-2016 Chris Craik <ccraik@google.com> RecyclerView item prefetching

bug:27106058

If item inflation or binding are expensive, having them block the
production of a frame can lead to jank/stuttering as frames with such
work fail to meet rendering deadlines.

RecyclerView will now query LayoutManagers for views in advance of them
coming onscreen during scrolls and flings. These views are prefetched
into the Recycler cache during the UI thread's idle time between handing
a frame off to RenderThread, and the start of the next frame.

Change-Id: If3e485231243c188efd4cf3e512b9e8e13a50d47
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/BaseLinearLayoutManagerTest.java
c587f7dba5a337169e854e235da59f595255d6cc 20-Jun-2016 Aga Madurska <amad@google.com> Add an OnFlingListener to the RecyclerView.

This enable custom fling implementations and
is used to implement expose a snapping API
to developers.

Bug: 28169210
Change-Id: I09ffcab384eb69338df1fcc5f8d1d2a0d1191a57
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/BaseLinearLayoutManagerTest.java
e12dfa03641ad9cf0ddf272675bbe7d1198adbfd 11-Jul-2016 Aurimas Liutikas <aurimas@google.com> Stop using a several deprecated methods/constants.

- Swap FILL_PARENT with MATCH_PARENT
- Stop using ViewCompat#getOverScrollMode and related constants
- Clean up some unused import statements.

Bug: 30074170

Change-Id: Iaafd5415ee69181cc900a7fa971cdd6f5a20c6ce
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/BaseLinearLayoutManagerTest.java
66826566020afc8d11f183cf3fe443ac0a022384 05-Apr-2016 Yigit Boyar <yboyar@google.com> Test stability improvements

* Fix wait for layout's idle wait to ensure RV's layout is complete
* Made main thread exception private to have more strict control
around its usage

Change-Id: I40d414538c16459400fe6460a638848de9ee5597
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/BaseLinearLayoutManagerTest.java
4143554adb9b31b700b6876a251a64419e6111e2 10-Dec-2015 Yigit Boyar <yboyar@google.com> RecyclerView Automatic WRAP_CONTENT support

This CL adds support for wrapping content for RecyclerView while
supporting predictive animations.

It is an opt-in API which is off by default because these changes
will change the callback flow, especially will start calling
LayoutManager#onLayout when RecyclerView#onMeasure is called.

See LayoutManager#setAutoMeasureEnabled for API details.

All built in LayoutManagers support WRAP_CONTENT using this new
mechanishm.

Bug: 22508392

Change-Id: I6e010f8807e9d2fa379dd52493b2d8340b8c65de
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/BaseLinearLayoutManagerTest.java
0a017072206f93474ccd2706e7983c2ff778b904 07-Jan-2016 Yigit Boyar <yboyar@google.com> Move all RecyclerView tests to Junit4

This CL moves all RecyclerView tests to Junit4 and uses
the new ActivityTestRule instead of ActivityInstrumentationTest.

Bug: 24494874
Change-Id: I049d8b1ac7869a6af13a3ee7905d6dd1f6eb418b
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/BaseLinearLayoutManagerTest.java
999c3976674d20b0de5425490bdfe7415b9c6af2 30-Dec-2015 Yigit Boyar <yboyar@google.com> Divide LinearLayoutManager tests

LLM has many tests that test different configuration variations.
For instance, for saved state, it tests around 600 configuration
variations. Running all of these in a single test call makes test
runner very unhappy.

This CL moves such methods into separate parameterized test classes.
It also updates testing dependencies to get these new features.

If this works well with test runners, I'll divide other layout manager
tests as well.

The only downside is that tests run a lot slower due to new activiy
creation for each but it is definitelly better given the isolation
benefit.

Bug: 24494874
Change-Id: I0e9a5baba2ff8e3aedc5868a89db86499a98c7ae
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/BaseLinearLayoutManagerTest.java