9c0ad7d5adfbe51d85adcbc056b6183095d8aaed |
|
29-Nov-2016 |
Keyvan Amiri <keyvana@google.com> |
Made unfocusable views in RecyclerView visible when using key navigation This CL handles the new scrolling strategy for unfocusble views in 2 major scenarios: 1. When using DPAD navigation, the unfocusable views that went out-of-bounds never became visible again. This was because RV relied on requestChildFocus callback from framework, which wasn't triggered for unfocusable items. 2. if the scrolling distance between two consecutive focusable items was greater than a third of a page, the scrolling got stuck. This change increases this distance to at least one full page. All LayoutManagers' onFocusSearchFailed are reimplemented to handle the new logic. Fixes: 33117253 Test: ./gradlew support-recyclerview-v7:connectedCheck -Pandroid.testInstrumentationRunnerArguments.class=android.support.v7.widget.LinearLayoutManagerTest ./gradlew support-recyclerview-v7:connectedCheck -Pandroid.testInstrumentationRunnerArguments.class=android.support.v7.widget.GridLayoutManagerTest ./gradlew support-recyclerview-v7:connectedCheck -Pandroid.testInstrumentationRunnerArguments.class=android.support.v7.widget.StaggeredGridLayoutManagerTest ./gradlew support-recyclerview-v7:connectedCheck -Pandroid.testInstrumentationRunnerArguments.class=android.support.v7.widget.ViewBoundsCheckTest Change-Id: I0c4dd4ab3ee51ff99f30e1a4de11bda6920dab43
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/BaseStaggeredGridLayoutManagerTest.java
|
613079c6ece985c910852456fbff5dc9532df646 |
|
08-Feb-2017 |
Aurimas Liutikas <aurimas@google.com> |
Revert "Made unfocusable views in RecyclerView visible when using key navigation" ag/1865310 caused tests to start flaking. This reverts commit 530bca4dc2f96336c1169d993384b7884238d71e. Bug: 33117253 Change-Id: I0b7522f1abc6d9574e98bc6062a407d3418c37d0
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/BaseStaggeredGridLayoutManagerTest.java
|
530bca4dc2f96336c1169d993384b7884238d71e |
|
29-Nov-2016 |
Keyvan Amiri <keyvana@google.com> |
Made unfocusable views in RecyclerView visible when using key navigation This CL handles the new scrolling strategy for unfocusble views in 2 major scenarios: 1. When using DPAD navigation, the unfocusable views that went out-of-bounds never became visible again. This was because RV relied on requestChildFocus callback from framework, which wasn't triggered for unfocusable items. 2. if the scrolling distance between two consecutive focusable items was greater than a third of a page, the scrolling got stuck. This change increases this distance to at least one full page. All LayoutManagers' onFocusSearchFailed are reimplemented to handle the new logic. Fixes: 33117253 Test: ./gradlew support-recyclerview-v7:connectedCheck -Pandroid.testInstrumentationRunnerArguments.class=android.support.v7.widget.LinearLayoutManagerTest ./gradlew support-recyclerview-v7:connectedCheck -Pandroid.testInstrumentationRunnerArguments.class=android.support.v7.widget.GridLayoutManagerTest ./gradlew support-recyclerview-v7:connectedCheck -Pandroid.testInstrumentationRunnerArguments.class=android.support.v7.widget.StaggeredGridLayoutManagerTest ./gradlew support-recyclerview-v7:connectedCheck -Pandroid.testInstrumentationRunnerArguments.class=android.support.v7.widget.ViewBoundsCheckTest Change-Id: I1d1fb0fa5e3d274840a1907e604749c6a1dbd447
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/BaseStaggeredGridLayoutManagerTest.java
|
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/BaseStaggeredGridLayoutManagerTest.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/BaseStaggeredGridLayoutManagerTest.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/BaseStaggeredGridLayoutManagerTest.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/BaseStaggeredGridLayoutManagerTest.java
|
febbd2db61780fb43c70b036a598b63a3465c7c4 |
|
29-Sep-2016 |
Yigit Boyar <yboyar@google.com> |
Fix SGLM test's child matching This CL fixes a bug in SGLM tests' child bound capturing logic where it would decide to ignore a child even though it is still withing bounds wrt SGLM. Bug: 31457802 Test: Failing test now passes on N4 Change-Id: Ifeacc83cf9e5a346c1c6a9dabf61d089c70479bb
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/BaseStaggeredGridLayoutManagerTest.java
|
31f688b7ce44ea1855b2f2d13680977611987583 |
|
22-Sep-2016 |
Aurimas Liutikas <aurimas@google.com> |
Remove more spaces from parameterized test names. Spaces cause issues with our continious test runner Test: Ran StaggeredGridLayoutManagerBaseConfigSetTest on API 21 locally. Change-Id: I896a9c46d61915abe84683eb4247e39d2c1957a1
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/BaseStaggeredGridLayoutManagerTest.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/BaseStaggeredGridLayoutManagerTest.java
|
1ce43e3fefb07662431e9fffe62c40242a52cac6 |
|
27-Aug-2016 |
Chris Craik <ccraik@google.com> |
StaggeredGridLayoutManager prefetching bug:27106058 Change-Id: I703284942a50b7b08ac89605a28944b3b0b0281e
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/BaseStaggeredGridLayoutManagerTest.java
|
a810d8b02435915c665ee36128ab21e4f4c76d64 |
|
09-Aug-2016 |
Aga Madurska <amad@google.com> |
Make the StaggeredGridLayoutManagerSnappingTest more stable. Bug:30577506 Change-Id: I82fe17a6dd85eec868f529771da0762b12377d67
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/BaseStaggeredGridLayoutManagerTest.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/BaseStaggeredGridLayoutManagerTest.java
|
8cf399b2e813234a1a603df3575c2dcdfa38dc9e |
|
07-Apr-2016 |
Yigit Boyar <yboyar@google.com> |
OnLayoutCompleted API for LayoutManager This CL introduces a new LayoutManager API: onLayoutCompleted. This new method is called after a layout calculation is completed. It is a good checkpoint for layout managers to clear any layout related data (e.g. pending scroll position). We also use this new API to fix a bug where scrollToPosition may not work if the LayoutManager is measured multiple times which is likely to be triggered if it is inside a Dialog. Bug: 27765270 Change-Id: Ib576ff609dcedc1e9978551c009d00d5c457665a
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/BaseStaggeredGridLayoutManagerTest.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/BaseStaggeredGridLayoutManagerTest.java
|
bc61003e6a10872c23f0de155456cb2fbeef31a7 |
|
01-Mar-2016 |
Yigit Boyar <yboyar@google.com> |
Get direct child in focus failure This CL fixes a bug in SGLM where if a it is called with a sub child of an item view, it tries to get the LayoutParams and fails to cast it. This CL makes sure SGLM uses the direct child while doing these controls. Other layout managers already handle this. Bug: 27153378 Change-Id: If7ba2012812c40b8898d1876e6cf68a5f818736c
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/BaseStaggeredGridLayoutManagerTest.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/BaseStaggeredGridLayoutManagerTest.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/BaseStaggeredGridLayoutManagerTest.java
|