Home
last modified time | relevance | path

Searched refs:setCapability (Results 1 – 10 of 10) sorted by relevance

/packages/modules/Connectivity/tests/unit/java/android/net/
DNetworkIdentityTest.kt65 setCapability(NetworkCapabilities.NET_CAPABILITY_OEM_PAID, false) in <lambda>()
66 setCapability(NetworkCapabilities.NET_CAPABILITY_OEM_PRIVATE, false) in <lambda>()
69 setCapability(NetworkCapabilities.NET_CAPABILITY_OEM_PAID, true) in <lambda>()
70 setCapability(NetworkCapabilities.NET_CAPABILITY_OEM_PRIVATE, false) in <lambda>()
73 setCapability(NetworkCapabilities.NET_CAPABILITY_OEM_PAID, false) in <lambda>()
74 setCapability(NetworkCapabilities.NET_CAPABILITY_OEM_PRIVATE, true) in <lambda>()
77 setCapability(NetworkCapabilities.NET_CAPABILITY_OEM_PAID, true) in <lambda>()
78 setCapability(NetworkCapabilities.NET_CAPABILITY_OEM_PRIVATE, true) in <lambda>()
107 setCapability(NetworkCapabilities.NET_CAPABILITY_TEMPORARILY_NOT_METERED, true) in <lambda>()
DNetworkTemplateTest.kt96 setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, !metered) in buildMobileNetworkState()
97 setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING, true) in buildMobileNetworkState()
98 setCapability(NetworkCapabilities.NET_CAPABILITY_OEM_PAID, in buildMobileNetworkState()
100 setCapability(NetworkCapabilities.NET_CAPABILITY_OEM_PRIVATE, in buildMobileNetworkState()
/packages/modules/Connectivity/tests/common/java/android/net/
DNetworkStateSnapshotTest.kt55 setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, false) in <lambda>()
56 setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING, true) in <lambda>()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DNetworkRequestStateStatsMetricsTest.java71 .setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, true)
72 .setCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET, false)
DNetworkRequestStateInfoTest.java57 .setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, true), in testSetNetworkRequestRemoved()
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/
DNetworkStatsServiceTest.java2729 capabilities.setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, !isMetered); in buildWifiState()
2730 capabilities.setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING, true); in buildWifiState()
2762 capabilities.setCapability(NetworkCapabilities.NET_CAPABILITY_TEMPORARILY_NOT_METERED, in buildStateOfTransport()
2764 capabilities.setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING, !isRoaming); in buildStateOfTransport()
2782 capabilities.setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, false); in buildOemManagedMobileState()
2783 capabilities.setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING, !isRoaming); in buildOemManagedMobileState()
2785 capabilities.setCapability(nc, true); in buildOemManagedMobileState()
2797 capabilities.setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, true); in buildImsState()
2798 capabilities.setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING, true); in buildImsState()
2799 capabilities.setCapability(NetworkCapabilities.NET_CAPABILITY_IMS, true); in buildImsState()
/packages/modules/Connectivity/framework/src/android/net/
DNetworkCapabilities.java962 public @NonNull NetworkCapabilities setCapability(@NetCapability int capability, in setCapability() method in NetworkCapabilities
3004 mCaps.setCapability(capability, true); in addCapability()
3016 mCaps.setCapability(capability, false); in removeCapability()
/packages/modules/CaptivePortalLogin/tests/src/com/android/captiveportallogin/
DCaptivePortalLoginActivityTest.java531 nc.setCapability(NET_CAPABILITY_VALIDATED, true); in testNetworkCapabilitiesUpdate_RAndLater()
544 nc.setCapability(NET_CAPABILITY_VALIDATED, true); in testNetworkCapabilitiesUpdate_Q()
/packages/modules/Connectivity/service/src/com/android/server/
DConnectivityService.java9515 newNc.setCapability(NET_CAPABILITY_NOT_METERED, !metered);
9516 newNc.setCapability(NET_CAPABILITY_NOT_ROAMING, !roaming);
9517 newNc.setCapability(NET_CAPABILITY_NOT_CONGESTED, !congested);
9518 newNc.setCapability(NET_CAPABILITY_NOT_SUSPENDED, !suspended);
/packages/modules/Connectivity/Tethering/apex/hiddenapi/
Dhiddenapi-max-target-o-low-priority.txt646 Landroid/net/NetworkCapabilities;->setCapability(IZ)Landroid/net/NetworkCapabilities;