• Home
  • History
  • Annotate
  • only in /frameworks/support/v4/tests/java/android/
History log of /frameworks/support/v4/tests/java/android/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
cef09fee2126f901aa164f6e89c370ab81cff1b3 13-May-2016 Adam Powell <adamp@google.com> Add Fragment#onAttachFragment for parent fragments

Add a matching onAttachFragment method to Fragment to match the
fragment host version.

Bug 28760393

Change-Id: I1dbcc336e4f191717add0dc83d48db93baa953fa
upport/v4/app/FragmentLifecycleTest.java
upport/v4/app/StrictFragment.java
4e3d8b3449eb02543735734995b7d35da8619e87 11-May-2016 Adam Powell <adamp@google.com> Merge "Less lazy child FragmentManager creation" into nyc-dev
fd15fbacc1d0cb92f2edf72137e4940be2547aa4 11-May-2016 Adam Powell <adamp@google.com> Less lazy child FragmentManager creation

Fix a bug where child FragmentManagers moving too lazily into the
CREATED state and beyond caused child fragments to not be
attached/created when expected.

Bug 25019275

Change-Id: Ia16f6d9075e6b611d3363ad1eac6408b896604bb
upport/v4/app/FragmentLifecycleTest.java
7e866aba6258c1c7c2e0e9b303d065f3ed88e841 19-Apr-2016 Clara Bayarri <clarabayarri@google.com> Tests for startIntentSenderForResult

Bug: 27700608
Change-Id: I778cc8f6401cd6bec22efd2d3f7873d1a4f8d536
upport/v4/app/FragmentReceiveResultTest.java
upport/v4/app/test/FragmentResultActivity.java
9bce10738b97c2cc5b4cb2069210badc355a24da 28-Apr-2016 Chris Banes <chrisbanes@google.com> resolve merge conflicts of 19ec6b7 to nyc-dev

Change-Id: I256a6d5cca7433611522c076eb5639f525126df5
19ec6b7415380c24af790d3286b5b9027f7c778a 26-Apr-2016 Chris Banes <chrisbanes@google.com> Merge "Allow back presses to work in FragmentActivity" into mnc-ub-dev
5f5ffb9bea7e6db394d6879f37ab1aadb8d2fdeb 25-Apr-2016 Chris Banes <chrisbanes@google.com> resolve merge conflicts of 4519642 to nyc-dev

Change-Id: Iffcd2dec64d31ba297a1806c11d1e48116248dba
be678137d44778590a6220ae0ef13649e83363a9 21-Apr-2016 Chris Banes <chrisbanes@google.com> Tidy up DrawableCompat + VDC/AVDC calls

Currently DrawableCompat will wrap any drawable on
API < 22. As VDC supports tinting natively, we should
use that instead of wrapping.

This CL fixes this by extracting the calls to an marker
interface and making VDC + AVDC implement it.

Also tidied up the doc on DrawableCompat.wrap().

BUG: 28296684
Change-Id: I6e23db54aa10758b3c0a08e8d110210799453595
upport/v4/graphics/DrawableCompatTest.java
upport/v4/graphics/TestTintAwareDrawable.java
64bea6abcefe2bb6f2de56aed795c138f6d70e65 18-Apr-2016 Chris Banes <chrisbanes@google.com> Allow back presses to work in FragmentActivity

Currently, FragmentActivity overrides onBackPressed()
to only pop off support fragments. This CL fixes this
by delegating to the framework onBackPressed().

BUG: 28186471
Change-Id: I888d203e196eaaed97c2afe1280375208f0aa3fa
upport/v4/app/FragmentReplaceTest.java
0906dafe25770e872a72f8abd2c044b0faef86d7 19-Apr-2016 Alan Viverette <alanv@google.com> Account for scroll offsets in ExploreByTouchHelper

Also, if the developer has explicitly specified bounds in screen, don't
overwrite them.

Bug: 25077663
Change-Id: I642602725d2bd8371be33b6dd05610e685b439e1
upport/v4/widget/ExploreByTouchHelperTest.java
upport/v4/widget/ExploreByTouchHelperTestActivity.java
2c212b241f5be167620707132f92588d767f01b1 08-Apr-2016 Aurimas Liutikas <aurimas@google.com> Merge "Small speed up of v4 tests by disabling window animations." into nyc-dev
ce575cc245932f59328900126d306538fcf69554 05-Apr-2016 Alan Viverette <alanv@google.com> Merge "Correct workaround for drawable references on API < 16" into nyc-dev
39666da345de0a19b86b547126b6932cf3aeedab 04-Apr-2016 Alan Viverette <alanv@google.com> Correct workaround for drawable references on API < 16

Also adds test.

Bug: 27727320
Change-Id: I8f6221e9cd38b59a49b588be742e0e3db7af04c1
upport/v4/content/ContextCompatTest.java
96cd95c37930d6d8f79ee8068991f9686c884f7a 30-Mar-2016 George Mount <mount@google.com> Add tests for Fragment animation saved state.

Bug 17487986

Change-Id: I8625e9a2a7916b72c63a41b31d51fa07d1773031
upport/v4/app/FragmentLifecycleTest.java
c917e2acb716bd2dea2a31ce712f3ab9d764ee83 23-Mar-2016 Adam Powell <adamp@google.com> Nested fragment test; all destroyed

