• Home
  • History
  • Annotate
  • only in /frameworks/support/compat/tests/java/android/support/
History log of /frameworks/support/compat/tests/java/android/support/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
2c4cbf16a9705a4fcb22a8de5cd8795745b01aa4 23-May-2017 Seigo Nonaka <nona@google.com> Implement API 24 Typeface implementation.

This CL includes API 24 implementation with reducing the platform
dependent interfaces. This CL includes:
- Drop createFromResourcesFontFile from Impl interface since we need to
use the same implementation on the all API levels.
- Extract I/O related functions to TypecfaceCompatUtil.
- Introduce test cases for TypefaceCompat.

Test: ./gradlew support-appcompat-v7:connectedDebugAndroidTest
on API 15, 16, 17, 18, 19, 21, 22, 23, 24, 25, 26
Test: ./gradlew support-compat:connectedDebugAndroidTest
on API 15, 16, 17, 18, 19, 21, 22, 23, 24, 25, 26

Change-Id: If06989ea92e17a6ab750807986109a556139dbeb
4/graphics/TypefaceCompatTest.java
4/provider/MockFontProvider.java
3df28dfdabed9dea7c15a6bdd3134f6d670c3e4d 05-Jun-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Replace fonts of unknown origin" into oc-support-26.0-dev
60fbdd688327ffb0b0dc48fb0b296c1c87455a8d 26-May-2017 Clara Bayarri <clarabayarri@google.com> Replace fonts of unknown origin

There are fonts that we are not sure where they came from,
replace with fonts we created ourselves.

The res/font/ folder does not build with gradle when there is
a ttx file in it, so fonts there have been copied from elsewhere
in the tree and contain copyright and licensing inside the font.
There is also a new readme in the root folder for the test projects
using these to point this out.

Also fix a small issue where support tests can't be run on an O
device that ran coretests as the provider authorities colide.
Renamed the support authority to fix this.

Bug: 37726227
Test: ran all support-compat and support-appcompat-v7 tests
Change-Id: I7948fcbd3dbe8b267fc1b51a24a128aae083d213
4/provider/FontsContractCompatTest.java
4/provider/MockFontProvider.java
2afabd060e15342c0ba622cb08f5be61a328e566 17-May-2017 Seigo Nonaka <nona@google.com> Introduce fetch strategy and timeout attribute.

This CL makes developer to be able to choose the fetching strategy.
Since the font inflation happens on UI thread, it is not a good idea
to block until the font fetch finishes. On the other hand, it may be
also bad if the fetch happens asynchronously and refresh the display
once it finishes. This blinks the contents.

Blocking fetching and timeout works as follows:
- First, check the local cache and use it if it is available.
- Request the font to the font provider and wait until it finishes or
timeout happens.
- If timeout happens, use default typeface instead.

Asynchronous fetching works as follows:
- First, check the local cache and use it if it is available.
- Request the font to the font provider and use default typeface
during initial inflation.
- When the fetch finishes, refresh the TextView.

We can't add automated tests for resources xml for provider fonts since
it requires the static certificates.

Bug: 38340183
Test: ./gradlew support-compat:connectedAndroidTest
on API 16, 17, 18, 19, 21, 23, 25, 26
Test: ./gradlew support-appcompat-v7:connectedAndroidTest
on API 16, 17, 18, 19, 21, 23, 25, 26
Test: ./gradlew support-emoji:connectedDebugAndroidTest
on API 16, 17, 18, 19, 21, 23, 25, 26

Change-Id: Iec9d953f1a762a020f3556055f0eda868e6f2641
4/provider/SelfDestructiveThreadTest.java
d2cf789c1ccee6f8f7c40116b56e0dc1eb145300 23-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Introduce early exit path for non resource path case." into oc-support-26.0-dev
f2b8aa644529539d113e87cbaf0e21e49a70fac3 16-May-2017 Seigo Nonaka <nona@google.com> Introduce early exit path for non resource path case.

This CL does some improvements:
- Uses cached TypedValue for taking string from resource.
- Introduce the early exit path if the given string is not likely the
path in resource file.

Bug: 38232467
Test: ./gradlew support-appcompat-v7:connectedDebugAndroidTest
on API 15, 16, 17, 18, 19, 21, 22, 23, 24, 25, O
Test: ./gradlew support-compat:connectedDebugAndroidTest
on API 15, 16, 17, 18, 19, 21, 22, 23, 24, 25, O
Change-Id: I03beca271ee3980cd3b7de28fbab74dd8027a1b0
4/content/res/ResourcesCompatTest.java
3c2f014a97de8d5d68438fce120f5d95567a221e 23-May-2017 Aurimas Liutikas <aurimas@google.com> Fix SimpleArrayMapTest size

SimpleArrayMapTest tests take ~5 seconds to run which puts them into @LargeTest bucket.

Change-Id: I703e492d251d32975b3b68405f627dfe420a57ec
4/util/SimpleArrayMapTest.java
557ea6b21968530119670703a83c4b8d5f5e8163 19-May-2017 Kirill Grouchnikov <kirillg@google.com> Merge "Backport of ListView.canScrollList in compat" into oc-support-26.0-dev
9df73e86fb0949ee8c5afee0bf519982f59c016d 17-May-2017 Kirill Grouchnikov <kirillg@google.com> Backport of ListView.canScrollList in compat

Bug: 33100659
Test: ./gradlew support-compat:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.v4.widget.ListViewCompatTest
Test: ./gradlew support-core-ui:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.v4.widget.SwipeRefreshLayoutTest
Change-Id: If99bb26683671f5e722857d9c3600ea4d3d5fe53
4/widget/ListViewCompatTest.java
4/widget/ListViewTestActivity.java
a4f98193a1efa5a2de25451f59af4b91547974c2 16-May-2017 Suprabh Shukla <suprabh@google.com> Using boolean flag to stop the thread to avoid NPE

Test: ./gradlew support-compat:connectedCheck --info --daemon \
-Pandroid.testInstrumentationRunnerArguments.class=android.support.v4.util.SimpleArrayMapTest

Fixes: 38322497

Change-Id: I11f0583a030334a9808744a411151f47bd990d3b
4/util/SimpleArrayMapTest.java
8346a9a10895008f08f50969689a1ce16fbd577c 10-May-2017 Seigo Nonaka <nona@google.com> Remove FontsContractInternal

This CL includes:
- Rewrite FontRequestEmojiCompatConfig with FontsContractCompat
- Update tests to reflects the implementation.
- Remove FontsContractINternal, FontResult, and related tests.

Bug: 37493347
Test: ./gradlew support-compat:connectedDebugAndroidTest
on API 16, 17, 18, 19, 21, 22, 23, 24, 25, O
Test: ./gradlew support-emoji:connectedDebugAndroidTest
on API 16, 17, 18, 19, 21, 22, 23, 24, 25, O
Test: ./gradlew support-appcompat-v7:connectedDebugAndroidTest
on API 16, 17, 18, 19, 21, 22, 23, 24, 25, O

