Added BlendMode equivalent APIs to replace deprecated PorterDuff

variants

Updated various framework Views to have equivalent BlendMode APIs
to replace the deprecated PorterDuff equivalents.
Updated InspectableProperty annotations to refer to the same
xml attributes as the original tintmode APIs

Bug: 126726419
Test: Added CTS tests to verify new BlendMode APIs
Change-Id: Id9ab36d3d4d29f351250723e9d13d49bc6062c83
Merged-In: Id9ab36d3d4d29f351250723e9d13d49bc6062c83
This commit is contained in:
Nader Jawad
2019-04-14 21:58:04 -07:00
committed by Aurimas Liutikas
parent a8853fe282
commit 531db61ac1
33 changed files with 594 additions and 245 deletions

View File

@@ -1274,10 +1274,7 @@ public class Paint {
* Get the paint's transfer mode object.
*
* @return the paint's transfer mode (or null)
*
* @deprecated use {@link #getBlendMode()} instead
*/
@Deprecated
public Xfermode getXfermode() {
return mXfermode;
}
@@ -1308,11 +1305,7 @@ public class Paint {
*
* @param xfermode May be null. The xfermode to be installed in the paint
* @return xfermode
*
* @deprecated Use {@link #setBlendMode} to apply a Xfermode directly
* through usage of {@link BlendMode}
*/
@Deprecated
public Xfermode setXfermode(Xfermode xfermode) {
return installXfermode(xfermode);
}