Readjust location of NETID_UNSET definition.

This is a tweak to my 8ec11bb change I a-little-too-hastily committed.

Change-Id: Ibeee9382109994c66227d1c42aac749e2a274ed7
This commit is contained in:
Paul Jensen
2014-07-11 12:28:19 -04:00
parent 65743a26ad
commit 5dea435dd4

View File

@@ -534,6 +534,13 @@ public class ConnectivityManager {
*/ */
public final static int REQUEST_ID_UNSET = 0; public final static int REQUEST_ID_UNSET = 0;
/**
* A NetID indicating no Network is selected.
* Keep in sync with bionic/libc/dns/include/resolv_netid.h
* @hide
*/
public static final int NETID_UNSET = 0;
private final IConnectivityManager mService; private final IConnectivityManager mService;
private final String mPackageName; private final String mPackageName;
@@ -2506,13 +2513,6 @@ public class ConnectivityManager {
return NetworkUtils.bindProcessToNetwork(network == null ? NETID_UNSET : network.netId); return NetworkUtils.bindProcessToNetwork(network == null ? NETID_UNSET : network.netId);
} }
/**
* A NetID indicating no Network is selected.
* Keep in sync with bionic/libc/dns/include/resolv_netid.h
* @hide
*/
public static final int NETID_UNSET = 0;
/** /**
* Returns the {@link Network} currently bound to this process via * Returns the {@link Network} currently bound to this process via
* {@link #setProcessDefaultNetwork}, or {@code null} if no {@link Network} is explicitly bound. * {@link #setProcessDefaultNetwork}, or {@code null} if no {@link Network} is explicitly bound.