Home
last modified time | relevance | path

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

/packages/modules/Connectivity/tests/unit/java/android/net/
DNetworkIdentityTest.kt36 setCapability(NetworkCapabilities.NET_CAPABILITY_OEM_PAID, false) in testGetOemBitfield()
37 setCapability(NetworkCapabilities.NET_CAPABILITY_OEM_PRIVATE, false) in testGetOemBitfield()
40 setCapability(NetworkCapabilities.NET_CAPABILITY_OEM_PAID, true) in testGetOemBitfield()
41 setCapability(NetworkCapabilities.NET_CAPABILITY_OEM_PRIVATE, false) in testGetOemBitfield()
44 setCapability(NetworkCapabilities.NET_CAPABILITY_OEM_PAID, false) in testGetOemBitfield()
45 setCapability(NetworkCapabilities.NET_CAPABILITY_OEM_PRIVATE, true) in testGetOemBitfield()
48 setCapability(NetworkCapabilities.NET_CAPABILITY_OEM_PAID, true) in testGetOemBitfield()
49 setCapability(NetworkCapabilities.NET_CAPABILITY_OEM_PRIVATE, true) in testGetOemBitfield()
DNetworkTemplateTest.kt84 setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, !metered) in buildMobileNetworkState()
85 setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING, true) in buildMobileNetworkState()
87 setCapability(NetworkCapabilities.NET_CAPABILITY_OEM_PAID, in buildMobileNetworkState()
89 setCapability(NetworkCapabilities.NET_CAPABILITY_OEM_PRIVATE, in buildMobileNetworkState()
/packages/modules/Connectivity/tests/common/java/android/net/
DNetworkStateSnapshotTest.kt54 setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, false) in <lambda>()
55 setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING, true) in <lambda>()
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/
DNetworkStatsServiceTest.java1740 capabilities.setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, !isMetered);
1741 capabilities.setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING, true);
1755 capabilities.setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, false);
1756 capabilities.setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING, !isRoaming);
1771 capabilities.setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, false);
1772 capabilities.setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING, !isRoaming);
1774 capabilities.setCapability(nc, true);
1786 capabilities.setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, true);
1787 capabilities.setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING, true);
1788 capabilities.setCapability(NetworkCapabilities.NET_CAPABILITY_IMS, true);
/packages/modules/Connectivity/framework/src/android/net/
DNetworkCapabilities.java650 public @NonNull NetworkCapabilities setCapability(@NetCapability int capability, in setCapability() method in NetworkCapabilities
2527 mCaps.setCapability(capability, true); in addCapability()
2539 mCaps.setCapability(capability, false); in removeCapability()
/packages/modules/CaptivePortalLogin/tests/src/com/android/captiveportallogin/
DCaptivePortalLoginActivityTest.java462 nc.setCapability(NET_CAPABILITY_VALIDATED, true); in testNetworkCapabilitiesUpdate()
470 nc.setCapability(NET_CAPABILITY_VALIDATED, true); in testNetworkCapabilitiesUpdateWithFlag()
/packages/modules/Connectivity/service/src/com/android/server/
DConnectivityService.java7287 newNc.setCapability(NET_CAPABILITY_NOT_METERED, !metered); in applyUnderlyingCapabilities()
7288 newNc.setCapability(NET_CAPABILITY_NOT_ROAMING, !roaming); in applyUnderlyingCapabilities()
7289 newNc.setCapability(NET_CAPABILITY_NOT_CONGESTED, !congested); in applyUnderlyingCapabilities()
7290 newNc.setCapability(NET_CAPABILITY_NOT_SUSPENDED, !suspended); in applyUnderlyingCapabilities()
/packages/modules/Connectivity/Tethering/apex/hiddenapi/
Dhiddenapi-max-target-o-low-priority.txt646 Landroid/net/NetworkCapabilities;->setCapability(IZ)Landroid/net/NetworkCapabilities;