diff options
author | Jeremy Klein <jlklein@google.com> | 2016-01-22 14:11:45 -0800 |
---|---|---|
committer | Jeremy Klein <jlklein@google.com> | 2016-01-25 16:37:09 -0800 |
commit | 36c7aa03255d91cfa0808323ac475ad02d161d7d (patch) | |
tree | 3e65499715f67379818eda30144f5a7636b29d11 /packages/SettingsLib/src/com/android/settingslib/TetherUtil.java | |
parent | 28950ae525e4cec7d851eaa73fff1c2fbf587924 (diff) |
Expose a simple tethering API which includes provision checks.
This CL exposes startTethering and stopTethering functions which also
encapsulate all provisioning check logic. Right now, only silent checks
are implemented, but UI checks will come in a follow-up CL. GTS tests
and Settings changes are under the same topic ID.
BUG: 26247383
Change-Id: I65f61d899594cb3f9035d8496366af17a57a090f
Diffstat (limited to 'packages/SettingsLib/src/com/android/settingslib/TetherUtil.java')
-rw-r--r-- | packages/SettingsLib/src/com/android/settingslib/TetherUtil.java | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/packages/SettingsLib/src/com/android/settingslib/TetherUtil.java b/packages/SettingsLib/src/com/android/settingslib/TetherUtil.java index 66233b82b8dc..f5a2aaec97d7 100644 --- a/packages/SettingsLib/src/com/android/settingslib/TetherUtil.java +++ b/packages/SettingsLib/src/com/android/settingslib/TetherUtil.java @@ -29,12 +29,6 @@ import android.telephony.CarrierConfigManager; public class TetherUtil { - // Types of tethering. - public static final int TETHERING_INVALID = -1; - public static final int TETHERING_WIFI = 0; - public static final int TETHERING_USB = 1; - public static final int TETHERING_BLUETOOTH = 2; - // Extras used for communicating with the TetherService. public static final String EXTRA_ADD_TETHER_TYPE = "extraAddTetherType"; public static final String EXTRA_REM_TETHER_TYPE = "extraRemTetherType"; @@ -43,14 +37,6 @@ public class TetherUtil { * Tells the service to run a provision check now. */ public static final String EXTRA_RUN_PROVISION = "extraRunProvision"; - /** - * Enables wifi tethering if the provision check is successful. Used by - * QS to enable tethering. - */ - public static final String EXTRA_ENABLE_WIFI_TETHER = "extraEnableWifiTether"; - - public static ComponentName TETHER_SERVICE = ComponentName.unflattenFromString(Resources - .getSystem().getString(com.android.internal.R.string.config_wifi_tether_enable)); public static boolean setWifiTethering(boolean enable, Context context) { final WifiManager wifiManager = |