Jiyong Park | e309516 | 2019-12-20 15:30:28 +0900 | [diff] [blame] | 1 | // Signature format: 2.0 |
markchien | 2c15370 | 2020-02-06 19:23:26 +0800 | [diff] [blame] | 2 | package android.net { |
| 3 | |
Automerger Merge Worker | 54a8599 | 2020-03-16 06:21:59 +0000 | [diff] [blame] | 4 | public final class TetheringConstants { |
markchien | 2c15370 | 2020-02-06 19:23:26 +0800 | [diff] [blame] | 5 | field public static final String EXTRA_ADD_TETHER_TYPE = "extraAddTetherType"; |
| 6 | field public static final String EXTRA_PROVISION_CALLBACK = "extraProvisionCallback"; |
| 7 | field public static final String EXTRA_REM_TETHER_TYPE = "extraRemTetherType"; |
| 8 | field public static final String EXTRA_RUN_PROVISION = "extraRunProvision"; |
| 9 | field public static final String EXTRA_SET_ALARM = "extraSetAlarm"; |
| 10 | } |
| 11 | |
| 12 | public class TetheringManager { |
| 13 | ctor public TetheringManager(@NonNull android.content.Context, @NonNull java.util.function.Supplier<android.os.IBinder>); |
| 14 | method public int getLastTetherError(@NonNull String); |
| 15 | method @NonNull public String[] getTetherableBluetoothRegexs(); |
| 16 | method @NonNull public String[] getTetherableIfaces(); |
| 17 | method @NonNull public String[] getTetherableUsbRegexs(); |
| 18 | method @NonNull public String[] getTetherableWifiRegexs(); |
| 19 | method @NonNull public String[] getTetheredIfaces(); |
| 20 | method @NonNull public String[] getTetheringErroredIfaces(); |
| 21 | method public boolean isTetheringSupported(); |
Automerger Merge Worker | fcf74d1 | 2020-03-03 12:51:02 +0000 | [diff] [blame] | 22 | method public boolean isTetheringSupported(@NonNull String); |
markchien | 2c15370 | 2020-02-06 19:23:26 +0800 | [diff] [blame] | 23 | method public void requestLatestTetheringEntitlementResult(int, @NonNull android.os.ResultReceiver, boolean); |
| 24 | method @Deprecated public int setUsbTethering(boolean); |
Makoto Onuki | a13287f | 2020-07-10 12:05:21 -0700 | [diff] [blame] | 25 | method @RequiresPermission(anyOf={android.Manifest.permission.TETHER_PRIVILEGED, android.Manifest.permission.WRITE_SETTINGS}) public void startTethering(int, @NonNull java.util.concurrent.Executor, @NonNull android.net.TetheringManager.StartTetheringCallback); |
markchien | 2c15370 | 2020-02-06 19:23:26 +0800 | [diff] [blame] | 26 | method @Deprecated public int tether(@NonNull String); |
markchien | 2c15370 | 2020-02-06 19:23:26 +0800 | [diff] [blame] | 27 | method @Deprecated public int untether(@NonNull String); |
markchien | 2c15370 | 2020-02-06 19:23:26 +0800 | [diff] [blame] | 28 | } |
| 29 | |
markchien | 62a625d | 2020-03-19 13:37:43 +0800 | [diff] [blame] | 30 | public static interface TetheringManager.TetheringEventCallback { |
markchien | 62a625d | 2020-03-19 13:37:43 +0800 | [diff] [blame] | 31 | method public default void onTetherableInterfaceRegexpsChanged(@NonNull android.net.TetheringManager.TetheringInterfaceRegexps); |
markchien | 2c15370 | 2020-02-06 19:23:26 +0800 | [diff] [blame] | 32 | } |
| 33 | |
markchien | 62a625d | 2020-03-19 13:37:43 +0800 | [diff] [blame] | 34 | public static class TetheringManager.TetheringInterfaceRegexps { |
| 35 | method @NonNull public java.util.List<java.lang.String> getTetherableBluetoothRegexs(); |
| 36 | method @NonNull public java.util.List<java.lang.String> getTetherableUsbRegexs(); |
| 37 | method @NonNull public java.util.List<java.lang.String> getTetherableWifiRegexs(); |
markchien | 2c15370 | 2020-02-06 19:23:26 +0800 | [diff] [blame] | 38 | } |
| 39 | |
markchien | 2c15370 | 2020-02-06 19:23:26 +0800 | [diff] [blame] | 40 | } |
| 41 | |
Makoto Onuki | 553df30 | 2020-02-06 14:35:52 -0800 | [diff] [blame] | 42 | package android.os { |
| 43 | |
Steven Moreland | 95dd53b | 2020-07-23 21:22:18 +0000 | [diff] [blame] | 44 | public class Binder implements android.os.IBinder { |
| 45 | method public final void markVintfStability(); |
| 46 | } |
| 47 | |
Steven Moreland | e5bd46e | 2020-07-28 01:18:42 +0000 | [diff] [blame] | 48 | public interface Parcelable { |
Steven Moreland | 7542475 | 2020-08-05 19:42:15 +0000 | [diff] [blame] | 49 | method public default int getStability(); |
Steven Moreland | e5bd46e | 2020-07-28 01:18:42 +0000 | [diff] [blame] | 50 | field public static final int PARCELABLE_STABILITY_LOCAL = 0; // 0x0 |
| 51 | field public static final int PARCELABLE_STABILITY_VINTF = 1; // 0x1 |
| 52 | } |
| 53 | |
Makoto Onuki | 553df30 | 2020-02-06 14:35:52 -0800 | [diff] [blame] | 54 | public class StatsFrameworkInitializer { |
| 55 | method public static void registerServiceWrappers(); |
| 56 | method public static void setStatsServiceManager(@NonNull android.os.StatsServiceManager); |
| 57 | } |
| 58 | |
| 59 | public class StatsServiceManager { |
| 60 | method @NonNull public android.os.StatsServiceManager.ServiceRegisterer getStatsCompanionServiceRegisterer(); |
| 61 | method @NonNull public android.os.StatsServiceManager.ServiceRegisterer getStatsManagerServiceRegisterer(); |
| 62 | method @NonNull public android.os.StatsServiceManager.ServiceRegisterer getStatsdServiceRegisterer(); |
| 63 | } |
| 64 | |
| 65 | public static class StatsServiceManager.ServiceNotFoundException extends java.lang.Exception { |
| 66 | ctor public StatsServiceManager.ServiceNotFoundException(@NonNull String); |
| 67 | } |
| 68 | |
| 69 | public static final class StatsServiceManager.ServiceRegisterer { |
| 70 | method @Nullable public android.os.IBinder get(); |
| 71 | method @Nullable public android.os.IBinder getOrThrow() throws android.os.StatsServiceManager.ServiceNotFoundException; |
| 72 | } |
| 73 | |
| 74 | } |
| 75 | |
Meng Wang | aa2ba8e | 2020-01-13 09:43:21 -0800 | [diff] [blame] | 76 | package android.util { |
| 77 | |
| 78 | public final class Log { |
| 79 | method public static int logToRadioBuffer(int, @Nullable String, @Nullable String); |
| 80 | } |
| 81 | |
| 82 | } |
| 83 | |