summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramStore.java
diff options
context:
space:
mode:
authorChris Li <lihongyu@google.com>2020-10-13 15:13:46 -0700
committerChris Li <lihongyu@google.com>2020-10-13 22:15:09 -0700
commitd93fff6c0ffac8724dd12bd98cc0eef5a77d0f27 (patch)
tree97fb0b2d09288f317058b005f75cd54e83d96919 /rs/java/android/renderscript/ProgramStore.java
parent4a11c4408f280ab99877042692d1250d2ac49be3 (diff)
Support ignoring orientation request on DisplayArea level
1. Move the mIgnoreOrientationRequest to DisplayArea so that one can set it on DisplayContent and DisplayAreaGroup to ignore orientation request from non-app windows. 2. Have the DisplayContent to return SCREEN_ORIENTATION_UNSPECIFIED when it is SCREEN_ORIENTATION_UNSET so that the display respects sensor rotation. 3. Move the logic of using last orientation back to TDA, otherwise when TDA returns UNSET because ignore is set, DC may incorrectly uses the last orientation. Bug: 170725334 Bug: 155431879 Test: manual: test with setting TDA and DC to ignore Test: atest WmTests:TaskDisplayAreaTests Test: atest WmTests:WindowOrganizerTests Test: atest WmTests:DisplayAreaTest Test: atest WmTests:DisplayContentTests Change-Id: Ie92b059c453204799a58efd39dc9b23f7d62816d
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions