1// Signature format: 2.0 2package android.net { 3 4 public final class TetheringConstants { 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(); 22 method public boolean isTetheringSupported(@NonNull String); 23 method public void requestLatestTetheringEntitlementResult(int, @NonNull android.os.ResultReceiver, boolean); 24 method @Deprecated public int setUsbTethering(boolean); 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); 26 method @Deprecated public int tether(@NonNull String); 27 method @Deprecated public int untether(@NonNull String); 28 } 29 30 public static interface TetheringManager.TetheringEventCallback { 31 method @Deprecated public default void onTetherableInterfaceRegexpsChanged(@NonNull android.net.TetheringManager.TetheringInterfaceRegexps); 32 } 33 34 @Deprecated public static class TetheringManager.TetheringInterfaceRegexps { 35 method @Deprecated @NonNull public java.util.List<java.lang.String> getTetherableBluetoothRegexs(); 36 method @Deprecated @NonNull public java.util.List<java.lang.String> getTetherableUsbRegexs(); 37 method @Deprecated @NonNull public java.util.List<java.lang.String> getTetherableWifiRegexs(); 38 } 39 40} 41 42