diff --git a/api/current.txt b/api/current.txt index 5fbd96711b519..59544eca6e7ce 100644 --- a/api/current.txt +++ b/api/current.txt @@ -44129,6 +44129,7 @@ package android.telephony { method public void notifyConfigChangedForSubId(int); field public static final String ACTION_CARRIER_CONFIG_CHANGED = "android.telephony.action.CARRIER_CONFIG_CHANGED"; field public static final int DATA_CYCLE_THRESHOLD_DISABLED = -2; // 0xfffffffe + field public static final int DATA_CYCLE_USE_PLATFORM_DEFAULT = -1; // 0xffffffff field public static final String EXTRA_SLOT_INDEX = "android.telephony.extra.SLOT_INDEX"; field public static final String EXTRA_SUBSCRIPTION_INDEX = "android.telephony.extra.SUBSCRIPTION_INDEX"; field public static final String KEY_5G_NR_SSRSRP_THRESHOLDS_INT_ARRAY = "5g_nr_ssrsrp_thresholds_int_array"; @@ -44192,7 +44193,10 @@ package android.telephony { field public static final String KEY_CONFIG_PLANS_PACKAGE_OVERRIDE_STRING = "config_plans_package_override_string"; field public static final String KEY_CONFIG_TELEPHONY_USE_OWN_NUMBER_FOR_VOICEMAIL_BOOL = "config_telephony_use_own_number_for_voicemail_bool"; field public static final String KEY_CSP_ENABLED_BOOL = "csp_enabled_bool"; + field public static final String KEY_DATA_LIMIT_NOTIFICATION_BOOL = "data_limit_notification_bool"; field public static final String KEY_DATA_LIMIT_THRESHOLD_BYTES_LONG = "data_limit_threshold_bytes_long"; + field public static final String KEY_DATA_RAPID_NOTIFICATION_BOOL = "data_rapid_notification_bool"; + field public static final String KEY_DATA_WARNING_NOTIFICATION_BOOL = "data_warning_notification_bool"; field public static final String KEY_DATA_WARNING_THRESHOLD_BYTES_LONG = "data_warning_threshold_bytes_long"; field public static final String KEY_DEFAULT_SIM_CALL_MANAGER_STRING = "default_sim_call_manager_string"; field public static final String KEY_DEFAULT_VM_NUMBER_ROAMING_AND_IMS_UNREGISTERED_STRING = "default_vm_number_roaming_and_ims_unregistered_string"; diff --git a/telephony/java/android/telephony/CarrierConfigManager.java b/telephony/java/android/telephony/CarrierConfigManager.java index c04105b0599ee..1c7b9d2f7353d 100644 --- a/telephony/java/android/telephony/CarrierConfigManager.java +++ b/telephony/java/android/telephony/CarrierConfigManager.java @@ -2192,7 +2192,7 @@ public class CarrierConfigManager { * the start of the next month. *

* This setting may be still overridden by explicit user choice. By default, - * the platform value will be used. + * {@link #DATA_CYCLE_USE_PLATFORM_DEFAULT} will be used. */ public static final String KEY_MONTHLY_DATA_CYCLE_DAY_INT = "monthly_data_cycle_day_int"; @@ -2201,10 +2201,7 @@ public class CarrierConfigManager { * When {@link #KEY_MONTHLY_DATA_CYCLE_DAY_INT}, {@link #KEY_DATA_LIMIT_THRESHOLD_BYTES_LONG}, * or {@link #KEY_DATA_WARNING_THRESHOLD_BYTES_LONG} are set to this value, the platform default * value will be used for that key. - * - * @hide */ - @Deprecated public static final int DATA_CYCLE_USE_PLATFORM_DEFAULT = -1; /** @@ -2228,8 +2225,8 @@ public class CarrierConfigManager { * If the value is set to {@link #DATA_CYCLE_THRESHOLD_DISABLED}, the data usage warning will * be disabled. *

- * This setting may be overridden by explicit user choice. By default, the platform value - * will be used. + * This setting may be overridden by explicit user choice. By default, + * {@link #DATA_CYCLE_USE_PLATFORM_DEFAULT} will be used. */ public static final String KEY_DATA_WARNING_THRESHOLD_BYTES_LONG = "data_warning_threshold_bytes_long"; @@ -2237,8 +2234,7 @@ public class CarrierConfigManager { /** * Controls if the device should automatically notify the user as they reach * their cellular data warning. When set to {@code false} the carrier is - * expected to have implemented their own notification mechanism. - * @hide + * expected to have implemented their own notification mechanism. {@code true} by default. */ public static final String KEY_DATA_WARNING_NOTIFICATION_BOOL = "data_warning_notification_bool"; @@ -2260,8 +2256,8 @@ public class CarrierConfigManager { * phone. If the value is set to {@link #DATA_CYCLE_THRESHOLD_DISABLED}, the data limit will be * disabled. *

- * This setting may be overridden by explicit user choice. By default, the platform value - * will be used. + * This setting may be overridden by explicit user choice. By default, + * {@link #DATA_CYCLE_USE_PLATFORM_DEFAULT} will be used. */ public static final String KEY_DATA_LIMIT_THRESHOLD_BYTES_LONG = "data_limit_threshold_bytes_long"; @@ -2269,8 +2265,7 @@ public class CarrierConfigManager { /** * Controls if the device should automatically notify the user as they reach * their cellular data limit. When set to {@code false} the carrier is - * expected to have implemented their own notification mechanism. - * @hide + * expected to have implemented their own notification mechanism. {@code true} by default. */ public static final String KEY_DATA_LIMIT_NOTIFICATION_BOOL = "data_limit_notification_bool"; @@ -2278,8 +2273,7 @@ public class CarrierConfigManager { /** * Controls if the device should automatically notify the user when rapid * cellular data usage is observed. When set to {@code false} the carrier is - * expected to have implemented their own notification mechanism. - * @hide + * expected to have implemented their own notification mechanism. {@code true} by default. */ public static final String KEY_DATA_RAPID_NOTIFICATION_BOOL = "data_rapid_notification_bool";