Home
last modified time | relevance | path

Searched refs:isNetworkSupported (Results 1 – 13 of 13) sorted by relevance

/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsageUtils.java70 if (!conn.isNetworkSupported(ConnectivityManager.TYPE_ETHERNET)) { in hasEthernet()
99 .isNetworkSupported(ConnectivityManager.TYPE_MOBILE); in hasMobileData()
129 final boolean retVal = conn.isNetworkSupported(TYPE_MOBILE) && isReady; in hasReadyMobileRadio()
133 + conn.isNetworkSupported(TYPE_MOBILE) in hasReadyMobileRadio()
149 return connectivityManager != null && connectivityManager.isNetworkSupported(TYPE_WIFI); in hasWifiRadio()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DDataUsageUtils.java70 if (!conn.isNetworkSupported(ConnectivityManager.TYPE_ETHERNET)) { in hasEthernet()
98 .isNetworkSupported(ConnectivityManager.TYPE_MOBILE); in hasMobileData()
127 final boolean retVal = conn.isNetworkSupported(TYPE_MOBILE) && isReady; in hasReadyMobileRadio()
131 + conn.isNetworkSupported(TYPE_MOBILE) in hasReadyMobileRadio()
146 return connectivityManager != null && connectivityManager.isNetworkSupported(TYPE_WIFI); in hasWifiRadio()
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/
DDataUsageUtilsTest.java66 when(mManager.isNetworkSupported(anyInt())).thenReturn(true); in mobileDataStatus_whenNetworkIsSupported()
73 when(mManager.isNetworkSupported(anyInt())).thenReturn(false); in mobileDataStatus_whenNetworkIsNotSupported()
102 when(mManager.isNetworkSupported(anyInt())).thenReturn(true); in hasEthernet_shouldQueryEthernetSummaryForUser()
DDataUsageSummaryPreferenceControllerTest.java128 when(mConnectivityManager.isNetworkSupported(TYPE_WIFI)).thenReturn(false); in setUp()
383 when(mConnectivityManager.isNetworkSupported(TYPE_WIFI)).thenReturn(false); in testMobileData_noSimNoWifi_preferenceDisabled()
400 when(mConnectivityManager.isNetworkSupported(TYPE_WIFI)).thenReturn(true); in testMobileData_noSimWifi_preferenceDisabled()
DBillingCycleSettingsTest.java159 when(mConnectivityManager.isNetworkSupported(anyInt())).thenReturn(true); in onCreate_emptyArguments_shouldSetDefaultNetworkTemplate()
/packages/apps/Settings/src/com/android/settings/
DSettingsDumpService.java107 if (connectivityManager.isNetworkSupported(ConnectivityManager.TYPE_MOBILE)) { in dumpDataUsage()
120 if (connectivityManager.isNetworkSupported(ConnectivityManager.TYPE_WIFI)) { in dumpDataUsage()
123 if (connectivityManager.isNetworkSupported(ConnectivityManager.TYPE_ETHERNET)) { in dumpDataUsage()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DSettingsDumpService.java107 if (connectivityManager.isNetworkSupported(ConnectivityManager.TYPE_MOBILE)) { in dumpDataUsage()
118 if (connectivityManager.isNetworkSupported(ConnectivityManager.TYPE_WIFI)) { in dumpDataUsage()
121 if (connectivityManager.isNetworkSupported(ConnectivityManager.TYPE_ETHERNET)) { in dumpDataUsage()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowConnectivityManager.java38 protected boolean isNetworkSupported(int networkType) { in isNetworkSupported() method in ShadowConnectivityManager
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DMobileNetworkSummaryControllerTest.java109 when(cm.isNetworkSupported(ConnectivityManager.TYPE_MOBILE)).thenReturn(false); in isAvailable_wifiOnlyMode_notAvailable()
119 when(cm.isNetworkSupported(ConnectivityManager.TYPE_MOBILE)).thenReturn(true); in isAvailable_secondaryUser_notAvailable()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/conditional/
DCellularDataConditionController.java63 if (!mConnectivityManager.isNetworkSupported(ConnectivityManager.TYPE_MOBILE) in isDisplayable()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/conditional/
DCellularDataConditionController.java63 if (!mConnectivityManager.isNetworkSupported(ConnectivityManager.TYPE_MOBILE) in isDisplayable()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DAppDataUsagePreferenceControllerTest.java104 when(connectivityManager.isNetworkSupported(anyInt())).thenReturn(true); in onResume_isAvailable_shouldRestartDataLoader()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DConnectivityListener.java228 return mConnectivityManager.isNetworkSupported(ConnectivityManager.TYPE_ETHERNET) in isEthernetAvailable()