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

Commit 70a4c768 authored by Minche Li's avatar Minche Li Committed by Android (Google) Code Review
Browse files

Merge "Updates the doc for FEATURE_WINDOW_MAGNIFICATION" into tm-dev

parents d4dc4fbf 76ee08ef
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -42,9 +42,9 @@ import java.lang.annotation.RetentionPolicy;
 * </p>
 *
 * <p>
 * When the magnification config uses {@link #MAGNIFICATION_MODE_WINDOW}.
 * {@link AccessibilityService} will be able to control the activated window magnifier
 * on the display.
 * When the magnification config uses {@link #MAGNIFICATION_MODE_WINDOW} and the platform
 * supports {@link android.content.pm.PackageManager#FEATURE_WINDOW_MAGNIFICATION} feature.
 * {@link AccessibilityService} will be able to control window magnifier on the display.
 * </p>
 *
 * <p>
@@ -57,9 +57,12 @@ public final class MagnificationConfig implements Parcelable {

    /** The controlling magnification mode. It controls the activated magnifier. */
    public static final int MAGNIFICATION_MODE_DEFAULT = 0;
    /** The controlling magnification mode. It controls fullscreen magnifier. */
    /** The controlling magnification mode. It controls full-screen magnifier. */
    public static final int MAGNIFICATION_MODE_FULLSCREEN = 1;
    /** The controlling magnification mode. It controls window magnifier. */
    /**
     * The controlling magnification mode. It is valid if the platform supports
     * {@link android.content.pm.PackageManager#FEATURE_WINDOW_MAGNIFICATION} feature.
     */
    public static final int MAGNIFICATION_MODE_WINDOW = 2;

    /** @hide */
+2 −0
Original line number Diff line number Diff line
@@ -4188,6 +4188,8 @@ public abstract class PackageManager {
    /**
     * Feature for {@link #getSystemAvailableFeatures} and {@link #hasSystemFeature}: The device
     * supports window magnification.
     *
     * @see android.accessibilityservice.MagnificationConfig#MAGNIFICATION_MODE_WINDOW
     */
    @SdkConstant(SdkConstantType.FEATURE)
    public static final String FEATURE_WINDOW_MAGNIFICATION =