summaryrefslogtreecommitdiff
path: root/libs/androidfw/ApkParsing.cpp
diff options
context:
space:
mode:
author Yuri Lin <yurilin@google.com> 2023-05-02 16:53:28 -0400
committer Yuri Lin <yurilin@google.com> 2023-05-03 12:45:48 -0400
commitb8354ea3897f5d67a3cf4328ecf2489b356332a9 (patch)
treefd5db04cec1c017cdcf9b174a2509329f7daeaee /libs/androidfw/ApkParsing.cpp
parent1aaa44d37a477c0f238949e3d943f6f14e84296d (diff)
Move zen mode evaluation back into setConfig.
The process of setting zen mode during a config change was separated into two pieces because of a cross-lock held with AudioManager. To avoid having lock contention, it suffices to bring the ringer mode changes out to the handler while having the zen mode evaluations happen in one pass. Also remove an unnecessary call to evaluateZenMode in onSystemReady (it's called right after cleanUpZenRules, which will already call setConfig -> evaluateZenMode). Bug: 280333605 Test: ZenModeHelperTest Change-Id: Icc7615e2d02fc8b83613687c8e2bed8e99fa9613
Diffstat (limited to 'libs/androidfw/ApkParsing.cpp')
0 files changed, 0 insertions, 0 deletions