Test that all fragments in a nested chain get onDestroy called

Change-Id: I16c0a33cde833a8b63bd9c77f00c95c1341eebc8
upport/v4/app/FragmentLifecycleTest.java
9375145b63d854c64aad99e6e50c5b7e5ba32b95 03-Mar-2016 Adam Powell <adamp@google.com> Fix bugs around restoring nested retained instance fragments

In a few configurations the child fragment state of a
retained-instance fragment would not be preserved correctly, leading
to child fragments not being restored. Clean this up along with live
state management issues that were leading to logged warnings during
normal fragment operation.

Bug 27371492
Bug 27477824

Change-Id: I6e86a7f0c158b7dea17b5c8d2b8275e3842b178b
upport/v4/app/FragmentLifecycleTest.java
39a21dcc947992baaa700181c08fbe8bb8f077d6 22-Mar-2016 Adam Powell <adamp@google.com> Fragment tests migrated from CTS

Add fragment lifecycle tests mirroring those in CTS for android.app
fragments.

Change-Id: Ib257daea5c268d75db3689476df74d72b7809dfc
upport/v4/app/FragmentLifecycleTest.java
upport/v4/app/StrictFragment.java
upport/v4/app/StrictViewFragment.java
upport/v4/app/test/EmptyFragmentTestActivity.java
342bf52da168f3e797827181abba535a0f4ceb45 19-Mar-2016 George Mount <mount@google.com> Add test for view order when adding fragments.

Bug 27610818

Change-Id: Ia83b0668ad1429296d135a7d54684adedd28c8ea
upport/v4/app/FragmentTest.java
a0926f64b419cfd95b7d092f7bd6bee818ccc7e1 14-Mar-2016 George Mount <mount@google.com> Fix transition tests execution on older android versions

Bug 27162448

Change-Id: I79de6fd97c2e18f9f05bfc23a8f1f58518182a67
upport/v4/app/FragmentTransitionTest.java
upport/v4/app/test/FragmentTestActivity.java
d1a4e6d0a1ac83ad51563044059cbe75ed7b15c6 11-Mar-2016 Aurimas Liutikas <aurimas@google.com> Small speed up of v4 tests by disabling window animations.

Change-Id: I89aab3661cb96c7aae007da6325a21219fba3fa3
upport/v4/view/ViewPropertyAnimatorCompatTest.java
71e4b67c03aac59452e02a4152efafcf6e94ee7f 10-Mar-2016 Aurimas Liutikas <aurimas@google.com> Add a basic SwipeRefreshLayout test.

Change-Id: Ie2eba867ce7c13d090d00af7f5d565cc12a1d20a
upport/v4/widget/SwipeRefreshLayoutActions.java
upport/v4/widget/SwipeRefreshLayoutActivity.java
upport/v4/widget/SwipeRefreshLayoutTest.java
134f9096b97a77898c34c4f4751c2fb687b191fe 09-Mar-2016 Chris Banes <chrisbanes@google.com> resolve merge conflicts of c3b9589f61 to nyc-dev

Change-Id: I2b058bc6a71a4b69e62280e8dc5e8f11357e7978
c3b9589f61cbfda8c60344a47f8f87c0ded98554 09-Mar-2016 Chris Banes <chrisbanes@google.com> Make sure that DrawableWrapper sets a Callback

Currently, we don't always set a callback on the wrapped
drawable. This CL fixes this, and adds a test to make
sure.

BUG: 27563606
Change-Id: If15606b6a19627249ef5e64a299e51aad3ef0f29
upport/v4/graphics/DrawableCompatTest.java
95b47440a7a8417c7e4000c82bda81ed57279725 01-Mar-2016 George Mount <mount@google.com> Merge "Clear child fragment manager after it is destroyed." into nyc-dev
59b0cd6a6455f4ba8dda349364de518df4da49f2 01-Mar-2016 George Mount <mount@google.com> Merge "Ensure that fragments are created in added order." into nyc-dev
a0af9ab1fbfa7f4e1c1d90278ec3ff3167a7ec60 26-Feb-2016 Chris Banes <chrisbanes@google.com> resolve merge conflicts of 6dc05991fa to nyc-dev

Change-Id: Icdd6cf18ea09242e94fb396ddf4f3e00bdb6808e
4da36b0dfa8436b197314094337fa3102fcca1bc 25-Feb-2016 Chris Banes <chrisbanes@google.com> Fix issue with DrawableCompat.wrap() + mutation

The following is workaround for issues for certain
DrawableContainers on some API levels. They expect
getConstantState() to always return non-null, which
will only happen after our wrapper has been mutated.

Since most Drawables provided to wrap() will be from
Resources, they will nearly always have been mutated.
Therefore the wrapper should act as it has been too,
and return a constant state.

BUG: 27353857
Change-Id: Ib244f8f26f2e09979885d1fe2b84f0ec55cf2f02
upport/v4/graphics/DrawableCompatTest.java
4706c089880423ee5929d4635c6dfc5c3151b20f 17-Feb-2016 George Mount <mount@google.com> Clear child fragment manager after it is destroyed.

Bug 26945643

After a child fragment manager has been destroyed, it should not
be reused because it is no longer attached to the host. Clearing
it ensures that it will be recreated when it is needed again when
the fragment has been reattached.

