Merge "Un-remove legacy ConnectivityManager API." into mnc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
f5a934b60c
@@ -892,7 +892,6 @@ public class ConnectivityManager {
|
|||||||
*
|
*
|
||||||
* @deprecated Deprecated in favor of the cleaner
|
* @deprecated Deprecated in favor of the cleaner
|
||||||
* {@link #requestNetwork(NetworkRequest, NetworkCallback)} API.
|
* {@link #requestNetwork(NetworkRequest, NetworkCallback)} API.
|
||||||
* @removed
|
|
||||||
*/
|
*/
|
||||||
public int startUsingNetworkFeature(int networkType, String feature) {
|
public int startUsingNetworkFeature(int networkType, String feature) {
|
||||||
NetworkCapabilities netCap = networkCapabilitiesForFeature(networkType, feature);
|
NetworkCapabilities netCap = networkCapabilitiesForFeature(networkType, feature);
|
||||||
@@ -939,8 +938,7 @@ public class ConnectivityManager {
|
|||||||
* implementation+feature combination, except that the value {@code -1}
|
* implementation+feature combination, except that the value {@code -1}
|
||||||
* always indicates failure.
|
* always indicates failure.
|
||||||
*
|
*
|
||||||
* @deprecated Deprecated in favor of the cleaner {@link unregisterNetworkCallback} API.
|
* @deprecated Deprecated in favor of the cleaner {@link #unregisterNetworkCallback} API.
|
||||||
* @removed
|
|
||||||
*/
|
*/
|
||||||
public int stopUsingNetworkFeature(int networkType, String feature) {
|
public int stopUsingNetworkFeature(int networkType, String feature) {
|
||||||
NetworkCapabilities netCap = networkCapabilitiesForFeature(networkType, feature);
|
NetworkCapabilities netCap = networkCapabilitiesForFeature(networkType, feature);
|
||||||
@@ -1220,7 +1218,6 @@ public class ConnectivityManager {
|
|||||||
* @deprecated Deprecated in favor of the
|
* @deprecated Deprecated in favor of the
|
||||||
* {@link #requestNetwork(NetworkRequest, NetworkCallback)},
|
* {@link #requestNetwork(NetworkRequest, NetworkCallback)},
|
||||||
* {@link #bindProcessToNetwork} and {@link Network#getSocketFactory} API.
|
* {@link #bindProcessToNetwork} and {@link Network#getSocketFactory} API.
|
||||||
* @removed
|
|
||||||
*/
|
*/
|
||||||
public boolean requestRouteToHost(int networkType, int hostAddress) {
|
public boolean requestRouteToHost(int networkType, int hostAddress) {
|
||||||
return requestRouteToHostAddress(networkType, NetworkUtils.intToInetAddress(hostAddress));
|
return requestRouteToHostAddress(networkType, NetworkUtils.intToInetAddress(hostAddress));
|
||||||
@@ -1239,7 +1236,6 @@ public class ConnectivityManager {
|
|||||||
* @hide
|
* @hide
|
||||||
* @deprecated Deprecated in favor of the {@link #requestNetwork} and
|
* @deprecated Deprecated in favor of the {@link #requestNetwork} and
|
||||||
* {@link #bindProcessToNetwork} API.
|
* {@link #bindProcessToNetwork} API.
|
||||||
* @removed
|
|
||||||
*/
|
*/
|
||||||
public boolean requestRouteToHostAddress(int networkType, InetAddress hostAddress) {
|
public boolean requestRouteToHostAddress(int networkType, InetAddress hostAddress) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user