Home
last modified time | relevance | path

Searched refs:getNetworkCapabilities (Results 1 – 25 of 27) sorted by relevance

12

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/network/
DNetworkUtilsTest.java44 when(connectivityManager.getNetworkCapabilities(network)).thenReturn(capabilities); in hasMobileNetwork_hasCellularCapabilities_returnsTrue()
57 when(connectivityManager.getNetworkCapabilities(network)).thenReturn(capabilities); in hasMobileNetwork_hasNoCellularCapabilities_returnsFalse()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DRealSystemFacade.java66 public NetworkCapabilities getNetworkCapabilities(Network network) { in getNetworkCapabilities() method in RealSystemFacade
68 .getNetworkCapabilities(network); in getNetworkCapabilities()
DSystemFacade.java41 public NetworkCapabilities getNetworkCapabilities(Network network); in getNetworkCapabilities() method
DDownloadThread.java721 final NetworkCapabilities caps = mSystemFacade.getNetworkCapabilities(mNetwork); in checkConnectivity()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/details/
DWifiInfoProviderImpl.java162 mNetworkCapabilities = mConnectivityManager.getNetworkCapabilities(mNetwork); in WifiInfoProviderImpl()
227 public NetworkCapabilities getNetworkCapabilities() { in getNetworkCapabilities() method in WifiInfoProviderImpl
DWifiInfoProvider.java96 NetworkCapabilities getNetworkCapabilities(); in getNetworkCapabilities() method
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/wifi/details/
DWifiInfoProviderImplTest.java114 when(mMockConnectivityManager.getNetworkCapabilities(any(Network.class))) in setUp()
136 assertThat(mWifiInfoProviderImpl.getNetworkCapabilities()).isNotNull(); in onStart_allFieldsInitialized()
/packages/modules/CaptivePortalLogin/tests/src/com/android/captiveportallogin/
DCaptivePortalLoginActivityTest.java256 doReturn(nonVpnCapabilities).when(sConnectivityManager).getNetworkCapabilities( in configNonVpnNetwork()
269 doReturn(underlyingCapabilities).when(sConnectivityManager).getNetworkCapabilities( in configVpnNetwork()
271 doReturn(vpnCapabilities).when(sConnectivityManager).getNetworkCapabilities(network2); in configVpnNetwork()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/utils/
DRandomnessFactory.java41 NetworkCapabilities networkCapabilities = connectManager.getNetworkCapabilities(network); in RandomnessFactory()
/packages/apps/Car/Settings/src/com/android/car/settings/network/
DNetworkUtils.java39 NetworkCapabilities capabilities = connectivityManager.getNetworkCapabilities(network); in hasMobileNetwork()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowConnectivityManager.java67 protected NetworkCapabilities getNetworkCapabilities(Network network) { in getNetworkCapabilities() method in ShadowConnectivityManager
/packages/modules/CaptivePortalLogin/src/com/android/captiveportallogin/
DCaptivePortalLoginActivity.java194 final NetworkCapabilities networkCapabilities = mCm.getNetworkCapabilities(mNetwork); in onCreate()
525 final NetworkCapabilities nc = mCm.getNetworkCapabilities(network); in hasVpnNetwork()
895 NetworkCapabilities nc = mCm.getNetworkCapabilities(mNetwork); in getHeaderTitle()
/packages/apps/Settings/src/com/android/settings/wifi/slice/
DContextualWifiSlice.java86 final NetworkCapabilities nc = mConnectivityManager.getNetworkCapabilities( in hasInternetAccess()
DWifiSlice.java297 final NetworkCapabilities nc = mConnectivityManager.getNetworkCapabilities( in isCaptivePortal()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/connectivity/
DConnectivityFragment.java153 NetworkCapabilities nc = mConnectivityManager.getNetworkCapabilities(n); in getRequestForNetwork()
372 NetworkCapabilities nCaps = mConnectivityManager.getNetworkCapabilities(n); in getNetworkItem()
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DFakeSystemFacade.java107 public NetworkCapabilities getNetworkCapabilities(Network network) { in getNetworkCapabilities() method in FakeSystemFacade
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/
DIkeSessionTestBase.java126 .getNetworkCapabilities(any(Network.class)); in setUp()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DUtils.java615 return Objects.nonNull(connectivityManager.getNetworkCapabilities(network)); in isMobileNetworkConnectedToInternet()
617 .map(connectivityManager::getNetworkCapabilities) in isMobileNetworkConnectedToInternet()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/
DWifiNoInternetDialog.java113 final NetworkCapabilities nc = mCM.getNetworkCapabilities(mNetwork); in onCreate()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiNoInternetDialog.java114 final NetworkCapabilities nc = mCM.getNetworkCapabilities(mNetwork); in onCreate()
/packages/apps/Settings/src/com/android/settings/network/
DSubscriptionsPreferenceController.java230 final NetworkCapabilities networkCapabilities = mConnectivityManager.getNetworkCapabilities( in activeNetworkIsCellular()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/slice/
DWifiSliceTest.java240 .getNetworkCapabilities(any()); in getWifiSlice_isCaptivePortal_shouldHaveCaptivePortalItems()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/slice/
DWifiSlice.java290 final NetworkCapabilities nc = mConnectivityManager.getNetworkCapabilities( in isCaptivePortal()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DSubscriptionsPreferenceControllerTest.java119 when(mConnectivityManager.getNetworkCapabilities(mActiveNetwork)).thenReturn(mCapabilities); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/details/
DWifiDetailPreferenceControllerTest.java959 when(mockConnectivityManager.getNetworkCapabilities(mockNetwork)) in onCapabilitiesChanged_callsRefreshIfNecessary()
1321 when(mockConnectivityManager.getNetworkCapabilities(mockNetwork)) in testSignInButton_shouldHideSignInButtonForDisconnectedNetwork()

12