History log of /frameworks/support/graphics/drawable/animated/src/android/support/graphics/drawable/AnimatedVectorDrawableCompat.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
905bcd294a7351749c60382eab03aa0c679e08bb 13-Apr-2017 Alan Viverette <alanv@google.com> Un-suppress NewApi lint where applicable

Reduces scope where NewApi must be retained. Updates media compat
code to use BuildCompat directly rather than checking SDK_INT
against 26 (which is not a real SDK_INT on any devices yet).

Test: ./gradlew lint
Change-Id: I052641ae0540605559ad68132ef0470bc8dc3f22
/frameworks/support/graphics/drawable/animated/src/android/support/graphics/drawable/AnimatedVectorDrawableCompat.java
d84741a4ec99535a61779590eaf35474a561707a 22-Mar-2017 ztenghui <ztenghui@google.com> Add path motion to AVDC

bug:33527757
Test: Existing and added AVDC tests under
android/support/graphics/drawable/tests
Add sample app to demo the path motion.

Change-Id: I36c87c6083bfad1e2b5acf3126c75ea3ea76ed88
/frameworks/support/graphics/drawable/animated/src/android/support/graphics/drawable/AnimatedVectorDrawableCompat.java
b6086751979cb14740815502597e9fcfddb7054a 04-Mar-2017 ztenghui <ztenghui@google.com> Add Path Morphing support to AVDC

fix:33527757
Test: new added test and demo and existing AVDC tests
Change-Id: I91050267660e9e493026422cdd5917bcc1c7209a
/frameworks/support/graphics/drawable/animated/src/android/support/graphics/drawable/AnimatedVectorDrawableCompat.java
88c4351f5182e44eb7f631f4bcfba579c88b0a84 03-Mar-2017 ztenghui <ztenghui@google.com> Merge commit '9c0c3dbaa3ac3258b90e6a7c9d374b928ca37a74' into manual_merge_9c0c3dbaa3

Test: ./gradlew uploadArchieves
Change-Id: Id1b636c8291ec3a4adc0bdd8bd15f94b18904f8c
5a1089de6e705823009189c75c630c12d0350921 18-Feb-2017 ztenghui <ztenghui@google.com> Add listener to the AVDC

At the same, merge AVDC and VDC samples into one. Replace make with
gradle build for sample code.

Test: Added new tests, and new demo.
fix:b/34850683

Change-Id: I3fb6532dd1f754ce7b7f2acd51cdb23b901d0780
/frameworks/support/graphics/drawable/animated/src/android/support/graphics/drawable/AnimatedVectorDrawableCompat.java
22f13fd48fb232a9a29b43dc2e11dfaeef121ca3 18-Jan-2017 Chris Banes <chrisbanes@google.com> Fix some issues caught via a static analyzer
am: f83358389f

Change-Id: I75ae8adf22fe2383c554b6416e6a8ba2329885cb
f83358389f0c4ea37a7e7d9e493857f99baf0440 07-Jan-2017 Chris Banes <chrisbanes@google.com> Fix some issues caught via a static analyzer

I concentrated on the resource leaks rather than
any possible null dereferences.

Test: all pass
Change-Id: I2eab70648068058111b6dc82ba7494a1ff0ecb32
/frameworks/support/graphics/drawable/animated/src/android/support/graphics/drawable/AnimatedVectorDrawableCompat.java
0a36ac569207b3bb0c4e8eabc4e52bea54df4496 21-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Update documation for VDC / AVDC"
791d564c66cf6bfc38413a35bf767b41cf019887 14-Nov-2016 Teng-Hui Zhu <ztenghui@google.com> Update documation for VDC / AVDC

fix:32683765
fix:32831830

Test: make offline-sdk-docs and view the HTML file.

Change-Id: I1570c85788a338b70baa7763bb1d4b2c1292551f
/frameworks/support/graphics/drawable/animated/src/android/support/graphics/drawable/AnimatedVectorDrawableCompat.java
af6b251c15dab2237fdf100b5ebb9c0851c2d490 16-Nov-2016 Alan Viverette <alanv@google.com> Adds working lint target to support lib build, more workarounds

Explicitly disable on v17 leanback and v7 preference, which need
some work. Suppress issues due to Lint failing to distinguish locally-
defined methods from framework methods.

Depends on fullsdk project, which is NOT in the default checkout.

