summaryrefslogtreecommitdiff
path: root/core/java/android/window/WindowContainerTransaction.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 /core/java/android/window/WindowContainerTransaction.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 'core/java/android/window/WindowContainerTransaction.java')
-rw-r--r--core/java/android/window/WindowContainerTransaction.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/java/android/window/WindowContainerTransaction.java b/core/java/android/window/WindowContainerTransaction.java
index ba901549f2b5..eba4fd21166d 100644
--- a/core/java/android/window/WindowContainerTransaction.java
+++ b/core/java/android/window/WindowContainerTransaction.java
@@ -238,10 +238,10 @@ public final class WindowContainerTransaction implements Parcelable {
}
/**
- * Sets whether a container should ignore the orientation request from apps below it. It
- * currently only applies to {@link com.android.server.wm.TaskDisplayArea}. When {@code false},
- * it may rotate based on the orientation request; When {@code true}, it can never specify
- * orientation, but shows the fixed-orientation apps in the letterbox.
+ * Sets whether a container should ignore the orientation request from apps and windows below
+ * it. It currently only applies to {@link com.android.server.wm.DisplayArea}. When
+ * {@code false}, it may rotate based on the orientation request; When {@code true}, it can
+ * never specify orientation, but shows the fixed-orientation apps below it in the letterbox.
* @hide
*/
@NonNull