commit | 528457543a11f7879df5106dd4ebc4ded89b4c0d | [log] [tgz] |
---|---|---|
author | Hongwei Wang <hwwang@google.com> | Thu Feb 16 15:37:27 2023 -0800 |
committer | Hongwei Wang <hwwang@google.com> | Fri Feb 17 10:23:52 2023 -0800 |
tree | 041f804a94a45b5a20b6f654d72b06feea1889bb | |
parent | 82dc9cb01cc48162ee4a82adcd37ad5bf2a481ab [diff] |
Add DevicePostureController for WMShell This can be used for WMShell component who is interested in the foldable state, such as OPEN / CLOSE / HALF_OPEN. When device is in HALF_OPEN state, one can use the rotation state to further differentiate tabletop (horizontal fold) or book (vertical fold) posture. See also: https://developer.android.com/guide/topics/large-screens/learn-about-foldables#foldable_postures Bug: 260871991 Test: atest WMShellUnitTests:DevicePostureControllerTest Change-Id: I8fd7c0e296db4abbddbd9131bf18bd541b7b9944