diff options
author | Meng Wang <mewan@google.com> | 2020-01-07 12:14:16 -0800 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2020-01-07 12:14:16 -0800 |
commit | 2d9062cc484e129cf9ffa838ab4c61dee3438560 (patch) | |
tree | 539dac25d2470b43e47ac56ba6350e642df884b7 | |
parent | 01493ff22b840720911e5d223e57a61249c9ec1c (diff) | |
parent | d8836ba33f7b9972ebc09d481f2f3b2f21b6c4b5 (diff) | |
download | base-2d9062cc484e129cf9ffa838ab4c61dee3438560.tar.gz |
Merge "Remove unused broadcast DATA_CONNECTION_FAILED"
am: d8836ba33f
Change-Id: Ibc5582f7e6ad9628baf0b2047a84048a86f001b3
-rw-r--r-- | services/core/java/com/android/server/TelephonyRegistry.java | 8 | ||||
-rw-r--r-- | telephony/java/com/android/internal/telephony/TelephonyIntents.java | 18 |
2 files changed, 0 insertions, 26 deletions
diff --git a/services/core/java/com/android/server/TelephonyRegistry.java b/services/core/java/com/android/server/TelephonyRegistry.java index b5ecd196ba8a..ed006b9bef39 100644 --- a/services/core/java/com/android/server/TelephonyRegistry.java +++ b/services/core/java/com/android/server/TelephonyRegistry.java @@ -1610,7 +1610,6 @@ public class TelephonyRegistry extends ITelephonyRegistry.Stub { handleRemoveListLocked(); } - broadcastDataConnectionFailed(apnType, subId); } public void notifyCellLocation(Bundle cellLocation) { @@ -2259,13 +2258,6 @@ public class TelephonyRegistry extends ITelephonyRegistry.Stub { mContext.sendStickyBroadcastAsUser(intent, UserHandle.ALL); } - private void broadcastDataConnectionFailed(String apnType, int subId) { - Intent intent = new Intent(TelephonyIntents.ACTION_DATA_CONNECTION_FAILED); - intent.putExtra(PhoneConstants.DATA_APN_TYPE_KEY, apnType); - intent.putExtra(PHONE_CONSTANTS_SUBSCRIPTION_KEY, subId); - mContext.sendStickyBroadcastAsUser(intent, UserHandle.ALL); - } - private void enforceNotifyPermissionOrCarrierPrivilege(String method) { if (checkNotifyPermission()) { return; diff --git a/telephony/java/com/android/internal/telephony/TelephonyIntents.java b/telephony/java/com/android/internal/telephony/TelephonyIntents.java index 8e1a78c56e0a..48fdca7d2b8e 100644 --- a/telephony/java/com/android/internal/telephony/TelephonyIntents.java +++ b/telephony/java/com/android/internal/telephony/TelephonyIntents.java @@ -172,24 +172,6 @@ public class TelephonyIntents { = "android.intent.action.ANY_DATA_STATE"; /** - * Broadcast Action: An attempt to establish a data connection has failed. - * The intent will have the following extra values:</p> - * <dl> - * <dt>phoneName</dt><dd>A string version of the phone name.</dd> - * <dt>state</dt><dd>One of {@code CONNECTED}, {@code CONNECTING}, or {code DISCONNECTED}.</dd> - * <dt>reason</dt><dd>A string indicating the reason for the failure, if available.</dd> - * </dl> - * - * <p class="note"> - * Requires the READ_PHONE_STATE permission. - * - * <p class="note">This is a protected intent that can only be sent - * by the system. - */ - public static final String ACTION_DATA_CONNECTION_FAILED - = "android.intent.action.DATA_CONNECTION_FAILED"; - - /** * Broadcast Action: The sim card state has changed. * The intent will have the following extra values:</p> * <dl> |