Searched refs:isNetworkSupported (Results 1 – 13 of 13) sorted by relevance
70 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()
70 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()
66 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()
128 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()
159 when(mConnectivityManager.isNetworkSupported(anyInt())).thenReturn(true); in onCreate_emptyArguments_shouldSetDefaultNetworkTemplate()
107 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()
107 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()
38 protected boolean isNetworkSupported(int networkType) { in isNetworkSupported() method in ShadowConnectivityManager
109 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()
63 if (!mConnectivityManager.isNetworkSupported(ConnectivityManager.TYPE_MOBILE) in isDisplayable()
104 when(connectivityManager.isNetworkSupported(anyInt())).thenReturn(true); in onResume_isAvailable_shouldRestartDataLoader()
228 return mConnectivityManager.isNetworkSupported(ConnectivityManager.TYPE_ETHERNET) in isEthernetAvailable()