Change-Id: Iabcca156021af73651eb3c804f640a25951ca91f
4/graphics/TypefaceCompatTest.java
4/graphics/fonts/FontResultTest.java
4/provider/FontsContractInternalTest.java
fc857452283b38dfbac9ca023a77a8cf8b8c5599 09-May-2017 Seigo Nonaka <nona@google.com> Refactoring DL Font - Extract thread model from TypefaceCompat.

- Remove TypefaceCompatBaseImpl.create
- Decouple BackgroundThread from TypefaceCompat and put it
FontsContractCompat.
- Extract self destructive handler thread functionality to
SelfDestructiveThread with tests.

Bug: 37493347
Test: ./gradlew support-compat:connectedDebugAndroidTest
on API 16, 17, 18, 19, 21, 22, 23, 24, 25, O
./gradlew support-emoji:connectedDebugAndroidTest
on API 16, 17, 18, 19, 21, 22, 23, 24, 25, O

Change-Id: I577fcb02fe2e266fa88b16fbe4788228dfb96d11
4/graphics/TypefaceCompatTest.java
4/provider/SelfDestructiveThreadTest.java
5a9990a015200eea35fd20497c17a19e318c8ffa 09-May-2017 Seigo Nonaka <nona@google.com> Refactoring DownloadableFont - FontResourcesParserCompat cleanup

- Remove getFileName in FontResourceEntry which is used by nobody.
- ProviderResourceEntry is actually the same with FontRequest. Keep
FontRequest object intead.

Bug: 37493347
Test: ./gradlew support-compat:connectedDebugAndroidTest
on API 16, 17, 18, 19, 21, 22, 23, 25, O

Change-Id: Id7ea5a55c8a2485f95f6c5e39e192da268589c77
4/content/res/FontResourcesParserCompatTest.java
e8dd649c034eb9965caaec40a2de8e5f972ef4c1 08-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Remove TypefaceHolder and use TextView.setTypeface(Typeface, int)" into oc-dev
45f7d91ddfdd025eb6fbf9453bf78403cb123280 22-Apr-2017 Dianne Hackborn <hackbod@google.com> New JobIntentService.

This is a new, modern replacement for IntentService. They key feature
is it uses JobScheduler when running on O+ platforms. You only need
to implement one service class, which will run as a job on O+ or a plain
service on pre O. This also removes the use of WakefulBroadcastReceiver,
as it builds wake lock handling into itself (since starting with O, when
using JobScheduler, the app no longer needs to take care of this).

Test: added test, runs on O and N.
Change-Id: I08062bc568d563c70eb49154bff80788865354b2
4/app/JobIntentServiceTest.java
034b44190d41bf381f529e8e398c8bea8ac373ff 04-May-2017 Aurimas Liutikas <aurimas@google.com> Revert "New JobIntentService."

This reverts ag/2145277. That change added a flaky test and is causing presubmit test runs to randomly fail.

Bug: 37982100
Change-Id: I820f866c2f91b9561206c4db12d991838d9753e1
4/app/JobIntentServiceTest.java
385164d4cb288eb6adb804f7013fbcc8188e4251 22-Apr-2017 Dianne Hackborn <hackbod@google.com> New JobIntentService.

This is a new, modern replacement for IntentService. They key feature
is it uses JobScheduler when running on O+ platforms. You only need
to implement one service class, which will run as a job on O+ or a plain
service on pre O. This also removes the use of WakefulBroadcastReceiver,
as it builds wake lock handling into itself (since starting with O, when
using JobScheduler, the app no longer needs to take care of this).

Test: added test, runs on O and N.

Change-Id: Ia8130f1d1e09bb1659b127132ad092be80625ab0
4/app/JobIntentServiceTest.java
3f946c3c661e64a126223b9142d5868446efd4f0 04-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Porting ArrayMap changes to SimpleArrayMap" into oc-dev
cde1e1ab92ed386095d847fcb6d04b699e60ff8d 28-Apr-2017 Suprabh Shukla <suprabh@google.com> Porting ArrayMap changes to SimpleArrayMap

ArrayMap was changed to detect concurrent access and report them.
Copying those changes to SimpleArrayMap

Bug: 32993910
Change-Id: I3fbb6707cae311cb853f4162be90a0b6ac6b5b0a
4/util/SimpleArrayMapTest.java
a55160adc4ac7481c48512c7c146e7875a380021 02-May-2017 Seigo Nonaka <nona@google.com> Remove TypefaceHolder and use TextView.setTypeface(Typeface, int)

Looks like TextView.setTypeface(Typeface, int) does a good job for
fake bold/italic. No need to propagate weight/italic information
and call TextView.setTypeface(Typeface, int) instead.

This CL fixes invalid skew angle happens on API 21 or later.

Known Issues:
- FakeItalic is not working even if the text view style has italic bit.
(Happens on API 15, 16, 17, 18, 19)
- FakeBold/FakeItalic is used for StyleSpan.
(Happens on all API level)
- Still not working on API 15.

Bug: 37783900
Test:./gradlew support-compat:connectedDebugAndroidTest
Test: ./gradlew support-emoji:connectedDebugAndroidTest
Test: Saw manually the rendered text. (Screenshot attached in issue)

Change-Id: Icf496a8d44e37e344262a52ca2936583d768a220
4/content/res/ResourcesCompatTest.java
4/graphics/TypefaceCompatTest.java
8c2ee58bb9538e43225d7553fd6479a68619a149 27-Apr-2017 Julia Reynolds <juliacr@google.com> Add groupAlertBehavior to notificationcompat

Pre O this will remove all sounds and vibrations from
relevant grouped notifications. In O+ it'll just set
the field on notification.

Test: NotificationCompatTest
Change-Id: Ida0a26d21f42876f399c3049324cd909d6180c5c
Fixes: 37478457
4/app/NotificationCompatTest.java
f69ef36b9ff270c87e41177551ef4692f9aff965 28-Apr-2017 Seigo Nonaka <nona@google.com> Make Font Resources XML working on Android N or before device.

This addresses several issues:

- API 16 to API 25
There are two main issues.
-- AssetManager failed to open file by path name.
Fixed by using Resources.openRawResource instead of
AssetManager.openNonAssetFd.

-- TextView's style is ignored.
Before API 26, there is no way to create Typeface from multiple font
files. If Typeface is created from multiple font files, TextView will
select correct font based on style information of them.
However, this is impossible on API 25 or before. So select best match
font from given list and create Typeface with it.

At the same time, there is a concept "fakeBold" and "fakeItalic" on
Android. If even the best matched Typeface is not usable for requested
style, TextView makes bold/italic glyph with transforming available
glyph. Since we does font selection by ourselves, needs to set fake
bold/italic by manual too.

