Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit a289aea0 authored by Mikhail Naganov's avatar Mikhail Naganov
Browse files

audiopolicy: Refactor XML deserializer for the APM config

 -- Move deserialization traits classes into the .cpp file;

 -- Use unique_ptr for managing libxml objects lifetime;

 -- Define node and attribute names inline. This makes them
    inlined in the code, but that's OK since they are typically
    only used once.

 -- Avoid using reference types for "out" parameters.

 -- Check the status of deserializing collections.

 -- Misc renamings and generalizations for clarity.

Test: Compare dumpsys media.audio_policy A/B, check audio
Change-Id: Ib188964dee94acbccd701a58d45d3df206487d81
parent 05fa8856
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment