Jiyong Park | e309516 | 2019-12-20 15:30:28 +0900 | [diff] [blame] | 1 | // Signature format: 2.0 |
Anton Hansson | ca03ef4 | 2020-02-08 12:15:25 +0000 | [diff] [blame] | 2 | package android.annotation { |
| 3 | |
| 4 | @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) @java.lang.annotation.Target({java.lang.annotation.ElementType.METHOD, java.lang.annotation.ElementType.PARAMETER, java.lang.annotation.ElementType.FIELD}) public @interface NonNull { |
| 5 | } |
| 6 | |
| 7 | @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) @java.lang.annotation.Target({java.lang.annotation.ElementType.METHOD, java.lang.annotation.ElementType.PARAMETER, java.lang.annotation.ElementType.FIELD}) public @interface Nullable { |
| 8 | } |
| 9 | |
| 10 | } |
| 11 | |
markchien | 2c15370 | 2020-02-06 19:23:26 +0800 | [diff] [blame] | 12 | package android.net { |
| 13 | |
| 14 | public final class TetheredClient implements android.os.Parcelable { |
| 15 | ctor public TetheredClient(@NonNull android.net.MacAddress, @NonNull java.util.Collection<android.net.TetheredClient.AddressInfo>, int); |
| 16 | method public int describeContents(); |
| 17 | method @NonNull public java.util.List<android.net.TetheredClient.AddressInfo> getAddresses(); |
| 18 | method @NonNull public android.net.MacAddress getMacAddress(); |
| 19 | method public int getTetheringType(); |
| 20 | method public void writeToParcel(@NonNull android.os.Parcel, int); |
| 21 | field @NonNull public static final android.os.Parcelable.Creator<android.net.TetheredClient> CREATOR; |
| 22 | } |
| 23 | |
| 24 | public static final class TetheredClient.AddressInfo implements android.os.Parcelable { |
| 25 | method public int describeContents(); |
| 26 | method @NonNull public android.net.LinkAddress getAddress(); |
| 27 | method @Nullable public String getHostname(); |
| 28 | method public void writeToParcel(@NonNull android.os.Parcel, int); |
| 29 | field @NonNull public static final android.os.Parcelable.Creator<android.net.TetheredClient.AddressInfo> CREATOR; |
| 30 | } |
| 31 | |
Automerger Merge Worker | 54a8599 | 2020-03-16 06:21:59 +0000 | [diff] [blame^] | 32 | public final class TetheringConstants { |
markchien | 2c15370 | 2020-02-06 19:23:26 +0800 | [diff] [blame] | 33 | field public static final String EXTRA_ADD_TETHER_TYPE = "extraAddTetherType"; |
| 34 | field public static final String EXTRA_PROVISION_CALLBACK = "extraProvisionCallback"; |
| 35 | field public static final String EXTRA_REM_TETHER_TYPE = "extraRemTetherType"; |
| 36 | field public static final String EXTRA_RUN_PROVISION = "extraRunProvision"; |
| 37 | field public static final String EXTRA_SET_ALARM = "extraSetAlarm"; |
| 38 | } |
| 39 | |
| 40 | public class TetheringManager { |
| 41 | ctor public TetheringManager(@NonNull android.content.Context, @NonNull java.util.function.Supplier<android.os.IBinder>); |
| 42 | method public int getLastTetherError(@NonNull String); |
| 43 | method @NonNull public String[] getTetherableBluetoothRegexs(); |
| 44 | method @NonNull public String[] getTetherableIfaces(); |
| 45 | method @NonNull public String[] getTetherableUsbRegexs(); |
| 46 | method @NonNull public String[] getTetherableWifiRegexs(); |
| 47 | method @NonNull public String[] getTetheredIfaces(); |
| 48 | method @NonNull public String[] getTetheringErroredIfaces(); |
| 49 | method public boolean isTetheringSupported(); |
Automerger Merge Worker | fcf74d1 | 2020-03-03 12:51:02 +0000 | [diff] [blame] | 50 | method public boolean isTetheringSupported(@NonNull String); |
markchien | 2c15370 | 2020-02-06 19:23:26 +0800 | [diff] [blame] | 51 | method @RequiresPermission(android.Manifest.permission.ACCESS_NETWORK_STATE) public void registerTetheringEventCallback(@NonNull java.util.concurrent.Executor, @NonNull android.net.TetheringManager.TetheringEventCallback); |
| 52 | method @RequiresPermission(anyOf={"android.permission.TETHER_PRIVILEGED", android.Manifest.permission.WRITE_SETTINGS}) public void requestLatestTetheringEntitlementResult(int, boolean, @NonNull java.util.concurrent.Executor, @NonNull android.net.TetheringManager.OnTetheringEntitlementResultListener); |
| 53 | method public void requestLatestTetheringEntitlementResult(int, @NonNull android.os.ResultReceiver, boolean); |
| 54 | method @Deprecated public int setUsbTethering(boolean); |
| 55 | method @RequiresPermission(anyOf={"android.permission.TETHER_PRIVILEGED", android.Manifest.permission.WRITE_SETTINGS}) public void startTethering(@NonNull android.net.TetheringManager.TetheringRequest, @NonNull java.util.concurrent.Executor, @NonNull android.net.TetheringManager.StartTetheringCallback); |
| 56 | method @RequiresPermission(anyOf={"android.permission.TETHER_PRIVILEGED", android.Manifest.permission.WRITE_SETTINGS}) public void startTethering(int, @NonNull java.util.concurrent.Executor, @NonNull android.net.TetheringManager.StartTetheringCallback); |
| 57 | method @RequiresPermission(anyOf={"android.permission.TETHER_PRIVILEGED", android.Manifest.permission.WRITE_SETTINGS}) public void stopAllTethering(); |
| 58 | method @RequiresPermission(anyOf={"android.permission.TETHER_PRIVILEGED", android.Manifest.permission.WRITE_SETTINGS}) public void stopTethering(int); |
| 59 | method @Deprecated public int tether(@NonNull String); |
| 60 | method @RequiresPermission(anyOf={"android.permission.TETHER_PRIVILEGED", android.Manifest.permission.ACCESS_NETWORK_STATE}) public void unregisterTetheringEventCallback(@NonNull android.net.TetheringManager.TetheringEventCallback); |
| 61 | method @Deprecated public int untether(@NonNull String); |
| 62 | field public static final String ACTION_TETHER_STATE_CHANGED = "android.net.conn.TETHER_STATE_CHANGED"; |
| 63 | field public static final String EXTRA_ACTIVE_LOCAL_ONLY = "android.net.extra.ACTIVE_LOCAL_ONLY"; |
| 64 | field public static final String EXTRA_ACTIVE_TETHER = "tetherArray"; |
| 65 | field public static final String EXTRA_AVAILABLE_TETHER = "availableArray"; |
| 66 | field public static final String EXTRA_ERRORED_TETHER = "erroredArray"; |
| 67 | field public static final int TETHERING_BLUETOOTH = 2; // 0x2 |
| 68 | field public static final int TETHERING_ETHERNET = 5; // 0x5 |
| 69 | field public static final int TETHERING_INVALID = -1; // 0xffffffff |
| 70 | field public static final int TETHERING_NCM = 4; // 0x4 |
| 71 | field public static final int TETHERING_USB = 1; // 0x1 |
| 72 | field public static final int TETHERING_WIFI = 0; // 0x0 |
| 73 | field public static final int TETHERING_WIFI_P2P = 3; // 0x3 |
| 74 | field public static final int TETHER_ERROR_DHCPSERVER_ERROR = 12; // 0xc |
| 75 | field public static final int TETHER_ERROR_DISABLE_NAT_ERROR = 9; // 0x9 |
| 76 | field public static final int TETHER_ERROR_ENABLE_NAT_ERROR = 8; // 0x8 |
| 77 | field public static final int TETHER_ERROR_ENTITLEMENT_UNKNOWN = 13; // 0xd |
| 78 | field public static final int TETHER_ERROR_IFACE_CFG_ERROR = 10; // 0xa |
| 79 | field public static final int TETHER_ERROR_MASTER_ERROR = 5; // 0x5 |
| 80 | field public static final int TETHER_ERROR_NO_ACCESS_TETHERING_PERMISSION = 15; // 0xf |
| 81 | field public static final int TETHER_ERROR_NO_CHANGE_TETHERING_PERMISSION = 14; // 0xe |
| 82 | field public static final int TETHER_ERROR_NO_ERROR = 0; // 0x0 |
| 83 | field public static final int TETHER_ERROR_PROVISION_FAILED = 11; // 0xb |
| 84 | field public static final int TETHER_ERROR_SERVICE_UNAVAIL = 2; // 0x2 |
| 85 | field public static final int TETHER_ERROR_TETHER_IFACE_ERROR = 6; // 0x6 |
| 86 | field public static final int TETHER_ERROR_UNAVAIL_IFACE = 4; // 0x4 |
| 87 | field public static final int TETHER_ERROR_UNKNOWN_IFACE = 1; // 0x1 |
| 88 | field public static final int TETHER_ERROR_UNSUPPORTED = 3; // 0x3 |
| 89 | field public static final int TETHER_ERROR_UNTETHER_IFACE_ERROR = 7; // 0x7 |
Automerger Merge Worker | c22ab7b | 2020-03-09 04:07:07 +0000 | [diff] [blame] | 90 | field public static final int TETHER_HARDWARE_OFFLOAD_FAILED = 2; // 0x2 |
| 91 | field public static final int TETHER_HARDWARE_OFFLOAD_STARTED = 1; // 0x1 |
| 92 | field public static final int TETHER_HARDWARE_OFFLOAD_STOPPED = 0; // 0x0 |
markchien | 2c15370 | 2020-02-06 19:23:26 +0800 | [diff] [blame] | 93 | } |
| 94 | |
| 95 | public static interface TetheringManager.OnTetheringEntitlementResultListener { |
| 96 | method public void onTetheringEntitlementResult(int); |
| 97 | } |
| 98 | |
| 99 | public abstract static class TetheringManager.StartTetheringCallback { |
| 100 | ctor public TetheringManager.StartTetheringCallback(); |
| 101 | method public void onTetheringFailed(int); |
| 102 | method public void onTetheringStarted(); |
| 103 | } |
| 104 | |
| 105 | public abstract static class TetheringManager.TetheringEventCallback { |
| 106 | ctor public TetheringManager.TetheringEventCallback(); |
| 107 | method public void onClientsChanged(@NonNull java.util.Collection<android.net.TetheredClient>); |
| 108 | method public void onError(@NonNull String, int); |
Automerger Merge Worker | c22ab7b | 2020-03-09 04:07:07 +0000 | [diff] [blame] | 109 | method public void onOffloadStatusChanged(int); |
markchien | 2c15370 | 2020-02-06 19:23:26 +0800 | [diff] [blame] | 110 | method @Deprecated public void onTetherableInterfaceRegexpsChanged(@NonNull android.net.TetheringManager.TetheringInterfaceRegexps); |
| 111 | method public void onTetherableInterfacesChanged(@NonNull java.util.List<java.lang.String>); |
| 112 | method public void onTetheredInterfacesChanged(@NonNull java.util.List<java.lang.String>); |
| 113 | method public void onTetheringSupported(boolean); |
| 114 | method public void onUpstreamChanged(@Nullable android.net.Network); |
| 115 | } |
| 116 | |
| 117 | @Deprecated public static class TetheringManager.TetheringInterfaceRegexps { |
| 118 | ctor @Deprecated public TetheringManager.TetheringInterfaceRegexps(@NonNull String[], @NonNull String[], @NonNull String[]); |
| 119 | method @Deprecated @NonNull public java.util.List<java.lang.String> getTetherableBluetoothRegexs(); |
| 120 | method @Deprecated @NonNull public java.util.List<java.lang.String> getTetherableUsbRegexs(); |
| 121 | method @Deprecated @NonNull public java.util.List<java.lang.String> getTetherableWifiRegexs(); |
| 122 | } |
| 123 | |
| 124 | public static class TetheringManager.TetheringRequest { |
| 125 | } |
| 126 | |
| 127 | public static class TetheringManager.TetheringRequest.Builder { |
| 128 | ctor public TetheringManager.TetheringRequest.Builder(int); |
| 129 | method @NonNull public android.net.TetheringManager.TetheringRequest build(); |
| 130 | method @NonNull @RequiresPermission("android.permission.TETHER_PRIVILEGED") public android.net.TetheringManager.TetheringRequest.Builder setExemptFromEntitlementCheck(boolean); |
| 131 | method @NonNull @RequiresPermission("android.permission.TETHER_PRIVILEGED") public android.net.TetheringManager.TetheringRequest.Builder setSilentProvisioning(boolean); |
| 132 | method @NonNull @RequiresPermission("android.permission.TETHER_PRIVILEGED") public android.net.TetheringManager.TetheringRequest.Builder useStaticIpv4Addresses(@NonNull android.net.LinkAddress); |
| 133 | } |
| 134 | |
| 135 | } |
| 136 | |
Makoto Onuki | 553df30 | 2020-02-06 14:35:52 -0800 | [diff] [blame] | 137 | package android.os { |
| 138 | |
| 139 | public class StatsFrameworkInitializer { |
| 140 | method public static void registerServiceWrappers(); |
| 141 | method public static void setStatsServiceManager(@NonNull android.os.StatsServiceManager); |
| 142 | } |
| 143 | |
| 144 | public class StatsServiceManager { |
| 145 | method @NonNull public android.os.StatsServiceManager.ServiceRegisterer getStatsCompanionServiceRegisterer(); |
| 146 | method @NonNull public android.os.StatsServiceManager.ServiceRegisterer getStatsManagerServiceRegisterer(); |
| 147 | method @NonNull public android.os.StatsServiceManager.ServiceRegisterer getStatsdServiceRegisterer(); |
| 148 | } |
| 149 | |
| 150 | public static class StatsServiceManager.ServiceNotFoundException extends java.lang.Exception { |
| 151 | ctor public StatsServiceManager.ServiceNotFoundException(@NonNull String); |
| 152 | } |
| 153 | |
| 154 | public static final class StatsServiceManager.ServiceRegisterer { |
| 155 | method @Nullable public android.os.IBinder get(); |
| 156 | method @Nullable public android.os.IBinder getOrThrow() throws android.os.StatsServiceManager.ServiceNotFoundException; |
| 157 | } |
| 158 | |
| 159 | } |
| 160 | |
Anton Hansson | 7d6704e | 2020-02-07 14:04:15 +0000 | [diff] [blame] | 161 | package android.os.ext.test { |
| 162 | |
| 163 | @Deprecated public class Test { |
| 164 | method @Deprecated public void testD(); |
| 165 | } |
| 166 | |
| 167 | } |
| 168 | |
Meng Wang | aa2ba8e | 2020-01-13 09:43:21 -0800 | [diff] [blame] | 169 | package android.util { |
| 170 | |
| 171 | public final class Log { |
| 172 | method public static int logToRadioBuffer(int, @Nullable String, @Nullable String); |
| 173 | } |
| 174 | |
| 175 | } |
| 176 | |