Remove simulated LTZP and enable replacement
Remove "simulated" location time zone provider mode and enable "fake" location time zone providers. This allows for more realistic testing with binder-based LTZPs. Many of the changes in this commit are the removal of command-line infra and test logic associated with "simulated" mode. The new "start_with_test_providers" command is required to enable changes to how providers are discovered, since test providers are not found on the system image and will not have the full permissions expected (which are requirements of "real" providers). As part of this change "state recording", something only used in tests, can only be turned on by "start_with_test_providers". A "clear_recorded_provider_states" has been added to enable tests to clear the recorded state. The new test mode config deliberately does not survive a reboot. Bug: 188780558 Bug: 184947690 Test: atest CtsLocationTimeZoneManagerHostTest Test: atest com.android.server.timezonedetector Change-Id: I7d8fc217fa070aee791fb376efb398057320503a
Loading
Please register or sign in to comment