summaryrefslogtreecommitdiff
path: root/libs/hwui/FrameInfoVisualizer.cpp
diff options
context:
space:
mode:
author Massimo Carli <mcarli@google.com> 2023-06-20 20:16:46 +0000
committer Massimo Carli <mcarli@google.com> 2023-06-21 04:49:34 +0000
commit0aea1f3800edf779e97f7e36be095e1d9d39b768 (patch)
treedb0fa1533d6943234de4c6791e3c1d992d0ba1ef /libs/hwui/FrameInfoVisualizer.cpp
parent01158d6e178a922da415d6fc34a787973c1fb1e2 (diff)
Allow DiskRead ThreadPolicy in LetterboxConfigurationPersister
The LetterboxConfigurationDeviceConfig needs to access the file with the current reachability position once when the device boots. Because DisplayThread uses allowIo=false accessing a file triggers a DiskReadViolation. Here we use StrictMode to allow the current thread to read the AtomicFile once in the current thread restoring the original ThreadPolicy after that. Fix: 286620565 Test: Run `atest WmTests:LetterboxConfigurationDeviceConfigTests` Change-Id: Ia358de8c817eea987547c82df0ea8612591c0600
Diffstat (limited to 'libs/hwui/FrameInfoVisualizer.cpp')
0 files changed, 0 insertions, 0 deletions