summaryrefslogtreecommitdiff
path: root/libs/androidfw/AssetsProvider.cpp
diff options
context:
space:
mode:
author Riddle Hsu <riddlehsu@google.com> 2022-04-19 18:07:37 -0600
committer Riddle Hsu <riddlehsu@google.com> 2022-04-21 15:38:49 +0800
commitb1462b32726e830210308bcf2eb08c8a8b9b493d (patch)
tree4e6f6b54f6ffe79c9529583c75e222525710be1f /libs/androidfw/AssetsProvider.cpp
parente7f01c35f03445b92facbd93a74717a3ff52ed34 (diff)
Streamline fillTaskInfo a bit
- Reduce duplicated iteration to traverse activity in task. - The condition in supportsSplitScreenWindowingModeInDisplayArea includes supportsMultiWindowInDisplayArea, so the result can reuse to avoid duplicated invocation. - Move the helper class to Supervisor because it doesn't keep state. It only needs one instance. These reduce ~10% execution time. The condition INITIALIZING in helper class is removed because other fields of task info refer from top-running activity, which doesn't exclude the state. To avoid confusing when reading the inconsistent criteria. Bug: 163976519 Test: WindowManagerServiceTests Change-Id: I3285212ed726d2d2e60c8fe7caa2e21ff1735cbd
Diffstat (limited to 'libs/androidfw/AssetsProvider.cpp')
0 files changed, 0 insertions, 0 deletions