summaryrefslogtreecommitdiff
path: root/core/java/android/inputmethodservice/InputMethodService.java
diff options
context:
space:
mode:
authorYunfan Chen <yunfanc@google.com>2021-08-24 17:42:23 +0900
committerYunfan Chen <yunfanc@google.com>2021-08-25 17:36:04 +0900
commit8299a4c9ed070361d4690d5c3368c18b833d42b4 (patch)
treed42095ed5b3852236abaaf034e3605d83f04f070 /core/java/android/inputmethodservice/InputMethodService.java
parent362c83f7b5c821acc81d1399d8e5c6085cf8bbdd (diff)
Make window metrics contains all insets information
The window metrics is mostly for the case the window is not in their maximum bounds to get hints. If the window is not there yet, and the display is in freeform, current implementation will assume the window is in freeform windowing mode, and the system bars will be removed from the insets. This will also happen to the windows with other windowing modes. This behavior is not consistant with the API definiation and will cause problem to ViewTest#testGetWindowVisibleDisplayFrame on freeform display. The change is to make sure we consider the window is in fullscreen windowing mode when we try to get insets for window metrics. Test: atest ViewTest Test: atest DisplayPolicyTests DisplayPolicyLayoutTests Test: atest WindowMetricsWindowContextTests WindowMetricsTest Test: atest WindowMetricsActivityTests Test: m checkbuild Bug: 179454891 Change-Id: Iae264b567c161bdf4f3d0248c5f81de92fd47828
Diffstat (limited to 'core/java/android/inputmethodservice/InputMethodService.java')
0 files changed, 0 insertions, 0 deletions