Searched refs:activeNetwork (Results 1 – 6 of 6) sorted by relevance
43 Network activeNetwork = connectivityManager.getActiveNetwork(); in isInternetConnected() local44 if (activeNetwork == null) { in isInternetConnected()48 NetworkCapabilities caps = connectivityManager.getNetworkCapabilities(activeNetwork); in isInternetConnected()
40 NetworkInfo activeNetwork = connectivityManager.getActiveNetworkInfo(); in hasDataConnection() local41 return activeNetwork != null && activeNetwork.isConnectedOrConnecting(); in hasDataConnection()
462 Network activeNetwork = mConnectivityManager.getActiveNetwork(); in checkActiveNetwork() local464 if (activeNetwork != null && mExpectedCapabilities.satisfiedByNetworkCapabilities( in checkActiveNetwork()465 mConnectivityManager.getNetworkCapabilities(activeNetwork))) { in checkActiveNetwork()471 if (activeNetwork == null in checkActiveNetwork()473 mConnectivityManager.getNetworkCapabilities(activeNetwork))) { in checkActiveNetwork()
173 Network activeNetwork = cm.getActiveNetwork(); in assertDeviceIsOnCellDataOrNoData() local174 if (activeNetwork == null) return; in assertDeviceIsOnCellDataOrNoData()176 cm.getNetworkCapabilities(activeNetwork) in assertDeviceIsOnCellDataOrNoData()
170 Network activeNetwork = sConnectivityManager.getActiveNetwork(); in beforeAllTests() local172 if (activeNetwork == null) { in beforeAllTests()176 nc = sConnectivityManager.getNetworkCapabilities(activeNetwork); in beforeAllTests()
736 Network activeNetwork = mConnectivityManager.getActiveNetwork(); in isExpectedTransportForActiveNetwork() local738 mConnectivityManager.getNetworkCapabilities(activeNetwork); in isExpectedTransportForActiveNetwork()739 Log.i(TAG, "Network capabilities for " + activeNetwork + " " in isExpectedTransportForActiveNetwork()