Searched refs:netInfo (Results 1 – 7 of 7) sorted by relevance
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | NetworkInfoTest.kt | 59 for (netInfo in ni) { in testAccessNetworkInfoProperties() constant 60 when (netInfo.getType()) { in testAccessNetworkInfoProperties() 61 TYPE_MOBILE -> assertNetworkInfo(netInfo, MOBILE_TYPE_NAME) in testAccessNetworkInfoProperties() 62 TYPE_WIFI -> assertNetworkInfo(netInfo, WIFI_TYPE_NAME) in testAccessNetworkInfoProperties() 68 private fun assertNetworkInfo(netInfo: NetworkInfo, expectedTypeName: String) { in assertNetworkInfo() 69 assertTrue(expectedTypeName.equals(netInfo.getTypeName(), ignoreCase = true)) in assertNetworkInfo() 70 assertNotNull(netInfo.toString()) in assertNetworkInfo() 72 if (!netInfo.isConnectedOrConnecting()) return in assertNetworkInfo() 74 assertTrue(netInfo.isAvailable()) in assertNetworkInfo() 75 if (State.CONNECTED == netInfo.getState()) { in assertNetworkInfo() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/common/ |
D | NetworkUtil.java | 72 NetworkInfo netInfo = connectivityManager.getActiveNetworkInfo(); in getCurrentNetworkTypeName() local 73 @NetworkType String networkType = getNetworkType(netInfo); in getCurrentNetworkTypeName() 75 return networkType + " (" + netInfo.getSubtypeName() + ")"; in getCurrentNetworkTypeName() 81 public static String getNetworkType(@Nullable NetworkInfo netInfo) { in getNetworkType() argument 82 if (netInfo == null || !netInfo.isConnected()) { in getNetworkType() 85 switch (netInfo.getType()) { in getNetworkType() 89 return getMobileNetworkType(netInfo.getSubtype()); in getNetworkType()
|
/packages/modules/Connectivity/framework/src/android/net/ |
D | NetworkInfo.java | 609 NetworkInfo netInfo = new NetworkInfo(netType, subtype, typeName, subtypeName); 610 netInfo.mState = State.valueOf(in.readString()); 611 netInfo.mDetailedState = DetailedState.valueOf(in.readString()); 612 netInfo.mIsFailover = in.readInt() != 0; 613 netInfo.mIsAvailable = in.readInt() != 0; 614 netInfo.mIsRoaming = in.readInt() != 0; 615 netInfo.mReason = in.readString(); 616 netInfo.mExtraInfo = in.readString(); 617 return netInfo;
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/aware/ |
D | WifiAwareDataPathStateManagerTest.java | 537 WifiAwareNetworkInfo netInfo = in testMultipleNdpsOnSingleNdi() local 541 netInfo.getPeerIpv6Addr().getAddress()); in testMultipleNdpsOnSingleNdi() 542 assertEquals(port, netInfo.getPort()); in testMultipleNdpsOnSingleNdi() 543 assertEquals(transportProtocol, netInfo.getTransportProtocol()); in testMultipleNdpsOnSingleNdi() 659 WifiAwareNetworkInfo netInfo = in testMultipleIdenticalRequests() local 664 netInfo.getPeerIpv6Addr().getAddress()); in testMultipleIdenticalRequests() 665 assertEquals(port, netInfo.getPort()); in testMultipleIdenticalRequests() 666 assertEquals(transportProtocol, netInfo.getTransportProtocol()); in testMultipleIdenticalRequests() 780 WifiAwareNetworkInfo netInfo = in testMultipleNdiToSamePeer() local 785 netInfo.getPeerIpv6Addr().getAddress()); in testMultipleNdiToSamePeer() [all …]
|
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/suggestions/eligibility/ |
D | ConnectivityEligibilityChecker.java | 44 NetworkInfo netInfo = cm.getActiveNetworkInfo(); in isEligible() local 45 boolean satisfiesConnectivity = netInfo != null && netInfo.isConnectedOrConnecting(); in isEligible()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/ |
D | ConnectState.java | 289 NetworkInfo netInfo = getActiveWifiNetworkInfo(); in isNetworkConnected() local 290 if (netInfo == null) { in isNetworkConnected() 295 if (DEBUG) Log.d(TAG, "NetworkInfo: " + netInfo.toString()); in isNetworkConnected() 296 if (netInfo.isConnected() && netInfo.getType() == ConnectivityManager.TYPE_WIFI) { in isNetworkConnected()
|
/packages/apps/Test/connectivity/UID/src/com/android/tests/connectivity/uid/ |
D | ConnectivityTestActivity.java | 74 NetworkInfo netInfo = mConnectivityManager.getActiveNetworkInfo(); in checkNow() local 75 return netInfo.isConnected() && httpRequest(); in checkNow()
|