/packages/modules/Connectivity/tests/common/java/android/net/ |
D | NetworkCapabilitiesTest.java | 134 netCap.addCapability(NET_CAPABILITY_INTERNET); in testMaybeMarkCapabilitiesRestricted() 140 netCap.addCapability(NET_CAPABILITY_INTERNET); in testMaybeMarkCapabilitiesRestricted() 141 netCap.addCapability(NET_CAPABILITY_NOT_METERED); in testMaybeMarkCapabilitiesRestricted() 145 netCap.addCapability(NET_CAPABILITY_INTERNET); in testMaybeMarkCapabilitiesRestricted() 152 netCap.addCapability(NET_CAPABILITY_INTERNET); in testMaybeMarkCapabilitiesRestricted() 153 netCap.addCapability(NET_CAPABILITY_EIMS); in testMaybeMarkCapabilitiesRestricted() 154 netCap.addCapability(NET_CAPABILITY_NOT_METERED); in testMaybeMarkCapabilitiesRestricted() 158 netCap.addCapability(NET_CAPABILITY_INTERNET); in testMaybeMarkCapabilitiesRestricted() 159 netCap.addCapability(NET_CAPABILITY_EIMS); in testMaybeMarkCapabilitiesRestricted() 166 netCap.addCapability(NET_CAPABILITY_EIMS); in testMaybeMarkCapabilitiesRestricted() [all …]
|
D | NetworkProviderTest.kt | 161 addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_SUSPENDED) in <lambda>() 162 addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING) in <lambda>() 163 addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_VPN) in <lambda>() 223 .addCapability(NET_CAPABILITY_NOT_VCN_MANAGED) in <lambda>() 281 .addCapability(NET_CAPABILITY_NOT_VCN_MANAGED) in <lambda>() 293 ncFilter3.addCapability(NET_CAPABILITY_NOT_VCN_MANAGED) in <lambda>() 296 ncFilter4.addCapability(NET_CAPABILITY_NOT_VCN_MANAGED) in <lambda>() 309 addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_VCN_MANAGED) in <lambda>() 310 addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_SUSPENDED) in <lambda>() 311 addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING) in <lambda>() [all …]
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | NetworkRequestTest.java | 106 assertTrue(new NetworkRequest.Builder().addCapability(NET_CAPABILITY_MMS).build() in testCapabilities() 123 builder.addCapability(NET_CAPABILITY_MMS); in testForbiddenCapabilities() 136 .addCapability(NET_CAPABILITY_TEMPORARILY_NOT_METERED).build() in testTemporarilyNotMeteredCapability() 214 nc.addCapability(ConstantsShim.NET_CAPABILITY_NOT_VCN_MANAGED); in addNotVcnManagedCapability() 228 .addCapability(NET_CAPABILITY_MMS) in testCanBeSatisfiedBy() 229 .addCapability(NET_CAPABILITY_INTERNET); in testCanBeSatisfiedBy() 238 .addCapability(NET_CAPABILITY_INTERNET) in testCanBeSatisfiedBy() 253 .addCapability(NET_CAPABILITY_INTERNET) in testCanBeSatisfiedBy() 269 .addCapability(NET_CAPABILITY_INTERNET) in testCanBeSatisfiedBy() 295 .addCapability(NET_CAPABILITY_INTERNET) in testInvariantInCanBeSatisfiedBy() [all …]
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/ethernet/ |
D | EthernetTrackerTest.java | 173 return builder.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING) in makeEthernetCapabilitiesBuilder() 174 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_CONGESTED) in makeEthernetCapabilitiesBuilder() 175 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_SUSPENDED); in makeEthernetCapabilitiesBuilder() 197 .addCapability(12) in createNetworkCapabilities() 198 .addCapability(13) in createNetworkCapabilities() 199 .addCapability(14) in createNetworkCapabilities() 200 .addCapability(15) in createNetworkCapabilities() 224 .addCapability(11) in createNetworkCapabilities() 225 .addCapability(12) in createNetworkCapabilities() 288 .addCapability(12) in createNetworkCapabilities() [all …]
|
/packages/modules/ConfigInfrastructure/service/javatests/src/com/android/server/deviceconfig/ |
D | UnattendedRebootManagerTest.java | 175 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in scheduleReboot() 176 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED) in scheduleReboot() 197 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in scheduleReboot_requiresCharging_notCharging() 198 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED) in scheduleReboot_requiresCharging_notCharging() 234 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in scheduleReboot_doesNotRequireCharging_notCharging() 235 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED) in scheduleReboot_doesNotRequireCharging_notCharging() 261 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in scheduleReboot_requiresCharging_flagNotEnabled() 262 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED) in scheduleReboot_requiresCharging_flagNotEnabled() 288 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in scheduleReboot_noPinLock() 289 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED) in scheduleReboot_noPinLock() [all …]
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivityservice/ |
D | CSNetworkActivityTest.kt | 86 .addCapability(NET_CAPABILITY_INTERNET) in <lambda>() 97 .addCapability(NET_CAPABILITY_INTERNET) in <lambda>() 98 .addCapability(NET_CAPABILITY_NOT_SUSPENDED) in <lambda>() 99 .addCapability(NET_CAPABILITY_NOT_VCN_MANAGED) in <lambda>() 111 .addCapability(NET_CAPABILITY_INTERNET) in <lambda>() 112 .addCapability(NET_CAPABILITY_NOT_VCN_MANAGED) in <lambda>() 162 .addCapability(NET_CAPABILITY_INTERNET) in <lambda>() 163 .addCapability(NET_CAPABILITY_NOT_SUSPENDED) in <lambda>() 168 .addCapability(NET_CAPABILITY_INTERNET) in <lambda>() 180 .addCapability(NET_CAPABILITY_IMS) in <lambda>() [all …]
|
D | CSCaptivePortalAppTest.kt | 64 addCapability(it) in keepScore() 67 addCapability(NET_CAPABILITY_NOT_RESTRICTED) in keepScore() 68 addCapability(NET_CAPABILITY_NOT_SUSPENDED) in keepScore() 69 addCapability(NET_CAPABILITY_NOT_ROAMING) in keepScore() 70 addCapability(NET_CAPABILITY_NOT_VCN_MANAGED) in keepScore() 92 .addCapability(NET_CAPABILITY_CAPTIVE_PORTAL).build() in testCaptivePortalApp_Reevaluate_Nopermission()
|
D | CSLocalAgentTests.kt | 68 addCapability(it) in <lambda>() 71 addCapability(NET_CAPABILITY_NOT_RESTRICTED) in <lambda>() 72 addCapability(NET_CAPABILITY_NOT_SUSPENDED) in <lambda>() 73 addCapability(NET_CAPABILITY_NOT_ROAMING) in <lambda>() 74 addCapability(NET_CAPABILITY_NOT_VCN_MANAGED) in <lambda>() 117 .addCapability(NET_CAPABILITY_LOCAL_NETWORK) in keepScore() 137 .addCapability(NET_CAPABILITY_LOCAL_NETWORK) in keepScore() 151 .addCapability(NET_CAPABILITY_LOCAL_NETWORK) in keepScore() 162 .addCapability(NET_CAPABILITY_LOCAL_NETWORK) in keepScore() 324 .addCapability(NET_CAPABILITY_LOCAL_NETWORK) in keepScore() [all …]
|
D | CSBlockedReasonsTest.kt | 55 .addCapability(NET_CAPABILITY_INTERNET) in cellNc() 56 .addCapability(NET_CAPABILITY_NOT_SUSPENDED) in cellNc() 57 .addCapability(NET_CAPABILITY_NOT_VCN_MANAGED) in cellNc() 64 .addCapability(NET_CAPABILITY_INTERNET) in cellNc() 65 .addCapability(NET_CAPABILITY_NOT_VCN_MANAGED) in cellNc() 66 .addCapability(NET_CAPABILITY_NOT_METERED) in cellNc()
|
D | CSLocalAgentCreationTests.kt | 92 request.addCapability(NET_CAPABILITY_LOCAL_NETWORK) in keepConnectedScore() 97 addCapability(NET_CAPABILITY_LOCAL_NETWORK) in keepConnectedScore() 123 .addCapability(NET_CAPABILITY_LOCAL_NETWORK) in keepConnectedScore()
|
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/network/ |
D | InternetPreferenceRepositoryTest.kt | 67 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in <lambda>() 68 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED) in <lambda>() 96 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in <lambda>() 97 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED) in <lambda>() 121 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in <lambda>() 122 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED) in <lambda>() 145 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in <lambda>() 146 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED) in <lambda>()
|
/packages/modules/Connectivity/tests/unit/java/com/android/metrics/ |
D | ConnectivitySampleMetricsTest.kt | 96 .addCapability(NET_CAPABILITY_NOT_METERED) in testSampleConnectivityState_Network() 97 .addCapability(NET_CAPABILITY_NOT_SUSPENDED) in testSampleConnectivityState_Network() 98 .addCapability(NET_CAPABILITY_NOT_ROAMING) in testSampleConnectivityState_Network() 108 .addCapability(NET_CAPABILITY_ENTERPRISE) in testSampleConnectivityState_Network() 109 .addCapability(NET_CAPABILITY_NOT_SUSPENDED) in testSampleConnectivityState_Network() 110 .addCapability(NET_CAPABILITY_NOT_ROAMING) in testSampleConnectivityState_Network() 121 .addCapability(NET_CAPABILITY_IMS) in testSampleConnectivityState_Network() 122 .addCapability(NET_CAPABILITY_ENTERPRISE) in testSampleConnectivityState_Network() 123 .addCapability(NET_CAPABILITY_NOT_SUSPENDED) in testSampleConnectivityState_Network() 124 .addCapability(NET_CAPABILITY_NOT_ROAMING) in testSampleConnectivityState_Network()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | MultiInternetWifiNetworkFactoryTest.java | 132 mNetworkRequest2G.networkCapabilities.addCapability( in testIsWifiMultiInternetRequest() 134 mNetworkRequest5G.networkCapabilities.addCapability( in testIsWifiMultiInternetRequest() 165 networkRequestBSSIDSpecifier.networkCapabilities.addCapability( in testIsWifiMultiInternetRequest() 181 mNetworkRequest2G.networkCapabilities.addCapability( in testMultiInternetHandleNetworkRequest() 208 networkRequestBSSIDSpecifier.networkCapabilities.addCapability( in testMultiInternetHandleNetworkRequestFromSettingsWithBssid() 228 mNetworkRequest2G.networkCapabilities.addCapability( in testMultiInternetHandleDualBandNetworkRequest() 230 mNetworkRequest5G.networkCapabilities.addCapability( in testMultiInternetHandleDualBandNetworkRequest() 256 mNetworkRequest2G.networkCapabilities.addCapability( in testHandleMultiInternetNetworkRelease() 277 mNetworkRequest5G.networkCapabilities.addCapability( in testHandleMultiInternetNetworkReleaseWithMultiRequests()
|
D | OemWifiNetworkFactoryTest.java | 93 mNetworkRequest.networkCapabilities.addCapability( in testOemPaidHandleNetworkRequest() 112 mNetworkRequest.networkCapabilities.addCapability( in testHandleOemPaidNetworkRelease() 133 mNetworkRequest.networkCapabilities.addCapability( in testOemPrivateHandleNetworkRequest() 152 mNetworkRequest.networkCapabilities.addCapability( in testHandleOemPrivateNetworkRelease() 173 mNetworkRequest.networkCapabilities.addCapability( in testHandleOemPaidAndOemPrivateNetworkRequestAndRelease() 175 mNetworkRequest.networkCapabilities.addCapability( in testHandleOemPaidAndOemPrivateNetworkRequestAndRelease()
|
/packages/modules/NetworkStack/apishim/29/com/android/networkstack/apishim/api29/ |
D | ConnectivityManagerShimImpl.java | 78 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in registerSystemDefaultNetworkCallback() 79 .addCapability(NetworkCapabilities.NET_CAPABILITY_TRUSTED) in registerSystemDefaultNetworkCallback() 80 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_VPN) in registerSystemDefaultNetworkCallback() 81 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in registerSystemDefaultNetworkCallback()
|
/packages/modules/Connectivity/tests/cts/hostside/networkslicingtestapp/src/com.android.cts.net.hostside.networkslicingtestapp/ |
D | NetworkSelfDeclaredCapabilitiesTest.java | 69 .addCapability(NetworkCapabilities.NET_CAPABILITY_PRIORITIZE_BANDWIDTH) in requestNetwork_withSelfDeclaredCapabilities() 70 .addCapability(NetworkCapabilities.NET_CAPABILITY_PRIORITIZE_LATENCY) in requestNetwork_withSelfDeclaredCapabilities() 88 .addCapability(NetworkCapabilities.NET_CAPABILITY_PRIORITIZE_BANDWIDTH) in requestNetwork_lackingRequiredSelfDeclaredCapabilities() 89 .addCapability(NetworkCapabilities.NET_CAPABILITY_PRIORITIZE_LATENCY) in requestNetwork_lackingRequiredSelfDeclaredCapabilities()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/ |
D | ApplicationSelfCertifiedNetworkCapabilitiesTest.kt | 37 addCapability(NetworkCapabilities.NET_CAPABILITY_PRIORITIZE_BANDWIDTH) in <lambda>() 40 addCapability(NetworkCapabilities.NET_CAPABILITY_PRIORITIZE_LATENCY) in <lambda>() 44 addCapability(NetworkCapabilities.NET_CAPABILITY_PRIORITIZE_BANDWIDTH) in <lambda>() 45 addCapability(NetworkCapabilities.NET_CAPABILITY_PRIORITIZE_LATENCY) in <lambda>()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/pan/ |
D | BluetoothTetheringNetworkFactory.java | 271 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in initNetworkCapabilities() 272 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in initNetworkCapabilities() 273 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING) in initNetworkCapabilities() 274 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_SUSPENDED) in initNetworkCapabilities() 275 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_VCN_MANAGED) in initNetworkCapabilities()
|
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/provision/worker/ |
D | SetupWizardCompletionTimeoutWorker.java | 115 .addCapability(NET_CAPABILITY_NOT_RESTRICTED) 116 .addCapability(NET_CAPABILITY_TRUSTED) 117 .addCapability(NET_CAPABILITY_INTERNET) 118 .addCapability(NET_CAPABILITY_NOT_VPN)
|
D | PauseProvisioningWorker.java | 74 .addCapability(NET_CAPABILITY_NOT_RESTRICTED) in reportProvisionPausedByUser() 75 .addCapability(NET_CAPABILITY_TRUSTED) in reportProvisionPausedByUser() 76 .addCapability(NET_CAPABILITY_INTERNET) in reportProvisionPausedByUser() 77 .addCapability(NET_CAPABILITY_NOT_VPN) in reportProvisionPausedByUser()
|
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/ |
D | NetworkCapabilitiesUtilsTest.kt | 83 nc.addCapability(NET_CAPABILITY_OEM_PAID) in testInferRestrictedCapability() 84 nc.addCapability(NET_CAPABILITY_INTERNET) in testInferRestrictedCapability() 89 nc.addCapability(NET_CAPABILITY_CBS) in testInferRestrictedCapability() 99 nc.addCapability(NET_CAPABILITY_BIP) in testInferRestrictedCapability()
|
/packages/modules/Connectivity/service/src/com/android/server/ |
D | TestNetworkService.java | 266 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_SUSPENDED); in registerTestNetworkAgent() 267 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED); in registerTestNetworkAgent() 268 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_VCN_MANAGED); in registerTestNetworkAgent() 269 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_VPN); in registerTestNetworkAgent() 270 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_BANDWIDTH_CONSTRAINED); in registerTestNetworkAgent() 274 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED); in registerTestNetworkAgent()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/wifi/ |
D | NetworkMonitorTest.java | 124 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED) in testWaitForValidated_NetworkChange() 137 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED) in testWaitForValidated_NetworkChange() 154 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED) in testWaitForValidated_NoCallbackOnCapabilitiesChange() 180 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED) in testWaitForValidated_ToggleBlocked()
|
/packages/modules/Connectivity/service-t/src/com/android/server/ethernet/ |
D | EthernetTracker.java | 779 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in createDefaultNetworkCapabilities() 780 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED) in createDefaultNetworkCapabilities() 781 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING) in createDefaultNetworkCapabilities() 782 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_CONGESTED) in createDefaultNetworkCapabilities() 783 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_SUSPENDED) in createDefaultNetworkCapabilities() 784 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_VCN_MANAGED); in createDefaultNetworkCapabilities() 789 builder.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in createDefaultNetworkCapabilities() 854 builder.addCapability(Integer.valueOf(strNetworkCapability)); in createNetworkCapabilities() 866 builder.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING); in createNetworkCapabilities() 867 builder.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_CONGESTED); in createNetworkCapabilities() [all …]
|
/packages/modules/DeviceLock/DeviceLockController/tests/robolectric/src/com/android/devicelockcontroller/provision/grpc/impl/ |
D | DeviceCheckinClientImplTest.java | 246 Shadows.shadowOf(new NetworkCapabilities()).addCapability( in getCheckInStatus_noDefaultConnectivity_fallsBackToNonVpn() 314 Shadows.shadowOf(new NetworkCapabilities()).addCapability( in getCheckInStatus_lostNonVpnConnection_isNotSuccessful() 368 Shadows.shadowOf(new NetworkCapabilities()).addCapability( in isDeviceInApprovedCountry_noDefaultConnectivity_fallsBackToNonVpn() 435 Shadows.shadowOf(new NetworkCapabilities()).addCapability( in isDeviceInApprovedCountry_lostNonVpnConnection_isNotSuccessful() 489 Shadows.shadowOf(new NetworkCapabilities()).addCapability( in pauseProvisioning_noDefaultConnectivity_fallsBackToNonVpn() 558 Shadows.shadowOf(new NetworkCapabilities()).addCapability( in pauseProvisioning_lostNonVpnConnection_isNotSuccessful() 614 Shadows.shadowOf(new NetworkCapabilities()).addCapability( in reportProvisioningState_noDefaultConnectivity_fallsBackToNonVpn() 685 Shadows.shadowOf(new NetworkCapabilities()).addCapability( in reportProvisioningState_lostNonVpnConnection_isNotSuccessful() 730 Shadows.shadowOf(new NetworkCapabilities()).addCapability( in cleanUp_shutsDownChannels()
|