Change-Id: I579abf570beb62df3c3fd5ade3b74506f304b2aa
upport/v4/app/FragmentTest.java
a674400277f88005ad43df76e42a18fcc067102e 16-Feb-2016 George Mount <mount@google.com> Ensure that fragments are created in added order.

Bug 26894030

Change-Id: I8e477038547f5a1a0edefb34737a1759db5676fa
upport/v4/app/FragmentTest.java
bbce0ff235de17f18d06612fcaea36be16147898 17-Feb-2016 Chris Banes <chrisbanes@google.com> Merge "Fix DrawableCompatTest" into mnc-ub-dev
am: 0c4ab17c5e

* commit '0c4ab17c5e0f416f1ecda97c655ca3df0832c4e3':
Fix DrawableCompatTest
be61247c92b085602d3f671be6f506e9813aba19 16-Feb-2016 Chris Banes <chrisbanes@google.com> Fix DrawableCompatTest

We were checking the bounds on the wrong drawable

BUG: 27165368
Change-Id: Ia7f46bcd39590ba2a22618dc04b6dbcd8beccbfe
upport/v4/graphics/DrawableCompatTest.java
b91c9d54d751241ffc89ed42610fa23591163826 12-Feb-2016 Kirill Grouchnikov <kirillg@google.com> Merge "Convert tests to consistent structure" into nyc-dev
881c193f64d35ea2a106a2f76c30bd711a971bb1 12-Feb-2016 Kirill Grouchnikov <kirillg@google.com> Convert tests to consistent structure

Use JUnit4 runner (from Espresso core jar), @Before annotation
for initial setup, @Test for all test methods. Move away from
the deprecated AndroidTestCase base class.

Bug: 27155526
Change-Id: Iffb3583fafbd1c2f967dc2461320f3132d10da7a
upport/v4/content/ContextCompatTest.java
upport/v4/content/res/ResourcesCompatTest.java
upport/v4/graphics/ColorUtilsTest.java
upport/v4/graphics/DrawableCompatTest.java
upport/v4/text/BidiFormatterTest.java
upport/v4/view/ViewPropertyAnimatorCompatTest.java
upport/v4/view/VpaActivity.java
upport/v4/widget/DonutScrollerCompatTest.java
upport/v4/widget/GingerbreadScrollerCompatTest.java
upport/v4/widget/IcsScrollerCompatTest.java
upport/v4/widget/ScrollerCompatTestBase.java
upport/v4/widget/TestActivity.java
d5bac09cd05be314f4c38435572a3fc01c2c8d4f 12-Feb-2016 Kirill Grouchnikov <kirillg@google.com> Convert tests to consistent structure

Use JUnit4 runner (from Espresso core jar), @Before annotation
for initial setup, @Test for all test methods. Move away from
the deprecated AndroidTestCase base class.

Also add a few missing copyright headers in manifest files.

Change-Id: I30b636980d60e5ed273015c943bc4bbc37272399
upport/v4/view/GravityCompatTest.java
upport/v4/view/MarginLayoutParamsCompatTest.java
upport/v4/view/ViewCompatTest.java
0b1d610df489387e30d2fa44d61d92195fccebb6 10-Feb-2016 Kirill Grouchnikov <kirillg@google.com> Merge "Complete the testing coverage of ViewPager\'s page change listener." into mnc-ub-dev am: 301a0e370b
am: 2f966e9fad

* commit '2f966e9fadbdd9fd72620cc4a1ffd694cda2ecad':
Complete the testing coverage of ViewPager's page change listener.
5d4636f6c702142e33e6fc201fc7e3e1daa6c918 09-Feb-2016 Kirill Grouchnikov <kirillg@google.com> Complete the testing coverage of ViewPager's page change listener.

Verify consistency of callbacks to OnPageChangeListener.onPageScrolled
across a variety of interactions with immediate page changes, smooth
page changes and swipe-initiated page changes.

Change-Id: Ie3a9b53ac3635ebe7bbd49f28ff227023711a10d
upport/v4/view/BaseViewPagerTest.java
c6f69fe8ce5c8b8fad943106a4d60ff83a657a74 09-Feb-2016 Kirill Grouchnikov <kirillg@google.com> Merge "Testing scroll state changes in ViewPager" into mnc-ub-dev am: 56fc7c3927
am: 77cb72c441

* commit '77cb72c4411edab3953be52aa4d3607cd2fd1417':
Testing scroll state changes in ViewPager
bd80366a71263e28f82f3b552b604c8e2fe43edc 08-Feb-2016 Kirill Grouchnikov <kirillg@google.com> Testing scroll state changes in ViewPager

Change-Id: I014422c6ea6d6b7648a152035149921200fbabdb
upport/v4/view/BaseViewPagerTest.java
bba0c1fbef552d738d577437a829b45efd3f06a0 05-Feb-2016 Kirill Grouchnikov <kirillg@google.com> Merge "Tests for ViewPager\'s onPageScrollStateChanged callbacks" into mnc-ub-dev am: 6b6337f15d
am: 3f8c123334

