[MAC rand] set re-randomization frequency based on dhcp lease

Whever DHCP provisioning is successful, WifiConfigManager will be
notified of the DHCP lease time to make sure that the MAC address
changes no earlier than the DHCP lease duration.

When we do not receive any DHCP provisioning success signals, the
default MAC address change minimum duration will be 24 hours.

Bug: 141950243
Test: unit tests
Test: Manually verified dumpsys log to make sure the expiration time is
calculated correctly and re-leasing are happening automatically:
randomizedMacExpirationTimeMs: 10-17 19:09:32.392

Change-Id: If8b74376dbbb8cb44963b25b9be03c5e2876c894
4 files changed
tree: b95e75e0b9a2139fd29cb689ccc747222eaa2ea4
  1. service/
  2. PREUPLOAD.cfg