Searched refs:activeNetwork (Results 1 – 5 of 5) sorted by relevance
40 NetworkInfo activeNetwork = connectivityManager.getActiveNetworkInfo(); in hasDataConnection() local41 return activeNetwork != null && activeNetwork.isConnectedOrConnecting(); in hasDataConnection()
138 final Network activeNetwork = getConnectivityManager().getActiveNetwork(); in canChangeActiveNetworkMeteredness() local140 = getConnectivityManager().getNetworkCapabilities(activeNetwork); in canChangeActiveNetworkMeteredness()
171 assertNotEquals(network, cm.activeNetwork, wifiDefaultMessage) in testCaptivePortalIsNotDefaultNetwork()180 assertNotEquals(network, cm.activeNetwork, wifiDefaultMessage) in testCaptivePortalIsNotDefaultNetwork()
764 Network activeNetwork = null; in testTetheringUpstream() local767 activeNetwork = networkCallback.waitForAvailable(); in testTetheringUpstream()773 activeNetwork); in testTetheringUpstream()774 final NetworkCapabilities activeNetCap = mCm.getNetworkCapabilities(activeNetwork); in testTetheringUpstream()
761 Network activeNetwork = mConnectivityManager.getActiveNetwork(); in isExpectedTransportForActiveNetwork() local763 mConnectivityManager.getNetworkCapabilities(activeNetwork); in isExpectedTransportForActiveNetwork()764 Log.i(TAG, "Network capabilities for " + activeNetwork.netId + " " in isExpectedTransportForActiveNetwork()