From c50a1ef795468950972fc49c5430368e3fc14815 Mon Sep 17 00:00:00 2001 From: Brad Ebinger Date: Tue, 8 Jan 2019 15:54:33 -0800 Subject: [PATCH] Expose WFC roaming Mode ISIM IST EF as SystemApi Bug: 120986348 Bug: 120945804 Test: atest FrameworksTelephonyTests Change-Id: I4d7a203dd57050535867329c8dc36f8c75667c15 --- api/system-current.txt | 2 ++ telephony/java/android/telephony/TelephonyManager.java | 5 +++++ telephony/java/android/telephony/ims/ImsMmTelManager.java | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/api/system-current.txt b/api/system-current.txt index 7d889a29ace80..b6af9da6f9ceb 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -6321,6 +6321,7 @@ package android.telephony { method public deprecated boolean getDataEnabled(int); method public boolean getEmergencyCallbackMode(); method public java.lang.String getIsimDomain(); + method public java.lang.String getIsimIst(); method public int getPreferredNetworkTypeBitmap(); method public int getRadioPowerState(); method public int getSimApplicationState(); @@ -6863,6 +6864,7 @@ package android.telephony.ims { public class ImsMmTelManager { method public static android.telephony.ims.ImsMmTelManager createForSubscriptionId(android.content.Context, int); method public int getVoWiFiModeSetting(); + method public int getVoWiFiRoamingModeSetting(); method public boolean isAdvancedCallingSettingEnabled(); method public boolean isAvailable(int, int); method public boolean isCapable(int, int); diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java index 8dfdb2f4a3347..3f4c0ac9d9c0a 100644 --- a/telephony/java/android/telephony/TelephonyManager.java +++ b/telephony/java/android/telephony/TelephonyManager.java @@ -5849,9 +5849,14 @@ public class TelephonyManager { /** * Returns the IMS Service Table (IST) that was loaded from the ISIM. + * + * See 3GPP TS 31.103 (Section 4.2.7) for the definition and more information on this table. + * * @return IMS Service Table or null if not present or not loaded * @hide */ + @SystemApi + @RequiresPermission(Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public String getIsimIst() { try { IPhoneSubInfo info = getSubscriberInfo(); diff --git a/telephony/java/android/telephony/ims/ImsMmTelManager.java b/telephony/java/android/telephony/ims/ImsMmTelManager.java index 122626f0c77ae..e2350fe78500b 100644 --- a/telephony/java/android/telephony/ims/ImsMmTelManager.java +++ b/telephony/java/android/telephony/ims/ImsMmTelManager.java @@ -714,7 +714,7 @@ public class ImsMmTelManager { * @see #setVoWiFiRoamingSetting(boolean) */ @RequiresPermission(Manifest.permission.READ_PRIVILEGED_PHONE_STATE) - @WiFiCallingMode int getVoWiFiRoamingModeSetting() { + public @WiFiCallingMode int getVoWiFiRoamingModeSetting() { try { return getITelephony().getVoWiFiRoamingModeSetting(mSubId); } catch (RemoteException e) {