summaryrefslogtreecommitdiffstats
path: root/graphics/java
diff options
context:
space:
mode:
authorTor Norbye <tnorbye@google.com>2015-03-02 10:57:08 -0800
committerTor Norbye <tnorbye@google.com>2015-03-07 20:49:18 -0800
commit1c2bf03d1082fc6b7eb42cbd163c60c07cf2bccc (patch)
treec9b3f05a238831065220463db9ba2a052e329f9b /graphics/java
parentc615c6fc9caca76cd96998f86e1f1e6393aeadbb (diff)
downloadframeworks_base-1c2bf03d1082fc6b7eb42cbd163c60c07cf2bccc.zip
frameworks_base-1c2bf03d1082fc6b7eb42cbd163c60c07cf2bccc.tar.gz
frameworks_base-1c2bf03d1082fc6b7eb42cbd163c60c07cf2bccc.tar.bz2
Annotate return values with @CheckReturn
Change-Id: Icd8fb6adb591ccd7f35f2336ae716b198abf69c5
Diffstat (limited to 'graphics/java')
-rw-r--r--graphics/java/android/graphics/Bitmap.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/graphics/java/android/graphics/Bitmap.java b/graphics/java/android/graphics/Bitmap.java
index aae11cd..e2f7799 100644
--- a/graphics/java/android/graphics/Bitmap.java
+++ b/graphics/java/android/graphics/Bitmap.java
@@ -16,6 +16,7 @@
package android.graphics;
+import android.annotation.CheckResult;
import android.annotation.ColorInt;
import android.annotation.NonNull;
import android.os.Parcel;
@@ -1501,6 +1502,7 @@ public final class Bitmap implements Parcelable {
*
* @return new bitmap containing the alpha channel of the original bitmap.
*/
+ @CheckResult
public Bitmap extractAlpha() {
return extractAlpha(null, null);
}
@@ -1530,6 +1532,7 @@ public final class Bitmap implements Parcelable {
* Canvas.drawBitmap(), where the color(s) will be taken from the
* paint that is passed to the draw call.
*/
+ @CheckResult
public Bitmap extractAlpha(Paint paint, int[] offsetXY) {
checkRecycled("Can't extractAlpha on a recycled bitmap");
long nativePaint = paint != null ? paint.getNativeInstance() : 0;