/packages/modules/ConfigInfrastructure/service/javatests/src/com/android/server/deviceconfig/ |
D | UnattendedRebootManagerTest.java | 172 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/ |
D | ConnectivityRepository.kt | 50 trySend(getNetworkCapabilities()) in <lambda>() 56 private fun getNetworkCapabilities(): NetworkCapabilities = in getNetworkCapabilities() method 57 connectivityManager.getNetworkCapabilities(connectivityManager.activeNetwork) in getNetworkCapabilities()
|
D | SubscriptionUtil.java | 835 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/ |
D | EthernetNetworkUpdateRequestTest.java | 65 assertEquals(DEFAULT_CAPS, r.getNetworkCapabilities()); in testGetNetworkCapabilities() 82 assertEquals(r.getNetworkCapabilities(), rFromExisting.getNetworkCapabilities()); in testBuilderWithRequest()
|
D | MultinetworkApiTest.java | 224 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/ |
D | EthernetServiceImplTest.java | 213 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/ |
D | NetworkIdentity.java | 402 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()
|
D | EthernetNetworkUpdateRequest.java | 59 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/ |
D | WifiEntryPreference.java | 87 && mWifiInfoProvider.getNetworkCapabilities() != null in getWifiEntryIcon() 88 && !mWifiInfoProvider.getNetworkCapabilities() in getWifiEntryIcon()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/network/ |
D | NetworkUtilsTest.java | 44 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/ |
D | UserDataCollector.java | 159 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/ |
D | ConnectivityRepositoryTest.kt | 62 on { getNetworkCapabilities(null) } doReturn null in <lambda>() 77 on { getNetworkCapabilities(null) } doReturn expectedNetworkCapabilities in <lambda>()
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | RealSystemFacade.java | 60 public NetworkCapabilities getNetworkCapabilities(Network network) { in getNetworkCapabilities() method in RealSystemFacade 62 .getNetworkCapabilities(network); in getNetworkCapabilities()
|
D | SystemFacade.java | 40 public NetworkCapabilities getNetworkCapabilities(Network network); in getNetworkCapabilities() method
|
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/details/ |
D | WifiInfoProvider.java | 146 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/ |
D | WifiInfoProviderTest.java | 112 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/ |
D | IwlanNetworkStatusTrackerTest.java | 225 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/ |
D | RandomnessFactory.java | 57 connectManager.getNetworkCapabilities(callerConfiguredNetwork); in RandomnessFactory()
|
/packages/modules/OnDevicePersonalization/tests/frameworktests/src/android/adservices/ondevicepersonalization/ |
D | UserDataTest.java | 61 assertEquals(100, data.getNetworkCapabilities().getLinkDownstreamBandwidthKbps()); in testUserData()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/ |
D | ShadowConnectivityManager.java | 67 protected NetworkCapabilities getNetworkCapabilities(Network network) { in getNetworkCapabilities() method in ShadowConnectivityManager
|
/packages/apps/Car/Settings/src/com/android/car/settings/network/ |
D | NetworkUtils.java | 41 NetworkCapabilities capabilities = connectivityManager.getNetworkCapabilities(network); in hasMobileNetwork()
|
/packages/modules/Connectivity/tests/common/java/android/net/ |
D | ConnectivityDiagnosticsManagerTest.java | 158 final NetworkCapabilities networkCapabilities = sampleReport.getNetworkCapabilities(); in testConnectivityReportEquals() 245 final NetworkCapabilities networkCapabilities = sampleReport.getNetworkCapabilities(); in testDataStallReportEquals()
|
/packages/modules/Connectivity/framework/src/android/net/ |
D | ConnectivityDiagnosticsManager.java | 294 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/ |
D | NetworkMonitor.kt | 88 .getNetworkCapabilities( in <lambda>()
|
/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/ |
D | VpnTest.java | 1026 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()
|