From 84d7f0786ab553ca57f147e88627f6110064eee2 Mon Sep 17 00:00:00 2001 From: Lorenzo Colitti Date: Fri, 9 Dec 2016 18:39:30 +0900 Subject: [PATCH] Remove requestRouteToHost and {start,stop}UsingNetworkFeature. These APIs have been deprecated since L, and since M have thrown IllegalArgumentException for apps targeting M or newer. Test: API check passes. Bug: 33607472 Change-Id: Ie582cac3872be21c51e1e37d16d7cfac496ed3e4 --- core/java/android/net/ConnectivityManager.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/java/android/net/ConnectivityManager.java b/core/java/android/net/ConnectivityManager.java index d1d5f40739..ac0c0dc5a9 100644 --- a/core/java/android/net/ConnectivityManager.java +++ b/core/java/android/net/ConnectivityManager.java @@ -1163,6 +1163,7 @@ public class ConnectivityManager { * {@link #requestNetwork(NetworkRequest, NetworkCallback)} API. * In {@link VERSION_CODES#M}, and above, this method is unsupported and will * throw {@code UnsupportedOperationException} if called. + * @removed */ @Deprecated public int startUsingNetworkFeature(int networkType, String feature) { @@ -1219,6 +1220,7 @@ public class ConnectivityManager { * {@link #unregisterNetworkCallback(NetworkCallback)} API. * In {@link VERSION_CODES#M}, and above, this method is unsupported and will * throw {@code UnsupportedOperationException} if called. + * @removed */ @Deprecated public int stopUsingNetworkFeature(int networkType, String feature) { @@ -1633,6 +1635,7 @@ public class ConnectivityManager { * {@link #bindProcessToNetwork} and {@link Network#getSocketFactory} API. * In {@link VERSION_CODES#M}, and above, this method is unsupported and will * throw {@code UnsupportedOperationException} if called. + * @removed */ @Deprecated public boolean requestRouteToHost(int networkType, int hostAddress) {