* commit '3f8c12333472d50e25de6580bf48ee7837da2b3d':
Tests for ViewPager's onPageScrollStateChanged callbacks
b4b862fb02eea897bd2dcc72a928d32c95298f81 05-Feb-2016 Kirill Grouchnikov <kirillg@google.com> Tests for ViewPager's onPageScrollStateChanged callbacks

Change-Id: Iafc3a7d82035c97c356627e3f38475ddbace13c6
upport/v4/view/BaseViewPagerTest.java
c077b4cd990a9f220a27ad5eca04828e17136064 14-Jan-2016 Adam Powell <adamp@google.com> Permit setRetainInstance(true) on nested fragments

Save arbitrarily nested fragments across config changes as
nonconfiguration objects. This permits the use of retain-instance
child fragments as arbitrary opaque dependencies within other
fragments.

Change-Id: Id4f216bdc2ccbfba6410661626329f07b5015349
upport/v4/app/NestedFragmentRestoreTest.java
upport/v4/app/NestedFragmentTest.java
upport/v4/app/test/FragmentTestActivity.java
efb7bcfc5e1f2d0b579d8420fb98dc3ff959fe8f 03-Feb-2016 Daniel Resnick <danielresnick@google.com> Merge "Allow onActivityResult(...) to be dispatched to nested Fragments." into mnc-ub-dev
a76a4339be2f27431a167381187c3f0b0d08f1b7 29-Jan-2016 Daniel Resnick <danielresnick@google.com> Allow onActivityResult(...) to be dispatched to nested Fragments.

This fixes https://code.google.com/p/android/issues/detail?id=40537
by allowing onActivityResult(...) calls to be dispatched to the
correct Fragment even if it is nested in another Fragment.

Change-Id: I4b80c2eb1a83de93b95cb26feca5052aa55c9961
upport/v4/app/NestedFragmentTest.java
upport/v4/app/test/FragmentTestActivity.java
74bad8b1e399a76ae850709cb000804613db3a4e 02-Feb-2016 Kirill Grouchnikov <kirillg@google.com> First pass for Mockito-powered listener logic in ViewPager tests.

Test callbacks to onPageSelected as we are changing the ViewPager
page selections - via API calls or via swiping between pages.

Change-Id: Iaaac45b1eab9d0a31515770da7cd89c0e08b1ca5
upport/v4/testutils/TestUtilsMatchers.java
upport/v4/view/BaseViewPagerTest.java
29212b535486a2f7c6dc7e35ede84f9fa4816e70 01-Feb-2016 Kirill Grouchnikov <kirillg@google.com> Remove flakiness from ViewPager "smooth" tests

Wrap all actions that change the current item in ViewPager
with a custom action that uses Espresso's idling resource
functionality to wait until the ViewPager transitions
into STATE_IDLE state.

This allows us to test flows where the ViewPager state changes
after the internal sliding animation completes.

Bug: 26003516
Change-Id: I0425355279b4c34252ad299342d3e97368aa0f2e
upport/v4/view/BaseViewPagerTest.java
upport/v4/view/ViewPagerActions.java
upport/v4/view/ViewPagerWithTabStripTest.java
upport/v4/view/ViewPagerWithTitleStripTest.java
8bee0e1cf14d321e25250c04dd2301ef1a98ffc5 28-Jan-2016 Chet Haase <chet@google.com> Fix onStart/EndAction() for ViewPropertyAnimatorCompat

These methods are meant to be single-action only (removed when they
are activated). That's the way they work on the framework; it was an oversight
to have them be persistent in the ICS version of the support library.

Issue #25764942 ViewPropertyAnimatorCompatICS end action is not cleared

Change-Id: I0825330c76cecf63960d79f74116acd99b874830
(cherry picked from commit fdd92b54cc21d9927ee89cf675cf4c90c306f24a)
upport/v4/view/ViewPropertyAnimatorCompatTest.java
upport/v4/view/VpaActivity.java
39e84476b45f10ed4929e307372d6f7a2103e9d5 25-Jan-2016 Kirill Grouchnikov <kirillg@google.com> Sync and cleanup pass over support-v4

* Add missing annotations on one TextViewCompat method and its
implementations
* Tighten annotation from IdRes to StyleRes on TextViewCompat's
setTextAppearance
* Switch a few v4 tests to JUnit4, activity rules and Espresso

Change-Id: Ia235b9c527173f0403432c59ba9206a174bf043f
upport/v4/BaseInstrumentationTestCase.java
upport/v4/BaseTestActivity.java
upport/v4/testutils/LayoutDirectionActions.java
upport/v4/testutils/TextViewActions.java
upport/v4/view/BaseViewPagerTest.java
upport/v4/view/GravityCompatTest.java
upport/v4/view/MarginLayoutParamsCompatTest.java
upport/v4/view/ViewCompatTest.java
upport/v4/view/ViewPagerActions.java
upport/v4/view/ViewPagerWithTabStripActivity.java
upport/v4/view/ViewPagerWithTabStripTest.java
upport/v4/view/ViewPagerWithTitleStripActivity.java
upport/v4/view/ViewPagerWithTitleStripTest.java
upport/v4/widget/TextViewCompatTest.java
upport/v4/widget/TextViewTestActivity.java
upport/v4/widget/test/TextViewTestActivity.java
2913b112d6089ea3e7ebe4a807394dd99f3ebc0f 12-Jan-2016 Adam Powell <adamp@google.com> Eagerly update fragment state when moving between states

