Skip to content
Commit 2d560e69 authored by Chris Li's avatar Chris Li
Browse files

Reverse the requested orientation on DisplayAreaGroup

When the DisplayAreaGroup has a different orientation from the Display,
reverse the app requested orientation.

As a result, when the display rotates to the reversed orientation, the
DAG and the requested app will be in the requested orientation.

For example, if the display is 1200x900 (landscape), and this DAG is
600x900 (portrait).
When an app below this DAG is requesting landscape, it should actually
request the display to be portrait, so that the DAG and the app will be
in landscape.

Bug: 155431879
Test: manual: test with dual display area policy
Test: atest WmTests:DisplayAreaGroupTest
Change-Id: Ie6874413ca0f6fa999632fb26f27e9913ccaee0d
parent 341125c8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment