From 5a0f2501c554ca328cab2060fc6c2aef666fc8f7 Mon Sep 17 00:00:00 2001 From: Hall Liu Date: Thu, 31 Jan 2019 11:37:45 -0800 Subject: [PATCH] Unhide isRttSupported in TelephonyManager Was hidden due to development process and never unhidden. Change-Id: I1ef35e9988ad45491b2098628024f8d96b11ae3b Fixes: 119620879 Test: compiles --- api/current.txt | 1 + api/test-current.txt | 1 - telephony/java/android/telephony/TelephonyManager.java | 2 -- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/api/current.txt b/api/current.txt index 27f3b4c56e8dc..e7da1bd9c285c 100755 --- a/api/current.txt +++ b/api/current.txt @@ -43069,6 +43069,7 @@ package android.telephony { method @RequiresPermission(anyOf={android.Manifest.permission.ACCESS_NETWORK_STATE, android.Manifest.permission.READ_PHONE_STATE}) public boolean isDataRoamingEnabled(); method public boolean isHearingAidCompatibilitySupported(); method public boolean isNetworkRoaming(); + method public boolean isRttSupported(); method public boolean isSmsCapable(); method @Deprecated public boolean isTtyModeSupported(); method public boolean isVoiceCapable(); diff --git a/api/test-current.txt b/api/test-current.txt index af455fb4abb64..3ae5e5d8e50d3 100644 --- a/api/test-current.txt +++ b/api/test-current.txt @@ -1472,7 +1472,6 @@ package android.telephony { public class TelephonyManager { method public int getCarrierIdListVersion(); - method public boolean isRttSupported(); method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void refreshUiccProfile(); method public void setCarrierTestOverride(String, String, String, String, String, String, String); field public static final int UNKNOWN_CARRIER_ID_LIST_VERSION = -1; // 0xffffffff diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java index 9a279d3ecfe9c..f2c03eda5ce3b 100644 --- a/telephony/java/android/telephony/TelephonyManager.java +++ b/telephony/java/android/telephony/TelephonyManager.java @@ -7808,9 +7808,7 @@ public class TelephonyManager { * support for the feature and device firmware support. * * @return {@code true} if the device and carrier both support RTT, {@code false} otherwise. - * @hide */ - @TestApi public boolean isRttSupported() { try { ITelephony telephony = getITelephony();