Previously we would not set a fragment's new state until the move to a
new target state was fully complete. This causes problems when other
parts of the fragment manager infrastructure (such as lazily
initializing a child fragment manager) read that state while we're
dispatching a state change call to a fragment.

In this situation, adding a child fragment and then calling
executePendingTransactions on the child FragmentManager would not have
the intended effect, as the child FragmentManager would still be in
state INITIALIZING. The expected lifecycle callbacks to the child
fragment would then occur later.

Fix this by updating the fragment state as we go through each phase of
moveToState before we dispatch to the associated onState method,
matching our usual pattern of invoking onFoo methods after foo has
occurred. Delete the redundant resumed field as we now can use the
state directly.

Bug 25019275

Change-Id: Ia637c4d67f3752e8dd591ed9a53a783690e41d80
(cherry picked from commit 20735a45289fdad3d5d31228992e0dccd3d5dd4f)
upport/v4/app/ChildFragmentStateTest.java
upport/v4/app/test/FragmentTestActivity.java
c5cea33d2092d265a2b0806ca94400dc85ab5499 05-Jan-2016 Aurimas Liutikas <aurimas@google.com> Change fragment removal order for fragment replacement.

Before this patch it for loop was accessing mManager.mAdded elements using
an integer index and also removing the fragments from mAdded using
mManager.removeFragment().

Bug: 24693644
Change-Id: I20828ce83c8d22aad6ae7ce3dfe88dd3d7aa4e01
upport/v4/app/FragmentReplaceTest.java
89d63e9cbc1daf9e04ba6261cfd141e6dd68ec63 21-Nov-2015 Chris Banes <chrisbanes@google.com> Add tests for DrawableCompat wrap/unwrap

Change-Id: Ic4e6a1bfb54a6693414d6ac0999f582b4ac3a15f
upport/v4/graphics/DrawableCompatTest.java
daea069fe33cc750bcb733ebcb6206d2dcedae76 29-Dec-2015 Chris Banes <chrisbanes@google.com> Annotate other support library tests

- Added NO_DOCS files to other test folders
- All test APKs are copied (if they have tests) via
./gradlew assembleAndroidTest

I've left leanback out since they have a odd test project
hierarchy, and they'd probably need TV devices on the CI
server anyway.

BUG: 24494874

Change-Id: Iff25af777438e62f30b63843d89325d380cf7e1e
upport/v4/app/FragmentTransitionTest.java
upport/v4/graphics/ColorUtilsTest.java
upport/v4/text/BidiFormatterTest.java
upport/v4/widget/ScrollerCompatTestBase.java
27bd53d57ecc20d2736ef5f56f8764c930157554 17-Dec-2015 Chris Banes <chrisbanes@google.com> Moar ColorUtils!

- New blend color functions which can interpolate between
colors in various color spaces.
- New color space converters: XYZ and LAB

Change-Id: I75abad4e78afb40e8525302eef9d00f96f363a32
upport/v4/graphics/ColorUtilsTest.java
d04da2c0c83f5fd12df01d055ea1fe5cfccfa813 10-Dec-2015 Kirill Grouchnikov <kirillg@google.com> Merge "Added tests for interactive pager tab strip" into mnc-ub-dev
cac6006689cab12a5aa2f79ba68fb65467b3d77f 30-Nov-2015 Kirill Grouchnikov <kirillg@google.com> Testing ResourcesCompat.getDrawableForDensity

* Added unthemed and theme-aware tests for getDrawableForDensity
(with major caveats discussed in the linked bug).
* Switched order of existing assertEquals() calls for the correct
order of expected and actual values.

Bug: 25931811
Change-Id: Ica5056e93ea3761dc9bb47c0b4b7d4af048d6806
upport/v4/content/res/ResourcesCompatTest.java
upport/v4/testutils/TestUtils.java
59606ec8e4d812326448f0bf6acde5a0a167a958 09-Dec-2015 Kirill Grouchnikov <kirillg@google.com> Added tests for interactive pager tab strip

* Extracted tests that are agnostic of the interactive nature
of the tab strip into a new abstract base class. These will run
for both PagerTabStrip and PagerTitleStrip.
* Two new leaf classes to test that PagerTitleStrip is non
interactive and PagerTabStrip is interactive (clicks on titles
and clicks in between titles).

Change-Id: Ia3a1ffe23d2ec807638213cfcdc2cab63558189c
upport/v4/view/BaseViewPagerTest.java
upport/v4/view/ViewPagerActions.java
upport/v4/view/ViewPagerActivity.java
upport/v4/view/ViewPagerTest.java
upport/v4/view/ViewPagerWithTabStripActivity.java
upport/v4/view/ViewPagerWithTabStripTest.java
upport/v4/view/ViewPagerWithTitleStripActivity.java
upport/v4/view/ViewPagerWithTitleStripTest.java
94aac41fe03eec14d9a0dcfa7df6ea62f0885461 09-Dec-2015 Kirill Grouchnikov <kirillg@google.com> Merge "Additional tests for ViewPager - PagerTitleStrip" into mnc-ub-dev
d55d9e2da6065eb3f2e766a8a09b6b2b8fea84b5 08-Dec-2015 Kirill Grouchnikov <kirillg@google.com> Additional tests for ViewPager - PagerTitleStrip