Bug: 29630077
Test: ./gradlew lint && ./gradlew assemble
Change-Id: If8da576a8f9e2a431bc60a473f0c36054818d7c1
/frameworks/support/graphics/drawable/animated/src/android/support/graphics/drawable/AnimatedVectorDrawableCompat.java
8ec1f79db92a029b0bb4efd6180c3ffa78198a81 14-Nov-2016 Teng-Hui Zhu <ztenghui@google.com> Return current object instead of Exception when constant state is null
am: 95ca36d130

Change-Id: I190032c128ce72cd188eebdab275b46aad960f27
95ca36d130e15b543de9b749b13fd8fd3dac851e 10-Nov-2016 Teng-Hui Zhu <ztenghui@google.com> Return current object instead of Exception when constant state is null

Fix:32336039

Test: AnimatedVectorDrawableTest on Kitkat and Master and original repro.

Change-Id: I7df06ad1009e990077a0d06cb82ffd55cb660fc2
/frameworks/support/graphics/drawable/animated/src/android/support/graphics/drawable/AnimatedVectorDrawableCompat.java
8f886fe8c7e23fe6ccb8734167c960c2ed3429c3 25-Oct-2016 Alan Viverette <alanv@google.com> Annotate support classes with RequiresApi / TargetApi

Also inlines version codes in SDK_INT checks so that lint
understands them. Removes some unnecessary TargetApi annotations.

Bug: 29630077
Change-Id: I67a9235480ca14711b0496a54beca5c0e6c6b2d1
/frameworks/support/graphics/drawable/animated/src/android/support/graphics/drawable/AnimatedVectorDrawableCompat.java
9439d708170c7dd6c985453fd1999bbe8445eddf 25-Oct-2016 Alan Viverette <alanv@google.com> Move all support library projects to use a single compilation unit

Also cleans up build files to include annotations as an explicit import,
set compileSdkVersion consistently to currentSdk, and remove unnecessary
lines. Removes obsolete API directories in VDC / AVDC.

Because NotificationCompatBase was using @removed APIs, updated that class
to use reflection. Also fixes method visibility in VDC / AVDC.

Bug: 29630077
Test: make and gradle builds successful
Change-Id: Ia9208246837347ce3d8df4adbe6b0ce406d3844a
/frameworks/support/graphics/drawable/animated/src/android/support/graphics/drawable/AnimatedVectorDrawableCompat.java
0327a65adda49ea1f39440a3127836b41ff43084 07-Oct-2016 Teng-Hui Zhu <ztenghui@google.com> Properly setup autoMirror in VDC and AVDC.

Add a new test to cover it for API >= 17
Test: added new test, ran on GB Nexus S, KK Nexus 4 and Nougat Nexus 6p
b/31951281

Change-Id: I4d76e2ad81abae0959cad6ee2d6251bef426acaf
/frameworks/support/graphics/drawable/animated/src/android/support/graphics/drawable/AnimatedVectorDrawableCompat.java
67b6c5f8b82d730f3d39287af5e98adbd77c6ebf 03-Oct-2016 Doris Liu <tianliu@google.com> Restrict AVDC and VDC parsing to the current element instead of the whole document

This CL changes the AVDC xml parsing to parsing only within the current
element, which prevents AVDC parsing from always skipping to the end of
the doucment. So things that are defined after AVDC in the same document
can be picked up by the xml parser.

The same fix has been applied to VDC as well.

BUG: 31865175
Test: Manually following comment #1 in the bug above
Change-Id: I02cc2e6cd430ad53d9c01cd718231a943c4519e9
/frameworks/support/graphics/drawable/animated/src/android/support/graphics/drawable/AnimatedVectorDrawableCompat.java
9e3d04fe6cf40bb1c46fd8cb456fedec06e2d350 06-Sep-2016 Aurimas Liutikas <aurimas@google.com> Remove all the extra accessor methods added by javac in support-vector-drawable.
am: 8fbfb9b792

Change-Id: I8985df2e8fff9b1163fdfa6ee074e792dacf0af3
8fbfb9b792b2978ba33bead0120a83b7af47a5f7 26-Aug-2016 Aurimas Liutikas <aurimas@google.com> Remove all the extra accessor methods added by javac in support-vector-drawable.

Change private methods to be package protected to avoid extra methods
that get added to be able to access them from inner classes.

This CL saves 12 methods in our jar.

