Refactor query delay calculations
Instead of calculating the next delay by successive calls to
getConfigForNextRun creating derivatives of the current QueryTaskConfig,
use methods that can independently calculate the delay based on the
query index and query mode.
This will allow moving the logic out of QueryTaskConfig into the
MdnsQueryScheduler, to consolidate delay calculations.
MdnsServiceTypeClientTests has tests to verify the timing of successive
queries. This change is a no-op, so it does not update the tests.
Test: atest MdnsServiceTypeClientTests
Change-Id: I84174be533ad3ea062c0453a7d32d4b047d23837
2 files changed