* Also moved the generic matchers into TestUtilsMatchers as they
are not specific for ViewPager.

Change-Id: I1fc47a12d51851194296e0586f9fc175e7937dd0
upport/v4/testutils/TestUtilsAssertions.java
upport/v4/testutils/TestUtilsMatchers.java
upport/v4/view/ViewPagerMatchers.java
upport/v4/view/ViewPagerTest.java
bdfb4eaebe24e9b4478f4cad3fb12e68493ffd70 08-Dec-2015 Kirill Grouchnikov <kirillg@google.com> Complete test coverage for MarginLayoutParamsCompat.

* Includes a small constant check test for ViewCompat layout
constants.
* Includes expected / actual parameter swap on GravityCompat
contansts test.
* Includes a fix for some older devices in support library
class for one of the methods that relied on unset default
layout direction value.

Change-Id: If44394a5eb2df02c466db2d93d8212599d98656f
upport/v4/view/GravityCompatTest.java
upport/v4/view/MarginLayoutParamsCompatTest.java
upport/v4/view/ViewCompatTest.java
0945b2238447028b9d274cccccd7fc61042bf03b 24-Nov-2015 Kirill Grouchnikov <kirillg@google.com> GravityCompat.apply tests.

This is for the variant that doesn't get offsets. The tests
exercise all nine possible permutations of core horizontal /
vertical gravity constants, as well as additional six permutations
of two compat horizontal constants (start / end) with core vertical
constants.

Tests are split into two groups - LTR and RTL direction.

Change-Id: Iee287f3cb3173b680ad88779906b8c70a35a43b1
upport/v4/testutils/TestUtils.java
upport/v4/view/GravityCompatTest.java
a1f95ec10cc7e88dcc1c57c92ac5d0c37c2d9553 01-Dec-2015 George Mount <mount@google.com> Add test for Fragment Transition.

Bug 25375640
Bug 23688972

Change-Id: If2843092f40bb6cd59894868ef6bb86cdc3efeb9
upport/v4/app/FragmentTransitionTest.java
upport/v4/app/test/FragmentTestActivity.java
a5647c78730032f1de294e8e035f7d4e9ac94731 02-Dec-2015 Kirill Grouchnikov <kirillg@google.com> Second pass for Espresso-powered ViewPager tests.

* Rename ViewPagerActions to ViewPagerUtils and add two matchers.
* Move the adapter class from activity to the test and extract
common functionality to a base class.
* Have two specific adapter implementations for testing adapter
switch at runtime.
* Add a test method to test for ViewPager page content.
* Add another test method to test for ViewPager page content after
setting a new adapter.

Change-Id: I6f39b53673bbf2e10dd14d9bd749154edef85215
upport/v4/testutils/TestUtils.java
upport/v4/view/ViewPagerActions.java
upport/v4/view/ViewPagerActivity.java
upport/v4/view/ViewPagerMatchers.java
upport/v4/view/ViewPagerTest.java
0c3a79a27523f789823919685a2566eaa8839615 02-Dec-2015 Kirill Grouchnikov <kirillg@google.com> Merge "First pass for basic testing of ViewPager with Espresso" into mnc-ub-dev
5612cde662642ab64dadb220d2833f29f5103798 30-Nov-2015 Kirill Grouchnikov <kirillg@google.com> Additional tests for ContextCompat.

* Swap actual vs expected in existing tests to follow the Assert
method documentation.
* Add testing for ContextCompat.checkSelfPermission

Change-Id: I2f347f8893eb037c24d3fac1b135cf5284a9cc74
upport/v4/content/ContextCompatTest.java
5427189579423bcb9f341534f030ce26a2a79d6d 01-Dec-2015 Kirill Grouchnikov <kirillg@google.com> First pass for basic testing of ViewPager with Espresso

Change-Id: I83d27e649e60c8e6e3103cd04220fc07e2a815c6
upport/v4/view/ViewPagerActions.java
upport/v4/view/ViewPagerActivity.java
upport/v4/view/ViewPagerTest.java
52d3e9e6fa89232ef5f1e7d64c68bd25fbeac0fe 30-Nov-2015 Kirill Grouchnikov <kirillg@google.com> Merge "Refine TextViewCompat.setTextAppearance logic." into mnc-ub-dev
9176979f5317552e473fff0cf1ea9e87bf59d7d3 25-Nov-2015 Kirill Grouchnikov <kirillg@google.com> Refine TextViewCompat.setTextAppearance logic.

On older devices using italic style doesn't get "reflected"
in the typeface set on TextView. Use skewTextX as the fallback.

Bug: 25866034
Change-Id: Ica36993a1e7f9b0ba823b5242be9ae864de2347e
upport/v4/widget/TextViewCompatTest.java
bc927aa4ec8007a8faaa5672f4b3c7ef59c7e36f 25-Nov-2015 Kirill Grouchnikov <kirillg@google.com> Context/ResourcesCompat getDrawable tests.

