blob: 0a6706550074d71063bba702b64e989267866464 [file] [log] [blame]
Jiyong Parke3095162019-12-20 15:30:28 +09001// Signature format: 2.0
Neil Fuller2be7ac42020-01-07 11:09:29 +00002package 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
28package 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
68package 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