- API 16 - API 19
Styled typeface can be created from another Typeface like as follows.
Typeface boldTypeface = Typeface.create(baseTypeface, Typeface.BOLD);
The passed style information can be retrieved by Typeface.getStyle()
but this doesn't return real value on API 19 or before. Thus, introduce
TypefaceHolder to hold actually using weight/italic information.

Known Issues:

- API 15 or before
Still not working even after this patch. TypedArray returns false for
hasValue with R.styleable.TextAppearance_android_fontFamily.

- API 21 - API 25
The skew angle is sharper.

Bug: 37754362
Test: ./gradlew support-compat:connectedDebugAndroidTest passes on
API 15,16,17,18,19,21,23,25,26
Test: Test App attached issue 37754362 show the same result on
API 16,17,18,19,21,23,25
except for fake italic angle.
Screenshots is available on issue tracker.

Change-Id: I6bd615774be55981289f5f3b88f3d71fa1b39014
4/content/res/FontResourcesParserCompatTest.java
4/content/res/ResourcesCompatTest.java
4/graphics/TypefaceCompatTest.java
56489fe7b61a3dd6d70fc7ff7a4e5b129773797c 27-Apr-2017 Seigo Nonaka <nona@google.com> Move FontRequest from graphics.font to provider pacakge.

This moving was done in framework by
I0eb501844247c2f07eaa1fc7a71f72e404888b5b

Bug: 37326126
Test: ./gradlew support-emoji:connectedDebugAndroidTest
Test: ./gradlew support-compat:connectedDebugAndroidTest
Change-Id: Ibbc8f5d685f86ef6983eea40f6ca4d6301d8d52a
4/graphics/TypefaceCompatTest.java
4/graphics/fonts/FontRequestTest.java
4/provider/FontRequestTest.java
4/provider/FontsContractCompatTest.java
4/provider/FontsContractInternalTest.java
c357691d3aae8bb2913941267188e12594d5ca80 24-Apr-2017 Clara Bayarri <clarabayarri@google.com> Fix Content Provider tests failing in ICS

The used infrastructure is not supported on API 15 and below.

Migrated these tests to use a regular Content Provider and unified
naming and structure with equivalent framework tests.

Test: ./gradlew support-compat:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.v4.provider.FontsContractInternalTest
./gradlew support-compat:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.v4.provider.FontsContractCompatTest
Bug: 37431327
Change-Id: I6d3bcb63c51e464781f62c837fed27083d1e0047
4/graphics/TypefaceCompatTest.java
4/graphics/fonts/FontResultTest.java
4/provider/FontsContractCompatTest.java
4/provider/FontsContractInternalTest.java
4/provider/MockFontProvider.java
4/provider/TestFontsProvider.java
0b03693667d95d2202dfbb24866665ff061acce1 19-Apr-2017 Seigo Nonaka <nona@google.com> Hide TypefaceCompat and introduce FontsContractCompat instead.

This change brings the supportlib implementation of Downloadable
Fonts in sync with the recent changes in the framework.

TypefaceCompat.create is kept but hidden to deal with xml layout font
loading, as is in the framework atm.

The API26 implementation still points to API24, as framework APIs are
not final yet.

Bug: 35381428
Test: support-compat:connectedDebugAndroidTest
Change-Id: I4d73d7a547a0d9b79c4b7158d431a573b80417f3
4/graphics/TypefaceCompatTest.java
4/provider/FontsContractCompatTest.java
4/provider/FontsContractInternalTest.java
4/provider/FontsContractTest.java
4/provider/TestFontsProvider.java
13c4e42077841f98fef6ff1087fe3d1fb7a4b53a 07-Apr-2017 Clara Bayarri <clarabayarri@google.com> Supportlib downloadable fonts in xml

Test: ./gradlew support-compat:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.v4.content.res.FontResourcesParserCompatTest
./gradlew support-compat:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.v4.content.res.ResourcesCompatTest
Bug: 35381428

Change-Id: I0771e7179540e00e83c40b725140cad76f816cdd
4/content/res/FontResourcesParserCompatTest.java
4/graphics/TypefaceCompatTest.java
4/graphics/fonts/FontRequestTest.java
543fd2946ded1593b28553879e74ca4393eddd2e 24-Mar-2017 Clara Bayarri <clarabayarri@google.com> Supportlib Fonts in XML

This change adds support for the new font resources type in
support library, making its use possible pre-O.

Test: ./gradlew support-compat:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.v4.content.res.FontResourcesParserCompatTest
./gradlew support-compat:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.v4.content.res.ResourcesCompatTest
./gradlew support-appcompat-v7:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.v7.widget.AppCompatTextViewTest
Bug: 35382184

Change-Id: Ide32ae4e914b3dc73756016d24059ead25ca7e68
4/content/res/FontResourcesParserCompatTest.java
4/content/res/ResourcesCompatTest.java
4a066b3ad4ebba437ed081a5651f939030ab6809 20-Apr-2017 Selim Cinek <cinek@google.com> Merge "Added compatibility support for setColorized" into oc-dev
14d2ca65769efcd393995737a559d385a091158c 19-Apr-2017 Clara Bayarri <clarabayarri@google.com> Merge "Revert "Supportlib Fonts in XML"" into oc-dev
d679cb8cd83198de9d1fd67b5058d834d2daaae4 19-Apr-2017 Clara Bayarri <clarabayarri@google.com> Revert "Supportlib Fonts in XML"

This reverts commit 617be7af1f752cfaaf566e627ff6ea797623f2c3.

Reason for revert: <INSERT REASONING HERE>

Change-Id: Iacaef0423aa43cc5473042b6d61f2664afaf9cf6
4/content/res/FontResourcesParserCompatTest.java
4/content/res/ResourcesCompatTest.java
7dd9ac48d242b82da22f244407afe97f0b7c6e39 19-Apr-2017 Clara Bayarri <clarabayarri@google.com> Merge "Revert "Supportlib downloadable fonts in xml"" into oc-dev
feb39f584e5cde4201aea8e948330c239290aba7 19-Apr-2017 Clara Bayarri <clarabayarri@google.com> Revert "Supportlib downloadable fonts in xml"

This reverts commit ee4d36d9612da84d114a7dafe7746616f0af9c3f.

Reason for revert: <INSERT REASONING HERE>

Change-Id: I0c7719c8c15e1d5898a4c0684cdd123a0299d267
4/content/res/FontResourcesParserCompatTest.java
4/graphics/TypefaceCompatTest.java
4/graphics/fonts/FontRequestTest.java
2c2e759e5540e65a5fc1cacaf007ce9e33791562 18-Apr-2017 Selim Cinek <cinek@google.com> Added compatibility support for setColorized

Test: included
Change-Id: I3d01937a04f6e75b7c9d85cc033a64dfdb0db357
Fixes: 35218214
4/app/NotificationCompatTest.java
d8e6e97363f70cf8277e9b2bb6b4a04511758a38 19-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge changes Iac2635d7,If67cf830 into oc-dev

