summaryrefslogtreecommitdiff
path: root/core/java/android/window/ConfigurationHelper.java
Commit message (Collapse)AuthorAgeFilesLines
* Send update config change when letterbox is movedGraciela Wissen Putri2023-06-161-1/+1
| | | | | | | | | | | | | | | | | | When letterbox is repositioned, window configuration bounds are changed. Because we currently only report public config changes in diffPublicOnly, the client doesn't report changes in window configuration. We should always report window configuration bounds change to notify that the position of window has changed. Bug: 262900133 Test: atest FrameworksCoreTests:android.app.activity.ActivityThreadTest Manual test with app in bug (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:70187af25ce3f56f85ddd703f982caa82f685605) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:2d435949ef08a2219feb23dba035f5a78b038f3f) Merged-In: I9fc10876c03933ac8aac05205d56ad6537df72a8 Change-Id: I9fc10876c03933ac8aac05205d56ad6537df72a8
* Merge "Report Activity config changes only if it handles the change"Charles Chen2022-02-081-18/+0
|\
| * Report Activity config changes only if it handles the changeCharles Chen2022-01-261-18/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | In S, we don't dispatch #onConfigurationChanged callback if the screen size changes doesn't corss size buckets. However,user may still want to know the change even if it's very small. This CL changes to dispatch the callback if the Activity handles the config changes. Also clean-up the unused code. Bug: 202468254 Test: atest AppConfigurationTests Change-Id: Ief68922ed80a0fcfc05c7ccb5e3692334352a2c3
* | Move fixed-rotation-related display information into configEvan Rosky2022-01-261-0/+16
|/ | | | | | | | | | | | | | | | | | | | Augment the "apparent" display information in configuration from just the display bounds (maxBounds) to also include the display rotation and cutout. Like maxBounds, these will be expected to always be set as basically "the display that this configuration was built against". This heavily simplifies fixed-rotation since now we don't need to deal with the "are we overriding?" question and also don't need extra activity servertransactions. The configuration is also in sync (since it is the source of truth used by resources). Additionally, this means that even the current legacy fixed-rotation model should work with in any mixed-rotation situtaion, not just fullscreen. Bug: 202201326 Test: atest DisplayTest Change-Id: I6232f74c74324b70b1b0c9f46448c509c2694310
* Handle WindowProviderService#onConfigurationChangedCharles Chen2021-06-181-0/+132
This CL makes WindowProviderService receive onConfigurationChanged callback when there's a config update from WM side. Test: atest WindowContextTests Test: atest ActivityThreadTest ActivityClientTest ConfigurationHelperTest fixes: 185766946 Change-Id: I922d52c1c38aecc1a948c79039cc03354adc646f