Bug: 31075707
Change-Id: I37dc48342fe739baca6b252121638581e74c6bec
/frameworks/support/graphics/drawable/animated/src/android/support/graphics/drawable/AnimatedVectorDrawableCompat.java
c59ac731f7d38ee41d0aba567a9d3b77b40df628 23-Aug-2016 Teng-Hui Zhu <ztenghui@google.com> VDC and AVDC fallback on framework, only on NYC+

fix:b/29990979

Change-Id: I4b56ca0d9cf213de7cec66f1fb138fdc5af6096f
/frameworks/support/graphics/drawable/animated/src/android/support/graphics/drawable/AnimatedVectorDrawableCompat.java
15375aa6fd54b036f97f99229aefab2822c8a1c9 24-May-2016 Aurimas Liutikas <aurimas@google.com> Add missing @Override annotations in support library code.

Change-Id: Ifcc3a20b54d6a14b0a14aa0f48e642cf7e8c0e70
/frameworks/support/graphics/drawable/animated/src/android/support/graphics/drawable/AnimatedVectorDrawableCompat.java
80e3ecf1aae0badd8056206db0614e9b9d1934b5 17-Mar-2016 Teng-Hui Zhu <ztenghui@google.com> Use VDC for API 21 and 22 to workaround the ImageView scaling issue

The appCompat change is independent of the change inside VDC and AVDC.
However, it is better to keep them behaves consistently, such that dev using
VDC / AVDC directly by JAVA will have the same behavior.

b/27449545

Change-Id: Idd3115ec00651885dc5a32c8e38a26d0fd3eb63d
/frameworks/support/graphics/drawable/animated/src/android/support/graphics/drawable/AnimatedVectorDrawableCompat.java
7d46b1f5b664c1ade7baecf785e947cf7c897656 13-Feb-2016 Tenghui Zhu <ztenghui@google.com> Merge "Clarify the JavaDoc for VDC and AVDC" into mnc-ub-dev
a4b98c80060206f3d0334ec634a28e208dbbf409 12-Feb-2016 Tenghui Zhu <ztenghui@google.com> Merge "Revert "Revert "Fix VFY warning for VDC and AVDC about calling the new API on old platform.""" into mnc-ub-dev
ebbed34a78fa6519de6c2848e68b97f9d3b98e08 12-Feb-2016 Tenghui Zhu <ztenghui@google.com> Revert "Revert "Fix VFY warning for VDC and AVDC about calling the new API on old platform.""

This reverts commit 526ef1f65d55cc71f937773da63051f5fa7627ca.

Change-Id: Id558c0d0ffa79f4c78d34664014a5249eb974dc7
/frameworks/support/graphics/drawable/animated/src/android/support/graphics/drawable/AnimatedVectorDrawableCompat.java
ade92f9dc7302c643ee7abb01dedf3b4f8bc79b7 12-Feb-2016 Tenghui Zhu <ztenghui@google.com> Merge "Revert "Fix VFY warning for VDC and AVDC about calling the new API on old platform."" into mnc-ub-dev
526ef1f65d55cc71f937773da63051f5fa7627ca 12-Feb-2016 Tenghui Zhu <ztenghui@google.com> Revert "Fix VFY warning for VDC and AVDC about calling the new API on old platform."

This reverts commit 78fe6d45794f3e5f2b879ea4f931081f5ebfa334.

Change-Id: Id8df52b6e37799885f794fd2d963a6865c914274
/frameworks/support/graphics/drawable/animated/src/android/support/graphics/drawable/AnimatedVectorDrawableCompat.java
7c839dcff721b584defb5bedb18c05fae5b99d24 11-Feb-2016 Teng-Hui Zhu <ztenghui@google.com> Clarify the JavaDoc for VDC and AVDC

Basically referring to the framework's version, instead of duplication.

Change-Id: I087486515fdf44579c6d43bc5fd20c8c3d29c707
/frameworks/support/graphics/drawable/animated/src/android/support/graphics/drawable/AnimatedVectorDrawableCompat.java
408cb9f78c1bedffac5fabbc59c8cbf1932d3610 11-Feb-2016 Tenghui Zhu <ztenghui@google.com> Merge "Fix VFY warning for VDC and AVDC about calling the new API on old platform." into mnc-ub-dev
78fe6d45794f3e5f2b879ea4f931081f5ebfa334 10-Feb-2016 Teng-Hui Zhu <ztenghui@google.com> Fix VFY warning for VDC and AVDC about calling the new API on old platform.

Also remove some drawable API added on 23, which has no implementation on
VectorDrawable anyway.

b/26340645