* changes:
Supportlib downloadable fonts in xml
Supportlib Fonts in XML
ee4d36d9612da84d114a7dafe7746616f0af9c3f 07-Apr-2017 Clara Bayarri <clarabayarri@google.com> Supportlib downloadable fonts in xml

Test: ./gradlew support-compat:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.v4.content.res.FontResourcesParserCompatTest
./gradlew support-compat:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.v4.content.res.ResourcesCompatTest
Bug: 35381428

Change-Id: Iac2635d74f4c03b4efd1355f89462287b7c600c5
4/content/res/FontResourcesParserCompatTest.java
4/graphics/TypefaceCompatTest.java
4/graphics/fonts/FontRequestTest.java
617be7af1f752cfaaf566e627ff6ea797623f2c3 24-Mar-2017 Clara Bayarri <clarabayarri@google.com> Supportlib Fonts in XML

This change adds support for the new font resources type in
support library, making its use possible pre-O.

Test: ./gradlew support-compat:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.v4.content.res.FontResourcesParserCompatTest
./gradlew support-compat:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.v4.content.res.ResourcesCompatTest
./gradlew support-appcompat-v7:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.v7.widget.AppCompatTextViewTest
Bug: 35382184

Change-Id: If67cf830c8c2d8875da73318d02db391421dfdfa
4/content/res/FontResourcesParserCompatTest.java
4/content/res/ResourcesCompatTest.java
01f7e32cdf00e64181661c34a3190b70ad4c79af 06-Apr-2017 Andrei Stingaceanu <stg@google.com> SupportLib - fetch locales

* introduces LocaleListCompat which is in parity (API wise) with
framework LocaleList
* introduces LocaleListHelper which contains the LocaleList
logic added after API24
* due to Locale being updated in the framework in API21
LocaleListHelper can not make use of Locale#forLanguageTag()
and Locale#toLanguageTag() thus introduced LocaleHelper which
contains simpleton implementations of the functions above
* ported all non-parcelable tests from the framework with the
mention that LocaleListCompatTest#testGetFirstMatch_oneChineseAsset
and LocaleListCompatTest#testGetFirstMatch_serbianCyrillic only
run for API24+ (due to to not having language tag full impl)

Bug: 36097045
Test: ./gradlew support-compat:connectedCheck --info --daemon \
-Pandroid.testInstrumentationRunnerArguments.class=\
android.support.v4.os.LocaleListCompatTest
Change-Id: I8555877fd261b647e1ae22fada72bebb434e9196
4/os/LocaleListCompatTest.java
6ff416f63548465e1c8eb73a1b469b8cf20a46ce 14-Mar-2017 Julia Reynolds <juliacr@google.com> Support for recent notification apis

- setTimeout
- setBadgeIconType
- setShortcutId

Change-Id: If19b5c282ffeaf22ee8043f6cf72071081ca4783
Fixes: 36119470
Test: included
4/app/NotificationCompatTest.java
491b729fa49127c75acb267b95cc5f0ec1b5f1e3 20-Mar-2017 Clara Bayarri <clarabayarri@google.com> Downloadable Fonts supportlib version

This change brings Downloadable Fonts to supportlib, up to
date with the framework implementation. It provides
support for Java-based requests, XML is left for a further
change.

On O, we delegate to the framework
On N+, we create from FileDescriptor via reflection
On M-, we create from file given a path

Test: Newly added test classes in this change
./gradlew support-compat:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.v4.graphics.fonts.FontRequestTest
./gradlew support-compat:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.v4.graphics.fonts.FontResultTest
./gradlew support-compat:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.v4.graphics.TypefaceCompatTest
./gradlew support-compat:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.v4.provider.FontsContractTest
Bug: 35381428

Change-Id: I79a7553638a2cea0ffcbeebb7d8a599575d6b892
4/graphics/TypefaceCompatTest.java
4/graphics/fonts/FontRequestTest.java
4/graphics/fonts/FontResultTest.java
4/provider/FontsContractTest.java
4/provider/TestFontsProvider.java
3c62dd9972e10d6f1de2f1681113eb57bb082998 04-Apr-2017 Sunny Goyal <sunnygoyal@google.com> Merge "Adding support for Icon and related APIs Updating ShortcutManagerCompat to supprot IconCompat" into oc-dev
801ca190c6df56bdf67ebd0a320ab5912640db10 08-Mar-2017 Sunny Goyal <sunnygoyal@google.com> Adding support for Icon and related APIs
Updating ShortcutManagerCompat to supprot IconCompat

Bug: 35845001
Test: Existing tests pass. Added new tests.
Change-Id: I8be2d73dec00aee860e2a854942a69e72af1954a
4/graphics/drawable/IconCompatTest.java
e03c42362cf0b9c838d5538f4a44dfe66b303b35 26-Jan-2017 Geoffrey Pitsch <gpitsch@google.com> Use newer Builder for Notification in Compat.

Deprecate the old version, apps that want to target O should
always specify the channel ID.

Test: ./gradlew support-compat:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.v4.app.NotificationCompatTest
Change-Id: Ia3f660a05e19632152492f0b508b32b402c64a4b
4/app/NotificationCompatTest.java
b0fd88eae86165e4be805b5321c973f9cefa836d 11-Mar-2017 Shane Brennan <shanerb@google.com> Adding an extras Bundle to MessagingStyle messages.

This allows extending each message with standard extenders.

Also removed an unused import from NotificationCompat that
the presubmit caught.

See ag/1979340 for the same change in the framework.

Test: Added in this CL

Change-Id: I13afe72161f8949e28e9d49819b5600c318d0386
4/app/NotificationCompatTest.java
b6e9d617ea32dc83840a030982a97a20f7889010 09-Feb-2017 Tobias Thierer <tobiast@google.com> Apply MapCollections behavior changes to appcompat copy

Array{Map,Set} iterators no longer allow iterating past the end.
For apps that care about consistent behavior, this CL makes
the new behavior available on old versions of Android through
the appcompat library.

Added tests for the behavior part that differs from earlier
Android versions.

Changes are ported from http://ag/1886799 and http://ag/1885941

Bug: 19853326

Test: ./gradlew support-compat:connectedCheck --info

Change-Id: I9f5ff9ad0a1f5974c1696da06b8962f7fcac8134
4/util/ArrayMapCompatTest.java
4/util/ArraySetCompatTest.java
27644c071b7fc0e1e4f91194f2a08b4aa2cf1465 05-Mar-2017 Aurimas Liutikas <aurimas@google.com> Remove unused imports in support library classes.

Test: ./gradlew assebmle assembleAndroidTest
Change-Id: I429f0abb742bfed9288f84a7d6a3208063068f23
4/testutils/TestUtils.java
2656ae585662d63454ca757c2f33336fa58062fa 06-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Re-enable lint enforcement, fix remaining lint issues"
c69882cb9b130902c1554ef5d3e3b06d776cd796 05-Mar-2017 Alan Viverette <alanv@google.com> Re-enable lint enforcement, fix remaining lint issues

