Home
last modified time | relevance | path

Searched refs:NetworkInfo (Results 1 – 25 of 91) sorted by relevance

1234

/frameworks/ex/common/java/com/android/common/
DNetworkConnectivityListener.java24 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/
DNetworkInfo.java48 public class NetworkInfo implements Parcelable { class
166 public NetworkInfo(int type, @NetworkType int subtype, in NetworkInfo() method in NetworkInfo
182 public NetworkInfo(NetworkInfo source) { in NetworkInfo() method in NetworkInfo
576 …lic static final @android.annotation.NonNull Creator<NetworkInfo> CREATOR = new Creator<NetworkInf…
578 public NetworkInfo createFromParcel(Parcel in) {
583 NetworkInfo netInfo = new NetworkInfo(netType, subtype, typeName, subtypeName);
595 public NetworkInfo[] newArray(int size) {
596 return new NetworkInfo[size];
DNetworkAgent.java115 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, 0, config.legacyTypeName, ""); in getLegacyNetworkInfo()
389 public final NetworkInfo info;
392 @NonNull NetworkInfo info) { in InitialConfiguration()
405 @NonNull NetworkAgentConfig config, int providerId, @NonNull NetworkInfo ni, in NetworkAgent()
[all …]
DIConnectivityManager.aidl27 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()
167 Network registerNetworkAgent(in Messenger messenger, in NetworkInfo ni, in LinkProperties lp, in registerNetworkAgent()
DNetworkState.java35 public final NetworkInfo networkInfo;
43 public NetworkState(NetworkInfo networkInfo, LinkProperties linkProperties, in NetworkState()
DNetworkInfo.aidl19 parcelable NetworkInfo;
/frameworks/base/services/core/java/com/android/server/net/
DLockdownVpnTracker.java34 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/
DDcNetworkAgent.java26 import android.net.NetworkInfo;
78 private NetworkInfo mNetworkInfo;
83 DcNetworkAgent(DataConnection dc, Phone phone, NetworkInfo ni, int score, in DcNetworkAgent()
94 mNetworkInfo = new NetworkInfo(ni); in DcNetworkAgent()
295 public synchronized void sendNetworkInfo(NetworkInfo networkInfo, DataConnection dc) { in sendNetworkInfo()
297 final NetworkInfo.State oldState = mNetworkInfo.getState(); in sendNetworkInfo()
298 final NetworkInfo.State state = networkInfo.getState(); in sendNetworkInfo()
306 if ((oldState == NetworkInfo.State.SUSPENDED || oldState == NetworkInfo.State.CONNECTED) in sendNetworkInfo()
307 && state == NetworkInfo.State.DISCONNECTED) { in sendNetworkInfo()
310 mNetworkInfo = new NetworkInfo(networkInfo); in sendNetworkInfo()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DTestUtil.java23 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/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DAccessPointTest.java36 import android.net.NetworkInfo;
306 NetworkInfo networkInfo =
307 new NetworkInfo(ConnectivityManager.TYPE_WIFI, 2, "WIFI", "WIFI_SUBTYPE");
322 NetworkInfo networkInfo =
323 new NetworkInfo(ConnectivityManager.TYPE_WIFI, 2, "WIFI", "WIFI_SUBTYPE");
355 NetworkInfo networkInfo =
356 new NetworkInfo(ConnectivityManager.TYPE_WIFI, 2, "WIFI", "WIFI_SUBTYPE");
529 NetworkInfo networkInfo =
530 new NetworkInfo(ConnectivityManager.TYPE_WIFI, 0 /* subtype */, "WIFI", "");
531 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "", "");
[all …]
DWifiTrackerTest.java40 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()
771 NetworkInfo networkInfo = new NetworkInfo( in onStartShouldSynchronouslyFetchLatestInformation()
773 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "connected", "test"); in onStartShouldSynchronouslyFetchLatestInformation()
797 NetworkInfo networkInfo = new NetworkInfo( in onStartShouldDisplayConnectedAccessPointWhenThereAreNoScanResults()
799 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "connected", "test"); in onStartShouldDisplayConnectedAccessPointWhenThereAreNoScanResults()
947 NetworkInfo networkInfo = new NetworkInfo( in onConnectedChangedCallback_shouldNotBeInvokedWhenNoStateChange()
[all …]
/frameworks/base/tests/net/integration/util/com/android/server/
DNetworkAgentWrapper.java41 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/base/services/core/java/com/android/server/
DTestNetworkService.java33 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/opt/net/wifi/libs/WifiTrackerLib/tests/src/com/android/wifitrackerlib/
DPasspointWifiEntryTest.java33 import android.net.NetworkInfo;
63 @Mock private NetworkInfo mMockNetworkInfo;
82 NetworkInfo.DetailedState.DISCONNECTED); in setUp()
154 NetworkInfo networkInfo = in testGetSummary_connectedWifiNetwork_showsConnected()
155 new NetworkInfo(ConnectivityManager.TYPE_WIFI, 0 /* subtype */, "WIFI", ""); in testGetSummary_connectedWifiNetwork_showsConnected()
156 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "", ""); in testGetSummary_connectedWifiNetwork_showsConnected()
DWifiPickerTrackerTest.java33 import android.net.NetworkInfo;
88 private NetworkInfo mMockNetworkInfo;
123 NetworkInfo.DetailedState.DISCONNECTED); in setUp()
435 when(mMockNetworkInfo.getDetailedState()).thenReturn(NetworkInfo.DetailedState.CONNECTED); in testGetConnectedEntry_alreadyConnectedOnStart_returnsConnectedEntry()
465 when(mMockNetworkInfo.getDetailedState()).thenReturn(NetworkInfo.DetailedState.CONNECTED); in testGetConnectedEntry_connectToNetwork_returnsConnectedEntry()
490 when(mMockNetworkInfo.getDetailedState()).thenReturn(NetworkInfo.DetailedState.CONNECTED); in testGetConnectedEntry_disconnectFromNetwork_returnsNull()
497 .thenReturn(NetworkInfo.DetailedState.DISCONNECTED); in testGetConnectedEntry_disconnectFromNetwork_returnsNull()
608 when(mMockNetworkInfo.getDetailedState()).thenReturn(NetworkInfo.DetailedState.CONNECTED); in testGetConnectedEntry_alreadyConnectedToPasspoint_returnsPasspointEntry()
/frameworks/base/packages/SystemUI/src/com/android/systemui/wifi/
DWifiDebuggingSecondaryUserActivity.java26 import android.net.NetworkInfo;
75 NetworkInfo networkInfo = (NetworkInfo) intent.getParcelableExtra( in onReceive()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DTestAccessPointBuilder.java21 import android.net.NetworkInfo;
54 private NetworkInfo mNetworkInfo = null;
110 mNetworkInfo = new NetworkInfo( in setActive()
145 public TestAccessPointBuilder setNetworkInfo(NetworkInfo info) { in setNetworkInfo()
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/
DConnectionUtil.java31 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/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/functional/
DConnectivityManagerMobileTest.java20 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/core/java/com/android/internal/net/
DLegacyVpnInfo.java21 import android.net.NetworkInfo;
86 public static int stateFromNetworkInfo(NetworkInfo info) { in stateFromNetworkInfo()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DNat464XlatTest.java37 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/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DNetworkControllerWifiTest.java14 import android.net.NetworkInfo;
188 NetworkInfo networkInfo = mock(NetworkInfo.class); in testFetchInitialData_correctValues()
225 NetworkInfo networkInfo = mock(NetworkInfo.class); in setWifiState()
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
DConnectivityManagerTestBase.java25 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/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/
DStandardNetworkDetailsTracker.java34 import android.net.NetworkInfo;
59 private NetworkInfo mCurrentNetworkInfo;
139 mCurrentNetworkInfo = (NetworkInfo) intent.getExtra(WifiManager.EXTRA_NETWORK_INFO); in handleNetworkStateChangedAction()
/frameworks/base/services/core/java/com/android/server/connectivity/
DNat464Xlat.java28 import android.net.NetworkInfo;
65 private static final NetworkInfo.State[] NETWORK_STATES = {
66 NetworkInfo.State.CONNECTED,
67 NetworkInfo.State.SUSPENDED,

1234