From 8d2e3abb4010199815aad7fea7221af8f02522e5 Mon Sep 17 00:00:00 2001 From: Jordan Liu Date: Tue, 17 Apr 2018 14:43:39 -0700 Subject: [PATCH] Add documentation for what to use for SS changes Since the broadcast is deprecated in favor of the ServiceStateProvider, the documentation should reflect this. Note that the LteEarfcnRsrpBoost has not been migrated into the provider so this also needs to happen. Bug: 33756364 Fixes: 78188866 Test: no behavior change, ran make Change-Id: Ia15a7408bdc79927438fa243cce77b262bbb66c4 Merged-In: Ia15a7408bdc79927438fa243cce77b262bbb66c4 --- core/java/android/content/Intent.java | 35 +++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/core/java/android/content/Intent.java b/core/java/android/content/Intent.java index c865dd73c06d6..760fd8031a4d7 100644 --- a/core/java/android/content/Intent.java +++ b/core/java/android/content/Intent.java @@ -3552,6 +3552,10 @@ public class Intent implements Parcelable, Cloneable { *

This is a protected intent that can only be sent by the system. * @hide * @removed + * @deprecated Use {@link android.provider.Telephony.ServiceStateTable} and the helper + * functions {@code ServiceStateTable.getUriForSubscriptionIdAndField} and + * {@code ServiceStateTable.getUriForSubscriptionId} to subscribe to changes to the ServiceState + * for a given subscription id and field with a ContentObserver or using JobScheduler. */ @Deprecated @SystemApi @@ -3567,6 +3571,7 @@ public class Intent implements Parcelable, Cloneable { * @see android.telephony.ServiceState#STATE_POWER_OFF * @hide * @removed + * @deprecated Use {@link android.provider.Telephony.ServiceStateTable#VOICE_REG_STATE}. */ @Deprecated @SystemApi @@ -3580,6 +3585,7 @@ public class Intent implements Parcelable, Cloneable { * @see android.telephony.ServiceState#STATE_POWER_OFF * @hide * @removed + * @deprecated Use {@link android.provider.Telephony.ServiceStateTable#DATA_REG_STATE}. */ @Deprecated @SystemApi @@ -3590,6 +3596,7 @@ public class Intent implements Parcelable, Cloneable { * type. * @hide * @removed + * @deprecated Use {@link android.provider.Telephony.ServiceStateTable#VOICE_ROAMING_TYPE}. */ @Deprecated @SystemApi @@ -3600,6 +3607,7 @@ public class Intent implements Parcelable, Cloneable { * type. * @hide * @removed + * @deprecated Use {@link android.provider.Telephony.ServiceStateTable#DATA_ROAMING_TYPE}. */ @Deprecated @SystemApi @@ -3611,6 +3619,8 @@ public class Intent implements Parcelable, Cloneable { * {@code null} if the operator name is not known or unregistered. * @hide * @removed + * @deprecated Use + * {@link android.provider.Telephony.ServiceStateTable#VOICE_OPERATOR_ALPHA_LONG}. */ @Deprecated @SystemApi @@ -3622,6 +3632,8 @@ public class Intent implements Parcelable, Cloneable { * {@code null} if the operator name is not known or unregistered. * @hide * @removed + * @deprecated Use + * {@link android.provider.Telephony.ServiceStateTable#VOICE_OPERATOR_ALPHA_SHORT}. */ @Deprecated @SystemApi @@ -3633,6 +3645,7 @@ public class Intent implements Parcelable, Cloneable { * network. * @hide * @removed + * @deprecated Use {@link android.provider.Telephony.ServiceStateTable#VOICE_OPERATOR_NUMERIC}. */ @Deprecated @SystemApi @@ -3644,6 +3657,8 @@ public class Intent implements Parcelable, Cloneable { * {@code null} if the operator name is not known or unregistered. * @hide * @removed + * @deprecated Use + * {@link android.provider.Telephony.ServiceStateTable#DATA_OPERATOR_ALPHA_LONG}. */ @Deprecated @SystemApi @@ -3655,6 +3670,8 @@ public class Intent implements Parcelable, Cloneable { * {@code null} if the operator name is not known or unregistered. * @hide * @removed + * @deprecated Use + * {@link android.provider.Telephony.ServiceStateTable#DATA_OPERATOR_ALPHA_SHORT}. */ @Deprecated @SystemApi @@ -3666,6 +3683,7 @@ public class Intent implements Parcelable, Cloneable { * data operator. * @hide * @removed + * @deprecated Use {@link android.provider.Telephony.ServiceStateTable#DATA_OPERATOR_NUMERIC}. */ @Deprecated @SystemApi @@ -3677,6 +3695,8 @@ public class Intent implements Parcelable, Cloneable { * Will be {@code true} if manual mode, {@code false} if automatic mode. * @hide * @removed + * @deprecated Use + * {@link android.provider.Telephony.ServiceStateTable#IS_MANUAL_NETWORK_SELECTION}. */ @Deprecated @SystemApi @@ -3687,6 +3707,8 @@ public class Intent implements Parcelable, Cloneable { * radio technology. * @hide * @removed + * @deprecated Use + * {@link android.provider.Telephony.ServiceStateTable#RIL_VOICE_RADIO_TECHNOLOGY}. */ @Deprecated @SystemApi @@ -3697,6 +3719,8 @@ public class Intent implements Parcelable, Cloneable { * radio technology. * @hide * @removed + * @deprecated Use + * {@link android.provider.Telephony.ServiceStateTable#RIL_DATA_RADIO_TECHNOLOGY}. */ @Deprecated @SystemApi @@ -3708,6 +3732,7 @@ public class Intent implements Parcelable, Cloneable { * Will be {@code true} if support, {@code false} otherwise. * @hide * @removed + * @deprecated Use {@link android.provider.Telephony.ServiceStateTable#CSS_INDICATOR}. */ @Deprecated @SystemApi @@ -3718,6 +3743,7 @@ public class Intent implements Parcelable, Cloneable { * id. {@code Integer.MAX_VALUE} if unknown. * @hide * @removed + * @deprecated Use {@link android.provider.Telephony.ServiceStateTable#NETWORK_ID}. */ @Deprecated @SystemApi @@ -3728,6 +3754,7 @@ public class Intent implements Parcelable, Cloneable { * {@code Integer.MAX_VALUE} if unknown. * @hide * @removed + * @deprecated Use {@link android.provider.Telephony.ServiceStateTable#SYSTEM_ID}. */ @Deprecated @SystemApi @@ -3738,6 +3765,7 @@ public class Intent implements Parcelable, Cloneable { * indicator if registered on a CDMA or EVDO system or {@code -1} if not. * @hide * @removed + * @deprecated Use {@link android.provider.Telephony.ServiceStateTable#CDMA_ROAMING_INDICATOR}. */ @Deprecated @SystemApi @@ -3748,6 +3776,8 @@ public class Intent implements Parcelable, Cloneable { * indicator from the PRL if registered on a CDMA or EVDO system {@code -1} if not. * @hide * @removed + * @deprecated Use + * {@link android.provider.Telephony.ServiceStateTable#CDMA_DEFAULT_ROAMING_INDICATOR}. */ @Deprecated @SystemApi @@ -3759,6 +3789,7 @@ public class Intent implements Parcelable, Cloneable { * {@code true} if in emergency only mode, {@code false} otherwise. * @hide * @removed + * @deprecated Use {@link android.provider.Telephony.ServiceStateTable#IS_EMERGENCY_ONLY}. */ @Deprecated @SystemApi @@ -3770,6 +3801,8 @@ public class Intent implements Parcelable, Cloneable { * {@code true} if registration indicates roaming, {@code false} otherwise * @hide * @removed + * @deprecated Use + * {@link android.provider.Telephony.ServiceStateTable#IS_DATA_ROAMING_FROM_REGISTRATION}. */ @Deprecated @SystemApi @@ -3782,6 +3815,8 @@ public class Intent implements Parcelable, Cloneable { * {@code true} if carrier aggregation is in use, {@code false} otherwise. * @hide * @removed + * @deprecated Use + * {@link android.provider.Telephony.ServiceStateTable#IS_USING_CARRIER_AGGREGATION}. */ @Deprecated @SystemApi