/frameworks/base/core/java/android/net/ |
NetworkInfo.aidl | 19 parcelable NetworkInfo;
|
IConnectivityManager.aidl | 21 import android.net.NetworkInfo; 48 NetworkInfo getActiveNetworkInfo(); 49 NetworkInfo getActiveNetworkInfoForUid(int uid); 50 NetworkInfo getNetworkInfo(int networkType); 51 NetworkInfo[] getAllNetworkInfo(); 53 NetworkInfo getProvisioningOrActiveNetworkInfo(); 132 void captivePortalCheckComplete(in NetworkInfo info); 134 void captivePortalCheckCompleted(in NetworkInfo info, boolean isCaptivePortal);
|
DummyDataStateTracker.java | 53 mNetworkInfo = new NetworkInfo(netType); 75 public NetworkInfo getNetworkInfo() { 114 setDetailedState(NetworkInfo.DetailedState.DISCONNECTING, "disabled", null); 115 setDetailedState(NetworkInfo.DetailedState.DISCONNECTED, "disabled", null); 138 private void setDetailedState(NetworkInfo.DetailedState state, String reason, 160 setDetailedState(NetworkInfo.DetailedState.CONNECTING, "enabled", null); 161 setDetailedState(NetworkInfo.DetailedState.CONNECTED, "enabled", null);
|
NetworkInfo.java | 31 public class NetworkInfo implements Parcelable { 35 * use, rather than {@link android.net.NetworkInfo.DetailedState DetailedState}. 58 * {@link android.net.NetworkInfo.State State} instead. 136 public NetworkInfo(int type) {} 141 public NetworkInfo(int type, int subtype, String typeName, String subtypeName) { 157 public NetworkInfo(NetworkInfo source) { 176 * info in this {@code NetworkInfo} pertains. 421 StringBuilder builder = new StringBuilder("NetworkInfo: "); 468 public static final Creator<NetworkInfo> CREATOR [all...] |
NetworkState.java | 29 public final NetworkInfo networkInfo; 36 public NetworkState(NetworkInfo networkInfo, LinkProperties linkProperties, 38 this(networkInfo, linkProperties, linkCapabilities, null, null); 41 public NetworkState(NetworkInfo networkInfo, LinkProperties linkProperties, 43 this.networkInfo = networkInfo; 51 networkInfo = in.readParcelable(null) [all...] |
BaseNetworkStateTracker.java | 45 protected NetworkInfo mNetworkInfo; 54 mNetworkInfo = new NetworkInfo( 91 public NetworkInfo getNetworkInfo() { 92 return new NetworkInfo(mNetworkInfo);
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowNetworkInfo.java | 4 import android.net.NetworkInfo; 12 * Shadow of {@code NetworkInfo} which is used by ShadowConnectivityManager. 15 @Implements(NetworkInfo.class) 21 private NetworkInfo.DetailedState detailedState; 23 public static NetworkInfo newInstance() { 27 public static NetworkInfo newInstance(NetworkInfo.DetailedState detailedState) { 31 public static NetworkInfo newInstance(NetworkInfo.DetailedState detailedState, int type, int subType, 34 NetworkInfo networkInfo = Robolectric.newInstanceOf(NetworkInfo.class) [all...] |
ShadowConnectivityManager.java | 4 import android.net.NetworkInfo; 19 private NetworkInfo activeNetwork; 22 private Map<Integer, NetworkInfo> networkTypeToNetworkInfo = new HashMap<Integer, NetworkInfo>(); 29 public NetworkInfo getActiveNetworkInfo() { 34 public NetworkInfo[] getAllNetworkInfo() { 35 return networkTypeToNetworkInfo.values().toArray(new NetworkInfo[networkTypeToNetworkInfo.size()]); 39 public NetworkInfo getNetworkInfo(int networkType) { 48 public void setNetworkInfo(int networkType, NetworkInfo networkInfo) { [all...] |
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
NetworkInfoTest.java | 3 import android.net.NetworkInfo; 18 NetworkInfo networkInfo = Robolectric.newInstanceOf(NetworkInfo.class); 19 shadowOf(networkInfo).setDetailedState(NetworkInfo.DetailedState.SCANNING); 20 assertThat(networkInfo.getDetailedState(), equalTo(NetworkInfo.DetailedState.SCANNING));
|
ConnectivityManagerTest.java | 5 import android.net.NetworkInfo; 48 NetworkInfo networkInfo = ShadowNetworkInfo.newInstance(NetworkInfo.DetailedState.CONNECTING); 49 shadowConnectivityManager.setNetworkInfo(ConnectivityManager.TYPE_WIFI, networkInfo); 50 NetworkInfo actual = connectivityManager.getNetworkInfo(ConnectivityManager.TYPE_WIFI); 51 assertThat(actual, sameInstance(networkInfo)); 52 assertThat(actual.getDetailedState(), is(NetworkInfo.DetailedState.CONNECTING)); 87 NetworkInfo info = connectivityManager.getActiveNetworkInfo(); 97 NetworkInfo[] infos = connectivityManager.getAllNetworkInfo() [all...] |
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
SystemFacade.java | 21 import android.net.NetworkInfo; 33 public NetworkInfo getActiveNetworkInfo(int uid);
|
RealSystemFacade.java | 24 import android.net.NetworkInfo; 41 public NetworkInfo getActiveNetworkInfo(int uid) { 49 final NetworkInfo activeInfo = connectivity.getActiveNetworkInfoForUid(uid); 71 NetworkInfo info = connectivity.getActiveNetworkInfo();
|
/cts/tests/tests/net/src/android/net/cts/ |
NetworkInfoTest.java | 22 import android.net.NetworkInfo; 23 import android.net.NetworkInfo.DetailedState; 24 import android.net.NetworkInfo.State; 37 NetworkInfo[] ni = cm.getAllNetworkInfo(); 40 for (NetworkInfo netInfo: ni) { 55 private void assertNetworkInfo(NetworkInfo netInfo, String expectedTypeName) {
|
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
FakeSystemFacade.java | 6 import android.net.NetworkInfo; 7 import android.net.NetworkInfo.DetailedState; 45 public NetworkInfo getActiveNetworkInfo(int uid) { 49 final NetworkInfo info = new NetworkInfo(mActiveNetworkType, 0, null, null);
|
/development/tools/emulator/test-apps/ConnectivityTest/src/com/android/emulator/connectivity/test/ |
ConnectivityTest.java | 25 import android.net.NetworkInfo; 50 NetworkInfo networkInfo = connectivity.getActiveNetworkInfo(); 52 assertNotNull(networkInfo); 53 assertEquals( NetworkInfo.State.CONNECTED, networkInfo.getState());
|
/frameworks/support/v4/java/android/support/v4/net/ |
ConnectivityManagerCompat.java | 24 import android.net.NetworkInfo; 40 final NetworkInfo info = cm.getActiveNetworkInfo(); 107 * Return the {@link NetworkInfo} that caused the given 113 public static NetworkInfo getNetworkInfoFromBroadcast(ConnectivityManager cm, Intent intent) { 114 final NetworkInfo info = intent.getParcelableExtra(ConnectivityManager.EXTRA_NETWORK_INFO);
|
/frameworks/ex/common/java/com/android/common/ |
NetworkConnectivityListener.java | 24 import android.net.NetworkInfo; 51 private NetworkInfo mNetworkInfo; 58 private NetworkInfo mOtherNetworkInfo; 82 mNetworkInfo = (NetworkInfo) 84 mOtherNetworkInfo = (NetworkInfo) 186 * Return the NetworkInfo associated with the most recent connectivity event. 187 * @return {@code NetworkInfo} for the network that had the most recent connectivity event. 189 public NetworkInfo getNetworkInfo() { 200 * @return NetworkInfo 202 public NetworkInfo getOtherNetworkInfo() [all...] |
/frameworks/support/v4/gingerbread/android/support/v4/net/ |
ConnectivityManagerCompatGingerbread.java | 28 import android.net.NetworkInfo; 35 final NetworkInfo info = cm.getActiveNetworkInfo();
|
/frameworks/support/v4/honeycomb_mr2/android/support/v4/net/ |
ConnectivityManagerCompatHoneycombMR2.java | 30 import android.net.NetworkInfo; 37 final NetworkInfo info = cm.getActiveNetworkInfo();
|
/development/samples/WiFiDirectServiceDiscovery/src/com/example/android/wifidirect/discovery/ |
WiFiDirectBroadcastReceiver.java | 24 import android.net.NetworkInfo; 68 NetworkInfo networkInfo = (NetworkInfo) intent 71 if (networkInfo.isConnected()) {
|
/development/cmds/monkey/src/com/android/commands/monkey/ |
MonkeyNetworkMonitor.java | 24 import android.net.NetworkInfo; 45 NetworkInfo ni = (NetworkInfo) intent.getParcelableExtra( 50 if (NetworkInfo.State.CONNECTED == ni.getState()) { 53 } else if (NetworkInfo.State.DISCONNECTED == ni.getState()) {
|
/packages/apps/Email/src/com/android/email/ |
EmailConnectivityManager.java | 25 import android.net.NetworkInfo; 26 import android.net.NetworkInfo.State; 124 NetworkInfo networkInfo = 125 (NetworkInfo)extras.get(ConnectivityManager.EXTRA_NETWORK_INFO); 126 if (networkInfo == null) return; 127 State state = networkInfo.getState(); 132 onConnectivityRestored(networkInfo.getType()); 134 onConnectivityLost(networkInfo.getType()); 145 NetworkInfo info = mConnectivityManager.getActiveNetworkInfo() [all...] |
/frameworks/base/wifi/java/android/net/wifi/ |
WifiStateTracker.java | 27 import android.net.NetworkInfo; 28 import android.net.NetworkInfo.DetailedState; 54 private NetworkInfo.State mLastState = NetworkInfo.State.UNKNOWN; 66 mNetworkInfo = new NetworkInfo(netType, 0, networkName, ""); 178 * Fetch NetworkInfo for the network 181 public NetworkInfo getNetworkInfo() { 182 return new NetworkInfo(mNetworkInfo); 267 mNetworkInfo = (NetworkInfo) intent.getParcelableExtra( 284 NetworkInfo.State state = mNetworkInfo.getState() [all...] |
/development/samples/WiFiDirectDemo/src/com/example/android/wifidirect/ |
WiFiDirectBroadcastReceiver.java | 22 import android.net.NetworkInfo; 88 NetworkInfo networkInfo = (NetworkInfo) intent 91 if (networkInfo.isConnected()) {
|
/packages/apps/Browser/src/com/android/browser/ |
NetworkStateHandler.java | 25 import android.net.NetworkInfo; 49 NetworkInfo info = cm.getActiveNetworkInfo(); 66 NetworkInfo info = intent.getParcelableExtra(
|