/frameworks/ex/common/java/com/android/common/ |
D | NetworkConnectivityListener.java | 24 import android.net.NetworkInfo; 52 private NetworkInfo mNetworkInfo; 59 private NetworkInfo mOtherNetworkInfo; 83 mNetworkInfo = (NetworkInfo) in onReceive() 85 mOtherNetworkInfo = (NetworkInfo) in onReceive() 190 public NetworkInfo getNetworkInfo() { in getNetworkInfo() 203 public NetworkInfo getOtherNetworkInfo() { in getOtherNetworkInfo()
|
/frameworks/base/core/java/android/net/ |
D | NetworkInfo.java | 49 public class NetworkInfo implements Parcelable { class 167 public NetworkInfo(int type, @NetworkType int subtype, in NetworkInfo() method in NetworkInfo 183 public NetworkInfo(NetworkInfo source) { in NetworkInfo() method in NetworkInfo 603 …lic static final @android.annotation.NonNull Creator<NetworkInfo> CREATOR = new Creator<NetworkInf… 605 public NetworkInfo createFromParcel(Parcel in) { 610 NetworkInfo netInfo = new NetworkInfo(netType, subtype, typeName, subtypeName); 622 public NetworkInfo[] newArray(int size) { 623 return new NetworkInfo[size];
|
D | NetworkAgent.java | 115 private NetworkInfo mNetworkInfo; 326 public NetworkAgent(Looper looper, Context context, String logTag, NetworkInfo ni, in NetworkAgent() 333 public NetworkAgent(Looper looper, Context context, String logTag, NetworkInfo ni, in NetworkAgent() 340 public NetworkAgent(Looper looper, Context context, String logTag, NetworkInfo ni, in NetworkAgent() 347 public NetworkAgent(Looper looper, Context context, String logTag, NetworkInfo ni, in NetworkAgent() 354 private static NetworkInfo getLegacyNetworkInfo(final NetworkAgentConfig config) { in getLegacyNetworkInfo() 357 final NetworkInfo ni = new NetworkInfo(config.legacyType, config.legacyType, in getLegacyNetworkInfo() 390 public final NetworkInfo info; 393 @NonNull NetworkInfo info) { in InitialConfiguration() 406 @NonNull NetworkAgentConfig config, int providerId, @NonNull NetworkInfo ni, in NetworkAgent() [all …]
|
D | IConnectivityManager.aidl | 27 import android.net.NetworkInfo; 55 NetworkInfo getActiveNetworkInfo(); in getActiveNetworkInfo() 56 NetworkInfo getActiveNetworkInfoForUid(int uid, boolean ignoreBlocked); in getActiveNetworkInfoForUid() 58 NetworkInfo getNetworkInfo(int networkType); in getNetworkInfo() 59 NetworkInfo getNetworkInfoForUid(in Network network, int uid, boolean ignoreBlocked); in getNetworkInfoForUid() 61 NetworkInfo[] getAllNetworkInfo(); in getAllNetworkInfo() 168 Network registerNetworkAgent(in Messenger messenger, in NetworkInfo ni, in LinkProperties lp, in registerNetworkAgent()
|
D | NetworkState.java | 35 public final NetworkInfo networkInfo; 43 public NetworkState(NetworkInfo networkInfo, LinkProperties linkProperties, in NetworkState()
|
D | NetworkInfo.aidl | 19 parcelable NetworkInfo;
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | LockdownVpnTracker.java | 34 import android.net.NetworkInfo; 35 import android.net.NetworkInfo.DetailedState; 36 import android.net.NetworkInfo.State; 120 final NetworkInfo egressInfo = mConnService.getActiveNetworkInfoUnfiltered(); in handleStateChangedLocked() 123 final NetworkInfo vpnInfo = mVpn.getNetworkInfo(); in handleStateChangedLocked() 186 final NetworkInfo clone = new NetworkInfo(egressInfo); in handleStateChangedLocked() 245 public void onVpnStateChanged(NetworkInfo info) { in onVpnStateChanged() 254 public void augmentNetworkInfo(NetworkInfo info) { in augmentNetworkInfo() 256 final NetworkInfo vpnInfo = mVpn.getNetworkInfo(); in augmentNetworkInfo()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | DcNetworkAgent.java | 27 import android.net.NetworkInfo; 81 private NetworkInfo mNetworkInfo; 86 DcNetworkAgent(DataConnection dc, Phone phone, NetworkInfo ni, int score, in DcNetworkAgent() 98 mNetworkInfo = new NetworkInfo(ni); in DcNetworkAgent() 301 public synchronized void sendNetworkInfo(NetworkInfo networkInfo, DataConnection dc) { in sendNetworkInfo() 303 final NetworkInfo.State oldState = mNetworkInfo.getState(); in sendNetworkInfo() 304 final NetworkInfo.State state = networkInfo.getState(); in sendNetworkInfo() 312 if ((oldState == NetworkInfo.State.SUSPENDED || oldState == NetworkInfo.State.CONNECTED) in sendNetworkInfo() 313 && state == NetworkInfo.State.DISCONNECTED) { in sendNetworkInfo() 316 mNetworkInfo = new NetworkInfo(networkInfo); in sendNetworkInfo() [all …]
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/ |
D | AccessPointTest.java | 35 import android.net.NetworkInfo; 305 NetworkInfo networkInfo = 306 new NetworkInfo(ConnectivityManager.TYPE_WIFI, 2, "WIFI", "WIFI_SUBTYPE"); 321 NetworkInfo networkInfo = 322 new NetworkInfo(ConnectivityManager.TYPE_WIFI, 2, "WIFI", "WIFI_SUBTYPE"); 354 NetworkInfo networkInfo = 355 new NetworkInfo(ConnectivityManager.TYPE_WIFI, 2, "WIFI", "WIFI_SUBTYPE"); 503 NetworkInfo networkInfo = 504 new NetworkInfo(ConnectivityManager.TYPE_WIFI, 0 /* subtype */, "WIFI", ""); 505 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "", ""); [all …]
|
D | WifiTrackerTest.java | 40 import android.net.NetworkInfo; 421 NetworkInfo networkInfo = new NetworkInfo( in createTrackerWithScanResultsAndAccessPoint1Connected() 423 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "connected", "test"); in createTrackerWithScanResultsAndAccessPoint1Connected() 442 NetworkInfo networkInfo = new NetworkInfo( in switchToNetwork2() 444 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTING, "connecting", "test"); in switchToNetwork2() 772 NetworkInfo networkInfo = new NetworkInfo( in onStartShouldSynchronouslyFetchLatestInformation() 774 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "connected", "test"); in onStartShouldSynchronouslyFetchLatestInformation() 798 NetworkInfo networkInfo = new NetworkInfo( in onStartShouldDisplayConnectedAccessPointWhenThereAreNoScanResults() 800 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "connected", "test"); in onStartShouldDisplayConnectedAccessPointWhenThereAreNoScanResults() 948 NetworkInfo networkInfo = new NetworkInfo( in onConnectedChangedCallback_shouldNotBeInvokedWhenNoStateChange() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | TestUtil.java | 23 import android.net.NetworkInfo; 38 Context context, NetworkInfo.DetailedState detailedState) { in sendNetworkStateChanged() 40 NetworkInfo networkInfo = new NetworkInfo(0, 0, "", ""); in sendNetworkStateChanged() 50 Context context, NetworkInfo nwInfo, WifiInfo wifiInfo) { in sendNetworkStateChanged()
|
/frameworks/base/tests/net/integration/util/com/android/server/ |
D | NetworkAgentWrapper.java | 41 import android.net.NetworkInfo; 58 private final NetworkInfo mNetworkInfo; 76 mNetworkInfo = new NetworkInfo(type, 0, typeName, "Mock"); in NetworkAgentWrapper() 208 getNetworkInfo().getDetailedState(), NetworkInfo.DetailedState.CONNECTED); in connect() 209 mNetworkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, null, null); in connect() 222 mNetworkInfo.setDetailedState(NetworkInfo.DetailedState.DISCONNECTED, null, null); in disconnect() 259 public NetworkInfo getNetworkInfo() { in getNetworkInfo()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | CarrierNetworkConfig.java | 61 private final Map<String, NetworkInfo> mCarrierNetworkMap; 108 NetworkInfo info = mCarrierNetworkMap.get(ssid); in getNetworkEapType() 117 NetworkInfo info = mCarrierNetworkMap.get(ssid); in getCarrierName() 160 private static class NetworkInfo { class in CarrierNetworkConfig 164 NetworkInfo(int eapType, String carrierName) { in NetworkInfo() method in CarrierNetworkConfig.NetworkInfo 255 mCarrierNetworkMap.put(ssid, new NetworkInfo(eapType, carrierName)); in processNetworkConfig()
|
/frameworks/base/services/core/java/com/android/server/ |
D | TestNetworkService.java | 33 import android.net.NetworkInfo; 34 import android.net.NetworkInfo.DetailedState; 153 @NonNull private final NetworkInfo mNi; 166 @NonNull NetworkInfo ni, 242 NetworkInfo ni = new NetworkInfo(ConnectivityManager.TYPE_TEST, 0, TEST_NETWORK_TYPE, "");
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/wifi/ |
D | WifiDebuggingSecondaryUserActivity.java | 26 import android.net.NetworkInfo; 75 NetworkInfo networkInfo = (NetworkInfo) intent.getParcelableExtra( in onReceive()
|
D | WifiDebuggingActivity.java | 28 import android.net.NetworkInfo; 146 NetworkInfo networkInfo = (NetworkInfo) intent.getParcelableExtra( in onReceive()
|
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/ |
D | ConnectionUtil.java | 31 import android.net.NetworkInfo; 32 import android.net.NetworkInfo.State; 67 private NetworkInfo mNetworkInfo; 68 private NetworkInfo mOtherNetworkInfo; 75 private NetworkInfo mWifiNetworkInfo; 162 mOtherNetworkInfo = (NetworkInfo) in onReceive() 192 (NetworkInfo) intent.getParcelableExtra(WifiManager.EXTRA_NETWORK_INFO); in onReceive() 518 NetworkInfo networkInfo = mCM.getNetworkInfo(ConnectivityManager.TYPE_MOBILE); in isConnectedToMobile() 527 NetworkInfo networkInfo = mCM.getNetworkInfo(ConnectivityManager.TYPE_WIFI); in isConnectedToWifi()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/ |
D | TestAccessPointBuilder.java | 21 import android.net.NetworkInfo; 53 private NetworkInfo mNetworkInfo = null; 115 mNetworkInfo = new NetworkInfo( in setActive() 148 public TestAccessPointBuilder setNetworkInfo(NetworkInfo info) { in setNetworkInfo()
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/functional/ |
D | ConnectivityManagerMobileTest.java | 20 import android.net.NetworkInfo; 21 import android.net.NetworkInfo.State; 92 NetworkInfo ni = mCm.getActiveNetworkInfo(); in test3GToWifiNotification() 332 NetworkInfo extraNetInfo = mCm.getActiveNetworkInfo(); in verifyCellularConnection()
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | Nat464XlatTest.java | 37 import android.net.NetworkInfo; 87 mNai.networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "", ""); 91 mNai.networkInfo.setDetailedState(NetworkInfo.DetailedState.DISCONNECTED, "", ""); 103 mNai.networkInfo = new NetworkInfo(null); 142 final NetworkInfo.DetailedState[] supportedDetailedStates = { 143 NetworkInfo.DetailedState.CONNECTED, 144 NetworkInfo.DetailedState.SUSPENDED, 150 for (NetworkInfo.DetailedState state : supportedDetailedStates) {
|
/frameworks/base/core/java/com/android/internal/net/ |
D | LegacyVpnInfo.java | 21 import android.net.NetworkInfo; 86 public static int stateFromNetworkInfo(NetworkInfo info) { in stateFromNetworkInfo()
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/ |
D | ConnectivityManagerTestBase.java | 25 import android.net.NetworkInfo; 26 import android.net.NetworkInfo.State; 156 NetworkInfo ni = mCm.getNetworkInfo(networkType); in waitForNetworkState() 417 NetworkInfo ni = mCm.getActiveNetworkInfo(); in waitForActiveNetworkConnection() 433 NetworkInfo ni = mCm.getActiveNetworkInfo(); in waitUntilNoActiveNetworkConnection()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | Nat464Xlat.java | 28 import android.net.NetworkInfo; 65 private static final NetworkInfo.State[] NETWORK_STATES = { 66 NetworkInfo.State.CONNECTED, 67 NetworkInfo.State.SUSPENDED,
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/unit/ |
D | WifiClientTest.java | 23 import android.net.NetworkInfo; 48 NetworkInfo mNetworkInfo; 74 mNetworkInfo = (NetworkInfo) in onReceive()
|
/frameworks/base/samples/training/network-usage/src/com/example/android/networkusage/ |
D | NetworkActivity.java | 24 import android.net.NetworkInfo; 132 NetworkInfo activeInfo = connMgr.getActiveNetworkInfo(); in updateConnectedFlags() 292 NetworkInfo networkInfo = connMgr.getActiveNetworkInfo(); in onReceive()
|