diff --git a/services/core/java/com/android/server/ConnectivityService.java b/services/core/java/com/android/server/ConnectivityService.java index 107bb06ee4d7f..0919f77b4371d 100644 --- a/services/core/java/com/android/server/ConnectivityService.java +++ b/services/core/java/com/android/server/ConnectivityService.java @@ -3559,7 +3559,7 @@ public class ConnectivityService extends IConnectivityManager.Stub { // Check for apps that can handle provisioning first Intent provisioningIntent = new Intent(TelephonyIntents.ACTION_CARRIER_SETUP); List carrierPackages = - mTelephonyManager.getCarrierPackageNamesForBroadcastIntent(provisioningIntent); + mTelephonyManager.getCarrierPackageNamesForIntent(provisioningIntent); if (carrierPackages != null && !carrierPackages.isEmpty()) { if (carrierPackages.size() != 1) { if (DBG) log("Multiple matching carrier apps found, launching the first."); diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java index 71b796ac67a1d..cdee3de0e4e9d 100644 --- a/telephony/java/android/telephony/TelephonyManager.java +++ b/telephony/java/android/telephony/TelephonyManager.java @@ -3105,13 +3105,13 @@ public class TelephonyManager { /** @hide */ @SystemApi - public List getCarrierPackageNamesForBroadcastIntent(Intent intent) { + public List getCarrierPackageNamesForIntent(Intent intent) { try { - return getITelephony().getCarrierPackageNamesForBroadcastIntent(intent); + return getITelephony().getCarrierPackageNamesForIntent(intent); } catch (RemoteException ex) { - Rlog.e(TAG, "getCarrierPackageNamesForBroadcastIntent RemoteException", ex); + Rlog.e(TAG, "getCarrierPackageNamesForIntent RemoteException", ex); } catch (NullPointerException ex) { - Rlog.e(TAG, "getCarrierPackageNamesForBroadcastIntent NPE", ex); + Rlog.e(TAG, "getCarrierPackageNamesForIntent NPE", ex); } return null; } diff --git a/telephony/java/com/android/internal/telephony/ITelephony.aidl b/telephony/java/com/android/internal/telephony/ITelephony.aidl index b1c3c4ab4f3eb..5c3dcdb07fd55 100644 --- a/telephony/java/com/android/internal/telephony/ITelephony.aidl +++ b/telephony/java/com/android/internal/telephony/ITelephony.aidl @@ -710,12 +710,12 @@ interface ITelephony { * Returns the package name of the carrier apps that should handle the input intent. * * @param packageManager PackageManager for getting receivers. - * @param intent Intent that will be broadcast. + * @param intent Intent that will be sent. * @return list of carrier app package names that can handle the intent. * Returns null if there is an error and an empty list if there * are no matching packages. */ - List getCarrierPackageNamesForBroadcastIntent(in Intent intent); + List getCarrierPackageNamesForIntent(in Intent intent); /** * Set whether Android should display a simplified Mobile Network Settings UI.