[Tethering] Add action of carrier unsupported dialog.

Bug: 161206517
Test: local manual testing
Test: added cts test for new activity
Change-Id: I0223d262817088b4eb8b62612fbb51dcfb98f653
This commit is contained in:
tom hsu
2022-02-21 21:48:00 +08:00
committed by Tyler Gunn
parent 07dee30e0c
commit ad950aa3a2
2 changed files with 15 additions and 0 deletions

View File

@@ -9006,6 +9006,7 @@ package android.provider {
field public static final String ACTION_SHOW_ADMIN_SUPPORT_DETAILS = "android.settings.SHOW_ADMIN_SUPPORT_DETAILS";
field public static final String ACTION_TETHER_PROVISIONING_UI = "android.settings.TETHER_PROVISIONING_UI";
field public static final String ACTION_TETHER_SETTINGS = "android.settings.TETHER_SETTINGS";
field public static final String ACTION_TETHER_UNSUPPORTED_CARRIER_UI = "android.settings.TETHER_UNSUPPORTED_CARRIER_UI";
}
public static final class Settings.Global extends android.provider.Settings.NameValueTable {

View File

@@ -237,6 +237,20 @@ public final class Settings {
public static final String ACTION_TETHER_PROVISIONING_UI =
"android.settings.TETHER_PROVISIONING_UI";
/**
* Activity Action: Show a dialog activity to notify tethering is NOT supported by carrier.
*
* When {@link android.telephony.CarrierConfigManager#KEY_CARRIER_SUPPORTS_TETHERING_BOOL}
* is false, and tethering is started by Settings, this dialog activity will be started to
* tell the user that tethering is not supported by carrier.
*
* @hide
*/
@SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
@SystemApi
public static final String ACTION_TETHER_UNSUPPORTED_CARRIER_UI =
"android.settings.TETHER_UNSUPPORTED_CARRIER_UI";
/**
* Activity Action: Show settings to allow entering/exiting airplane mode.
* <p>