Change-Id: I2b09d391e19c553af03d04ad037efccbe7fc024d
upport/v4/content/ContextCompatTest.java
upport/v4/content/res/ResourcesCompatTest.java
upport/v4/testutils/TestUtils.java
upport/v4/widget/TextViewCompatTest.java
83f9bf14ae854789b09b651ea7692cb2377ebd30 25-Nov-2015 Kirill Grouchnikov <kirillg@google.com> Merge "First pass for ContextCompat tests." into mnc-ub-dev
8672bde8571de70e52def363209bb6064bfa5113 25-Nov-2015 Kirill Grouchnikov <kirillg@google.com> Merge "Tweak the expected result computation for TextViewCompat." into mnc-ub-dev
92ea6b273d637460310f0f1b79d8a7b658789f8c 25-Nov-2015 Kirill Grouchnikov <kirillg@google.com> First pass for ContextCompat tests.

Same testing as for ResourcesCompat, but with color theming
coming from the themed activity.

Change-Id: I2871cc4f21cd0a9bc3cf1868c355b55adb531c88
upport/v4/ThemedYellowActivity.java
upport/v4/content/ContextCompatTest.java
4d83305f6b84175b5167d16e64cee01c4d3e1176 23-Nov-2015 Kirill Grouchnikov <kirillg@google.com> Complete the test coverage for TextViewCompat

* Extract a couple of useful util methods into TestUtils
* Add few new resources for testing
* Add testing for setCompoundDrawablesRelativeWithIntrinsicBounds
methods in TextViewCompat

Change-Id: I2af4ce96bca7e5b13565e2a034cf831f694e4213
upport/v4/testutils/TestUtils.java
upport/v4/widget/TextViewCompatTest.java
698fb2ad5c78bfd5eff8b66cfcffd2636e08aa87 25-Nov-2015 Kirill Grouchnikov <kirillg@google.com> First pass for testing ResourcesCompat.

Change-Id: I14967b4c87743e523e309108ad333f76cf4a5070
upport/v4/content/res/ResourcesCompatTest.java
1842617039e9ff46074da7d2c5b071a4653e2afb 24-Nov-2015 Kirill Grouchnikov <kirillg@google.com> Tweak the expected result computation for TextViewCompat.

TextView uses getDimensionPixelSize to process the android:textSize
attribute in both the constructor (initial parsing) and setTextAppearance
implementation.

Using getDimension caused the test to fail on higher resolution screens
such as N5X.

Change-Id: I3703a0e468c7cc5f3ac7bfac502104ca63cc1606
upport/v4/widget/TextViewCompatTest.java
7899d6f64ae6585a79c7c1844d4a5e8f894bf2d7 23-Nov-2015 Kirill Grouchnikov <kirillg@google.com> First pass for tests on GravityCompat.

Change-Id: Ide017fe54c5b730a6c4f2aeffb824d0950e53395
upport/v4/view/GravityCompatTest.java
c5b4d17e3c2877bd2888cd5314d0a624fff9b49d 20-Nov-2015 Kirill Grouchnikov <kirillg@google.com> RTL-aware test for TextViewCompat

* Switch support v4 tests to be compiled with current SDK.
* That enables using android:supportsRtl on the <application> element
to enable testing RTL-aware APIs.
* Add RTL-aware test for TextViewCompat.setCompoundDrawablesRelative.

Bug: 25796123
Change-Id: Ie8a723626b4870e846b5a4d950f1c59a6bf74423
upport/v4/widget/TextViewCompatTest.java
156b807bb159a532412685e6b7cfd4f0a61d1b5e 19-Nov-2015 Kirill Grouchnikov <kirillg@google.com> Extend TextViewCompat testing with compound drawables.

Change-Id: I13fd26c10629f60f71e12de15cc9c097b96c5386
upport/v4/widget/TextViewCompatTest.java
92ad16973b68f0586c585da428946d851a7611bb 19-Nov-2015 Kirill Grouchnikov <kirillg@google.com> Second pass for testing TextViewCompat.

Change-Id: Ide628372b0d30c630dd3be11ae98c764413a80b1
upport/v4/widget/TextViewCompatTest.java
d9d9aec0e671cf0db89a8b58a81b1980834f1dc2 18-Nov-2015 Kirill Grouchnikov <kirillg@google.com> Initial proof-of-concept pass for TextViewCompat host testing.

Change-Id: I6c194dac02ec24b0e5f77caa78461713324a4baa
upport/v4/widget/TestActivity.java
upport/v4/widget/TextViewCompatTest.java
upport/v4/widget/test/TextViewTestActivity.java
02aa201ba85a08f31f0fa08b8302bdb9d47c22e8 24-Jul-2015 Chris Banes <chrisbanes@google.com> Make ColorUtils.calculateMinimumAlpha more accurate

We were previously only calculating the value to error value of 10.
Since we will only ever do a maximum number of 8 recursions, it's worth
calculating the value to a precision of 1.

Also expanded the ColorUtils API with more annotations.

BUG: 22691297

Change-Id: I7f2fbe169629f4ec53debd3dfa6748606f8e9944
upport/v4/graphics/ColorUtilsTest.java
a404677a9abad23c78a35512cd7428f86724b30a 16-May-2015 Roozbeh Pournader <roozbeh@google.com> Make support lib unicodeWrap() return null if the input string is null.

Previously, a NullPointerException was raised if the input was null.
Bug: 12894042
Change-Id: I36bde8271b19f272f970768661e485d4cb7b90f6
upport/v4/text/BidiFormatterTest.java
c929274ecb2495a428f214393c787360c3433438 08-Apr-2015 Chris Banes <chrisbanes@google.com> Add ColorUtilsTest and associated fixes

