summaryrefslogtreecommitdiff
path: root/core/java/android/view/InsetsFrameProvider.java
Commit message (Collapse)AuthorAgeFilesLines
* Introduce InsetsSizeOverrideYunfan Chen2022-07-061-25/+114
| | | | | | | | | | | | This is to let the insets provider provide a different size to the given windowing typed window. This can completely replace the ime frame provider and the old ime frame provider is migrated. Test: The task bar can still provide correct IME insets Test: DisplayPolicyInsetsTests Test: WmTests Bug: 225200928 Change-Id: I5f8c4462cdc48011efda908e0337a86cbf2a417f
* Refine the provide insets parametersYunfan Chen2022-06-131-0/+205
There're 3 different parameters trying to affect the insets provided by a window and can be set independently but are related. This change will make a new class InsetsFrameProvider to let the window set all the information needed for the insets at the same place. Besides, this change also extends the insets calculation logic to support more use cases. With this, the bars can provide insets outside of its window frame as well. Test: atest DisplayPolicyLayoutTests Bug: 161689946 Bug: 232044523 Merged-In: I7059b3a222745818b6852a288416e197e2afd7b2 Change-Id: I7059b3a222745818b6852a288416e197e2afd7b2