History log of /frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/test/RecyclerViewTest.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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/test/RecyclerViewTest.java
754cb29c50f09a83251dd4bb633ba445b2411adb 27-Sep-2016 Aurimas Liutikas <aurimas@google.com> Switch from deprecated size annotations to new ones.

Switching from android.test.suitebuilder.annotation.*Test
to android.support.test.filters.*Test.

Bug: 30074170
Test: manual - ran small appcompat tests, they still run and pass
Change-Id: Idce58b988c8e1a809f7f5fae67e0e235159d9fc5
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/test/RecyclerViewTest.java
f3c39cb89a925a2315354116bd012a2e41cebac8 04-Jun-2016 Yigit Boyar <yboyar@google.com> Read clip to padding from attrs

GetClipToPadding is API 21 so RecyclerView steals that
vlaue by overriding setClipToPadding and tracking the
value itself.

Unfortunately, when clipToPadding is defined in the XML and set
by the parent's constructor, RV's field initialization was overriding
the value.
Apperantly, the R.attr.clipToPadding is from API 1
so we can use it to read the value (getter is from 21).

Bug: 29123702
Bug: 26779229
Change-Id: I0521413bbf81c6c5428e7305eefa838c988fc018
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/test/RecyclerViewTest.java
d8d42d52f8ae53107ffa849b86496650182e24b8 13-Apr-2016 Yigit Boyar <yboyar@google.com> RecyclerView focus search improvements

This CL fixes a couple of bugs in RecyclerView's focus search
handling.
* Built in layout managers were handling focus FWD/BCK wrong if
the layout is RTL.

* RecyclerView was not letting the focus leave RecyclerView if
focus FWD/BCK is called and RV does not have more children in
that direction. It was going back to the top of the list instead
of letting the view system give focus to the next view outside RV.

* RecyclerView was losing focus when focus FWD/BCK is called and
RecyclerView has more children to layout but they are not laid
out. In this case, focus was escaping the RecyclerView because
it was not laying out new children in the focus direction because
it already has some valid candidates. In this case, RecyclerView's
candidates would be overridden by other views outside the
RecyclerView.

Bug: 27222294
Change-Id: Ia5583c21df0a354d53c013aa76c4f9b475240c1f
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/test/RecyclerViewTest.java
aa6e1d7fa3c1fb0f501ed58332b4cc584522df7f 21-Mar-2016 Chris Banes <chrisbanes@google.com> Make android:nestedScrollingEnabled work in RV

BUG: 26351728
Change-Id: Idc579aadfa729955f63b71b8f6238be9ad9f7db3
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/test/RecyclerViewTest.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/test/RecyclerViewTest.java
f1b288ec2104488f4a92e911b0ab80c8f0f3e9d1 28-Dec-2015 Yigit Boyar <yboyar@google.com> Add test size annotations to RecyclerView Tests

Bug: 24494874
Change-Id: I0e7606d1c55017dc17467155372b708a0b1ea36d
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/test/RecyclerViewTest.java
ceb1d0ab9e22f5a48b72e9850f713be60311c516 24-Sep-2015 Yigit Boyar <yboyar@google.com> Make SavedState public

RecyclerView's SavedState was not public which breaks unparcelling
on cold launch because Parcel cannot access the CREATOR. This CL
makes it public and hides.

Bug: 24338617
Change-Id: Ifd4351935c60cc7a0f903b730a14324bbfc4cfdc
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/test/RecyclerViewTest.java
ec494eb6490aae36981351d80c778031efcf2ebe 04-May-2015 Yigit Boyar <yboyar@google.com> Make constructor accessible before calling

ART fixed newInstance method's accessibility checks which means if
provided class/method is not accessible; RecyclerView will crash.

This CL makes RecyclerView call setAccessible(true) before calling
the constructor to avoid any issues after new ART is released.

Bug: 20824258
Change-Id: Iea114b8265720f99d95a1486d692e7e787746f8b
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/test/RecyclerViewTest.java
0194ed84ad6f1d3d489db52b9431fa93a7697b50 16-Apr-2015 Deepanshu Gupta <deepanshu@google.com> Revert "Revert "Inflate RV attr to create the layout manager.""

This reverts commit 4d7dbfd2b24b8ebc49d3be5e0b5cbac76b2751ed.
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/test/RecyclerViewTest.java
4d7dbfd2b24b8ebc49d3be5e0b5cbac76b2751ed 14-Apr-2015 Yigit Boyar <yboyar@google.com> Revert "Inflate RV attr to create the layout manager."

This reverts commit 044b5b61e962367ccfc80250676eb98c86910877.
All dependent projects has to be changed to include RV resources before this can be merged.

Change-Id: I3d0af4345f9d838cc53d7ce34d81280cc7499760
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/test/RecyclerViewTest.java
044b5b61e962367ccfc80250676eb98c86910877 26-Mar-2015 Deepanshu Gupta <deepanshu@google.com> Inflate RV attr to create the layout manager.

Make RecyclerView more toolable. Add a custom attribute (layoutManager)
which accepts the class name of the LayoutManager to be used. The
LayoutManager specified should have a default constructor or a
constructor with the signature: (android.content.Context,
android.util.AttributeSet, int, int).

Example usage:
<android.support.v7.widget.RecyclerView
android:layout_width="match_parent"
android:layout_height="match_parent"
res_auto:layoutManager="LinearLayoutManager"/>

<android.support.v7.widget.RecyclerView
android:layout_width="match_parent"
android:layout_height="match_parent"
res_auto:layoutManager=".CustomLayoutManager"/>

(res_auto is is the namespace prefix for
http://schemas.android.com/apk/res-auto)

Bug: 19780401
Change-Id: I46b26fce28c5b79b3a1e4321cf5c1e54ad089a5e
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/test/RecyclerViewTest.java