Files
frameworks_base/core/java/android/service
Neil Fuller 616df78f9e Add LocationTimeZoneProvider test infrastructure
Add test infrastructure for the location time zone manager.

This test command injection facility is a generalization of the
pre-existing SimulatedBinderProviderEvent and so replaces it with a
distinct send_provider_test_command.  This can be used to test the
ControllerImpl without using the real LocationTimeZoneProvider(s) (which
are disabled when the provider is set to simulation mode).

A command to a simulated secondary provider:

$ adb shell setprop persist.sys.geotz.secondary simulated
$ adb shell reboot
$ adb shell cmd location_time_zone_manager send_provider_test_command \
    secondary on-bind
$ adb shell cmd location_time_zone_manager send_provider_test_command \
    secondary success \
    "tz=string_array:Europe/London\&Europe/Paris"

See also the following for help:

$ adb shell cmd time_zone_detector
$ adb shell cmd location_time_zone_manager

Bug: 152746105
Test: See steps above
Change-Id: I7259778ad7af8f2937cb3b4b8751a02c149d2b21
2021-01-06 20:05:17 +00:00
..
2020-10-22 10:38:30 -04:00
2020-12-15 18:54:43 +00:00
2020-12-11 17:02:19 +01:00
2020-12-09 19:09:41 +01:00