From f371c5792c063f400e23d405387db09392fd27b1 Mon Sep 17 00:00:00 2001 From: Jack Yu Date: Thu, 19 Mar 2020 12:36:53 -0700 Subject: [PATCH] Fixed the doc Bug: 36956666 Test: Build Change-Id: Ie5c3f527a0cb6045c353442db7fd66fa98088383 --- .../android/telephony/TelephonyManager.java | 23 +++++++++++-------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java index 4ae9320e6cd25..2048334ae8c46 100644 --- a/telephony/java/android/telephony/TelephonyManager.java +++ b/telephony/java/android/telephony/TelephonyManager.java @@ -2777,21 +2777,22 @@ public class TelephonyManager { } /** - * Returns the ISO-3166 country code equivalent of the MCC (Mobile Country Code) of the current - * registered operator or the cell nearby, if available. + * Returns the ISO-3166-1 alpha-2 country code equivalent of the MCC (Mobile Country Code) of + * the current registered operator or the cell nearby, if available. * * Note: Result may be unreliable on CDMA networks (use {@link #getPhoneType()} to determine * if on a CDMA network). *

- * @return the lowercase 2 character ISO-3166 country code, or empty string if not available. + * @return the lowercase 2 character ISO-3166-1 alpha-2 country code, or empty string if not + * available. */ public String getNetworkCountryIso() { return getNetworkCountryIso(getSlotIndex()); } /** - * Returns the ISO-3166 country code equivalent of the MCC (Mobile Country Code) of the current - * registered operator or the cell nearby, if available. This is same as + * Returns the ISO-3166-1 alpha-2 country code equivalent of the MCC (Mobile Country Code) of + * the current registered operator or the cell nearby, if available. This is same as * {@link #getNetworkCountryIso()} but allowing specifying the SIM slot index. This is used for * accessing network country info from the SIM slot that does not have SIM inserted. * @@ -2801,7 +2802,8 @@ public class TelephonyManager { * * @param slotIndex the SIM slot index to get network country ISO. * - * @return the lowercase 2 character ISO-3166 country code, or empty string if not available. + * @return the lowercase 2 character ISO-3166-1 alpha-2 country code, or empty string if not + * available. * * @throws IllegalArgumentException when the slotIndex is invalid. * @@ -3756,10 +3758,11 @@ public class TelephonyManager { } /** - * Returns the ISO-3166 country code equivalent for the SIM provider's country code. + * Returns the ISO-3166-1 alpha-2 country code equivalent for the SIM provider's country code. *

- * The ISO-3166 country code is provided in lowercase 2 character format. - * @return the lowercase 2 character ISO-3166 country code, or empty string is not available. + * The ISO-3166-1 alpha-2 country code is provided in lowercase 2 character format. + * @return the lowercase 2 character ISO-3166-1 alpha-2 country code, or empty string is not + * available. */ public String getSimCountryIso() { return getSimCountryIsoForPhone(getPhoneId()); @@ -12301,7 +12304,7 @@ public class TelephonyManager { /** * The extra used with an {@link #ACTION_NETWORK_COUNTRY_CHANGED} to specify the - * the country code in ISO 3166 format. + * the country code in ISO-3166-1 alpha-2 format. *

* Retrieve with {@link android.content.Intent#getStringExtra(String)}. */