Home
last modified time | relevance | path

Searched refs:defaultNetwork (Results 1 – 2 of 2) sorted by relevance

/external/cronet/net/android/java/src/org/chromium/net/
DNetworkChangeNotifierAutoDetect.java448 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;
/external/cronet/components/cronet/android/test/javatests/src/org/chromium/net/
DCronetUrlRequestContextTest.java364 Network defaultNetwork = delegate.getDefaultNetwork(); in testNetworkBoundContextLifetime() local
365 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() local
435 if (defaultNetwork == null) { in testNetworkBoundRequestCancel()
[all …]