summaryrefslogtreecommitdiff
path: root/core/java/android/telephony/TelephonyRegistryManager.java
diff options
context:
space:
mode:
authorMeng Wang <mewan@google.com>2019-12-10 11:27:22 -0800
committerMeng Wang <mewan@google.com>2020-01-07 14:05:25 -0800
commitdd43acc58fd53792eab07d4e9bb21b4b6a8be72b (patch)
tree8aad22be4ff9bc123f5c9aa5ef379173bdc622c1 /core/java/android/telephony/TelephonyRegistryManager.java
parentef75672dced34e3febda01ca83d650eeea91bcd6 (diff)
ANY_DATA_CONNECTION_STATE_CHANGED: define locally
to cut the tie with telephony mainline module. Bug: 147101086 Test: make Change-Id: I2b749cadbbf425649b38786821025a1634fe4d4e
Diffstat (limited to 'core/java/android/telephony/TelephonyRegistryManager.java')
-rw-r--r--core/java/android/telephony/TelephonyRegistryManager.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/core/java/android/telephony/TelephonyRegistryManager.java b/core/java/android/telephony/TelephonyRegistryManager.java
index 1b2fedad842e..8edc0890a047 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);