Searched refs:defaultNetwork (Results 1 – 2 of 2) sorted by relevance
448 Network defaultNetwork = null;450 defaultNetwork = ApiHelperForM.getActiveNetwork(mConnectivityManager);453 if (defaultNetwork != null) {454 return defaultNetwork;481 if (defaultNetwork != null && Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {488 NetworkInfo prevDefaultNetworkInfo = getRawNetworkInfo(defaultNetwork);492 defaultNetwork = null;499 assert defaultNetwork == null;500 defaultNetwork = network;503 return defaultNetwork;
364 Network defaultNetwork = delegate.getDefaultNetwork(); in testNetworkBoundContextLifetime() local365 if (defaultNetwork == null) { in testNetworkBoundContextLifetime()378 urlRequestBuilder.bindToNetwork(defaultNetwork); in testNetworkBoundContextLifetime()382 ApiHelper.doesContextExistForNetwork(testFramework.mCronetEngine, defaultNetwork)); in testNetworkBoundContextLifetime()385 ApiHelper.doesContextExistForNetwork(testFramework.mCronetEngine, defaultNetwork)); in testNetworkBoundContextLifetime()398 ApiHelper.doesContextExistForNetwork(testFramework.mCronetEngine, defaultNetwork)); in testNetworkBoundContextLifetime()405 NetworkChangeNotifier.fakeNetworkDisconnected(defaultNetwork.getNetworkHandle()); in testNetworkBoundContextLifetime()412 ApiHelper.doesContextExistForNetwork(testFramework.mCronetEngine, defaultNetwork)); in testNetworkBoundContextLifetime()434 Network defaultNetwork = delegate.getDefaultNetwork(); in testNetworkBoundRequestCancel() local435 if (defaultNetwork == null) { in testNetworkBoundRequestCancel()[all …]