Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5d350117 authored by John Reck's avatar John Reck
Browse files

Add missing annotations

Bug: 67608144
Test: make offline-sdk-docs verified docstring shows up
Change-Id: I22bcfcc58888fa2d4c479e4687afb2fabd5b2f71
parent a08d7489
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@ import android.annotation.ColorInt;
import android.annotation.NonNull;
import android.annotation.Nullable;
import android.annotation.Size;
import android.annotation.WorkerThread;
import android.content.res.ResourcesImpl;
import android.os.Parcel;
import android.os.Parcelable;
@@ -1233,6 +1234,7 @@ public final class Bitmap implements Parcelable {
     * @param stream   The outputstream to write the compressed data.
     * @return true if successfully compressed to the specified stream.
     */
    @WorkerThread
    public boolean compress(CompressFormat format, int quality, OutputStream stream) {
        checkRecycled("Can't compress a recycled bitmap");
        // do explicit check before calling the native method
+3 −0
Original line number Diff line number Diff line
@@ -354,6 +354,7 @@ public class BitmapFactory {
         * decode, in the case of which a more accurate, but slightly slower,
         * IDCT method will be used instead.
         */
        @Deprecated
        public boolean inPreferQualityOverSpeed;

        /**
@@ -412,6 +413,7 @@ public class BitmapFactory {
         * can check, inbetween the bounds decode and the image decode, to see
         * if the operation is canceled.
         */
        @Deprecated
        public boolean mCancel;

        /**
@@ -426,6 +428,7 @@ public class BitmapFactory {
         *  or if inJustDecodeBounds is true, will set outWidth/outHeight
         *  to -1
         */
        @Deprecated
        public void requestCancelDecode() {
            mCancel = true;
        }