summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/Program.java
diff options
context:
space:
mode:
authorSam Lin <samlin@google.com>2019-02-18 04:50:26 -0800
committerCharles Chen <charlesccchen@google.com>2019-02-20 20:09:29 +0800
commit4c3ac2ba2653f06bb7151dabca711a01fba2e2b3 (patch)
tree15509f5526d4e8f725ff82c31370d53837483161 /rs/java/android/renderscript/Program.java
parentaa7b6826995403dac030bcf9886d9eb099d5cfee (diff)
Disables display content scaling for foldables
When setting folded area with changes both in width and height (set 0,0,540,1080 to a 1080x2160 device), the content of display will be auto-scaled to physical display size. It is not an expected behavior for foldable devices. Disable auto-scale to fix this issue. 1. LogicalDisplay.configureDisplayLocked() scales the contents according the DisplayInfo.flags. 2. DisplayInfo.flags should not be overridden by design for a logical display. 3. Adds disableDisplayScaling() for DisplayFoldController to bypass that. Bug: 123245311 Test: atest WmTests Test: adb shell wm folded-area 0,0,840,1260 Change-Id: I9a24c5d56799981b4f2cfe82fdf1898d87193681
Diffstat (limited to 'rs/java/android/renderscript/Program.java')
0 files changed, 0 insertions, 0 deletions