Also @hide the other v4 tests

Change-Id: Ic7ae6045ab7bcdc3e108e3869074ee37d625b95d
upport/v4/graphics/ColorUtilsTest.java
upport/v4/widget/DonutScrollerCompatTest.java
upport/v4/widget/GingerbreadScrollerCompatTest.java
upport/v4/widget/IcsScrollerCompatTest.java
upport/v4/widget/ScrollerCompatTestBase.java
ad16dd7d0e0f4721896b14b0f6430b8bcf0fb885 24-May-2014 Yigit Boyar <yboyar@google.com> Fix support-v4 gradle file for api 21

Change-Id: I7e501d3a7237a994b6be7a77c52be40dee7e4efe
upport/v4/widget/GingerbreadScrollerCompatTest.java
upport/v4/widget/IcsScrollerCompatTest.java
48e3efd2e7bc8057212d3936a239838ecf6e40a9 20-May-2014 Yigit Boyar <yboyar@google.com> Remove Chaser from ScrollCompat

Change-Id: I348f6886eef0ebfb872b183d6ed9ebe67761db0f
upport/v4/widget/ScrollerCompatTestBase.java
4ad0efc06631e6e35d8ced424c36438bf5827569 30-Apr-2014 Yigit Boyar <yboyar@google.com> Ensure scroller chaser does not abort prematurely

Bug: 14429848
Change-Id: I88438612f7d0950d6ae1b6cbe5e2e301361723a9
upport/v4/widget/DonutScrollerCompatTest.java
upport/v4/widget/GingerbreadScrollerCompatTest.java
upport/v4/widget/IcsScrollerCompatTest.java
upport/v4/widget/ScrollerCompatTestBase.java
ecb514d2c0de2256be6fc466665197f35fadc5f9 06-Jun-2013 Scott Main <smain@google.com> hide BidiFormatterTest from javadocs
however, this file should probably move to frameworks/support/tests/...

Change-Id: I5176d3255e2c9af5c5ec0a8e7d9dcc24eb7fa29f
upport/v4/text/BidiFormatterTest.java
fd35e010077641857ae8e43bad3d239fa948e50c 31-May-2013 Jeff Sharkey <jsharkey@android.com> am 979018ac: am 0c61fe0a: am 97c2b8be: Generalize support library tests.

* commit '979018ac4b79eb79da93366c8424339292fdb09c':
Generalize support library tests.
97c2b8beba5ac3075c814862cd925ac2c69479ee 30-May-2013 Jeff Sharkey <jsharkey@android.com> Generalize support library tests.

Change-Id: I21c828268e7a7e4ca6be5dae7a5ab85789a9a7b5
upport/v4/content/FileProviderTest.java
b49cb25e1450ae36d2559e9753c6d5064e530fcc 08-Mar-2013 Jeff Sharkey <jsharkey@android.com> DO NOT MERGE. Provider to share private files between apps.

Apps should generally avoid sending raw filesystem paths across
process boundaries, since the receiving app may not have the same
access as the sender. Instead, apps should send Uris and rely on
platform features like grantUriPermission() to control access.

This provider is a simple implementation that services Uris which
are backed by raw files on disk. It relies on ContentProvider to
enforce the grants, and supports reading, writing, and deleting. It
responds to OpenableColumns and tries answering getType() using
file extensions.

Apps define supported paths in <meta-data> associated with their
<provider> manifest entries.

Bug: 7005318
Change-Id: Iceb4f2ce996221d2d85e009b62c856dcdf5eca14
upport/v4/content/FileProviderTest.java
b37703fef07bb1940fd9d933bb9cc5b6c3959cb2 20-Apr-2013 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #8656546 API REVIEW: android.text.bidi / android.text

- clean BidiFormatter APIs

Change-Id: I88a49df3d30303d7041100575f3dafd48c0865f9
upport/v4/text/BidiFormatterTest.java
upport/v4/text/bidi/BidiFormatterTest.java
b443cf85371c2d6bd08b703b070eaabda507dfd3 19-Mar-2013 Fabrice Di Meglio <fdimeglio@google.com> Add Support Library v4 unit tests for BidiFormatter

- match CTS unit tests

Change-Id: Ib97e7d9435a57c400c8e858010a3b8d47fe51148
upport/v4/text/bidi/BidiFormatterTest.java
cdafda9f0228e8cb160a7c873d130dea4bbfea7c 08-Mar-2013 Jeff Sharkey <jsharkey@android.com> Provider to share private files between apps.

Apps should generally avoid sending raw filesystem paths across
process boundaries, since the receiving app may not have the same
access as the sender. Instead, apps should send Uris and rely on
platform features like grantUriPermission() to control access.

This provider is a simple implementation that services Uris which
are backed by raw files on disk. It relies on ContentProvider to
enforce the grants, and supports reading, writing, and deleting. It
responds to OpenableColumns and tries answering getType() using
file extensions.

Apps define supported paths in <meta-data> associated with their
<provider> manifest entries.

Bug: 7005318
Change-Id: Iceb4f2ce996221d2d85e009b62c856dcdf5eca14
upport/v4/content/FileProviderTest.java