/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | NetworkInfoTest.kt | 21 import android.net.NetworkInfo 22 import android.net.NetworkInfo.DetailedState 23 import android.net.NetworkInfo.State 72 private fun assertNetworkInfo(netInfo: NetworkInfo, expectedTypeName: String) { in assertNetworkInfo() 92 val networkInfo = NetworkInfo(TYPE_MOBILE, TelephonyManager.NETWORK_TYPE_LTE, in testConstructor() 105 NetworkInfo(ConnectivityManager.MAX_NETWORK_TYPE + 1, in testConstructor() 111 NetworkInfo(NonNullTestUtils.nullUnsafe<NetworkInfo>(null)) in testConstructor() 115 NetworkInfo(NonNullTestUtils.nullUnsafe<NetworkInfo>(null)) in testConstructor() 121 val networkInfo = NetworkInfo(TYPE_MOBILE, TelephonyManager.NETWORK_TYPE_LTE, in testSetDetailedState() 140 NetworkInfo(NonNullTestUtils.nullUnsafe<NetworkInfo>(null)) in testSetDetailedState() [all …]
|
/packages/modules/Connectivity/framework/src/android/net/ |
D | NetworkInfo.java | 49 public class NetworkInfo implements Parcelable { class 167 public NetworkInfo(int type, int subtype, in NetworkInfo() method in NetworkInfo 183 public NetworkInfo(@NonNull NetworkInfo source) { in NetworkInfo() method in NetworkInfo 629 …lic static final @android.annotation.NonNull Creator<NetworkInfo> CREATOR = new Creator<NetworkInf… 631 public NetworkInfo createFromParcel(Parcel in) { 636 NetworkInfo netInfo = new NetworkInfo(netType, subtype, typeName, subtypeName); 648 public NetworkInfo[] newArray(int size) { 649 return new NetworkInfo[size];
|
D | NetworkAgent.java | 119 private NetworkInfo mNetworkInfo; 495 private static NetworkInfo getLegacyNetworkInfo(final NetworkAgentConfig config) { in getLegacyNetworkInfo() 496 final NetworkInfo ni = new NetworkInfo(config.legacyType, config.legacySubType, in getLegacyNetworkInfo() 499 ni.setDetailedState(NetworkInfo.DetailedState.CONNECTING, null /* reason */, in getLegacyNetworkInfo() 564 @NonNull public final NetworkInfo info; 569 @NonNull NetworkAgentConfig config, @NonNull NetworkInfo info) { in InitialConfiguration() 584 @NonNull NetworkAgentConfig config, int providerId, @NonNull NetworkInfo ni) { in NetworkAgent() 587 mNetworkInfo = new NetworkInfo(ni); in NetworkAgent() 763 new NetworkInfo(mInitialConfiguration.info), in register() 768 new NetworkInfo(mInitialConfiguration.info), in register() [all …]
|
D | IConnectivityManager.aidl | 34 import android.net.NetworkInfo; 62 NetworkInfo getActiveNetworkInfo(); in getActiveNetworkInfo() 63 NetworkInfo getActiveNetworkInfoForUid(int uid, boolean ignoreBlocked); in getActiveNetworkInfoForUid() 65 NetworkInfo getNetworkInfo(int networkType); in getNetworkInfo() 66 NetworkInfo getNetworkInfoForUid(in Network network, int uid, boolean ignoreBlocked); in getNetworkInfoForUid() 68 NetworkInfo[] getAllNetworkInfo(); in getAllNetworkInfo() 149 Network registerNetworkAgent(in INetworkAgent na, in NetworkInfo ni, in LinkProperties lp, in registerNetworkAgent()
|
D | NetworkState.java | 38 public final NetworkInfo networkInfo; 58 this(legacyNetworkType, new NetworkInfo(legacyNetworkType, 0, null, null), linkProperties, in NetworkState() 63 public NetworkState(@NonNull NetworkInfo networkInfo, @NonNull LinkProperties linkProperties, in NetworkState() 70 public NetworkState(int legacyNetworkType, @NonNull NetworkInfo networkInfo, in NetworkState()
|
D | INetworkAgentRegistry.aidl | 23 import android.net.NetworkInfo; 37 void sendNetworkInfo(in NetworkInfo info); in sendNetworkInfo()
|
/packages/apps/Messaging/src/android/support/v7/mms/ |
D | MmsNetworkManager.java | 24 import android.net.NetworkInfo; 197 final NetworkInfo mmsNetworkInfo = mConnectivityManager.getNetworkInfo( in getApnName() 216 final NetworkInfo mmsNetworkInfo = in onMmsConnectivityChange() 228 final NetworkInfo.State state = mmsNetworkInfo.getState(); in onMmsConnectivityChange() 229 if (state == NetworkInfo.State.CONNECTED || in onMmsConnectivityChange() 230 (state == NetworkInfo.State.DISCONNECTED && !isMobileDataEnabled())) { in onMmsConnectivityChange() 355 final NetworkInfo info = intent.getParcelableExtra( in getConnectivityChangeNetworkType()
|
/packages/modules/Wifi/service/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()
|
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/automatic/ |
D | JobPreconditionsTest.java | 28 import android.net.NetworkInfo; 51 @Mock private NetworkInfo mWifiNetworkInfo; 54 private HashMap<Network, NetworkInfo> mNetworkMap; 114 new Answer<NetworkInfo>() { in hookUpMocks() 116 public NetworkInfo answer(InvocationOnMock invocation) { in hookUpMocks()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/analytics/ |
D | NetworkTypeLoggerTest.java | 28 import android.net.NetworkInfo; 45 private static final NetworkInfo WIFI_NETWORK_INFO = 46 new NetworkInfo(TYPE_WIFI, 2, "WIFI", "WIFI_SUBTYPE");
|
/packages/apps/Dialer/java/com/android/dialer/common/ |
D | NetworkUtil.java | 22 import android.net.NetworkInfo; 52 public static NetworkInfo getCurrentNetworkInfo(@Nullable Context context) { in getCurrentNetworkInfo() 72 NetworkInfo netInfo = connectivityManager.getActiveNetworkInfo(); in getCurrentNetworkTypeName() 81 public static String getNetworkType(@Nullable NetworkInfo netInfo) { in getNetworkType()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/ |
D | UtilsTest.java | 42 import android.net.NetworkInfo; 230 final NetworkInfo networkInfo = in testGetActiveNetworkInfo() 231 new NetworkInfo(ConnectivityManager.TYPE_WIFI, 0, null, null); in testGetActiveNetworkInfo() 439 NetworkInfo networkInfo = new NetworkInfo(type, 0, null, null); in setCurrentNetworkMock() 441 connected ? NetworkInfo.DetailedState.CONNECTED in setCurrentNetworkMock() 442 : NetworkInfo.DetailedState.DISCONNECTED, in setCurrentNetworkMock()
|
/packages/modules/Connectivity/tests/cts/hostside-network-policy/aidl/com/android/cts/netpolicy/hostside/ |
D | NetworkCheckResult.aidl | 19 import android.net.NetworkInfo; 25 NetworkInfo networkInfo;
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
D | WifiEnabler.java | 28 import android.net.NetworkInfo; 79 NetworkInfo info = (NetworkInfo) intent.getParcelableExtra( 186 private void handleStateChanged(@SuppressWarnings("unused") NetworkInfo.DetailedState state) { in handleStateChanged()
|
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | TestConnectivityManager.java | 35 import android.net.NetworkInfo; 297 NetworkInfo ni = new NetworkInfo(type, 0 /* subtype */, getNetworkTypeName(type), in sendConnectivityAction() 299 NetworkInfo.DetailedState state = connected in sendConnectivityAction() 300 ? NetworkInfo.DetailedState.CONNECTED in sendConnectivityAction() 301 : NetworkInfo.DetailedState.DISCONNECTED; in sendConnectivityAction()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/ |
D | Nat464XlatTest.java | 46 import android.net.NetworkInfo; 118 mNai.networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "", ""); 122 mNai.networkInfo.setDetailedState(NetworkInfo.DetailedState.DISCONNECTED, "", ""); 131 mNai.networkInfo = new NetworkInfo(ConnectivityManager.TYPE_WIFI, 0 /* subtype */, 175 final NetworkInfo.DetailedState[] supportedDetailedStates = { 176 NetworkInfo.DetailedState.CONNECTED, 177 NetworkInfo.DetailedState.SUSPENDED, 183 for (NetworkInfo.DetailedState state : supportedDetailedStates) {
|
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/suggestions/eligibility/ |
D | ConnectivityEligibilityChecker.java | 22 import android.net.NetworkInfo; 44 NetworkInfo netInfo = cm.getActiveNetworkInfo(); in isEligible()
|
/packages/modules/Connectivity/framework/api/ |
D | current.txt | 71 …n(android.Manifest.permission.ACCESS_NETWORK_STATE) public android.net.NetworkInfo getActiveNetwor… 72 …n(android.Manifest.permission.ACCESS_NETWORK_STATE) public android.net.NetworkInfo[] getAllNetwork… 81 …n(android.Manifest.permission.ACCESS_NETWORK_STATE) public android.net.NetworkInfo getNetworkInfo(… 82 …n(android.Manifest.permission.ACCESS_NETWORK_STATE) public android.net.NetworkInfo getNetworkInfo(… 374 @Deprecated public class NetworkInfo implements android.os.Parcelable { 375 ctor @Deprecated public NetworkInfo(int, int, @Nullable String, @Nullable String); 377 method @Deprecated @NonNull public android.net.NetworkInfo.DetailedState getDetailedState(); 380 method @Deprecated public android.net.NetworkInfo.State getState(); 390 …method @Deprecated public void setDetailedState(@NonNull android.net.NetworkInfo.DetailedState, @N… 392 …ecated @NonNull public static final android.os.Parcelable.Creator<android.net.NetworkInfo> CREATOR; [all …]
|
/packages/apps/TV/src/com/android/tv/util/ |
D | NetworkUtils.java | 20 import android.net.NetworkInfo; 37 NetworkInfo info = connectivityManager.getActiveNetworkInfo(); in isNetworkAvailable()
|
/packages/modules/Connectivity/tests/cts/net/util/java/android/net/cts/util/ |
D | CtsNetUtils.java | 46 import android.net.NetworkInfo; 47 import android.net.NetworkInfo.State; 264 mCm, ConnectivityManager.TYPE_WIFI, NetworkInfo.State.CONNECTED); in connectToWifi() 341 mCm, ConnectivityManager.TYPE_WIFI, NetworkInfo.State.DISCONNECTED); in disconnectFromWifi() 610 private final NetworkInfo.State mNetState; 614 NetworkInfo.State netState) { in ConnectivityActionReceiver() 622 NetworkInfo networkInfo = null; in onReceive()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/ |
D | ShadowWifiManager.java | 22 import android.net.NetworkInfo; 90 NetworkInfo networkInfo = in connect() 92 NetworkInfo.DetailedState.CONNECTED, in connect()
|
D | ShadowConnectivityManager.java | 24 import android.net.NetworkInfo; 62 super.addNetwork(network, mock(NetworkInfo.class)); in addNetworkCapabilities()
|
/packages/modules/Connectivity/Tethering/apex/hiddenapi/ |
D | hiddenapi-unsupported.txt | 3 Landroid/net/IConnectivityManager$Stub$Proxy;->getActiveNetworkInfo()Landroid/net/NetworkInfo; 4 Landroid/net/IConnectivityManager$Stub$Proxy;->getAllNetworkInfo()[Landroid/net/NetworkInfo;
|
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/ |
D | JobPreconditions.java | 6 import android.net.NetworkInfo; 31 NetworkInfo networkInfo = connectivityManager.getNetworkInfo(network); in isWifiConnected()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/p2p/ |
D | WifiP2pSettingsTest.java | 34 import android.net.NetworkInfo; 200 final NetworkInfo networkInfo = mock(NetworkInfo.class); in lastGroupForm_whenGroupFormInWifiP2pInfoIsFalse_beSetAsFalse() 217 final NetworkInfo networkInfo = mock(NetworkInfo.class); in lastGroupForm_whenGroupFormInWifiP2pInfoIsTrue_beSetAsTrue() 288 final NetworkInfo networkInfo = mock(NetworkInfo.class); in noLastGroupForm_whenP2pDisconnected_shouldStartSearch()
|