Jiyong Park | 2e6cdcc | 2019-12-20 15:30:28 +0900 | [diff] [blame] | 1 | // Signature format: 2.0 |
Neil Fuller | efe063e | 2020-01-07 11:09:29 +0000 | [diff] [blame] | 2 | package android.app.timedetector { |
| 3 | |
| 4 | public final class PhoneTimeSuggestion implements android.os.Parcelable { |
| 5 | method public void addDebugInfo(@NonNull String); |
| 6 | method public void addDebugInfo(@NonNull java.util.List<java.lang.String>); |
| 7 | method public int describeContents(); |
| 8 | method @NonNull public java.util.List<java.lang.String> getDebugInfo(); |
| 9 | method public int getPhoneId(); |
| 10 | method @Nullable public android.os.TimestampedValue<java.lang.Long> getUtcTime(); |
| 11 | method public void writeToParcel(@NonNull android.os.Parcel, int); |
| 12 | field @NonNull public static final android.os.Parcelable.Creator<android.app.timedetector.PhoneTimeSuggestion> CREATOR; |
| 13 | } |
| 14 | |
| 15 | public static final class PhoneTimeSuggestion.Builder { |
| 16 | ctor public PhoneTimeSuggestion.Builder(int); |
| 17 | method @NonNull public android.app.timedetector.PhoneTimeSuggestion.Builder addDebugInfo(@NonNull String); |
| 18 | method @NonNull public android.app.timedetector.PhoneTimeSuggestion build(); |
| 19 | method @NonNull public android.app.timedetector.PhoneTimeSuggestion.Builder setUtcTime(@Nullable android.os.TimestampedValue<java.lang.Long>); |
| 20 | } |
| 21 | |
| 22 | public class TimeDetector { |
| 23 | method @RequiresPermission("android.permission.SUGGEST_PHONE_TIME_AND_ZONE") public void suggestPhoneTime(@NonNull android.app.timedetector.PhoneTimeSuggestion); |
| 24 | } |
| 25 | |
| 26 | } |
| 27 | |
| 28 | package android.app.timezonedetector { |
| 29 | |
| 30 | public final class PhoneTimeZoneSuggestion implements android.os.Parcelable { |
| 31 | method public void addDebugInfo(@NonNull String); |
| 32 | method public void addDebugInfo(@NonNull java.util.List<java.lang.String>); |
| 33 | method @NonNull public static android.app.timezonedetector.PhoneTimeZoneSuggestion createEmptySuggestion(int, @NonNull String); |
| 34 | method public int describeContents(); |
| 35 | method @NonNull public java.util.List<java.lang.String> getDebugInfo(); |
| 36 | method public int getMatchType(); |
| 37 | method public int getPhoneId(); |
| 38 | method public int getQuality(); |
| 39 | method @Nullable public String getZoneId(); |
| 40 | method public void writeToParcel(@NonNull android.os.Parcel, int); |
| 41 | field @NonNull public static final android.os.Parcelable.Creator<android.app.timezonedetector.PhoneTimeZoneSuggestion> CREATOR; |
| 42 | field public static final int MATCH_TYPE_EMULATOR_ZONE_ID = 4; // 0x4 |
| 43 | field public static final int MATCH_TYPE_NA = 0; // 0x0 |
| 44 | field public static final int MATCH_TYPE_NETWORK_COUNTRY_AND_OFFSET = 3; // 0x3 |
| 45 | field public static final int MATCH_TYPE_NETWORK_COUNTRY_ONLY = 2; // 0x2 |
| 46 | field public static final int MATCH_TYPE_TEST_NETWORK_OFFSET_ONLY = 5; // 0x5 |
| 47 | field public static final int QUALITY_MULTIPLE_ZONES_WITH_DIFFERENT_OFFSETS = 3; // 0x3 |
| 48 | field public static final int QUALITY_MULTIPLE_ZONES_WITH_SAME_OFFSET = 2; // 0x2 |
| 49 | field public static final int QUALITY_NA = 0; // 0x0 |
| 50 | field public static final int QUALITY_SINGLE_ZONE = 1; // 0x1 |
| 51 | } |
| 52 | |
| 53 | public static final class PhoneTimeZoneSuggestion.Builder { |
| 54 | ctor public PhoneTimeZoneSuggestion.Builder(int); |
| 55 | method @NonNull public android.app.timezonedetector.PhoneTimeZoneSuggestion.Builder addDebugInfo(@NonNull String); |
| 56 | method @NonNull public android.app.timezonedetector.PhoneTimeZoneSuggestion build(); |
| 57 | method @NonNull public android.app.timezonedetector.PhoneTimeZoneSuggestion.Builder setMatchType(int); |
| 58 | method @NonNull public android.app.timezonedetector.PhoneTimeZoneSuggestion.Builder setQuality(int); |
| 59 | method @NonNull public android.app.timezonedetector.PhoneTimeZoneSuggestion.Builder setZoneId(@Nullable String); |
| 60 | } |
| 61 | |
| 62 | public class TimeZoneDetector { |
| 63 | method @RequiresPermission("android.permission.SUGGEST_PHONE_TIME_AND_ZONE") public void suggestPhoneTimeZone(@NonNull android.app.timezonedetector.PhoneTimeZoneSuggestion); |
| 64 | } |
| 65 | |
| 66 | } |
| 67 | |
| 68 | package android.os { |
| 69 | |
| 70 | public final class TimestampedValue<T> implements android.os.Parcelable { |
| 71 | ctor public TimestampedValue(long, @Nullable T); |
| 72 | method public int describeContents(); |
| 73 | method public long getReferenceTimeMillis(); |
| 74 | method @Nullable public T getValue(); |
| 75 | method public static long referenceTimeDifference(@NonNull android.os.TimestampedValue<?>, @NonNull android.os.TimestampedValue<?>); |
| 76 | method public void writeToParcel(@NonNull android.os.Parcel, int); |
| 77 | field @NonNull public static final android.os.Parcelable.Creator<android.os.TimestampedValue<?>> CREATOR; |
| 78 | } |
| 79 | |
| 80 | } |
| 81 | |
Neil Fuller | f7346ec | 2019-08-30 18:02:47 +0100 | [diff] [blame] | 82 | package android.timezone { |
| 83 | |
| 84 | public final class CountryTimeZones { |
| 85 | method @Nullable public android.icu.util.TimeZone getDefaultTimeZone(); |
| 86 | method @Nullable public String getDefaultTimeZoneId(); |
| 87 | method @NonNull public java.util.List<android.timezone.CountryTimeZones.TimeZoneMapping> getEffectiveTimeZoneMappingsAt(long); |
| 88 | method public boolean hasUtcZone(long); |
| 89 | method public boolean isDefaultTimeZoneBoosted(); |
| 90 | method public boolean isForCountryCode(@NonNull String); |
| 91 | method @Nullable public android.timezone.CountryTimeZones.OffsetResult lookupByOffsetWithBias(int, @Nullable Boolean, @Nullable Integer, long, @Nullable android.icu.util.TimeZone); |
| 92 | } |
| 93 | |
| 94 | public static final class CountryTimeZones.OffsetResult { |
| 95 | ctor public CountryTimeZones.OffsetResult(@NonNull android.icu.util.TimeZone, boolean); |
| 96 | method @NonNull public android.icu.util.TimeZone getTimeZone(); |
| 97 | method public boolean isOnlyMatch(); |
| 98 | } |
| 99 | |
| 100 | public static final class CountryTimeZones.TimeZoneMapping { |
| 101 | method @Nullable public android.icu.util.TimeZone getTimeZone(); |
| 102 | method @NonNull public String getTimeZoneId(); |
| 103 | } |
| 104 | |
| 105 | public class TelephonyLookup { |
| 106 | method @NonNull public static android.timezone.TelephonyLookup getInstance(); |
| 107 | method @Nullable public android.timezone.TelephonyNetworkFinder getTelephonyNetworkFinder(); |
| 108 | } |
| 109 | |
| 110 | public class TelephonyNetwork { |
| 111 | method @NonNull public String getCountryIsoCode(); |
| 112 | method @NonNull public String getMcc(); |
| 113 | method @NonNull public String getMnc(); |
| 114 | } |
| 115 | |
| 116 | public class TelephonyNetworkFinder { |
| 117 | method @Nullable public android.timezone.TelephonyNetwork findNetworkByMccMnc(@NonNull String, @NonNull String); |
| 118 | } |
| 119 | |
| 120 | public final class TimeZoneFinder { |
Neil Fuller | 2551c03 | 2020-01-16 18:39:17 +0000 | [diff] [blame^] | 121 | method @Nullable public String getIanaVersion(); |
Neil Fuller | f7346ec | 2019-08-30 18:02:47 +0100 | [diff] [blame] | 122 | method @NonNull public static android.timezone.TimeZoneFinder getInstance(); |
| 123 | method @Nullable public android.timezone.CountryTimeZones lookupCountryTimeZones(@NonNull String); |
| 124 | } |
| 125 | |
Neil Fuller | 2551c03 | 2020-01-16 18:39:17 +0000 | [diff] [blame^] | 126 | public final class TzDataSetVersion { |
| 127 | method public static int currentFormatMajorVersion(); |
| 128 | method public static int currentFormatMinorVersion(); |
| 129 | method public int getFormatMajorVersion(); |
| 130 | method public int getFormatMinorVersion(); |
| 131 | method public int getRevision(); |
| 132 | method @NonNull public String getRulesVersion(); |
| 133 | method public static boolean isCompatibleWithThisDevice(android.timezone.TzDataSetVersion); |
| 134 | method @NonNull public static android.timezone.TzDataSetVersion read() throws java.io.IOException, android.timezone.TzDataSetVersion.TzDataSetException; |
| 135 | } |
| 136 | |
| 137 | public static class TzDataSetVersion.TzDataSetException extends java.lang.Exception { |
| 138 | ctor public TzDataSetVersion.TzDataSetException(String); |
| 139 | ctor public TzDataSetVersion.TzDataSetException(String, Throwable); |
| 140 | } |
| 141 | |
| 142 | public final class ZoneInfoDb { |
| 143 | method @NonNull public static android.timezone.ZoneInfoDb getInstance(); |
| 144 | method @NonNull public String getVersion(); |
| 145 | } |
| 146 | |
Neil Fuller | f7346ec | 2019-08-30 18:02:47 +0100 | [diff] [blame] | 147 | } |
| 148 | |