1*344a7f5eSAndroid Build Coastguard Worker// Signature format: 2.0 2*344a7f5eSAndroid Build Coastguard Workerpackage android.net { 3*344a7f5eSAndroid Build Coastguard Worker 4*344a7f5eSAndroid Build Coastguard Worker public final class TetheringConstants { 5*344a7f5eSAndroid Build Coastguard Worker field public static final String EXTRA_ADD_TETHER_TYPE = "extraAddTetherType"; 6*344a7f5eSAndroid Build Coastguard Worker field public static final String EXTRA_PROVISION_CALLBACK = "extraProvisionCallback"; 7*344a7f5eSAndroid Build Coastguard Worker field public static final String EXTRA_REM_TETHER_TYPE = "extraRemTetherType"; 8*344a7f5eSAndroid Build Coastguard Worker field public static final String EXTRA_RUN_PROVISION = "extraRunProvision"; 9*344a7f5eSAndroid Build Coastguard Worker field public static final String EXTRA_SET_ALARM = "extraSetAlarm"; 10*344a7f5eSAndroid Build Coastguard Worker } 11*344a7f5eSAndroid Build Coastguard Worker 12*344a7f5eSAndroid Build Coastguard Worker public class TetheringManager { 13*344a7f5eSAndroid Build Coastguard Worker ctor public TetheringManager(@NonNull android.content.Context, @NonNull java.util.function.Supplier<android.os.IBinder>); 14*344a7f5eSAndroid Build Coastguard Worker method public int getLastTetherError(@NonNull String); 15*344a7f5eSAndroid Build Coastguard Worker method @NonNull public String[] getTetherableBluetoothRegexs(); 16*344a7f5eSAndroid Build Coastguard Worker method @NonNull public String[] getTetherableIfaces(); 17*344a7f5eSAndroid Build Coastguard Worker method @NonNull public String[] getTetherableUsbRegexs(); 18*344a7f5eSAndroid Build Coastguard Worker method @NonNull public String[] getTetherableWifiRegexs(); 19*344a7f5eSAndroid Build Coastguard Worker method @NonNull public String[] getTetheredIfaces(); 20*344a7f5eSAndroid Build Coastguard Worker method @NonNull public String[] getTetheringErroredIfaces(); 21*344a7f5eSAndroid Build Coastguard Worker method public boolean isTetheringSupported(); 22*344a7f5eSAndroid Build Coastguard Worker method public boolean isTetheringSupported(@NonNull String); 23*344a7f5eSAndroid Build Coastguard Worker method public void requestLatestTetheringEntitlementResult(int, @NonNull android.os.ResultReceiver, boolean); 24*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public int setUsbTethering(boolean); 25*344a7f5eSAndroid Build Coastguard Worker 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); 26*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public int tether(@NonNull String); 27*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public int untether(@NonNull String); 28*344a7f5eSAndroid Build Coastguard Worker } 29*344a7f5eSAndroid Build Coastguard Worker 30*344a7f5eSAndroid Build Coastguard Worker public static interface TetheringManager.TetheringEventCallback { 31*344a7f5eSAndroid Build Coastguard Worker method public default void onTetherableInterfaceRegexpsChanged(@NonNull android.net.TetheringManager.TetheringInterfaceRegexps); 32*344a7f5eSAndroid Build Coastguard Worker } 33*344a7f5eSAndroid Build Coastguard Worker 34*344a7f5eSAndroid Build Coastguard Worker public static class TetheringManager.TetheringInterfaceRegexps { 35*344a7f5eSAndroid Build Coastguard Worker method @NonNull public java.util.List<java.lang.String> getTetherableBluetoothRegexs(); 36*344a7f5eSAndroid Build Coastguard Worker method @NonNull public java.util.List<java.lang.String> getTetherableUsbRegexs(); 37*344a7f5eSAndroid Build Coastguard Worker method @NonNull public java.util.List<java.lang.String> getTetherableWifiRegexs(); 38*344a7f5eSAndroid Build Coastguard Worker } 39*344a7f5eSAndroid Build Coastguard Worker 40*344a7f5eSAndroid Build Coastguard Worker} 41*344a7f5eSAndroid Build Coastguard Worker 42*344a7f5eSAndroid Build Coastguard Workerpackage android.os { 43*344a7f5eSAndroid Build Coastguard Worker 44*344a7f5eSAndroid Build Coastguard Worker public class StatsFrameworkInitializer { 45*344a7f5eSAndroid Build Coastguard Worker method public static void registerServiceWrappers(); 46*344a7f5eSAndroid Build Coastguard Worker method public static void setStatsServiceManager(@NonNull android.os.StatsServiceManager); 47*344a7f5eSAndroid Build Coastguard Worker } 48*344a7f5eSAndroid Build Coastguard Worker 49*344a7f5eSAndroid Build Coastguard Worker public class StatsServiceManager { 50*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.os.StatsServiceManager.ServiceRegisterer getStatsCompanionServiceRegisterer(); 51*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.os.StatsServiceManager.ServiceRegisterer getStatsManagerServiceRegisterer(); 52*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.os.StatsServiceManager.ServiceRegisterer getStatsdServiceRegisterer(); 53*344a7f5eSAndroid Build Coastguard Worker } 54*344a7f5eSAndroid Build Coastguard Worker 55*344a7f5eSAndroid Build Coastguard Worker public static class StatsServiceManager.ServiceNotFoundException extends java.lang.Exception { 56*344a7f5eSAndroid Build Coastguard Worker ctor public StatsServiceManager.ServiceNotFoundException(@NonNull String); 57*344a7f5eSAndroid Build Coastguard Worker } 58*344a7f5eSAndroid Build Coastguard Worker 59*344a7f5eSAndroid Build Coastguard Worker public static final class StatsServiceManager.ServiceRegisterer { 60*344a7f5eSAndroid Build Coastguard Worker method @Nullable public android.os.IBinder get(); 61*344a7f5eSAndroid Build Coastguard Worker method @Nullable public android.os.IBinder getOrThrow() throws android.os.StatsServiceManager.ServiceNotFoundException; 62*344a7f5eSAndroid Build Coastguard Worker } 63*344a7f5eSAndroid Build Coastguard Worker 64*344a7f5eSAndroid Build Coastguard Worker} 65*344a7f5eSAndroid Build Coastguard Worker 66*344a7f5eSAndroid Build Coastguard Workerpackage android.util { 67*344a7f5eSAndroid Build Coastguard Worker 68*344a7f5eSAndroid Build Coastguard Worker public final class Log { 69*344a7f5eSAndroid Build Coastguard Worker method public static int logToRadioBuffer(int, @Nullable String, @Nullable String); 70*344a7f5eSAndroid Build Coastguard Worker } 71*344a7f5eSAndroid Build Coastguard Worker 72*344a7f5eSAndroid Build Coastguard Worker} 73*344a7f5eSAndroid Build Coastguard Worker 74