diff options
| author | Meng Wang <mewan@google.com> | 2020-01-08 02:26:44 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2020-01-08 02:26:44 +0000 |
| commit | 1ce0f39441f7740bf6fc4c29c8d6fba9ea4664f0 (patch) | |
| tree | d6921615eaa4e220bca0c8f1922bdeb5180d0925 /core/java | |
| parent | ceac080656a2750e018c27415a398d5065440147 (diff) | |
| parent | dd43acc58fd53792eab07d4e9bb21b4b6a8be72b (diff) | |
Merge "ANY_DATA_CONNECTION_STATE_CHANGED: define locally"
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/telephony/TelephonyRegistryManager.java | 9 | ||||
| -rw-r--r-- | core/java/com/android/internal/telephony/ITelephonyRegistry.aidl | 4 |
2 files changed, 7 insertions, 6 deletions
diff --git a/core/java/android/telephony/TelephonyRegistryManager.java b/core/java/android/telephony/TelephonyRegistryManager.java index b94475ac05ce..9387a2c79c6c 100644 --- a/core/java/android/telephony/TelephonyRegistryManager.java +++ b/core/java/android/telephony/TelephonyRegistryManager.java @@ -24,6 +24,7 @@ import android.content.Context; import android.os.Binder; import android.os.RemoteException; import android.os.ServiceManager; +import android.telephony.Annotation.ApnType; import android.telephony.Annotation.CallState; import android.telephony.Annotation.DataActivityType; import android.telephony.Annotation.DataFailureCause; @@ -352,7 +353,7 @@ public class TelephonyRegistryManager { * @param subId for which data connection state changed. * @param slotIndex for which data connections state changed. Can be derived from subId except * when subId is invalid. - * @param apnType the APN type that triggered this update + * @param apnType the apn type bitmask, defined with {@code ApnSetting#TYPE_*} flags. * @param preciseState the PreciseDataConnectionState * * @see android.telephony.PreciseDataConnection @@ -360,7 +361,7 @@ public class TelephonyRegistryManager { * @hide */ public void notifyDataConnectionForSubscriber(int slotIndex, int subId, - String apnType, PreciseDataConnectionState preciseState) { + @ApnType int apnType, PreciseDataConnectionState preciseState) { try { sRegistry.notifyDataConnectionForSubscriber( slotIndex, subId, apnType, preciseState); @@ -553,13 +554,13 @@ public class TelephonyRegistryManager { * @param subId for which data connection failed. * @param slotIndex for which data conenction failed. Can be derived from subId except when * subId is invalid. - * @param apnType the apnType, "ims" for IMS APN, "emergency" for EMERGENCY APN. + * @param apnType the apn type bitmask, defined with {@code ApnSetting#TYPE_*} flags. * @param apn the APN {@link ApnSetting#getApnName()} of this data connection. * @param failCause data fail cause. * * @hide */ - public void notifyPreciseDataConnectionFailed(int subId, int slotIndex, String apnType, + public void notifyPreciseDataConnectionFailed(int subId, int slotIndex, @ApnType int apnType, String apn, @DataFailureCause int failCause) { try { sRegistry.notifyPreciseDataConnectionFailed(slotIndex, subId, apnType, apn, failCause); diff --git a/core/java/com/android/internal/telephony/ITelephonyRegistry.aidl b/core/java/com/android/internal/telephony/ITelephonyRegistry.aidl index 6933f166a06d..8e97ae1e4bd1 100644 --- a/core/java/com/android/internal/telephony/ITelephonyRegistry.aidl +++ b/core/java/com/android/internal/telephony/ITelephonyRegistry.aidl @@ -63,7 +63,7 @@ interface ITelephonyRegistry { void notifyDataActivity(int state); void notifyDataActivityForSubscriber(in int subId, int state); void notifyDataConnectionForSubscriber( - int phoneId, int subId, String apnType, in PreciseDataConnectionState preciseState); + int phoneId, int subId, int apnType, in PreciseDataConnectionState preciseState); @UnsupportedAppUsage void notifyDataConnectionFailed(String apnType); // Uses CellIdentity which is Parcelable here; will convert to CellLocation in client. @@ -75,7 +75,7 @@ interface ITelephonyRegistry { int foregroundCallState, int backgroundCallState); void notifyDisconnectCause(int phoneId, int subId, int disconnectCause, int preciseDisconnectCause); - void notifyPreciseDataConnectionFailed(int phoneId, int subId, String apnType, String apn, + void notifyPreciseDataConnectionFailed(int phoneId, int subId, int apnType, String apn, int failCause); void notifyCellInfoForSubscriber(in int subId, in List<CellInfo> cellInfo); void notifySrvccStateChanged(in int subId, in int lteState); |