Bug: 29630077
Test: ./gradlew lint
Change-Id: Ied1e4b1c33ba158d6bfab5439497ee4fc8284a8f
4/app/NotificationCompatTest.java
4/app/RemoteInputTest.java
e2104f4b5c8e3ad63570306a25e61502dfe4c418 05-Mar-2017 Aurimas Liutikas <aurimas@google.com> Add all missing @Override annotations.

Historically, we could not add @Override for certain methods due to
using older SDKs to build support library. That is no longer the case
so we can add @Override everywhere now.

Test: ./gradlew assemble assembleAndroidTest still works
Change-Id: I85e3c1157f0e253e3eab7584189f3bf95cf030e9
4/testutils/TestUtils.java
4/text/util/LinkifyCompatTest.java
3035be16658d7652fdc472f971c81d8f7ffb60fd 15-Feb-2017 Aurimas Liutikas <aurimas@google.com> Deprecate ScrollerCompat after minSdk 14 bump.

ScrollerCompat can be completely replaced by OverScroller that was
added in API14 which ScrollerCompat wraps.

Bug: 32794064
Test: ./gradlew assemble
Change-Id: Ice79dd122b00e1b3c92dea3a95446ac897135a84
4/widget/GingerbreadScrollerCompatTest.java
4/widget/IcsScrollerCompatTest.java
4/widget/ScrollerCompatTestBase.java
1cc424abf14fe0e86d72b014cd7ad969b75bbde7 09-Feb-2017 Shane Brennan <shanerb@google.com> Marking these two test cases as only relevant for SDK 17+

Test: This change is to a test.

Change-Id: I44bafb7ce7e0f5117b6c58876ea38321b6dc0b74
4/app/RemoteInputTest.java
8a01f709b487ffc67d39d5ee97b00365cf8ef50a 09-Feb-2017 Chris Banes <chrisbanes@google.com> Fix PaintCompatHasGlyphTest on API 15 am: 7b4fde9d7c am: cca9f51110
am: b78717b2ab

Change-Id: I060cc3371db546e9cd4128f10c5cc56ee9ae16bd
7b4fde9d7c2a45a477d3629ab990c3da361a3e73 09-Feb-2017 Chris Banes <chrisbanes@google.com> Fix PaintCompatHasGlyphTest on API 15

Due to the ☺ glyph not being available
on API 15 (added in 16).

Also added some more test cases.

Test: passes on 15-24 locally
BUG: 34808425
Change-Id: I46636c6a428ade29e32dde71727c0bbbc85724fa
4/graphics/PaintCompatHasGlyphTest.java
d1b097e27ab18fb5aca3347dc500c358ec9ebf85 03-Feb-2017 Aurimas Liutikas <aurimas@google.com> resolve merge conflicts of 53f915bc21 to master

Change-Id: Ica87403a563c9f1ca237b5303dc0dd7b9112d601
d2d2fe9c35d133ec959766463964699916a44dc7 03-Feb-2017 Alex Hills <ahills@google.com> Prevents WearableExtender test from running on low API levels
am: 7b2ceffe5a

Change-Id: Ib9b7086dda8784a2bd733c658c7d3e3cc75ba174
7b2ceffe5a03273e3ebc5eb88b6f739579990b53 30-Jan-2017 Alex Hills <ahills@google.com> Prevents WearableExtender test from running on low API levels

WearableExtender doesn't support API 15 - this prevents failing tests
from running on <17 devices

This also adds a test which verifies WearableExtender is a no-op on
API <17

Bug:34808243
Change-Id: Icc4d65e38b687cee1b0249604f4f722173170f57
Fixes:34808243
Test: Ran manually on api 17 & api 15 emulators
4/app/NotificationCompatTest.java
94f006e29574579d495e12ffdec0093aedf6fdc6 02-Feb-2017 Aurimas Liutikas <aurimas@google.com> Merge "Update test sizes for all currently @SmallTest."
35232c6eaeb9b99f390cb8ef0ac83bf45fa0b3fa 01-Feb-2017 Aurimas Liutikas <aurimas@google.com> Update test sizes for all currently @SmallTest.

SmallTests are supposed to complete in <200ms, Medium in <1s, and Large in <30s.
This CL updates the size of all the SmallTest based on excecution times from
presubmit test runners.

Test: None
Bug: 34854821
Change-Id: Iec73f7b6ef63b27cd3d8b19a8e8c7a9b91ff6729
4/content/pm/ShortcutManagerCompatTest.java
a2326755a16d744175acc58d1497fe2849977001 01-Feb-2017 Shane Brennan <shanerb@google.com> Two test cases require SDK 17+, marking them as such.

Test: This change is to a test.

Change-Id: I85504a0386cbb959bdc3168cce51cf0403d56986
4/app/RemoteInputTest.java
9fc71af55522bf8dd36a2bc976a6b998516e2c39 31-Jan-2017 Shane Brennan <shanerb@google.com> Merge "Add support for audio-focused notifications."
59d562bdab983469340a054bd3bc888034fa6bc8 13-Dec-2016 Shane Brennan <shanerb@google.com> Add support for audio-focused notifications.

This is the compat "twin" to c/1702766 which added the
same features to Android O's Notification and RemoteInput classes.

Add extras keys and methos to Notification and RemoteInput for notifications
whose contents have an audio representation and whose RemoteInputs
can accept data as well (useful for, e.g., voice messaging
applications).

The motivator for this change is it enables an end-to-end flow for
audio messaging including
* System receives the audio message
* Replying to the message with the user's voice
* App receives the audio reply data

Note that this CL just adds the capabilities, but does not
add any UI or implementation to perform the above flow.

Note that this CL includes a workaround to a bug in
RemoteInput#addResultsToIntent for versions prior to SDK 26.
You can see that workaround in
RemoteInputCompatApi20#addResultsToIntent.

Test: Added in this CL

Change-Id: I5be31a8cfbbe44ba19657ccd57821d5855c9c8af
4/app/NotificationCompatTest.java
4/app/RemoteInputTest.java
289d2f75f31cc0dc8242c44f0300f2d1f0aa643e 28-Jan-2017 Sunny Goyal <sunnygoyal@google.com> Fixing broken tests on API <= 23

Test: Updated tests
Bug: 34774561
Change-Id: I766e0ace2bacf2c112366aedb2e1746832096dab
4/content/pm/ShortcutManagerCompatTest.java
ab5e1a448f10ecacf1ac6a642523e48e79784e62 19-Jan-2017 Sunny Goyal <sunnygoyal@google.com> Adding new ShortcutManager APIs

Test: Included tests
Bug: 34163323
Change-Id: I488cbc66dd988730cca7b64828592395131e844d
4/content/pm/ShortcutManagerCompatTest.java
c4cbe89564fda7f456ef61417f296e0becf8d081 25-Jan-2017 Chris Banes <chrisbanes@google.com> Fix hasGlyph() for pre-v23
am: 1b54dfb2b7

