From 52c090c749bb1d18599011de26d06bc5b00510b6 Mon Sep 17 00:00:00 2001 From: Nader Jawad Date: Fri, 5 Apr 2019 13:55:26 -0700 Subject: Fix LaTeX formatting in Android documentation Added missing usesMathJax tag within Javadoc for each BlendMode enum value. This should ensure that the blending formulas are rendered properly in the android documentation Test: N/A Bug: 130041190 Change-Id: I6c6dcc1804d8399468191bf758bf6cc7685918b5 (cherry picked from commit 39055b05e023a76941eb601d2c18df6b6db88117) --- graphics/java/android/graphics/BlendMode.java | 58 +++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) (limited to 'graphics/java') diff --git a/graphics/java/android/graphics/BlendMode.java b/graphics/java/android/graphics/BlendMode.java index 0b267048d976..5c294aa72ce8 100644 --- a/graphics/java/android/graphics/BlendMode.java +++ b/graphics/java/android/graphics/BlendMode.java @@ -22,6 +22,8 @@ import android.annotation.Nullable; public enum BlendMode { /** + * {@usesMathJax} + * *

* *

Destination pixels covered by the source are cleared to 0.
@@ -32,6 +34,8 @@ public enum BlendMode { CLEAR(0), /** + * {@usesMathJax} + * *

* *

The source pixels replace the destination pixels.
@@ -42,6 +46,8 @@ public enum BlendMode { SRC(1), /** + * {@usesMathJax} + * *

* *

The source pixels are discarded, leaving the destination intact.
@@ -52,6 +58,8 @@ public enum BlendMode { DST(2), /** + * {@usesMathJax} + * *

* *

The source pixels are drawn over the destination pixels.
@@ -62,6 +70,8 @@ public enum BlendMode { SRC_OVER(3), /** + * {@usesMathJax} + * *

* *

The source pixels are drawn behind the destination pixels.
@@ -72,6 +82,8 @@ public enum BlendMode { DST_OVER(4), /** + * {@usesMathJax} + * *

* *

Keeps the source pixels that cover the destination pixels, @@ -83,6 +95,8 @@ public enum BlendMode { SRC_IN(5), /** + * {@usesMathJax} + * *

* *

Keeps the destination pixels that cover source pixels, @@ -94,6 +108,8 @@ public enum BlendMode { DST_IN(6), /** + * {@usesMathJax} + * *

* *

Keeps the source pixels that do not cover destination pixels. @@ -106,6 +122,8 @@ public enum BlendMode { SRC_OUT(7), /** + * {@usesMathJax} + * *

* *

Keeps the destination pixels that are not covered by source pixels. @@ -118,6 +136,8 @@ public enum BlendMode { DST_OUT(8), /** + * {@usesMathJax} + * *

* *

Discards the source pixels that do not cover destination pixels. @@ -129,6 +149,8 @@ public enum BlendMode { SRC_ATOP(9), /** + * {@usesMathJax} + * *

* *

Discards the destination pixels that are not covered by source pixels. @@ -140,6 +162,8 @@ public enum BlendMode { DST_ATOP(10), /** + * {@usesMathJax} + * *

* *

Discards the source and destination pixels where source pixels @@ -153,6 +177,8 @@ public enum BlendMode { XOR(11), /** + * {@usesMathJax} + * *

* *

Adds the source pixels to the destination pixels and saturates @@ -164,6 +190,8 @@ public enum BlendMode { PLUS(12), /** + * {@usesMathJax} + * *

* *

Multiplies the source and destination pixels.
@@ -175,6 +203,8 @@ public enum BlendMode { MODULATE(13), /** + * {@usesMathJax} + * *

* *

@@ -188,6 +218,8 @@ public enum BlendMode { SCREEN(14), /** + * {@usesMathJax} + * *

* *

@@ -205,6 +237,8 @@ public enum BlendMode { OVERLAY(15), /** + * {@usesMathJax} + * *

* *

@@ -221,6 +255,8 @@ public enum BlendMode { DARKEN(16), /** + * {@usesMathJax} + * *

* *

Retains the largest component of the source and @@ -235,6 +271,8 @@ public enum BlendMode { LIGHTEN(17), /** + * {@usesMathJax} + * *

* *

Makes destination brighter to reflect source.
@@ -257,6 +295,8 @@ public enum BlendMode { COLOR_DODGE(18), /** + * {@usesMathJax} + * *

* *

Makes destination darker to reflect source.
@@ -280,6 +320,8 @@ public enum BlendMode { COLOR_BURN(19), /** + * {@usesMathJax} + * *

* *

Makes destination lighter or darker, depending on source.
@@ -302,6 +344,8 @@ public enum BlendMode { HARD_LIGHT(20), /** + * {@usesMathJax} + * *

* *

Makes destination lighter or darker, depending on source.
@@ -348,6 +392,8 @@ public enum BlendMode { SOFT_LIGHT(21), /** + * {@usesMathJax} + * *

* *

Subtracts darker from lighter with higher contrast.
@@ -367,6 +413,8 @@ public enum BlendMode { DIFFERENCE(22), /** + * {@usesMathJax} + * *

* *

Subtracts darker from lighter with lower contrast.
@@ -385,6 +433,8 @@ public enum BlendMode { EXCLUSION(23), /** + * {@usesMathJax} + * *

* *

Multiplies the source and destination pixels.
@@ -397,6 +447,8 @@ public enum BlendMode { MULTIPLY(24), /** + * {@usesMathJax} + * *

* *

@@ -408,6 +460,8 @@ public enum BlendMode { HUE(25), /** + * {@usesMathJax} + * *

* *

@@ -419,6 +473,8 @@ public enum BlendMode { SATURATION(26), /** + * {@usesMathJax} + * *

* *

@@ -430,6 +486,8 @@ public enum BlendMode { COLOR(27), /** + * {@usesMathJax} + * *

* *

-- cgit v1.2.3-59-g8ed1b