diff options
| author | tom hsu <tomhsu@google.com> | 2022-02-21 21:48:00 +0800 |
|---|---|---|
| committer | Tyler Gunn <tgunn@google.com> | 2022-03-01 20:58:58 +0000 |
| commit | ad950aa3a2e98561f3cced358ba84bc393ea07d2 (patch) | |
| tree | e24836d2220d9444f0d231f123f6e752690a1241 /core/java | |
| parent | 07dee30e0c89b63b531156d6f58acaf529a71ee1 (diff) | |
[Tethering] Add action of carrier unsupported dialog.
Bug: 161206517
Test: local manual testing
Test: added cts test for new activity
Change-Id: I0223d262817088b4eb8b62612fbb51dcfb98f653
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/provider/Settings.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index d0ef546a8122..e79cc32ac99d 100644 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -238,6 +238,20 @@ public final class Settings { "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> * In some cases, a matching Activity may not exist, so ensure you |
