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

Commit 2abe8a74 authored by Michael Wright's avatar Michael Wright Committed by android-build-merger
Browse files

Merge "Make display mirroring for local displays configurable." into nyc-dev

am: 848727cd

* commit '848727cd':
  Make display mirroring for local displays configurable.
parents 8391d839 848727cd
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1860,6 +1860,10 @@
        <item>-1</item>
    </integer-array>

    <!-- When true, local displays that do not contain any of their own content will automatically
         mirror the content of the default display. -->
    <bool name="config_localDisplaysMirrorContent">true</bool>

    <!-- When true use the linux /dev/input/event subsystem to detect the switch changes
         on the headphone/microphone jack. When false use the older uevent framework. -->
    <bool name="config_useDevInputEventForAudioJack">false</bool>
+1 −0
Original line number Diff line number Diff line
@@ -306,6 +306,7 @@
  <java-symbol type="bool" name="config_freeformWindowManagement" />
  <java-symbol type="bool" name="config_supportsMultiWindow" />
  <java-symbol type="bool" name="config_guestUserEphemeral" />
  <java-symbol type="bool" name="config_localDisplaysMirrorContent" />
  <java-symbol type="string" name="config_defaultPictureInPictureBounds" />
  <java-symbol type="string" name="config_centeredPictureInPictureBounds" />
  <java-symbol type="string" name="config_pictureInPictureBoundsInRecents" />
+6 −1
Original line number Diff line number Diff line
@@ -384,8 +384,8 @@ final class LocalDisplayAdapter extends DisplayAdapter {
                            | DisplayDeviceInfo.FLAG_SUPPORTS_PROTECTED_BUFFERS;
                }

                if (mBuiltInDisplayId == SurfaceControl.BUILT_IN_DISPLAY_ID_MAIN) {
                final Resources res = getContext().getResources();
                if (mBuiltInDisplayId == SurfaceControl.BUILT_IN_DISPLAY_ID_MAIN) {
                    mInfo.name = res.getString(
                            com.android.internal.R.string.display_manager_built_in_display_name);
                    mInfo.flags |= DisplayDeviceInfo.FLAG_DEFAULT_DISPLAY
@@ -419,6 +419,11 @@ final class LocalDisplayAdapter extends DisplayAdapter {
                    if (SystemProperties.getBoolean("persist.demo.hdmirotates", false)) {
                        mInfo.flags |= DisplayDeviceInfo.FLAG_ROTATES_WITH_CONTENT;
                    }

                    if (!res.getBoolean(
                                com.android.internal.R.bool.config_localDisplaysMirrorContent)) {
                        mInfo.flags |= DisplayDeviceInfo.FLAG_OWN_CONTENT_ONLY;
                    }
                }
            }
            return mInfo;