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

Commit 429f1f11 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 9454839 from bc2a6556 to tm-qpr2-release

Change-Id: I70fdc5beef08965d20b783b872307fcc179f2a10
parents f4c70d67 bc2a6556
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -1021,6 +1021,19 @@ public class ActivityInfo extends ComponentInfo implements Parcelable {
    @Retention(RetentionPolicy.SOURCE)
    public @interface SizeChangesSupportMode {}

    /**
     * This change id enables compat policy that ignores app requested orientation in
     * response to an app calling {@link android.app.Activity#setRequestedOrientation}. See
     * com.android.server.wm.LetterboxUiController#shouldIgnoreRequestedOrientation for
     * details.
     * @hide
     */
    @ChangeId
    @Overridable
    @Disabled
    public static final long OVERRIDE_ENABLE_COMPAT_IGNORE_REQUESTED_ORIENTATION =
            254631730L; // buganizer id

    /**
     * This change id forces the packages it is applied to never have Display API sandboxing
     * applied for a letterbox or SCM activity. The Display APIs will continue to provide
+39 −0
Original line number Diff line number Diff line
@@ -813,6 +813,45 @@ public interface WindowManager extends ViewManager {
        int SCREENSHOT_VENDOR_GESTURE = 6;
    }

    /**
     * Activity level {@link android.content.pm.PackageManager.Property PackageManager
     * .Property} for an app to inform the system that the activity can be opted-in or opted-out
     * from the compatibility treatment that avoids {@link
     * android.app.Activity#setRequestedOrientation} loops. The loop can be trigerred by
     * ignoreRequestedOrientation display setting enabled on the device or by the landscape natural
     * orientation of the device.
     *
     * <p>The treatment is disabled by default but device manufacturers can enable the treatment
     * using their discretion to improve display compatibility.
     *
     * <p>With this property set to {@code true}, the system could ignore {@link
     * android.app.Activity#setRequestedOrientation} call from an app if one of the following
     * conditions are true:
     * <ul>
     *     <li>Activity is relaunching due to the previous {@link
     *     android.app.Activity#setRequestedOrientation} call.
     *     <li>Camera compatibility force rotation treatment is active for the package.
     * </ul>
     *
     * <p>Setting this property to {@code false} informs the system that the activity must be
     * opted-out from the compatibility treatment even if the device manufacturer has opted the app
     * into the treatment.
     *
     * <p><b>Syntax:</b>
     * <pre>
     * &lt;activity&gt;
     *   &lt;property
     *     android:name="android.window.PROPERTY_COMPAT_IGNORE_REQUESTED_ORIENTATION"
     *     android:value="true|false"/&gt;
     * &lt;/activity&gt;
     * </pre>
     *
     * @hide
     */
    // TODO(b/263984287): Make this public API.
    String PROPERTY_COMPAT_IGNORE_REQUESTED_ORIENTATION =
            "android.window.PROPERTY_COMPAT_IGNORE_REQUESTED_ORIENTATION";

    /**
     * @hide
     */
+5 −0
Original line number Diff line number Diff line
@@ -26,6 +26,11 @@ toddke@google.com
tsuji@google.com
yamasani@google.com

# WindowManager team
# TODO(262451702): Move WindowManager configs out of config.xml in a separate file
per-file core/res/res/values/config.xml = file:/services/core/java/com/android/server/wm/OWNERS
per-file core/res/res/values/symbols.xml = file:/services/core/java/com/android/server/wm/OWNERS

# Resources finalization
per-file res/xml/public-staging.xml = file:/tools/aapt2/OWNERS
per-file res/xml/public-final.xml = file:/tools/aapt2/OWNERS
+5 −0
Original line number Diff line number Diff line
@@ -5328,6 +5328,11 @@
        If given value is outside of this range, the option 0 (top) is assummed. -->
    <integer name="config_letterboxDefaultPositionForTabletopModeReachability">0</integer>

    <!-- Whether should ignore app requested orientation in response to an app
         calling Activity#setRequestedOrientation. See
         LetterboxUiController#shouldIgnoreRequestedOrientation for details. -->
    <bool name="config_letterboxIsPolicyForIgnoringRequestedOrientationEnabled">false</bool>

    <!-- Whether displaying letterbox education is enabled for letterboxed fullscreen apps. -->
    <bool name="config_letterboxIsEducationEnabled">false</bool>

+1 −0
Original line number Diff line number Diff line
@@ -4457,6 +4457,7 @@
  <java-symbol type="integer" name="config_letterboxDefaultPositionForVerticalReachability" />
  <java-symbol type="integer" name="config_letterboxDefaultPositionForBookModeReachability" />
  <java-symbol type="integer" name="config_letterboxDefaultPositionForTabletopModeReachability" />
  <java-symbol type="bool" name="config_letterboxIsPolicyForIgnoringRequestedOrientationEnabled" />
  <java-symbol type="bool" name="config_letterboxIsEducationEnabled" />
  <java-symbol type="dimen" name="config_letterboxDefaultMinAspectRatioForUnresizableApps" />
  <java-symbol type="bool" name="config_letterboxIsSplitScreenAspectRatioForUnresizableAppsEnabled" />
Loading