Change-Id: I436a522d137fd0890f9b5fae4dcc30b6899a6aa5
/frameworks/support/graphics/drawable/animated/src/android/support/graphics/drawable/AnimatedVectorDrawableCompat.java
09c0d7d7f4955586306bd9cdcf34567396a0d545 04-Feb-2016 Chet Haase <chet@google.com> Fix color interpolation for AnimatedVectorDrawableCompat

A fix was made in L such that inflated animators using color
values would automatically get an ArgbEvaluator, to ensure that
color animations would look correct. AnimatedVectorDrawableCompat
does not automatically get that L behavior on earlier releases.
To make the animation look correct, this fix sets an ArgbEvaluator
on animators targeting the "fillColor" property on pre-L releases.

Issue #26965996 Fix Color interpolation bug for SDK <21 in support lib

Change-Id: I2662b17bebfcecca243f00f81d64eebbf4d59d43
/frameworks/support/graphics/drawable/animated/src/android/support/graphics/drawable/AnimatedVectorDrawableCompat.java
bd3494de1d97206f366f52641a14b21eb06a7022 27-Jan-2016 Chris Banes <chrisbanes@google.com> Integrate AVDC into AppCompat

BUG: 26638431

Change-Id: I94f5ca63099c1118575ac0b3bf9faabb2a795757
/frameworks/support/graphics/drawable/animated/src/android/support/graphics/drawable/AnimatedVectorDrawableCompat.java
2c3c8bff4c669316cdc2db24b72d9ac3f9b33725 05-Dec-2015 Teng-Hui Zhu <ztenghui@google.com> Add Gradle support and tests in VDC and AVDC

Fix some bugs which are fixed in MNC and ported here too.
b/22564270

Change-Id: I9e5b195134d6ce759d9cc74f6072f6f105b0ce2f
/frameworks/support/graphics/drawable/animated/src/android/support/graphics/drawable/AnimatedVectorDrawableCompat.java
968dcfaff0c0a9e85ff4db2a985188f6996f5dad 30-Nov-2015 Teng-Hui Zhu <ztenghui@google.com> Refactor the common interface into an abstract class

No new functionality added, pure refactor.

b/22564270/

Change-Id: I657491d5c41e70112b60c3f5f5d1ddba43c3e774
/frameworks/support/graphics/drawable/animated/src/android/support/graphics/drawable/AnimatedVectorDrawableCompat.java
9f8d3b8d31e1e6a4bbdc68563691650ebff21353 18-Nov-2015 Teng-Hui Zhu <ztenghui@google.com> Delegate the VDC and AVDC to the framework version when above Lollipop

Setup the call back properly such that invalidation can be passed from AVDC to
its delegate.

ConstantState is also delegated when above Lollipop. newDrawable() will be
wrapped inside a VDC or AVDC and return.

b/22564270

Change-Id: I73907dba013f0afbfb8a8f7938ea852c830607d8
/frameworks/support/graphics/drawable/animated/src/android/support/graphics/drawable/AnimatedVectorDrawableCompat.java
d85f3e0b931d3e127242a375e0d00c4696bba912 10-Nov-2015 Teng-Hui Zhu <ztenghui@google.com> Use android namespace in (Animated)VectorDrawableCompat.

To workaround the possible resource id confliction issue, check the attribute
existence before TypedArray get its value.
A little perfomance cost on inflation time here, but that is the only way to
protect us from the id confliction.

Add some more manual tests, covering references too.

https://b.corp.google.com/issues/22564270

Change-Id: Iee5f559372c553ed1d936404f86c7195ca657a1c
/frameworks/support/graphics/drawable/animated/src/android/support/graphics/drawable/AnimatedVectorDrawableCompat.java
4fcaa70c2362e58a3fb30d140f0a0eeda8e35b44 04-Mar-2015 ztenghui <ztenghui@google.com> Add the support lib for VD and AVD

By using auto namespace, we have all the functionality we want for support lib
of VD and AVD.

All the java files in the support lib are based upon the framework ones, with
slight modification.

The test cases are also from framework test, with namespace changed.
Note that the animator part are still using android namespace since they are
supported in v11.

TODO:
1 integrate the AAPT support to use android namespace.
2 find the best way to integrate the framework VD AVD for L+.

b/19200714

Change-Id: I10a80a89d26237ea780368e19929d83cd7678fff
/frameworks/support/graphics/drawable/animated/src/android/support/graphics/drawable/AnimatedVectorDrawableCompat.java