diff options
| author | Neil Fuller <nfuller@google.com> | 2021-05-14 17:36:45 +0100 |
|---|---|---|
| committer | Neil Fuller <nfuller@google.com> | 2021-05-14 17:36:45 +0100 |
| commit | dd4d5619842a746455bc8cc379a5b8261cc0d5bf (patch) | |
| tree | e47447c4c92d90ade995f0642598a34bdf1e41b6 /core/java/android | |
| parent | ff09af37dd4a88119362ed396f31ace31e95ebf6 (diff) | |
Provide a new command line for host tests
This adds a new cmd verb for time_zone_detector that reports whether
telephony time zone detection is supported. This enables a host side CTS
test to properly determine expected behavior on non-telephony devices
like Android Auto.
Bug: 187907947
Test: See associated cts change
Change-Id: Ie118459c704112a259d38cb246882f11f8c5dee0
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/app/timezonedetector/TimeZoneDetector.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/java/android/app/timezonedetector/TimeZoneDetector.java b/core/java/android/app/timezonedetector/TimeZoneDetector.java index b216e913b6ff..a71cffe5afc0 100644 --- a/core/java/android/app/timezonedetector/TimeZoneDetector.java +++ b/core/java/android/app/timezonedetector/TimeZoneDetector.java @@ -48,6 +48,13 @@ public interface TimeZoneDetector { String SHELL_COMMAND_SET_AUTO_DETECTION_ENABLED = "set_auto_detection_enabled"; /** + * A shell command that prints whether the telephony-based time zone detection feature is + * supported on the device. + * @hide + */ + String SHELL_COMMAND_IS_TELEPHONY_DETECTION_SUPPORTED = "is_telephony_detection_supported"; + + /** * A shell command that prints whether the geolocation-based time zone detection feature is * supported on the device. * @hide |
