diff options
author | Nicolas Falliere <nicof@google.com> | 2012-06-18 17:42:57 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-06-18 17:42:57 -0700 |
commit | 277c09f6c16c4adfd50407e2fa4dbf61a0e06e55 (patch) | |
tree | e1b4abd2c386e99a533394279f45a7aa40cc8a70 /core/java/android/net/ConnectivityManager.java | |
parent | 60fd2b2de286f3543cf9db9550db9083211ca5ea (diff) | |
parent | 56bb344ccfd3d261cea9987c98a17d0820279b17 (diff) | |
download | frameworks_base-277c09f6c16c4adfd50407e2fa4dbf61a0e06e55.zip frameworks_base-277c09f6c16c4adfd50407e2fa4dbf61a0e06e55.tar.gz frameworks_base-277c09f6c16c4adfd50407e2fa4dbf61a0e06e55.tar.bz2 |
am 56bb344c: Merge "Added or fixed doctrings for required permissions." into jb-dev
* commit '56bb344ccfd3d261cea9987c98a17d0820279b17':
Added or fixed doctrings for required permissions.
Diffstat (limited to 'core/java/android/net/ConnectivityManager.java')
-rw-r--r-- | core/java/android/net/ConnectivityManager.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/java/android/net/ConnectivityManager.java b/core/java/android/net/ConnectivityManager.java index ef4209f..5f8793c 100644 --- a/core/java/android/net/ConnectivityManager.java +++ b/core/java/android/net/ConnectivityManager.java @@ -377,6 +377,8 @@ public class ConnectivityManager { * this network is the default route for outgoing connections. You should * always check {@link NetworkInfo#isConnected()} before initiating network * traffic. This may return {@code null} when no networks are available. + * <p>This method requires the caller to hold the permission + * {@link android.Manifest.permission#ACCESS_NETWORK_STATE}. */ public NetworkInfo getActiveNetworkInfo() { try { @@ -451,6 +453,8 @@ public class ConnectivityManager { * Tells the underlying networking system that the caller wants to * begin using the named feature. The interpretation of {@code feature} * is completely up to each networking implementation. + * <p>This method requires the caller to hold the permission + * {@link android.Manifest.permission#CHANGE_NETWORK_STATE}. * @param networkType specifies which network the request pertains to * @param feature the name of the feature to be used * @return an integer value representing the outcome of the request. @@ -471,6 +475,8 @@ public class ConnectivityManager { * Tells the underlying networking system that the caller is finished * using the named feature. The interpretation of {@code feature} * is completely up to each networking implementation. + * <p>This method requires the caller to hold the permission + * {@link android.Manifest.permission#CHANGE_NETWORK_STATE}. * @param networkType specifies which network the request pertains to * @param feature the name of the feature that is no longer needed * @return an integer value representing the outcome of the request. @@ -490,6 +496,8 @@ public class ConnectivityManager { * Ensure that a network route exists to deliver traffic to the specified * host via the specified network interface. An attempt to add a route that * already exists is ignored, but treated as successful. + * <p>This method requires the caller to hold the permission + * {@link android.Manifest.permission#CHANGE_NETWORK_STATE}. * @param networkType the type of the network over which traffic to the specified * host is to be routed * @param hostAddress the IP address of the host to which the route is desired |