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 { |
| 74 | method public static com.android.i18n.timezone.CountryTimeZones.TimeZoneMapping createForTests(String, boolean, Long); |
| 75 | method public Long getNotUsedAfter(); |
| 76 | method public android.icu.util.TimeZone getTimeZone(); |
| 77 | method public String getTimeZoneId(); |
| 78 | method public boolean isShownInPicker(); |
| 79 | } |
| 80 | |
| 81 | public final class CountryZonesFinder { |
| 82 | method public java.util.List<java.lang.String> lookupAllCountryIsoCodes(); |
| 83 | method public com.android.i18n.timezone.CountryTimeZones lookupCountryTimeZones(String); |
| 84 | method public java.util.List<com.android.i18n.timezone.CountryTimeZones> lookupCountryTimeZonesForZoneId(String); |
| 85 | } |
| 86 | |
Victor Chang | 21639cd | 2020-06-17 15:25:10 +0100 | [diff] [blame] | 87 | public class DebugInfo { |
| 88 | ctor public DebugInfo(); |
| 89 | method public com.android.i18n.timezone.DebugInfo addStringEntry(String, String); |
| 90 | method public com.android.i18n.timezone.DebugInfo addStringEntry(String, int); |
| 91 | method public java.util.List<com.android.i18n.timezone.DebugInfo.DebugEntry> getDebugEntries(); |
| 92 | } |
| 93 | |
| 94 | public static class DebugInfo.DebugEntry { |
| 95 | ctor public DebugInfo.DebugEntry(String, String); |
| 96 | method public String getKey(); |
| 97 | method public String getStringValue(); |
| 98 | } |
| 99 | |
| 100 | public class I18nModuleDebug { |
| 101 | method public static com.android.i18n.timezone.DebugInfo getDebugInfo(); |
| 102 | } |
| 103 | |
Victor Chang | 7e54f90 | 2020-06-24 13:03:39 +0100 | [diff] [blame] | 104 | public final class TelephonyLookup { |
| 105 | method public static com.android.i18n.timezone.TelephonyLookup createInstance(String) throws java.io.IOException; |
| 106 | method public static com.android.i18n.timezone.TelephonyLookup getInstance(); |
| 107 | method public com.android.i18n.timezone.TelephonyNetworkFinder getTelephonyNetworkFinder(); |
| 108 | method public void validate() throws java.io.IOException; |
| 109 | } |
| 110 | |
| 111 | public final class TelephonyNetwork { |
| 112 | method public String getCountryIsoCode(); |
| 113 | method public String getMcc(); |
| 114 | method public String getMnc(); |
| 115 | } |
| 116 | |
| 117 | public final class TelephonyNetworkFinder { |
| 118 | method public com.android.i18n.timezone.TelephonyNetwork findNetworkByMccMnc(String, String); |
| 119 | } |
| 120 | |
Victor Chang | 21639cd | 2020-06-17 15:25:10 +0100 | [diff] [blame] | 121 | public final class TimeZoneDataFiles { |
| 122 | method public static String getDataTimeZoneFile(String); |
| 123 | method public static String getDataTimeZoneRootDir(); |
| 124 | method public static String getTimeZoneModuleTzVersionFile(); |
| 125 | } |
| 126 | |
Victor Chang | 7e54f90 | 2020-06-24 13:03:39 +0100 | [diff] [blame] | 127 | public final class TimeZoneFinder { |
| 128 | method public static com.android.i18n.timezone.TimeZoneFinder createInstance(String) throws java.io.IOException; |
| 129 | method public com.android.i18n.timezone.CountryZonesFinder getCountryZonesFinder(); |
| 130 | method public String getIanaVersion(); |
| 131 | method public static com.android.i18n.timezone.TimeZoneFinder getInstance(); |
| 132 | method public com.android.i18n.timezone.CountryTimeZones lookupCountryTimeZones(String); |
| 133 | method public void validate() throws java.io.IOException; |
| 134 | } |
| 135 | |
Victor Chang | 21639cd | 2020-06-17 15:25:10 +0100 | [diff] [blame] | 136 | public final class TzDataSetVersion { |
| 137 | ctor public TzDataSetVersion(int, int, String, int) throws com.android.i18n.timezone.TzDataSetVersion.TzDataSetException; |
| 138 | method public static int currentFormatMajorVersion(); |
| 139 | method public static int currentFormatMinorVersion(); |
| 140 | method public int getFormatMajorVersion(); |
| 141 | method public int getFormatMinorVersion(); |
| 142 | method public int getRevision(); |
| 143 | method public String getRulesVersion(); |
| 144 | method public static boolean isCompatibleWithThisDevice(com.android.i18n.timezone.TzDataSetVersion); |
| 145 | method public static com.android.i18n.timezone.TzDataSetVersion readFromFile(java.io.File) throws java.io.IOException, com.android.i18n.timezone.TzDataSetVersion.TzDataSetException; |
| 146 | method public static com.android.i18n.timezone.TzDataSetVersion readTimeZoneModuleVersion() throws java.io.IOException, com.android.i18n.timezone.TzDataSetVersion.TzDataSetException; |
| 147 | method public byte[] toBytes(); |
| 148 | field public static final String DEFAULT_FILE_NAME = "tz_version"; |
| 149 | } |
| 150 | |
| 151 | public static class TzDataSetVersion.TzDataSetException extends java.lang.Exception { |
| 152 | ctor public TzDataSetVersion.TzDataSetException(String); |
| 153 | ctor public TzDataSetVersion.TzDataSetException(String, Throwable); |
| 154 | } |
| 155 | |
| 156 | public final class ZoneInfoData implements java.lang.Cloneable { |
| 157 | method public String getID(); |
| 158 | } |
| 159 | |
| 160 | public static class ZoneInfoData.WallTime { |
| 161 | ctor public ZoneInfoData.WallTime(); |
| 162 | method public int getGmtOffset(); |
| 163 | method public int getHour(); |
| 164 | method public int getIsDst(); |
| 165 | method public int getMinute(); |
| 166 | method public int getMonth(); |
| 167 | method public int getMonthDay(); |
| 168 | method public int getSecond(); |
| 169 | method public int getWeekDay(); |
| 170 | method public int getYear(); |
| 171 | method public int getYearDay(); |
| 172 | method public void localtime(int, com.android.i18n.timezone.ZoneInfoData); |
| 173 | method public int mktime(com.android.i18n.timezone.ZoneInfoData); |
| 174 | method public void setGmtOffset(int); |
| 175 | method public void setHour(int); |
| 176 | method public void setIsDst(int); |
| 177 | method public void setMinute(int); |
| 178 | method public void setMonth(int); |
| 179 | method public void setMonthDay(int); |
| 180 | method public void setSecond(int); |
| 181 | method public void setWeekDay(int); |
| 182 | method public void setYear(int); |
| 183 | method public void setYearDay(int); |
| 184 | } |
| 185 | |
| 186 | public final class ZoneInfoDb implements java.lang.AutoCloseable { |
| 187 | method public static com.android.i18n.timezone.ZoneInfoDb getInstance(); |
| 188 | method public String getVersion(); |
| 189 | method public boolean hasTimeZone(String); |
| 190 | method public static com.android.i18n.timezone.ZoneInfoDb loadTzData(String); |
| 191 | method public com.android.i18n.timezone.ZoneInfoData makeZoneInfoData(String); |
| 192 | method public void validate() throws java.io.IOException; |
| 193 | } |
| 194 | |
| 195 | } |
| 196 | |
Victor Chang | b3ff319 | 2020-03-10 18:22:21 +0000 | [diff] [blame] | 197 | package com.android.icu.text { |
| 198 | |
| 199 | public class DateSorterBridge { |
| 200 | method public static com.android.icu.text.DateSorterBridge createInstance(java.util.Locale) throws java.lang.AssertionError; |
| 201 | method public String getToday(); |
| 202 | method public String getYesterday(); |
| 203 | } |
| 204 | |
| 205 | } |
| 206 | |