/frameworks/base/core/java/android/net/ |
NetworkInfo.aidl | 19 parcelable NetworkInfo;
|
DummyDataStateTracker.java | 37 private NetworkInfo mNetworkInfo; 56 mNetworkInfo = new NetworkInfo(netType); 78 public NetworkInfo getNetworkInfo() { 117 setDetailedState(NetworkInfo.DetailedState.DISCONNECTING, "disabled", null); 118 setDetailedState(NetworkInfo.DetailedState.DISCONNECTED, "disabled", null); 131 private void setDetailedState(NetworkInfo.DetailedState state, String reason, 153 setDetailedState(NetworkInfo.DetailedState.CONNECTING, "enabled", null); 154 setDetailedState(NetworkInfo.DetailedState.CONNECTED, "enabled", null);
|
IConnectivityManager.aidl | 20 import android.net.NetworkInfo; 41 NetworkInfo getActiveNetworkInfo(); 42 NetworkInfo getActiveNetworkInfoForUid(int uid); 43 NetworkInfo getNetworkInfo(int networkType); 44 NetworkInfo[] getAllNetworkInfo();
|
NetworkInfo.java | 28 public class NetworkInfo implements Parcelable { 32 * use, rather than {@link android.net.NetworkInfo.DetailedState DetailedState}. 55 * {@link android.net.NetworkInfo.State State} instead. 125 public NetworkInfo(int type) {} 130 public NetworkInfo(int type, int subtype, String typeName, String subtypeName) { 145 public NetworkInfo(NetworkInfo source) { 374 StringBuilder builder = new StringBuilder("NetworkInfo: "); 418 public static final Creator<NetworkInfo> CREATOR = 419 new Creator<NetworkInfo>() { [all...] |
NetworkState.java | 29 public final NetworkInfo networkInfo; 35 public NetworkState(NetworkInfo networkInfo, LinkProperties linkProperties, 37 this(networkInfo, linkProperties, linkCapabilities, null); 40 public NetworkState(NetworkInfo networkInfo, LinkProperties linkProperties, 42 this.networkInfo = networkInfo; 49 networkInfo = in.readParcelable(null) [all...] |
NetworkStateTracker.java | 51 * The network state has changed and the NetworkInfo object 55 * msg.obj = NetworkInfo object 61 * msg.obj = NetworkInfo object 87 * Fetch NetworkInfo for the network 89 public NetworkInfo getNetworkInfo();
|
/cts/tests/tests/net/src/android/net/cts/ |
NetworkInfoTest.java | 23 import android.net.NetworkInfo; 24 import android.net.NetworkInfo.DetailedState; 25 import android.net.NetworkInfo.State; 28 @TestTargetClass(NetworkInfo.class) 39 NetworkInfo[] ni = cm.getAllNetworkInfo(); 42 for (NetworkInfo netInfo: ni) { 57 private void assertNetworkInfo(NetworkInfo netInfo, String expectedTypeName) {
|
ConnectivityManagerTest.java | 31 import android.net.NetworkInfo; 32 import android.net.NetworkInfo.DetailedState; 33 import android.net.NetworkInfo.State; 76 NetworkInfo ni = mCm.getNetworkInfo(TYPE_WIFI); 112 NetworkInfo[] ni = mCm.getAllNetworkInfo(); 114 for (NetworkInfo n : ni) { 127 NetworkInfo[] ni = mCm.getAllNetworkInfo(); 151 NetworkInfo ni = mCm.getNetworkInfo(TYPE_MOBILE); 184 NetworkInfo[] ni = mCm.getAllNetworkInfo(); 185 for (NetworkInfo n : ni) [all...] |
/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());
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
SystemFacade.java | 7 import android.net.NetworkInfo; 20 public NetworkInfo getActiveNetworkInfo(int uid);
|
RealSystemFacade.java | 10 import android.net.NetworkInfo; 30 public NetworkInfo getActiveNetworkInfo(int uid) { 38 final NetworkInfo activeInfo = connectivity.getActiveNetworkInfoForUid(uid); 53 NetworkInfo info = connectivity.getActiveNetworkInfo();
|
/frameworks/base/wifi/java/android/net/wifi/ |
WifiStateTracker.java | 25 import android.net.NetworkInfo; 52 private NetworkInfo mNetworkInfo; 53 private NetworkInfo.State mLastState = NetworkInfo.State.UNKNOWN; 62 mNetworkInfo = new NetworkInfo(netType, 0, networkName, ""); 162 * Fetch NetworkInfo for the network 164 public NetworkInfo getNetworkInfo() { 165 return new NetworkInfo(mNetworkInfo); 212 mNetworkInfo = (NetworkInfo) intent.getParcelableExtra( 225 mNetworkInfo = (NetworkInfo) intent.getParcelableExtra [all...] |
/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/base/services/java/com/android/server/location/ |
LocationProviderInterface.java | 21 import android.net.NetworkInfo; 52 void updateNetworkState(int state, NetworkInfo info);
|
PassiveProvider.java | 24 import android.net.NetworkInfo; 130 public void updateNetworkState(int state, NetworkInfo info) {
|
/frameworks/base/location/java/android/location/ |
ILocationProvider.aidl | 21 import android.net.NetworkInfo; 48 void updateNetworkState(int state, in NetworkInfo info);
|
/development/cmds/monkey/src/com/android/commands/monkey/ |
MonkeyNetworkMonitor.java | 24 import android.net.NetworkInfo; 44 NetworkInfo ni = (NetworkInfo) intent.getParcelableExtra( 49 if (NetworkInfo.State.CONNECTED == ni.getState()) { 52 } 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; 122 NetworkInfo networkInfo = 123 (NetworkInfo)extras.get(ConnectivityManager.EXTRA_NETWORK_INFO); 124 if (networkInfo == null) return; 125 State state = networkInfo.getState(); 130 onConnectivityRestored(networkInfo.getType()); 132 onConnectivityLost(networkInfo.getType()); 143 NetworkInfo info = mConnectivityManager.getActiveNetworkInfo() [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; 47 NetworkInfo info = cm.getActiveNetworkInfo(); 64 NetworkInfo info = intent.getParcelableExtra(
|
/frameworks/base/core/java/android/bluetooth/ |
BluetoothTetheringDataTracker.java | 24 import android.net.NetworkInfo; 25 import android.net.NetworkInfo.DetailedState; 54 private NetworkInfo mNetworkInfo; 66 mNetworkInfo = new NetworkInfo(ConnectivityManager.TYPE_BLUETOOTH, 0, NETWORKTYPE, ""); 210 * Fetch NetworkInfo for the network 212 public synchronized NetworkInfo getNetworkInfo() {
|
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
FakeSystemFacade.java | 7 import android.net.NetworkInfo; 40 public NetworkInfo getActiveNetworkInfo(int uid) { 44 return new NetworkInfo(mActiveNetworkType, 0, null, null);
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
Summary.java | 22 import android.net.NetworkInfo.DetailedState;
|
WifiEnabler.java | 23 import android.net.NetworkInfo; 58 NetworkInfo info = (NetworkInfo) intent.getParcelableExtra( 160 private void handleStateChanged(@SuppressWarnings("unused") NetworkInfo.DetailedState state) {
|
/frameworks/base/location/lib/java/com/android/location/provider/ |
LocationProvider.java | 20 import android.net.NetworkInfo; 116 public void updateNetworkState(int state, NetworkInfo info) { 321 public abstract void onUpdateNetworkState(int state, NetworkInfo info);
|