summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Yuri Lin <yurilin@google.com> 2023-12-06 17:25:48 -0500
committer Yuri Lin <yurilin@google.com> 2024-01-18 16:25:31 -0500
commitce2ae319be56b95e18929ccbe700dda4f63be988 (patch)
treea13285101f90a6b208772fe7855fc8e30fd2eb3e /libs/androidfw/FileStream.cpp
parent5eba07633a0d8dd79285b2d5eb2bb1a3d94bcccc (diff)
Change default ZenPolicy to use device defaults.
If a rule has no specified zen policy, it will apply the device default config rather than the policy attached to manual DND. Manual DND continues to have its configuration tied to the "global" ZenModeConfig. Further, as part of this change, all policies become fully specified: rather than having the default inherently implied by a null ZenPolicy, all rules have a fully-specified ZenPolicy object with all fields set. This adds some upgrade-specific behavior for devices moving from a previous XML version, as all pre-existing rules get a copy of the manual/global DND policy to preserve consistency with their previous behavior. Bug: 312739308 Test: manual by navigating Settings on device and observing changed upgrade behavior Test: ZenModeHelperTest, NotificationManagerServiceTest, NotificationManagerZenTest (cts), ZenPolicyTest Change-Id: I9130f5fa83f9dc8cd61dc576edf9cc65915d60be
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions