summaryrefslogtreecommitdiff
path: root/api/module-lib-current.txt
diff options
context:
space:
mode:
author Neil Fuller <nfuller@google.com> 2019-08-30 18:02:47 +0100
committer Neil Fuller <nfuller@google.com> 2020-01-14 13:34:29 +0000
commit944aeffa85ab0a94e20a4edc7293fe70f904bddd (patch)
tree72f6d98be64ab5772ae03bec62c23c491d81f32f /api/module-lib-current.txt
parent2be7ac4531d641910c34037b4bf63624dbf593e3 (diff)
System API proxies for the telephony module
Introduce classes that exist to give the telephony module something stable to call for in-process utilities: libcore cannot directly expose System APIs today and the package names are internal. The APIs are the subset of internal libcore.timezone APIs used by telephony code currently. Bug: 139091367 Test: See associated frameworks/opt/telephony commit Change-Id: I6109aef77171346ecb103c190526b7b9b81012b2
Diffstat (limited to 'api/module-lib-current.txt')
-rw-r--r--api/module-lib-current.txt45
1 files changed, 45 insertions, 0 deletions
diff --git a/api/module-lib-current.txt b/api/module-lib-current.txt
index 0a6706550074..c8253a0b9e88 100644
--- a/api/module-lib-current.txt
+++ b/api/module-lib-current.txt
@@ -79,3 +79,48 @@ package android.os {
}
+package android.timezone {
+
+ public final class CountryTimeZones {
+ method @Nullable public android.icu.util.TimeZone getDefaultTimeZone();
+ method @Nullable public String getDefaultTimeZoneId();
+ method @NonNull public java.util.List<android.timezone.CountryTimeZones.TimeZoneMapping> getEffectiveTimeZoneMappingsAt(long);
+ method public boolean hasUtcZone(long);
+ method public boolean isDefaultTimeZoneBoosted();
+ method public boolean isForCountryCode(@NonNull String);
+ method @Nullable public android.timezone.CountryTimeZones.OffsetResult lookupByOffsetWithBias(int, @Nullable Boolean, @Nullable Integer, long, @Nullable android.icu.util.TimeZone);
+ }
+
+ public static final class CountryTimeZones.OffsetResult {
+ ctor public CountryTimeZones.OffsetResult(@NonNull android.icu.util.TimeZone, boolean);
+ method @NonNull public android.icu.util.TimeZone getTimeZone();
+ method public boolean isOnlyMatch();
+ }
+
+ public static final class CountryTimeZones.TimeZoneMapping {
+ method @Nullable public android.icu.util.TimeZone getTimeZone();
+ method @NonNull public String getTimeZoneId();
+ }
+
+ public class TelephonyLookup {
+ method @NonNull public static android.timezone.TelephonyLookup getInstance();
+ method @Nullable public android.timezone.TelephonyNetworkFinder getTelephonyNetworkFinder();
+ }
+
+ public class TelephonyNetwork {
+ method @NonNull public String getCountryIsoCode();
+ method @NonNull public String getMcc();
+ method @NonNull public String getMnc();
+ }
+
+ public class TelephonyNetworkFinder {
+ method @Nullable public android.timezone.TelephonyNetwork findNetworkByMccMnc(@NonNull String, @NonNull String);
+ }
+
+ public final class TimeZoneFinder {
+ method @NonNull public static android.timezone.TimeZoneFinder getInstance();
+ method @Nullable public android.timezone.CountryTimeZones lookupCountryTimeZones(@NonNull String);
+ }
+
+}
+