Change-Id: Ia4a06d861b46da71a66e250edb755c6778ac2e3b
3ac1650526abf4dc7786f0f12070ddbfd545e7dc 25-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix hasGlyph() for pre-v23" into nyc-support-25.2-dev
654a88d32cc6b1da222e07ea0f0c5e431fbfab20 24-Jan-2017 Alex Hills <ahills@google.com> resolve merge conflicts of 3608e08ad8 to master

Bug:34360598
Test: Wrote tests (that fail before this CL and now pass), and ran
./gradlew support-compat:connectedCheck --info --daemon
-Pandroid.testInstrumentationRunnerArguments.class=android.support.v4.app.NotificationCompatTest
Change-Id: I1507a050b25843d3028a28857505f732c3466f9a
3608e08ad83cab2172862e722e8735f00b77d81a 24-Jan-2017 Alex Hills <ahills@google.com> Fixes compat parceling/unparceling of WearableExtender Actions
am: b1c1839c8f

Change-Id: Iddab7c413bd412ad4a9ce19e62527e9fcaab11a1
1b54dfb2b705a342186357111a95fd634b080751 24-Jan-2017 Chris Banes <chrisbanes@google.com> Fix hasGlyph() for pre-v23

Makes it act like the framework version
for String with multiple characters.

Test: all passing on all API levels
BUG: 23088679
Change-Id: Iae6348d533269632999e862ef292943d4dd39e5b
4/graphics/PaintCompatHasGlyphTest.java
7d6c778d752a98eaf9f358525283515a727e9dc2 23-Jan-2017 Chris Banes <chrisbanes@google.com> Add PaintCompat.hasGlyph API
am: 5c4dd610ea

Change-Id: I2df6fc30fde34a6398e79e7d041c960b7a7201be
5c4dd610eace399c47eb0418d617aa05701f9ab9 19-Jan-2017 Chris Banes <chrisbanes@google.com> Add PaintCompat.hasGlyph API

BUG: 23088679
Test: included

Change-Id: Iaa9b1c8f8809a37f8bb149885d92378190c04c91
4/graphics/PaintCompatHasGlyphTest.java
b1c1839c8f720bbd47749d77a3a72cab8a3ac36d 19-Jan-2017 Alex Hills <ahills@google.com> Fixes compat parceling/unparceling of WearableExtender Actions

Makes the compat lib save the allowGeneratedReplies flag correctly on
actions so that the value will be correctly saved and retrieved
post-build.

Bug:34360598
Change-Id: Iec9588613b8e0439181ecff34eddb803064ef4fa
Fixes:34360598
Test: Wrote tests (that fail before this CL and now pass), and ran
./gradlew support-compat:connectedCheck --info --daemon
-Pandroid.testInstrumentationRunnerArguments.class=android.support.v4.app.NotificationCompatTest
4/app/NotificationCompatTest.java
2087d84d266e0721db568b8d95569985d9be2bc3 19-Jan-2017 Yuichi Araki <yaraki@google.com> Merge "Backport set/getTransitionName"
9bd9cddbb551bea6b6194f6bd594ca97f38a1453 13-Jan-2017 Yuichi Araki <yaraki@google.com> Backport set/getTransitionName

ViewCompat.set/getTransitionName now works for older platform versions.

Test: ViewCompatTest#testTransitionName on API levels 10, 15, 18, and 25
Change-Id: Ibebc781cde1c67c956c3b9ca2083e6fc0f83b6f4
4/view/ViewCompatTest.java
159a5dfb07b6836ffdbf4099b8ca55b890b5109f 06-Jan-2017 Julia Reynolds <juliacr@google.com> Add notification channel support.

Test: included
Change-Id: Iff229bc5c55f69b9f13929da89eb33c40236b57d
4/app/NotificationCompatTest.java
ee6c89547f0f0321b66c7c21e1990e7870a45b3c 09-Dec-2016 Vladislav Kaznacheev <kaznacheev@google.com> Pointer icon tests for support library

Adding PointerIconCompatTest.
Expanding BottomNavigationViewTest and
TabLayoutTest to cover pointer icon setting.

Bug: 32178074
Change-Id: I6deab8ed0d702ccb32ab906d91c72c7abb78656d
Test: the affected tests should pass
4/view/PointerIconCompatTest.java
71e5a05c99d3998cb14632317116e1738882f94b 28-Nov-2016 Alex Hills <ahills@google.com> Changes default value of NotificationCompat.Action.mAllowGeneratedReplies
am: edfcb40253

Change-Id: I5daaa72c7d1845981777f6c65a1c783fbe45c321
8f55bae1b783899c398f3e1ada72bb54a4e9235b 28-Nov-2016 Alexander Hills <ahills@google.com> Merge "Changes default value of NotificationCompat.Action.mAllowGeneratedReplies" into nyc-support-25.1-dev
edfcb4025350f144e3d54a4aea72e9388294e255 22-Nov-2016 Alex Hills <ahills@google.com> Changes default value of NotificationCompat.Action.mAllowGeneratedReplies

Changes the default from false to true and adds tests for same

Bug:31935223
Fixes:31935223
Test: Wrote and ran new tests for behavior
Change-Id: Iee3c512b943dc8650bc7b6a214d6db49d82dd229
4/app/NotificationCompatTest.java
4bb57b2c7c5e8fa607119bd5089535d5862cb979 23-Nov-2016 Aurimas Liutikas <aurimas@google.com> Update size annotations for compat, design, and appcompat tests.

Moved from SmallTest to MediumTest if test took >0.5s
Moved from MediumTest to LargeTest if test took >6s

Bug: 33058210
Test: running these tests locally on Nexus 5X running 7.0
Change-Id: If4761c9bba2ea1b8280cb104b43d71332b19c94b
4/text/util/LinkifyCompatTest.java
4/view/ViewCompatTest.java
4/widget/TextViewCompatTest.java
730ed99bb69c8a846216a1fbb525cae9b475b93e 20-Sep-2016 Ian Lake <ilake@google.com> Deprecate support-fragment's dependency on media-compat

Deprecate FragmentActivity's dependence on MediaControllerCompat and
therefore support-fragment's dependency on support-media-compat. This
will allow us to remove the compile time dependency in a future release.

New static methods in MediaControllerCompat are used to set the
Activity's MediaController. The addition of SupportActivity and its
ExtraData class allow MediaControllerCompat to store the
MediaControllerCompat object scoped to the Activity to
1) Support pre-API 21 devices
2) Prevent constant translation between framework and compat instances

Test: mmma frameworks/support, ./gradlew assemble, run SupportActivityTest

