summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Marin Shalamanov <shalamanov@google.com> 2021-11-05 18:59:30 +0100
committer Marin Shalamanov <shalamanov@google.com> 2021-11-23 23:56:12 +0100
commita822ccd755d3796f70c37662616112f46709e7f7 (patch)
treed062449b18e7f00f4649a8b747a63056a1c9d49d /libs/androidfw/StringPool.cpp
parent703e5740fca418b45041cb691f138dda00e1ea40 (diff)
Add XML configuration for density
This CL adds a <densityMap> element to the existing display device configuration XML files. This can be used to configure the logical display density per resolution. Additionally densityMap can be placed in a default.xml file. This config will be used if there is no per display configuration, for example for external displays. If there is no densityMap, the will fallback to the previous logic and will get the density value provided by SurfaceFlinger (which is the value of ro.sf.lcd_density). Bug: 160147805 Fixes: 207330669 Test: atest DensityMapTest DisplayContentTests Test: manually change the display mode on a device and make sure that the density changes (= icons on the launcher stay at the same size) Test: manually on device with config_maxUiWidth make sure that when changing to a resolution bigger than config_maxUiWidth the density is scaled propertly Change-Id: I7e31ffb7ab5d1ba4fbeff902d2ddb6fa9b2995fd
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions