From: sqian Date: Fri, 12 Apr 2019 23:35:13 +0000 (-0700) Subject: Fix Emergency Number API doc X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=aca6eb7dac0a307756d0c3e76b26503618f40df5;p=android-x86%2Fframeworks-base.git Fix Emergency Number API doc 1) remove documentation about null return 2) Map including the key*s* as the active subscription ID*s* Bug: 130426238 Test: Treehugger Change-Id: I4c9b682ef25378b9de91cd6255ed6fc514ea220d --- diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java index 0d3bc1db831f..2bd4f8f336fd 100644 --- a/telephony/java/android/telephony/TelephonyManager.java +++ b/telephony/java/android/telephony/TelephonyManager.java @@ -10376,10 +10376,10 @@ public class TelephonyManager { *

Requires permission {@link android.Manifest.permission#READ_PHONE_STATE} or the calling * app has carrier privileges (see {@link #hasCarrierPrivileges}). * - * @return Map including the key as the active subscription ID (Note: if there is no active + * @return Map including the keys as the active subscription IDs (Note: if there is no active * subscription, the key is {@link SubscriptionManager#getDefaultSubscriptionId}) and the value - * as the list of {@link EmergencyNumber}; null if this information is not available; or throw - * a SecurityException if the caller does not have the permission. + * as the list of {@link EmergencyNumber}; empty Map if this information is not available; + * or throw a SecurityException if the caller does not have the permission. */ @RequiresPermission(android.Manifest.permission.READ_PHONE_STATE) @NonNull @@ -10429,10 +10429,10 @@ public class TelephonyManager { *

  • {@link EmergencyNumber#EMERGENCY_SERVICE_CATEGORY_MIEC}
  • *
  • {@link EmergencyNumber#EMERGENCY_SERVICE_CATEGORY_AIEC}
  • * - * @return Map including the key as the active subscription ID (Note: if there is no active + * @return Map including the keys as the active subscription IDs (Note: if there is no active * subscription, the key is {@link SubscriptionManager#getDefaultSubscriptionId}) and the value - * as the list of {@link EmergencyNumber}; null if this information is not available; or throw - * a SecurityException if the caller does not have the permission. + * as the list of {@link EmergencyNumber}; empty Map if this information is not available; + * or throw a SecurityException if the caller does not have the permission. */ @RequiresPermission(android.Manifest.permission.READ_PHONE_STATE) @NonNull