Add a ddrEnabled field to Private DNS configuration and freeze.
NetworkMonitor will use this field to tell DnsManager whether
DDR was enabled or not.
- If DDR is enabled, DnsResolver should only get DoH information
from DDR.
- If DDR is disabled, DnsResolver should only get DoH information
from its hardcoded list of DoH providers.
This allows us to cleanly flag the DDR code on or off and read
the flag in only one place.
Bug: 240259333
Test: modified existing unit tests
Change-Id: I808cdf827ebadbe910396d96ad4f9751fc9bebf6
34 files changed