Home
last modified time | relevance | path

Searched refs:NetworkInfo (Results 1 – 25 of 76) 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.java46 public class NetworkInfo implements Parcelable { class
156 public NetworkInfo(int type, int subtype, String typeName, String subtypeName) { in NetworkInfo() method in NetworkInfo
171 public NetworkInfo(NetworkInfo source) { in NetworkInfo() method in NetworkInfo
563 …lic static final @android.annotation.NonNull Creator<NetworkInfo> CREATOR = new Creator<NetworkInf…
565 public NetworkInfo createFromParcel(Parcel in) {
570 NetworkInfo netInfo = new NetworkInfo(netType, subtype, typeName, subtypeName);
582 public NetworkInfo[] newArray(int size) {
583 return new NetworkInfo[size];
DIConnectivityManager.aidl25 import android.net.NetworkInfo;
53 NetworkInfo getActiveNetworkInfo(); in getActiveNetworkInfo()
54 NetworkInfo getActiveNetworkInfoForUid(int uid, boolean ignoreBlocked); in getActiveNetworkInfoForUid()
55 NetworkInfo getNetworkInfo(int networkType); in getNetworkInfo()
56 NetworkInfo getNetworkInfoForUid(in Network network, int uid, boolean ignoreBlocked); in getNetworkInfoForUid()
58 NetworkInfo[] getAllNetworkInfo(); in getAllNetworkInfo()
160 int registerNetworkAgent(in Messenger messenger, in NetworkInfo ni, in LinkProperties lp, in registerNetworkAgent()
DNetworkAgent.java220 public NetworkAgent(Looper looper, Context context, String logTag, NetworkInfo ni, in NetworkAgent()
224 public NetworkAgent(Looper looper, Context context, String logTag, NetworkInfo ni, in NetworkAgent()
229 public NetworkAgent(Looper looper, Context context, String logTag, NetworkInfo ni, in NetworkAgent()
234 public NetworkAgent(Looper looper, Context context, String logTag, NetworkInfo ni, in NetworkAgent()
248 netId = cm.registerNetworkAgent(new Messenger(this), new NetworkInfo(ni), in NetworkAgent()
401 public void sendNetworkInfo(NetworkInfo networkInfo) { in sendNetworkInfo()
402 queueOrSendMessage(EVENT_NETWORK_INFO_CHANGED, new NetworkInfo(networkInfo)); in sendNetworkInfo()
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.java32 import android.net.NetworkInfo;
33 import android.net.NetworkInfo.DetailedState;
34 import android.net.NetworkInfo.State;
118 final NetworkInfo egressInfo = mConnService.getActiveNetworkInfoUnfiltered(); in handleStateChangedLocked()
121 final NetworkInfo vpnInfo = mVpn.getNetworkInfo(); in handleStateChangedLocked()
189 final NetworkInfo clone = new NetworkInfo(egressInfo); in handleStateChangedLocked()
249 public void onVpnStateChanged(NetworkInfo info) { in onVpnStateChanged()
258 public void augmentNetworkInfo(NetworkInfo info) { in augmentNetworkInfo()
260 final NetworkInfo vpnInfo = mVpn.getNetworkInfo(); in augmentNetworkInfo()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DAccessPointTest.java35 import android.net.NetworkInfo;
304 NetworkInfo networkInfo =
305 new NetworkInfo(ConnectivityManager.TYPE_WIFI, 2, "WIFI", "WIFI_SUBTYPE");
320 NetworkInfo networkInfo =
321 new NetworkInfo(ConnectivityManager.TYPE_WIFI, 2, "WIFI", "WIFI_SUBTYPE");
353 NetworkInfo networkInfo =
354 new NetworkInfo(ConnectivityManager.TYPE_WIFI, 2, "WIFI", "WIFI_SUBTYPE");
502 NetworkInfo networkInfo =
503 new NetworkInfo(ConnectivityManager.TYPE_WIFI, 0 /* subtype */, "WIFI", "");
504 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()
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/
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/opt/net/wifi/service/java/com/android/server/wifi/
DCarrierNetworkConfig.java61 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/
DTestNetworkService.java31 import android.net.NetworkInfo;
32 import android.net.NetworkInfo.DetailedState;
151 @NonNull private final NetworkInfo mNi;
164 @NonNull NetworkInfo ni,
237 NetworkInfo ni = new NetworkInfo(ConnectivityManager.TYPE_TEST, 0, TEST_NETWORK_TYPE, "");
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DTestAccessPointBuilder.java21 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/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/java/com/android/internal/net/
DLegacyVpnInfo.java21 import android.net.NetworkInfo;
82 public static int stateFromNetworkInfo(NetworkInfo info) { in stateFromNetworkInfo()
/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/services/core/java/com/android/server/connectivity/
DNetworkAgentInfo.java26 import android.net.NetworkInfo;
119 public NetworkInfo networkInfo;
258 public NetworkAgentInfo(Messenger messenger, AsyncChannel ac, Network net, NetworkInfo info, in NetworkAgentInfo()
451 return networkInfo.getState() == NetworkInfo.State.SUSPENDED; in isSuspended()
523 return new NetworkState(new NetworkInfo(networkInfo), in getNetworkState()
DNat464Xlat.java27 import android.net.NetworkInfo;
64 private static final NetworkInfo.State[] NETWORK_STATES = {
65 NetworkInfo.State.CONNECTED,
66 NetworkInfo.State.SUSPENDED,
/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/base/tests/net/java/com/android/server/connectivity/
DNat464XlatTest.java36 import android.net.NetworkInfo;
93 mNai.networkInfo = new NetworkInfo(null);
131 final NetworkInfo.DetailedState[] supportedDetailedStates = {
132 NetworkInfo.DetailedState.CONNECTED,
133 NetworkInfo.DetailedState.SUSPENDED,
139 for (NetworkInfo.DetailedState state : supportedDetailedStates) {
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDcNetworkAgent.java24 import android.net.NetworkInfo;
70 private DcNetworkAgent(DataConnection dc, String tag, Phone phone, NetworkInfo ni, in DcNetworkAgent()
97 NetworkInfo ni, int score, NetworkMisc misc, in createDcNetworkAgent()
250 public synchronized void sendNetworkInfo(NetworkInfo networkInfo, DataConnection dc) { in sendNetworkInfo()
/frameworks/base/services/core/java/com/android/server/location/
DNtpTimeHelper.java5 import android.net.NetworkInfo;
106 NetworkInfo activeNetworkInfo = mConnMgr.getActiveNetworkInfo(); in isNetworkConnected()
/frameworks/base/core/java/android/util/
DNtpTrustedTime.java25 import android.net.NetworkInfo;
111 final NetworkInfo ni = mCM == null ? null : mCM.getNetworkInfo(network); in forceRefresh()
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/unit/
DWifiClientTest.java23 import android.net.NetworkInfo;
48 NetworkInfo mNetworkInfo;
74 mNetworkInfo = (NetworkInfo) in onReceive()
/frameworks/base/samples/training/network-usage/src/com/example/android/networkusage/
DNetworkActivity.java24 import android.net.NetworkInfo;
132 NetworkInfo activeInfo = connMgr.getActiveNetworkInfo(); in updateConnectedFlags()
292 NetworkInfo networkInfo = connMgr.getActiveNetworkInfo(); in onReceive()

1234