BUG: 30944164
Change-Id: I6db82487d7b6352bbcf2ab0202a7e1ffbd9af650
(cherry picked from commit 583beae8a1d75c7c821b65c8adc8812928424eec)
4/app/SupportActivityTest.java
4/app/TestSupportActivity.java
65819e5417247f0a3df1528d53e8e96f2e378970 14-Oct-2016 Adrian Roos <roosa@google.com> Merge "Fix NotificationCompat.Action.Builder copy constructor"
a986dc1df96a380e34d2a91e7986e92165f59eb9 13-Oct-2016 Adrian Roos <roosa@google.com> Fix NotificationCompat.Action.Builder copy constructor

The copy constructor of Notification.Action.Builder did not copy
the mAllowGeneratedReplies and mRemoteInputs fields.

Change-Id: I40fbe8950ee2232e2589ab3930a32bfbebe9fc89
Fixes: 31766718
Test: ./gradlew :support-compat:connectedCheck -Pandroid.testInstrumentationRunnerArguments.class=android.support.v4.app.NotificationCompatTest
4/app/NotificationCompatTest.java
f7afb31923a26e1070e0e22589456735e41a3828 12-Oct-2016 Andrei Stingaceanu <stg@google.com> TextViewCompat - fix #getCompoundDrawablesRelative am: bf14265885 am: 22af0a6cf7
am: ab674295c4

Change-Id: Ia45965a3decac936426e8bf3dd37477181d70e23
bf14265885d1cb7ecd6db9b0109a8b033181747b 07-Oct-2016 Andrei Stingaceanu <stg@google.com> TextViewCompat - fix #getCompoundDrawablesRelative

TextViewCompat#getCompoundDrawablesRelative makes a wrong call to
TextView#getCompoundDrawables() which makes it return the drawableLeft
and drawableRight (in the Drawable[] array) instead of expected
drawableStart and drawableEnd.

Test: instrumentation test attached
Bug: 31590009
Change-Id: I916d711fa7c368ccadf196c8fef59169f17eb83b
4/widget/TextViewCompatTest.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
4/view/ViewPropertyAnimatorCompatTest.java
6e22329380559ebb8b2a8adc61386d0fc0d50d98 29-Sep-2016 Tony Mantler <nicoya@google.com> AsyncTask terminating with exception calls onCancelled am: 1c5b7649f5 am: 6abc28979c
am: eea063b6fa

Change-Id: I79291bcbd0ddea64b8644d0c706f3326076e3b2d
1c5b7649f5bf2879095b5585e0f13a6d2695d3b2 28-Sep-2016 Tony Mantler <nicoya@google.com> AsyncTask terminating with exception calls onCancelled

Test: compat/tests/java/android/support/v4/content/ModernAsyncTaskTest.java
b/30304893

Change-Id: I06214c5722f573cf7d9905afe7c4e07159e62954
4/content/ModernAsyncTaskTest.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
4/content/ContextCompatTest.java
4/content/ModernAsyncTaskTest.java
4/content/res/ResourcesCompatTest.java
4/graphics/DrawableCompatTest.java
4/text/IcuCompatTest.java
4/text/util/LinkifyCompatTest.java
4/util/PatternsCompatTest.java
4/view/GravityCompatTest.java
4/view/MarginLayoutParamsCompatTest.java
4/view/ViewCompatTest.java
4/view/ViewPropertyAnimatorCompatTest.java
4/widget/ScrollerCompatTestBase.java
4/widget/TextViewCompatTest.java
9208d1773084170eba91701e07902d64f042fbc1 19-Sep-2016 Aurimas Liutikas <aurimas@google.com> Sync LinkifyCompatTest to match CTS test LinkifyTest.

Test: ran this test locally.

Change-Id: I21a20dde3d6719accd4f5523d29f2ac32cde71c7
4/text/util/LinkifyCompatTest.java
9480eb4e94e429726b07eba133ffbc6450b8d795 09-Sep-2016 Alan Viverette <alanv@google.com> resolve merge conflicts of 7243922 to master

Change-Id: I34d800e77c4b1a440eb67191b4697213a2e6239e
c39d9c75590eca86a5e7e32a8824ba04a0d42e9b 25-Aug-2016 Alan Viverette <alanv@google.com> Add @RestrictTo(GROUP_ID) annotations to match @hide docs annotations

Also removes some unnecessary @hide annotations on classes that wouldn't
have shown up in docs anyway due to package/private visibility or NO_DOCS.

Bug: 27937193
Change-Id: Iab127a5a3ce57a2d61965d3cef782621eb3859f5
4/graphics/TestTintAwareDrawable.java
4c0cac8cbf22f47465eec7a75d723fa0e0ebf1dc 06-Sep-2016 Aurimas Liutikas <aurimas@google.com> Remove several instances of AndroidTestCase usage.

- Remove unused imports in GravityCompatTest and MarginLayoutParamsCompatTest.
- Convert FileProviderTest to JUnit4 test.

Change-Id: Icd673db715a43c603783a89c3df371b4d42cea2e
4/view/GravityCompatTest.java
4/view/MarginLayoutParamsCompatTest.java
dfaddb999259f7d10a8081bdb8f3bbb8fe3e8be8 06-Sep-2016 Aurimas Liutikas <aurimas@google.com> Remove failing NotificationCompat tests.

These tests have been failing consitently and have been reported
to the owning team since Feb 2016. This change removes these tests.
If these tests get fixed then can get relanded again.

Bug: 27170408
Change-Id: I6c492e8a5c2d516620dda7ab9526fe321fa95176
4/app/NotificationCompatActionWearableExtenderTest.java
4/app/NotificationCompatWearableExtenderTest.java
18cc54a38ab2b586d14e54971987ef4731e4d856 24-Aug-2016 Aurimas Liutikas <aurimas@google.com> Fix IcuCompatTest#testMaximizeAndGetScript pre API 21.

Locale.forLanguageTag did not exist pre API 21.

Bug: 30198627
Change-Id: I26ec272f2db542b763e119867b064f77654237ec
4/text/IcuCompatTest.java
007f4b49db8dc359a0ce21acbea088389bec6f4a 17-Aug-2016 Aurimas Liutikas <aurimas@google.com> Merge "Move tests from tests/ root dir to appropriate directory." into nyc-mr1-dev
8b25f85f89963e25d2106b18e56b605652961025 17-Aug-2016 Yuichi Araki <yaraki@google.com> Merge "Add ViewCompat.getDisplay" into nyc-mr1-dev
fad2335f169d36b7b6f2c0ec8ddfe6c0094c2072 16-Aug-2016 Aurimas Liutikas <aurimas@google.com> Annotate more support lib tests with size annotations.

Turns out we were not running these tests because they are not
annotated with @SmallTest, @MediumTest, or @LargeTest.

Bug: 30892341
Change-Id: I4ed870d4c1a456c1fcd446243179c005653a041d
4/content/ModernAsyncTaskTest.java
0357e3dab075ba93be2af9338f42d9cdb1217016 16-Aug-2016 Aurimas Liutikas <aurimas@google.com> Move tests from tests/ root dir to appropriate directory.

