summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Tiger Huang <tigerhuang@google.com> 2022-07-01 16:58:21 +0800
committer Tiger Huang <tigerhuang@google.com> 2022-07-27 14:10:10 +0800
commitc77eaf873d271082d8aa0c602c3e3f015b5db06a (patch)
tree6ca3ec0787cce568f6a48dba0450f10487e17620 /libs/androidfw/StringPool.cpp
parentbbb516199e96b0eed7a56c6ad31a17d0e4465db6 (diff)
Send size-compat scale to the client
The client computes the window frame on its own in ViewRootImpl#setView. However, the bounds obtained from WindowConfiguration is not size- compatible, which makes legacy apps produce wrong frames. The frame is larger than expected, so when computing WindowInsets with size- compatible InsetsState, the window cannot receive insets. Although the client will receive the correct window frame from relayout, but the first WindowInsets has been dispatched before that. This CL sends the size-compat scale to the client, so the client can use the correct WindowConfiguration to compute frames. This is also a step to enable the client to perform local window layout. Bug: 237749017 Bug: 161810301 Bug: 175861127 Test: atest StartingSurfaceDrawerTests WindowAddRemovePerfTest ActivityRecordTests WindowManagerServiceTests Change-Id: I6b23901f4b1f009444c04da7e078ea971a386ad7
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions