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

Commit 2f4a17ad authored by Vladimir Komsiyski's avatar Vladimir Komsiyski Committed by Android (Google) Code Review
Browse files

Merge "Make VIRTUAL_DISPLAY_FLAG_ROTATES_WITH_CONTENT a SytemApi." into main

parents c1da309e 981f074e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -4529,6 +4529,7 @@ package android.hardware.display {
    method @RequiresPermission(android.Manifest.permission.CONFIGURE_DISPLAY_BRIGHTNESS) public void setBrightnessConfiguration(android.hardware.display.BrightnessConfiguration);
    method @RequiresPermission(android.Manifest.permission.CONFIGURE_DISPLAY_BRIGHTNESS) public void setBrightnessConfigurationForDisplay(@NonNull android.hardware.display.BrightnessConfiguration, @NonNull String);
    method @Deprecated @RequiresPermission(android.Manifest.permission.CONTROL_DISPLAY_SATURATION) public void setSaturationLevel(float);
    field public static final int VIRTUAL_DISPLAY_FLAG_ROTATES_WITH_CONTENT = 128; // 0x80
    field public static final int VIRTUAL_DISPLAY_FLAG_STEAL_TOP_FOCUS_DISABLED = 65536; // 0x10000
    field public static final int VIRTUAL_DISPLAY_FLAG_TRUSTED = 1024; // 0x400
  }
+11 −1
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@ import android.annotation.LongDef;
import android.annotation.NonNull;
import android.annotation.Nullable;
import android.annotation.RequiresPermission;
import android.annotation.SuppressLint;
import android.annotation.SystemApi;
import android.annotation.SystemService;
import android.annotation.TestApi;
@@ -364,11 +365,20 @@ public final class DisplayManager {

    /**
     * Virtual display flag: Indicates that the orientation of this display device is coupled to
     * the rotation of its associated logical display.
     * the orientation of its associated logical display.
     * <p>
     * The flag should not be set when the physical display is mounted in a fixed orientation
     * such as on a desk. Without this flag, display manager will apply a coordinate transformation
     * such as a scale and translation to letterbox or pillarbox format under the assumption that
     * the physical orientation of the display is invariant. With this flag set, the content will
     * rotate to fill in the space of the display, as it does on the internal device display.
     * </p>
     *
     * @see #createVirtualDisplay
     * @hide
     */
    @SuppressLint("UnflaggedApi")
    @SystemApi
    public static final int VIRTUAL_DISPLAY_FLAG_ROTATES_WITH_CONTENT = 1 << 7;

    /**