Merge "Extend light-greylist of some TelephonyManager APIs until Q."

This commit is contained in:
Tyler Gunn
2019-03-19 15:17:16 +00:00
committed by Gerrit Code Review

View File

@@ -8276,7 +8276,7 @@ public class TelephonyManager {
* @see SubscriptionManager#getDefaultSubscriptionId() * @see SubscriptionManager#getDefaultSubscriptionId()
* @hide * @hide
*/ */
@UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P) @UnsupportedAppUsage
public boolean isVolteAvailable() { public boolean isVolteAvailable() {
try { try {
return getITelephony().isAvailable(getSubId(), return getITelephony().isAvailable(getSubId(),
@@ -8295,7 +8295,7 @@ public class TelephonyManager {
* @return true if VT is available, or false if it is unavailable or unknown. * @return true if VT is available, or false if it is unavailable or unknown.
* @hide * @hide
*/ */
@UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P) @UnsupportedAppUsage
public boolean isVideoTelephonyAvailable() { public boolean isVideoTelephonyAvailable() {
try { try {
return getITelephony().isVideoTelephonyAvailable(getSubId()); return getITelephony().isVideoTelephonyAvailable(getSubId());
@@ -8310,7 +8310,7 @@ public class TelephonyManager {
* @return true if VoWiFi is available, or false if it is unavailable or unknown. * @return true if VoWiFi is available, or false if it is unavailable or unknown.
* @hide * @hide
*/ */
@UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P) @UnsupportedAppUsage
public boolean isWifiCallingAvailable() { public boolean isWifiCallingAvailable() {
try { try {
return getITelephony().isWifiCallingAvailable(getSubId()); return getITelephony().isWifiCallingAvailable(getSubId());