Home
last modified time | relevance | path

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

1234

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiNotificationController.java27 import android.net.NetworkInfo;
100 private NetworkInfo mNetworkInfo;
101 private NetworkInfo.DetailedState mDetailedState;
117 mDetailedState = NetworkInfo.DetailedState.IDLE; in WifiNotificationController()
135 mNetworkInfo = (NetworkInfo) intent.getParcelableExtra( in WifiNotificationController()
137 NetworkInfo.DetailedState detailedState = in WifiNotificationController()
139 if (detailedState != NetworkInfo.DetailedState.SCANNING in WifiNotificationController()
181 private synchronized void checkAndSetNotification(NetworkInfo networkInfo, in checkAndSetNotification()
194 NetworkInfo.State state = NetworkInfo.State.DISCONNECTED; in checkAndSetNotification()
198 if ((state == NetworkInfo.State.DISCONNECTED) in checkAndSetNotification()
[all …]
DWifiTrafficPoller.java19 import static android.net.NetworkInfo.DetailedState.CONNECTED;
25 import android.net.NetworkInfo;
71 private NetworkInfo mNetworkInfo;
94 mNetworkInfo = (NetworkInfo) intent.getParcelableExtra( in WifiTrafficPoller()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DAccessPointTest.java26 import android.net.NetworkInfo;
86 NetworkInfo networkInfo = in testCopyAccessPoint_dataShouldMatch()
87 new NetworkInfo(ConnectivityManager.TYPE_WIFI, 2, "WIFI", "WIFI_SUBTYPE"); in testCopyAccessPoint_dataShouldMatch()
247 NetworkInfo networkInfo =
248 new NetworkInfo(ConnectivityManager.TYPE_WIFI, 2, "WIFI", "WIFI_SUBTYPE");
263 NetworkInfo networkInfo =
264 new NetworkInfo(ConnectivityManager.TYPE_WIFI, 2, "WIFI", "WIFI_SUBTYPE");
280 NetworkInfo networkInfo =
281 new NetworkInfo(ConnectivityManager.TYPE_WIFI, 2, "WIFI", "WIFI_SUBTYPE");
312 NetworkInfo networkInfo =
[all …]
DTestAccessPointBuilder.java21 import android.net.NetworkInfo;
42 private NetworkInfo mNetworkInfo = null;
77 mNetworkInfo = new NetworkInfo( in setActive()
108 public TestAccessPointBuilder setNetworkInfo(NetworkInfo info) { in setNetworkInfo()
/frameworks/base/core/java/android/net/
DNetworkInfo.java31 public class NetworkInfo implements Parcelable { class
129 public NetworkInfo(int type, int subtype, String typeName, String subtypeName) { in NetworkInfo() method in NetworkInfo
142 public NetworkInfo(NetworkInfo source) { in NetworkInfo() method in NetworkInfo
465 public static final Creator<NetworkInfo> CREATOR = new Creator<NetworkInfo>() {
467 public NetworkInfo createFromParcel(Parcel in) {
472 NetworkInfo netInfo = new NetworkInfo(netType, subtype, typeName, subtypeName);
485 public NetworkInfo[] newArray(int size) {
486 return new NetworkInfo[size];
DIConnectivityManager.aidl23 import android.net.NetworkInfo;
48 NetworkInfo getActiveNetworkInfo(); in getActiveNetworkInfo()
49 NetworkInfo getActiveNetworkInfoForUid(int uid, boolean ignoreBlocked); in getActiveNetworkInfoForUid()
50 NetworkInfo getNetworkInfo(int networkType); in getNetworkInfo()
51 NetworkInfo getNetworkInfoForUid(in Network network, int uid, boolean ignoreBlocked); in getNetworkInfoForUid()
52 NetworkInfo[] getAllNetworkInfo(); in getAllNetworkInfo()
142 int registerNetworkAgent(in Messenger messenger, in NetworkInfo ni, in LinkProperties lp, in registerNetworkAgent()
DNetworkAgent.java208 public NetworkAgent(Looper looper, Context context, String logTag, NetworkInfo ni, in NetworkAgent()
213 public NetworkAgent(Looper looper, Context context, String logTag, NetworkInfo ni, in NetworkAgent()
225 netId = cm.registerNetworkAgent(new Messenger(this), new NetworkInfo(ni), in NetworkAgent()
368 public void sendNetworkInfo(NetworkInfo networkInfo) { in sendNetworkInfo()
369 queueOrSendMessage(EVENT_NETWORK_INFO_CHANGED, new NetworkInfo(networkInfo)); in sendNetworkInfo()
DNetworkState.java30 public final NetworkInfo networkInfo;
37 public NetworkState(NetworkInfo networkInfo, LinkProperties linkProperties, in NetworkState()
DNetworkInfo.aidl19 parcelable NetworkInfo;
/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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiNotificationControllerTest.java32 import android.net.NetworkInfo;
114 NetworkInfo.DetailedState.DISCONNECTED); in verifyNotificationDisplayed()
125 NetworkInfo.DetailedState.SCANNING); in verifyNotificationDisplayed()
127 NetworkInfo.DetailedState.DISCONNECTED); in verifyNotificationDisplayed()
138 NetworkInfo.DetailedState.CONNECTED); in verifyNotificationDisplayed()
150 NetworkInfo.DetailedState.DISCONNECTED); in verifyNotificationNotDisplayed_userHasDisallowConfigWifiRestriction()
DTestUtil.java23 import android.net.NetworkInfo;
36 Context context, NetworkInfo.DetailedState detailedState) { in sendNetworkStateChanged()
38 NetworkInfo networkInfo = new NetworkInfo(0, 0, "", ""); in sendNetworkStateChanged()
/frameworks/base/services/core/java/com/android/server/net/
DLockdownVpnTracker.java35 import android.net.NetworkInfo;
36 import android.net.NetworkInfo.DetailedState;
37 import android.net.NetworkInfo.State;
124 final NetworkInfo egressInfo = mConnService.getActiveNetworkInfoUnfiltered(); in handleStateChangedLocked()
127 final NetworkInfo vpnInfo = mVpn.getNetworkInfo(); in handleStateChangedLocked()
214 final NetworkInfo clone = new NetworkInfo(egressInfo); in handleStateChangedLocked()
318 public void onVpnStateChanged(NetworkInfo info) { in onVpnStateChanged()
327 public void augmentNetworkInfo(NetworkInfo info) { in augmentNetworkInfo()
329 final NetworkInfo vpnInfo = mVpn.getNetworkInfo(); in augmentNetworkInfo()
/frameworks/support/compat/java/android/support/v4/net/
DConnectivityManagerCompat.java32 import android.net.NetworkInfo;
92 final NetworkInfo info = cm.getActiveNetworkInfo(); in isActiveNetworkMetered()
176 public static NetworkInfo getNetworkInfoFromBroadcast(ConnectivityManager cm, Intent intent) { in getNetworkInfoFromBroadcast()
177 final NetworkInfo info = intent.getParcelableExtra(ConnectivityManager.EXTRA_NETWORK_INFO); in getNetworkInfoFromBroadcast()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DConnOnActivityStartTest.java41 import android.net.NetworkInfo;
351 final NetworkInfo networkInfo = mConnectivityManager.getActiveNetworkInfo(); in isNetworkAvailable()
393 final NetworkInfo.State state = parts[0].equals("null") in checkForAvailability()
394 ? null : NetworkInfo.State.valueOf(parts[0]); in checkForAvailability()
395 final NetworkInfo.DetailedState detailedState = parts[1].equals("null") in checkForAvailability()
396 ? null : NetworkInfo.DetailedState.valueOf(parts[1]); in checkForAvailability()
402 final NetworkInfo.State expectedState = NetworkInfo.State.CONNECTED; in checkForAvailability()
403 final NetworkInfo.DetailedState expectedDetailedState = NetworkInfo.DetailedState.CONNECTED; in checkForAvailability()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiStatusTracker.java14 import android.net.NetworkInfo;
52 final NetworkInfo networkInfo = (NetworkInfo) in handleBroadcast()
/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.java20 import android.net.NetworkInfo;
78 public static int stateFromNetworkInfo(NetworkInfo info) { in stateFromNetworkInfo()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/
DConnectivityServiceMock.java31 import android.net.NetworkInfo;
175 NetworkInfo info; in handleMessage()
409 public NetworkInfo getActiveNetworkInfo() { in getActiveNetworkInfo()
423 public NetworkInfo getActiveNetworkInfoUnfiltered() { in getActiveNetworkInfoUnfiltered()
428 public NetworkInfo getActiveNetworkInfoForUid(int uid, boolean ignoreBlocked) { in getActiveNetworkInfoForUid()
433 public NetworkInfo getNetworkInfo(int networkType) { in getNetworkInfo()
438 public NetworkInfo getNetworkInfoForUid(Network network, int uid, boolean ignoreBlocked) { in getNetworkInfoForUid()
443 public NetworkInfo[] getAllNetworkInfo() { in getAllNetworkInfo()
763 public int registerNetworkAgent(Messenger messenger, NetworkInfo networkInfo, in registerNetworkAgent()
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
DConnectivityManagerTestBase.java25 import android.net.NetworkInfo;
26 import android.net.NetworkInfo.State;
162 NetworkInfo ni = mCm.getNetworkInfo(networkType); in waitForNetworkState()
423 NetworkInfo ni = mCm.getActiveNetworkInfo(); in waitForActiveNetworkConnection()
439 NetworkInfo ni = mCm.getActiveNetworkInfo(); in waitUntilNoActiveNetworkConnection()
/frameworks/base/core/java/android/util/
DNtpTrustedTime.java23 import android.net.NetworkInfo;
95 final NetworkInfo ni = mCM == null ? null : mCM.getActiveNetworkInfo(); in forceRefresh()
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java60 import android.net.NetworkInfo;
61 import android.net.NetworkInfo.DetailedState;
921 final NetworkInfo info = new NetworkInfo(networkType, 0, in getFilteredNetworkState()
923 info.setDetailedState(NetworkInfo.DetailedState.DISCONNECTED, null, null); in getFilteredNetworkState()
1005 private void maybeLogBlockedNetworkInfo(NetworkInfo ni, int uid) { in maybeLogBlockedNetworkInfo()
1061 public NetworkInfo getActiveNetworkInfo() { in getActiveNetworkInfo()
1105 public NetworkInfo getActiveNetworkInfoUnfiltered() { in getActiveNetworkInfoUnfiltered()
1113 public NetworkInfo getActiveNetworkInfoForUid(int uid, boolean ignoreBlocked) { in getActiveNetworkInfoForUid()
1121 public NetworkInfo getNetworkInfo(int networkType) { in getNetworkInfo()
1139 public NetworkInfo getNetworkInfoForUid(Network network, int uid, boolean ignoreBlocked) { in getNetworkInfoForUid()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
DWifiAwareDataPathStateManager.java29 import android.net.NetworkInfo;
451 NetworkInfo networkInfo = new NetworkInfo(ConnectivityManager.TYPE_WIFI_P2P, 0, in onDataPathConfirm()
474 new NetworkInfo(ConnectivityManager.TYPE_WIFI_P2P, 0, NETWORK_TAG, ""), in onDataPathConfirm()
710 private NetworkInfo mNetworkInfo;
714 WifiAwareNetworkAgent(Looper looper, Context context, String logTag, NetworkInfo ni, in WifiAwareNetworkAgent()
743 mNetworkInfo.setDetailedState(NetworkInfo.DetailedState.DISCONNECTED, null, ""); in reconfigureAgentAsDisconnected()
943 WifiAwareNetworkSpecifier networkSpecifier, int ndpId, NetworkInfo networkInfo, in configureAgentProperties()
979 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, null, null); in configureAgentProperties()
/frameworks/base/services/core/java/com/android/server/connectivity/
DNetworkAgentInfo.java25 import android.net.NetworkInfo;
119 public NetworkInfo networkInfo;
254 public NetworkAgentInfo(Messenger messenger, AsyncChannel ac, Network net, NetworkInfo info, in NetworkAgentInfo()
458 return new NetworkState(new NetworkInfo(networkInfo), in getNetworkState()

1234