Home
last modified time | relevance | path

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

1234

/packages/modules/ConfigInfrastructure/service/javatests/src/com/android/server/deviceconfig/
DUnattendedRebootManagerTest.java172 when(mConnectivityManager.getNetworkCapabilities(any())) in scheduleReboot()
194 when(mConnectivityManager.getNetworkCapabilities(any())) in scheduleReboot_requiresCharging_notCharging()
231 when(mConnectivityManager.getNetworkCapabilities(any())) in scheduleReboot_doesNotRequireCharging_notCharging()
258 when(mConnectivityManager.getNetworkCapabilities(any())) in scheduleReboot_requiresCharging_flagNotEnabled()
285 when(mConnectivityManager.getNetworkCapabilities(any())) in scheduleReboot_noPinLock()
306 when(mConnectivityManager.getNetworkCapabilities(any())) in scheduleReboot_noPreparation()
326 when(mConnectivityManager.getNetworkCapabilities(any())) in scheduleReboot_simPinPreparationFailed()
347 when(mConnectivityManager.getNetworkCapabilities(any())).thenReturn(new NetworkCapabilities()); in scheduleReboot_noInternet()
364 when(mConnectivityManager.getNetworkCapabilities(any())) in scheduleReboot_noInternetValidation()
401 when(mConnectivityManager.getNetworkCapabilities(any())) in scheduleReboot_elapsedRealtimeLessThanFrequency()
[all …]
/packages/apps/Settings/src/com/android/settings/network/
DConnectivityRepository.kt50 trySend(getNetworkCapabilities()) in <lambda>()
56 private fun getNetworkCapabilities(): NetworkCapabilities = in getNetworkCapabilities() method
57 connectivityManager.getNetworkCapabilities(connectivityManager.activeNetwork) in getNetworkCapabilities()
DSubscriptionUtil.java835 NetworkCapabilities capabilities = getNetworkCapabilities(context);
851 NetworkCapabilities capabilities = getNetworkCapabilities(context);
925 private static NetworkCapabilities getNetworkCapabilities(@NonNull Context context) {
928 return connectivityManager.getNetworkCapabilities(connectivityManager.getActiveNetwork());
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DEthernetNetworkUpdateRequestTest.java65 assertEquals(DEFAULT_CAPS, r.getNetworkCapabilities()); in testGetNetworkCapabilities()
82 assertEquals(r.getNetworkCapabilities(), rFromExisting.getNetworkCapabilities()); in testBuilderWithRequest()
DMultinetworkApiTest.java224 final NetworkCapabilities nc = mCM.getNetworkCapabilities(network); in testResNApi()
295 final NetworkCapabilities nc = mCM.getNetworkCapabilities(network); in getTestableNetworks()
/packages/modules/Connectivity/tests/unit/java/com/android/server/ethernet/
DEthernetServiceImplTest.java213 eq(UPDATE_REQUEST_WITHOUT_CAPABILITIES.getNetworkCapabilities()), in testUpdateConfigurationWithCapabilitiesWithAutomotiveFeature()
290 eq(UPDATE_REQUEST.getNetworkCapabilities()), in testUpdateConfiguration()
336 eq(request.getNetworkCapabilities()), any(EthernetCallback.class)); in testUpdateConfigurationAcceptsTestRequestWithNullCapabilities()
345 eq(UPDATE_REQUEST_WITHOUT_IP_CONFIG.getNetworkCapabilities()), in testUpdateConfigurationAcceptsRequestWithNullIpConfiguration()
359 .Builder(UPDATE_REQUEST.getNetworkCapabilities()) in createTestNetworkUpdateRequest()
378 eq(request.getNetworkCapabilities()), any(EthernetCallback.class)); in testUpdateConfigurationForTestRequestDoesNotRequireAutoOrEthernetPermission()
/packages/modules/Connectivity/framework-t/src/android/net/
DNetworkIdentity.java402 setRoaming(!snapshot.getNetworkCapabilities().hasCapability( in setNetworkStateSnapshot()
404 setMetered(!snapshot.getNetworkCapabilities().hasCapability( in setNetworkStateSnapshot()
407 setOemManaged(getOemBitfield(snapshot.getNetworkCapabilities())); in setNetworkStateSnapshot()
410 final NetworkCapabilities nc = snapshot.getNetworkCapabilities(); in setNetworkStateSnapshot()
425 final NetworkSpecifier ns = snapshot.getNetworkCapabilities().getNetworkSpecifier(); in setNetworkStateSnapshot()
DEthernetNetworkUpdateRequest.java59 public NetworkCapabilities getNetworkCapabilities() { in getNetworkCapabilities() method in EthernetNetworkUpdateRequest
153 && Objects.equals(that.getNetworkCapabilities(), mNetworkCapabilities); in equals()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DWifiEntryPreference.java87 && mWifiInfoProvider.getNetworkCapabilities() != null in getWifiEntryIcon()
88 && !mWifiInfoProvider.getNetworkCapabilities() in getWifiEntryIcon()
/packages/apps/Car/Settings/tests/unit/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/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/data/user/
DUserDataCollector.java159 getNetworkCapabilities(userData); in updateUserData()
174 getNetworkCapabilities(userData); in initializeUserData()
274 public void getNetworkCapabilities(RawUserData userData) { in getNetworkCapabilities() method in UserDataCollector
277 mConnectivityManager.getNetworkCapabilities( in getNetworkCapabilities()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/network/
DConnectivityRepositoryTest.kt62 on { getNetworkCapabilities(null) } doReturn null in <lambda>()
77 on { getNetworkCapabilities(null) } doReturn expectedNetworkCapabilities in <lambda>()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DRealSystemFacade.java60 public NetworkCapabilities getNetworkCapabilities(Network network) { in getNetworkCapabilities() method in RealSystemFacade
62 .getNetworkCapabilities(network); in getNetworkCapabilities()
DSystemFacade.java40 public NetworkCapabilities getNetworkCapabilities(Network network); in getNetworkCapabilities() method
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/details/
DWifiInfoProvider.java146 mNetworkCapabilities = mConnectivityManager.getNetworkCapabilities(mNetwork); in WifiInfoProvider()
234 public NetworkCapabilities getNetworkCapabilities() { in getNetworkCapabilities() method in WifiInfoProvider
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/wifi/details/
DWifiInfoProviderTest.java112 when(mMockConnectivityManager.getNetworkCapabilities(any(Network.class))) in setUp()
134 assertThat(mWifiInfoProvider.getNetworkCapabilities()).isNotNull(); in onStart_allFieldsInitialized()
/packages/modules/Telephony/services/QualifiedNetworksService/tests/src/com/android/telephony/qns/
DIwlanNetworkStatusTrackerTest.java225 when(mMockConnectivityManager.getNetworkCapabilities(mMockNetwork)) in prepareNetworkCapabilitiesForTest()
278 when(mMockConnectivityManager.getNetworkCapabilities(mMockNetwork)) in testDefaultNetworkCallback()
364 when(mMockConnectivityManager.getNetworkCapabilities(mMockNetwork)) in testUnregisterIwlanNetworksChanged()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/utils/
DRandomnessFactory.java57 connectManager.getNetworkCapabilities(callerConfiguredNetwork); in RandomnessFactory()
/packages/modules/OnDevicePersonalization/tests/frameworktests/src/android/adservices/ondevicepersonalization/
DUserDataTest.java61 assertEquals(100, data.getNetworkCapabilities().getLinkDownstreamBandwidthKbps()); in testUserData()
/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/apps/Car/Settings/src/com/android/car/settings/network/
DNetworkUtils.java41 NetworkCapabilities capabilities = connectivityManager.getNetworkCapabilities(network); in hasMobileNetwork()
/packages/modules/Connectivity/tests/common/java/android/net/
DConnectivityDiagnosticsManagerTest.java158 final NetworkCapabilities networkCapabilities = sampleReport.getNetworkCapabilities(); in testConnectivityReportEquals()
245 final NetworkCapabilities networkCapabilities = sampleReport.getNetworkCapabilities(); in testDataStallReportEquals()
/packages/modules/Connectivity/framework/src/android/net/
DConnectivityDiagnosticsManager.java294 public NetworkCapabilities getNetworkCapabilities() { in getNetworkCapabilities() method in ConnectivityDiagnosticsManager.ConnectivityReport
525 public NetworkCapabilities getNetworkCapabilities() { in getNetworkCapabilities() method in ConnectivityDiagnosticsManager.DataStallReport
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/core/network/
DNetworkMonitor.kt88 .getNetworkCapabilities( in <lambda>()
/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/
DVpnTest.java1026 final NetworkCapabilities nc = mCM.getNetworkCapabilities(vpnNetwork); in testDefault()
1276 final NetworkCapabilities nc = mCM.getNetworkCapabilities(network); in testAppDisallowed()
1530 final NetworkCapabilities nc = mCM.getNetworkCapabilities(mNetwork); in testVpnMeterednessWithNoUnderlyingNetwork()
1594 final NetworkCapabilities nc = mCM.getNetworkCapabilities(vpnNetwork); in testVpnMeterednessWithNonNullUnderlyingNetwork()
1655 final NetworkCapabilities nc = mCM.getNetworkCapabilities(vpnNetwork); in testAlwaysMeteredVpnWithNonNullUnderlyingNetwork()
1693 NetworkCapabilities nc = mCM.getNetworkCapabilities(network); in isNetworkMetered()
1698 int[] transports = mCM.getNetworkCapabilities(underlyingNetwork).getTransportTypes(); in assertVpnTransportContains()
1703 NetworkCapabilities vpnCaps = mCM.getNetworkCapabilities(mNetwork); in assertVpnTransportContains()
1711 final NetworkCapabilities vpnNc = mCM.getNetworkCapabilities(network); in maybeExpectVpnTransportInfo()

1234