Loading services/java/com/android/server/display/LocalDisplayAdapter.java +6 −0 Original line number Diff line number Diff line Loading @@ -166,6 +166,12 @@ final class LocalDisplayAdapter extends DisplayAdapter { if ("portrait".equals(SystemProperties.get("persist.demo.hdmirotation"))) { mInfo.rotation = Surface.ROTATION_270; } // For demonstration purposes, allow rotation of the external display // to follow the built-in display. if (SystemProperties.getBoolean("persist.demo.hdmirotates", false)) { mInfo.flags |= DisplayDeviceInfo.FLAG_ROTATES_WITH_CONTENT; } } } return mInfo; Loading services/java/com/android/server/display/LogicalDisplay.java +1 −2 Original line number Diff line number Diff line Loading @@ -258,8 +258,7 @@ final class LogicalDisplay { // The orientation specifies how the physical coordinate system of the display // is rotated when the contents of the logical display are rendered. int orientation = Surface.ROTATION_0; if (device == mPrimaryDisplayDevice && (displayDeviceInfo.flags & DisplayDeviceInfo.FLAG_ROTATES_WITH_CONTENT) != 0) { if ((displayDeviceInfo.flags & DisplayDeviceInfo.FLAG_ROTATES_WITH_CONTENT) != 0) { orientation = displayInfo.rotation; } Loading Loading
services/java/com/android/server/display/LocalDisplayAdapter.java +6 −0 Original line number Diff line number Diff line Loading @@ -166,6 +166,12 @@ final class LocalDisplayAdapter extends DisplayAdapter { if ("portrait".equals(SystemProperties.get("persist.demo.hdmirotation"))) { mInfo.rotation = Surface.ROTATION_270; } // For demonstration purposes, allow rotation of the external display // to follow the built-in display. if (SystemProperties.getBoolean("persist.demo.hdmirotates", false)) { mInfo.flags |= DisplayDeviceInfo.FLAG_ROTATES_WITH_CONTENT; } } } return mInfo; Loading
services/java/com/android/server/display/LogicalDisplay.java +1 −2 Original line number Diff line number Diff line Loading @@ -258,8 +258,7 @@ final class LogicalDisplay { // The orientation specifies how the physical coordinate system of the display // is rotated when the contents of the logical display are rendered. int orientation = Surface.ROTATION_0; if (device == mPrimaryDisplayDevice && (displayDeviceInfo.flags & DisplayDeviceInfo.FLAG_ROTATES_WITH_CONTENT) != 0) { if ((displayDeviceInfo.flags & DisplayDeviceInfo.FLAG_ROTATES_WITH_CONTENT) != 0) { orientation = displayInfo.rotation; } Loading