Home
last modified time | relevance | path

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

1234

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiNotificationController.java28 import android.net.NetworkInfo;
93 private NetworkInfo mNetworkInfo;
94 private NetworkInfo.DetailedState mDetailedState;
105 mDetailedState = NetworkInfo.DetailedState.IDLE; in WifiNotificationController()
122 mNetworkInfo = (NetworkInfo) intent.getParcelableExtra( in WifiNotificationController()
124 NetworkInfo.DetailedState detailedState = in WifiNotificationController()
126 if (detailedState != NetworkInfo.DetailedState.SCANNING in WifiNotificationController()
154 private synchronized void checkAndSetNotification(NetworkInfo networkInfo, in checkAndSetNotification()
163 NetworkInfo.State state = NetworkInfo.State.DISCONNECTED; in checkAndSetNotification()
167 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;
92 mNetworkInfo = (NetworkInfo) intent.getParcelableExtra( in WifiTrafficPoller()
/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()
/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/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;
122 final NetworkInfo egressInfo = mConnService.getActiveNetworkInfoUnfiltered(); in handleStateChangedLocked()
125 final NetworkInfo vpnInfo = mVpn.getNetworkInfo(); in handleStateChangedLocked()
212 final NetworkInfo clone = new NetworkInfo(egressInfo); in handleStateChangedLocked()
316 public void onVpnStateChanged(NetworkInfo info) { in onVpnStateChanged()
325 public void augmentNetworkInfo(NetworkInfo info) { in augmentNetworkInfo()
327 final NetworkInfo vpnInfo = mVpn.getNetworkInfo(); in augmentNetworkInfo()
/frameworks/support/v4/java/android/support/v4/net/
DConnectivityManagerCompat.java24 import android.net.NetworkInfo;
40 final NetworkInfo info = cm.getActiveNetworkInfo(); in isActiveNetworkMetered()
113 public static NetworkInfo getNetworkInfoFromBroadcast(ConnectivityManager cm, Intent intent) { in getNetworkInfoFromBroadcast()
114 final NetworkInfo info = intent.getParcelableExtra(ConnectivityManager.EXTRA_NETWORK_INFO); in getNetworkInfoFromBroadcast()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DTestUtil.java25 import android.net.NetworkInfo;
51 Context context, NetworkInfo.DetailedState detailedState) { in sendNetworkStateChanged()
53 NetworkInfo networkInfo = new NetworkInfo(0, 0, "", ""); in sendNetworkStateChanged()
DWifiNotificationControllerTest.java33 import android.net.NetworkInfo;
107 NetworkInfo.DetailedState.DISCONNECTED); in verifyNotificationDisplayed()
119 NetworkInfo.DetailedState.SCANNING); in verifyNotificationDisplayed()
121 NetworkInfo.DetailedState.DISCONNECTED); in verifyNotificationDisplayed()
136 NetworkInfo.DetailedState.CONNECTED); in verifyNotificationDisplayed()
/frameworks/base/services/core/java/com/android/server/connectivity/
DNetworkAgentInfo.java25 import android.net.NetworkInfo;
109 public NetworkInfo networkInfo;
177 public NetworkAgentInfo(Messenger messenger, AsyncChannel ac, Network net, NetworkInfo info, in NetworkAgentInfo()
266 return new NetworkState(new NetworkInfo(networkInfo), in getNetworkState()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiStatusTracker.java14 import android.net.NetworkInfo;
40 final NetworkInfo networkInfo = (NetworkInfo) in handleBroadcast()
DWifiTracker.java25 import android.net.NetworkInfo;
26 import android.net.NetworkInfo.DetailedState;
90 private NetworkInfo mLastNetworkInfo;
468 private void updateNetworkInfo(NetworkInfo networkInfo) { in updateNetworkInfo()
531 NetworkInfo info = (NetworkInfo) intent.getParcelableExtra(
612 updateNetworkInfo((NetworkInfo) msg.obj); in handleMessage()
/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/support/v4/gingerbread/android/support/v4/net/
DConnectivityManagerCompatGingerbread.java28 import android.net.NetworkInfo;
35 final NetworkInfo info = cm.getActiveNetworkInfo(); in isActiveNetworkMetered()
/frameworks/support/v4/honeycomb_mr2/android/support/v4/net/
DConnectivityManagerCompatHoneycombMR2.java30 import android.net.NetworkInfo;
37 final NetworkInfo info = cm.getActiveNetworkInfo(); in isActiveNetworkMetered()
/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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/
DConnectivityServiceMock.java63 import android.net.NetworkInfo;
64 import android.net.NetworkInfo.DetailedState;
252 NetworkInfo info; in handleMessage()
486 public NetworkInfo getActiveNetworkInfo() { in getActiveNetworkInfo()
500 public NetworkInfo getActiveNetworkInfoUnfiltered() { in getActiveNetworkInfoUnfiltered()
505 public NetworkInfo getActiveNetworkInfoForUid(int uid, boolean ignoreBlocked) { in getActiveNetworkInfoForUid()
510 public NetworkInfo getNetworkInfo(int networkType) { in getNetworkInfo()
515 public NetworkInfo getNetworkInfoForUid(Network network, int uid, boolean ignoreBlocked) { in getNetworkInfoForUid()
520 public NetworkInfo[] getAllNetworkInfo() { in getAllNetworkInfo()
829 public int registerNetworkAgent(Messenger messenger, NetworkInfo networkInfo, in registerNetworkAgent()
/frameworks/base/core/java/com/android/internal/net/
DLegacyVpnInfo.java20 import android.net.NetworkInfo;
78 public static int stateFromNetworkInfo(NetworkInfo info) { in stateFromNetworkInfo()
/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/opt/net/ethernet/java/com/android/server/ethernet/
DEthernetNetworkFactory.java32 import android.net.NetworkInfo;
33 import android.net.NetworkInfo.DetailedState;
103 private NetworkInfo mNetworkInfo;
109 mNetworkInfo = new NetworkInfo(ConnectivityManager.TYPE_ETHERNET, 0, NETWORK_TYPE, ""); in EthernetNetworkFactory()
238 mNetworkInfo = new NetworkInfo(ConnectivityManager.TYPE_ETHERNET, 0, NETWORK_TYPE, ""); in stopTrackingInterface()
478 mNetworkInfo = new NetworkInfo(ConnectivityManager.TYPE_ETHERNET, 0, NETWORK_TYPE, ""); in stop()
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java66 import android.net.NetworkInfo;
67 import android.net.NetworkInfo.DetailedState;
854 final NetworkInfo info = new NetworkInfo(networkType, 0, in getFilteredNetworkState()
856 info.setDetailedState(NetworkInfo.DetailedState.DISCONNECTED, null, null); in getFilteredNetworkState()
967 private void maybeLogBlockedNetworkInfo(NetworkInfo ni, int uid) { in maybeLogBlockedNetworkInfo()
1016 public NetworkInfo getActiveNetworkInfo() { in getActiveNetworkInfo()
1059 public NetworkInfo getActiveNetworkInfoUnfiltered() { in getActiveNetworkInfoUnfiltered()
1067 public NetworkInfo getActiveNetworkInfoForUid(int uid, boolean ignoreBlocked) { in getActiveNetworkInfoForUid()
1075 public NetworkInfo getNetworkInfo(int networkType) { in getNetworkInfo()
1093 public NetworkInfo getNetworkInfoForUid(Network network, int uid, boolean ignoreBlocked) { in getNetworkInfoForUid()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DNetworkControllerWifiTest.java5 import android.net.NetworkInfo;
125 NetworkInfo networkInfo = Mockito.mock(NetworkInfo.class); in setWifiState()
/frameworks/base/core/java/android/util/
DNtpTrustedTime.java23 import android.net.NetworkInfo;
95 final NetworkInfo ni = mCM == null ? null : mCM.getActiveNetworkInfo(); in forceRefresh()

1234