Bug: 30897608
Change-Id: I32360ca2b59757321e5515a210dceb3038d72c29
4/app/NotificationCompatActionWearableExtenderTest.java
4/app/NotificationCompatWearableExtenderTest.java
4/text/IcuCompatTest.java
b897ffb1d1cfe37e2e005e7dcdcd97bc5f74205d 12-Aug-2016 Yuichi Araki <yaraki@google.com> Add ViewCompat.getDisplay

Bug: 30776880
Change-Id: I8fa46a8f6b29ae9ae41f44e16cd32b039102860a
4/view/ViewCompatActivity.java
4/view/ViewCompatTest.java
39c58137a66e5a8493f3faa68fd76b51060e7fc1 10-Aug-2016 Tony Mantler <nicoya@google.com> Fix ModernAsyncTask to handle exceptions in doInBackground
am: db7cc953f3

Change-Id: I74f939ed9ed98d6baab4c62d22da69808bb82412
db7cc953f35069e445cf1dd1d59058b9b1665e5c 05-Aug-2016 Tony Mantler <nicoya@google.com> Fix ModernAsyncTask to handle exceptions in doInBackground

When cancelling, the exception will be eaten by FutureTask, but
onCancelled would end up never being called due to the exception
causing the code to skip calling postResult.

b/30304893

Change-Id: I548da6c033135fba99192276a99578bdce080b64
4/content/ModernAsyncTaskTest.java
db565aec7684ac5370f1307e40b02618f173fc68 03-Aug-2016 Aurimas Liutikas <aurimas@google.com> Fix failing LinkifyCompatTest test.

LinkifyCompatTest#testAddLinks4 tests phone number linkification
which support library falls back to framework for, so we cannot
assert the contents of the spans as they will differ per API level.

Bug: 30198627
Change-Id: I8254b4287f543999960b6c514541228792305b17
4/text/util/LinkifyCompatTest.java
a20b84a28bf463a4b91670db60acd46670f3ce40 19-Jul-2016 Kirill Grouchnikov <kirillg@google.com> Remove tests around dangerous permission granting

Bug: 30203829
Change-Id: I7609a186703b3326991186284427f82b1997d80c
4/content/ContextCompatTest.java
d8ae10da39a28468fad19ed564799c52354a8d1f 13-Jul-2016 Chris Banes <chrisbanes@google.com> Fix wrap() propogating state the wrong direction

Since DrawableCompat.wrap() can either return a wrapped
drawable or not, we should make sure that either case
returns consistent state. Therefore we now copy the wrapped
drawable's state to the wrapper, rather than the opposite way
around.

BUG: 30060993
Change-Id: I8f37519bdedc17ff5289d9a01a32edffd69dc573
4/graphics/DrawableCompatTest.java
8998fbc569aa0f17166db7fd425d59efac9f2600 24-Jun-2016 Aurimas Liutikas <aurimas@google.com> Fix ScrollerCompat tests.

Tests broke with the Support library refactorings.

Bug: 29570748

Change-Id: I9d8cc308a206974985053af03628d54b5c5b3936
4/widget/GingerbreadScrollerCompatTest.java
4/widget/IcsScrollerCompatTest.java
4/widget/ScrollerCompatTestBase.java
180f831c5b05bb2a8313d79e577a3714c00c8893 17-May-2016 Aurimas Liutikas <aurimas@google.com> Add LinkifyCompat to support library.

Move the improved logic for linkifying URLs and email addresses
to support library to allow developers to use the update Linkify
logic on all Android versions.

Additionally add the same set of Patterns tests to PatternsCompat and
Linkify tests to LinkifyCompat.

Bug: 26486415

Change-Id: I5d468fab5b6aa023e6e7101c0bf2839da1d5d35f
4/text/util/LinkifyCompatTest.java
4/util/PatternsCompatTest.java
64dbe1d454f1190b3cd8426d09b9119949a10709 11-May-2016 Kirill Grouchnikov <kirillg@google.com> Final pass for removing all donut/eclair/froyo references

Also clean up code blocks that were conditional on pre-v9
build version.

Change-Id: I9c87496446d842cbd176adb44635205206e7bb3d
4/widget/DonutScrollerCompatTest.java
8b98e883bc3fb72c13e0f41be3e6362ffb28a37c 04-May-2016 Kirill Grouchnikov <kirillg@google.com> Second clean-up pass after support-v4 split.

Remove test resources / classes that are not relevant for the
compat / core modules.

Change-Id: I6c05774892727c3103003672e8a8e1481d7111c9
4/testutils/TestUtils.java
4/testutils/TestUtilsAssertions.java
4/testutils/TestUtilsMatchers.java
f5ec4487510a0e7226636704860a884f4c1d0ab6 04-May-2016 Kirill Grouchnikov <kirillg@google.com> Cleanup pass for support-v4 split.

* Remove unnecessary double BuildCompat file
* Clean up tests folders

Change-Id: Ia61530afdd14601e397c15cc8aa6f1b8f394783b
4/content/ContextCompatTest.java
4/content/res/ResourcesCompatTest.java
4/graphics/ColorUtilsTest.java
4/graphics/DrawableCompatTest.java
4/view/ViewPropertyAnimatorCompatTest.java
4/view/VpaActivity.java
4/widget/TextViewCompatTest.java
4/widget/TextViewTestActivity.java
3ac77bf186f87ecad4bf0063b2f6c4384efbd56a 27-Apr-2016 Kirill Grouchnikov <kirillg@google.com> Support module refactoring

* Splitting support-v4 into two modules, support-compat and support-core
* Adding a new library module named support-v4 that combines the two
together for backward compatibility support of existing projects
* support-compat has all Compat classes, their few direct dependencies
and all data structures in the .util package

Change-Id: Icd1b0ab3a5b61a8a2bf85bc274098f0a828963e0
4/BaseInstrumentationTestCase.java
4/BaseTestActivity.java
4/ThemedYellowActivity.java
4/content/ContextCompatTest.java
4/content/res/ResourcesCompatTest.java
4/graphics/ColorUtilsTest.java
4/graphics/DrawableCompatTest.java
4/graphics/TestTintAwareDrawable.java
4/testutils/LayoutDirectionActions.java
4/testutils/TestUtils.java
4/testutils/TestUtilsAssertions.java
4/testutils/TestUtilsMatchers.java
4/testutils/TextViewActions.java
4/view/GravityCompatTest.java
4/view/MarginLayoutParamsCompatTest.java
4/view/ViewCompatTest.java
4/view/ViewPropertyAnimatorCompatTest.java
4/widget/DonutScrollerCompatTest.java
4/widget/GingerbreadScrollerCompatTest.java
4/widget/IcsScrollerCompatTest.java
4/widget/ScrollerCompatTestBase.java
4/widget/TextViewCompatTest.java
4/widget/TextViewTestActivity.java