Paul Duffin | 4321d6b | 2019-10-03 13:32:26 +0100 | [diff] [blame] | 1 | // Signature format: 2.0 |
| 2 | package android.icu.impl { |
| 3 | |
| 4 | public class CalendarAstronomer { |
| 5 | ctor public CalendarAstronomer(double, double); |
| 6 | method public long getSunRiseSet(boolean); |
| 7 | method public void setTime(long); |
| 8 | } |
| 9 | |
| 10 | public class TimeZoneAdapter extends java.util.TimeZone { |
| 11 | method public static java.util.TimeZone wrap(android.icu.util.TimeZone); |
| 12 | } |
| 13 | |
| 14 | } |
| 15 | |
| 16 | package android.icu.text { |
| 17 | |
| 18 | public final class StringPrep { |
| 19 | method public static android.icu.text.StringPrep getInstance(int); |
| 20 | method public String prepare(String, int) throws android.icu.text.StringPrepParseException; |
| 21 | field public static final int DEFAULT = 0; // 0x0 |
| 22 | field public static final int RFC3920_RESOURCEPREP = 8; // 0x8 |
| 23 | } |
| 24 | |
| 25 | } |
| 26 | |
| 27 | package android.icu.util { |
| 28 | |
| 29 | public abstract class BasicTimeZone extends android.icu.util.TimeZone { |
| 30 | method public abstract android.icu.util.TimeZoneTransition getNextTransition(long, boolean); |
| 31 | } |
| 32 | |
| 33 | public class Region implements java.lang.Comparable<android.icu.util.Region> { |
| 34 | method public static java.util.Set<android.icu.util.Region> getAvailable(android.icu.util.Region.RegionType); |
| 35 | } |
| 36 | |
| 37 | public enum Region.RegionType { |
| 38 | enum_constant public static final android.icu.util.Region.RegionType TERRITORY; |
| 39 | } |
| 40 | |
| 41 | public abstract class TimeZoneRule implements java.io.Serializable { |
| 42 | method public int getDSTSavings(); |
| 43 | } |
| 44 | |
| 45 | public class TimeZoneTransition { |
| 46 | method public android.icu.util.TimeZoneRule getFrom(); |
| 47 | method public long getTime(); |
| 48 | method public android.icu.util.TimeZoneRule getTo(); |
| 49 | } |
| 50 | |
| 51 | } |
| 52 | |
Victor Chang | 21639cd | 2020-06-17 15:25:10 +0100 | [diff] [blame] | 53 | package com.android.i18n.timezone { |
| 54 | |
Victor Chang | 7e54f90 | 2020-06-24 13:03:39 +0100 | [diff] [blame] | 55 | public final class CountryTimeZones { |
| 56 | method public String getCountryIso(); |
| 57 | method public android.icu.util.TimeZone getDefaultTimeZone(); |
| 58 | method public String getDefaultTimeZoneId(); |
| 59 | method public java.util.List<com.android.i18n.timezone.CountryTimeZones.TimeZoneMapping> getEffectiveTimeZoneMappingsAt(long); |
| 60 | method public java.util.List<com.android.i18n.timezone.CountryTimeZones.TimeZoneMapping> getTimeZoneMappings(); |
| 61 | method public boolean hasUtcZone(long); |
| 62 | method public boolean isDefaultTimeZoneBoosted(); |
| 63 | method public com.android.i18n.timezone.CountryTimeZones.OffsetResult lookupByOffsetWithBias(long, android.icu.util.TimeZone, int, boolean); |
| 64 | method public com.android.i18n.timezone.CountryTimeZones.OffsetResult lookupByOffsetWithBias(long, android.icu.util.TimeZone, int); |
| 65 | method public boolean matchesCountryCode(String); |
| 66 | } |
| 67 | |
| 68 | public static final class CountryTimeZones.OffsetResult { |
| 69 | method public android.icu.util.TimeZone getTimeZone(); |
| 70 | method public boolean isOnlyMatch(); |
| 71 | } |
| 72 | |
| 73 | public static final class CountryTimeZones.TimeZoneMapping { |
Neil Fuller | 162aba9 | 2020-07-16 17:54:38 +0100 | [diff] [blame^] | 74 | method public static com.android.i18n.timezone.CountryTimeZones.TimeZoneMapping createForTests(String, boolean, Long, java.util.List<java.lang.String>); |
| 75 | method public java.util.List<java.lang.String> getAlternativeIds(); |
Victor Chang | 7e54f90 | 2020-06-24 13:03:39 +0100 | [diff] [blame] | 76 | method public Long getNotUsedAfter(); |
| 77 | method public android.icu.util.TimeZone getTimeZone(); |
| 78 | method public String getTimeZoneId(); |
| 79 | method public boolean isShownInPicker(); |
| 80 | } |
| 81 | |
| 82 | public final class CountryZonesFinder { |
| 83 | method public java.util.List<java.lang.String> lookupAllCountryIsoCodes(); |
| 84 | method public com.android.i18n.timezone.CountryTimeZones lookupCountryTimeZones(String); |
| 85 | method public java.util.List<com.android.i18n.timezone.CountryTimeZones> lookupCountryTimeZonesForZoneId(String); |
| 86 | } |
| 87 | |
Victor Chang | 21639cd | 2020-06-17 15:25:10 +0100 | [diff] [blame] | 88 | public class DebugInfo { |
| 89 | ctor public DebugInfo(); |
| 90 | method public com.android.i18n.timezone.DebugInfo addStringEntry(String, String); |
| 91 | method public com.android.i18n.timezone.DebugInfo addStringEntry(String, int); |
| 92 | method public java.util.List<com.android.i18n.timezone.DebugInfo.DebugEntry> getDebugEntries(); |
| 93 | } |
| 94 | |
| 95 | public static class DebugInfo.DebugEntry { |
| 96 | ctor public DebugInfo.DebugEntry(String, String); |
| 97 | method public String getKey(); |
| 98 | method public String getStringValue(); |
| 99 | } |
| 100 | |
| 101 | public class I18nModuleDebug { |
| 102 | method public static com.android.i18n.timezone.DebugInfo getDebugInfo(); |
| 103 | } |
| 104 | |
Victor Chang | 7e54f90 | 2020-06-24 13:03:39 +0100 | [diff] [blame] | 105 | public final class TelephonyLookup { |
| 106 | method public static com.android.i18n.timezone.TelephonyLookup createInstance(String) throws java.io.IOException; |
| 107 | method public static com.android.i18n.timezone.TelephonyLookup getInstance(); |
| 108 | method public com.android.i18n.timezone.TelephonyNetworkFinder getTelephonyNetworkFinder(); |
| 109 | method public void validate() throws java.io.IOException; |
| 110 | } |
| 111 | |
| 112 | public final class TelephonyNetwork { |
| 113 | method public String getCountryIsoCode(); |
| 114 | method public String getMcc(); |
| 115 | method public String getMnc(); |
| 116 | } |
| 117 | |
| 118 | public final class TelephonyNetworkFinder { |
| 119 | method public com.android.i18n.timezone.TelephonyNetwork findNetworkByMccMnc(String, String); |
| 120 | } |
| 121 | |
Victor Chang | 21639cd | 2020-06-17 15:25:10 +0100 | [diff] [blame] | 122 | public final class TimeZoneDataFiles { |
| 123 | method public static String getDataTimeZoneFile(String); |
| 124 | method public static String getDataTimeZoneRootDir(); |
| 125 | method public static String getTimeZoneModuleTzVersionFile(); |
| 126 | } |
| 127 | |
Victor Chang | 7e54f90 | 2020-06-24 13:03:39 +0100 | [diff] [blame] | 128 | public final class TimeZoneFinder { |
| 129 | method public static com.android.i18n.timezone.TimeZoneFinder createInstance(String) throws java.io.IOException; |
| 130 | method public com.android.i18n.timezone.CountryZonesFinder getCountryZonesFinder(); |
| 131 | method public String getIanaVersion(); |
| 132 | method public static com.android.i18n.timezone.TimeZoneFinder getInstance(); |
| 133 | method public com.android.i18n.timezone.CountryTimeZones lookupCountryTimeZones(String); |
| 134 | method public void validate() throws java.io.IOException; |
| 135 | } |
| 136 | |
Victor Chang | 21639cd | 2020-06-17 15:25:10 +0100 | [diff] [blame] | 137 | public final class TzDataSetVersion { |
| 138 | ctor public TzDataSetVersion(int, int, String, int) throws com.android.i18n.timezone.TzDataSetVersion.TzDataSetException; |
| 139 | method public static int currentFormatMajorVersion(); |
| 140 | method public static int currentFormatMinorVersion(); |
| 141 | method public int getFormatMajorVersion(); |
| 142 | method public int getFormatMinorVersion(); |
| 143 | method public int getRevision(); |
| 144 | method public String getRulesVersion(); |
| 145 | method public static boolean isCompatibleWithThisDevice(com.android.i18n.timezone.TzDataSetVersion); |
| 146 | method public static com.android.i18n.timezone.TzDataSetVersion readFromFile(java.io.File) throws java.io.IOException, com.android.i18n.timezone.TzDataSetVersion.TzDataSetException; |
| 147 | method public static com.android.i18n.timezone.TzDataSetVersion readTimeZoneModuleVersion() throws java.io.IOException, com.android.i18n.timezone.TzDataSetVersion.TzDataSetException; |
| 148 | method public byte[] toBytes(); |
| 149 | field public static final String DEFAULT_FILE_NAME = "tz_version"; |
| 150 | } |
| 151 | |
| 152 | public static class TzDataSetVersion.TzDataSetException extends java.lang.Exception { |
| 153 | ctor public TzDataSetVersion.TzDataSetException(String); |
| 154 | ctor public TzDataSetVersion.TzDataSetException(String, Throwable); |
| 155 | } |
| 156 | |
| 157 | public final class ZoneInfoData implements java.lang.Cloneable { |
| 158 | method public String getID(); |
| 159 | } |
| 160 | |
| 161 | public static class ZoneInfoData.WallTime { |
| 162 | ctor public ZoneInfoData.WallTime(); |
| 163 | method public int getGmtOffset(); |
| 164 | method public int getHour(); |
| 165 | method public int getIsDst(); |
| 166 | method public int getMinute(); |
| 167 | method public int getMonth(); |
| 168 | method public int getMonthDay(); |
| 169 | method public int getSecond(); |
| 170 | method public int getWeekDay(); |
| 171 | method public int getYear(); |
| 172 | method public int getYearDay(); |
| 173 | method public void localtime(int, com.android.i18n.timezone.ZoneInfoData); |
| 174 | method public int mktime(com.android.i18n.timezone.ZoneInfoData); |
| 175 | method public void setGmtOffset(int); |
| 176 | method public void setHour(int); |
| 177 | method public void setIsDst(int); |
| 178 | method public void setMinute(int); |
| 179 | method public void setMonth(int); |
| 180 | method public void setMonthDay(int); |
| 181 | method public void setSecond(int); |
| 182 | method public void setWeekDay(int); |
| 183 | method public void setYear(int); |
| 184 | method public void setYearDay(int); |
| 185 | } |
| 186 | |
| 187 | public final class ZoneInfoDb implements java.lang.AutoCloseable { |
| 188 | method public static com.android.i18n.timezone.ZoneInfoDb getInstance(); |
| 189 | method public String getVersion(); |
| 190 | method public boolean hasTimeZone(String); |
| 191 | method public static com.android.i18n.timezone.ZoneInfoDb loadTzData(String); |
| 192 | method public com.android.i18n.timezone.ZoneInfoData makeZoneInfoData(String); |
| 193 | method public void validate() throws java.io.IOException; |
| 194 | } |
| 195 | |
| 196 | } |
| 197 | |
Victor Chang | b3ff319 | 2020-03-10 18:22:21 +0000 | [diff] [blame] | 198 | package com.android.icu.text { |
| 199 | |
| 200 | public class DateSorterBridge { |
| 201 | method public static com.android.icu.text.DateSorterBridge createInstance(java.util.Locale) throws java.lang.AssertionError; |
| 202 | method public String getToday(); |
| 203 | method public String getYesterday(); |
| 204 | } |
| 205 | |
| 206 | } |
| 207 | |