summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorRiddle Hsu <riddlehsu@google.com>2020-02-18 12:45:41 +0800
committerRiddle Hsu <riddlehsu@google.com>2020-03-05 00:20:44 +0800
commite47501bc09899d3bdf696383c9e8dd1f85fb7b2d (patch)
tree8201e49211e151c9725d1c401e318b026af04acf /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentbed09965dd5cf3d3da2c6cf0e6378d090e802d64 (diff)
Consolidate size compat bounds calculation
- Since hierarchy was merged, the compat bounds can be computed in a single place resolveSizeCompatModeConfiguration(). - Originally, the horizontal centered bounds rely on mSizeCompatBounds to override getBounds(). Now mSizeCompatBounds is null unless the activity is scaled or its top insets cannot match parent. The centered bounds are calculated both on first startup and configuration changed. - Encapsulate the raw compat bounds calculation to CompatDisplayInsets. And add support for the cases that display cannot rotatate or the orientation from descendant is ignored. - Fix global coordinates are involved in size compat space, that causes the resolved bounds are intersected with insets unexpectedly. Now the actual screen position is applied at the last step of resolving. - Fix TestDisplayContent uses inverted condition to toggle rotatable, which hides some test failures. - Fix IME is shifted on a horizontal centered size compat activity. Fix: 149760957 Bug: 146483215 Bug: 139656157 Test: atest SizeCompatTests TaskRecordTests Change-Id: If4d52d85cd54414071fd320a5d06a78d78fb36f4
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions