Home
last modified time | relevance | path

Searched refs:NET_CAPABILITY_NOT_RESTRICTED (Results 1 – 25 of 57) sorted by relevance

123

/packages/modules/Connectivity/tests/common/java/android/net/
DNetworkCapabilitiesTest.java32 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED;
136 assertTrue(netCap.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testMaybeMarkCapabilitiesRestricted()
143 assertTrue(netCap.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testMaybeMarkCapabilitiesRestricted()
148 assertTrue(netCap.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testMaybeMarkCapabilitiesRestricted()
156 assertTrue(netCap.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testMaybeMarkCapabilitiesRestricted()
162 assertTrue(netCap.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testMaybeMarkCapabilitiesRestricted()
169 assertFalse(netCap.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testMaybeMarkCapabilitiesRestricted()
174 assertFalse(netCap.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testMaybeMarkCapabilitiesRestricted()
182 assertFalse(netCap.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testMaybeMarkCapabilitiesRestricted()
188 assertFalse(netCap.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testMaybeMarkCapabilitiesRestricted()
[all …]
/packages/modules/NetworkStack/apishim/29/com/android/networkstack/apishim/api29/
DConnectivityManagerShimImpl.java19 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED;
78 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in registerSystemDefaultNetworkCallback()
90 .removeCapability(NET_CAPABILITY_NOT_RESTRICTED) in makeEmptyCapabilitiesRequest()
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/
DNetworkMonitorUtils.java21 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED;
76 final boolean isDefaultCapable = nc.hasCapability(NET_CAPABILITY_NOT_RESTRICTED) in isPrivateDnsValidationRequired()
89 if (nc.hasTransport(TRANSPORT_TEST) && nc.hasCapability(NET_CAPABILITY_NOT_RESTRICTED) && ( in isPrivateDnsValidationRequired()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DEthernetNetworkUpdateRequestTest.java19 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED;
47 .removeCapability(NET_CAPABILITY_NOT_RESTRICTED).build();
/packages/modules/Wifi/service/java/com/android/server/wifi/
DRestrictedWifiNetworkFactory.java68 if (!networkRequest.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED)) { in needNetworkFor()
78 if (!networkRequest.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED)) { in releaseNetworkFor()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DWifiEntryPreference.java19 import static android.net.NetworkCapabilitiesProto.NET_CAPABILITY_NOT_RESTRICTED;
89 .hasCapability(NET_CAPABILITY_NOT_RESTRICTED)) { in getWifiEntryIcon()
/packages/modules/DeviceLock/DeviceLockController/tests/robolectric/src/com/android/devicelockcontroller/schedule/
DDeviceLockControllerSchedulerImplTest.java20 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED;
261 assertThat(networkRequest.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)).isTrue(); in scheduleInitialCheckInWork()
284 assertThat(networkRequest.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)).isTrue(); in scheduleRetryCheckInWork()
322 assertThat(networkRequest.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)).isTrue(); in rescheduleRetryCheckInWork()
394 assertThat(networkRequest.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)).isTrue(); in maybeScheduleInitialCheckIn_noNeedCheckIn_reschedule()
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/provision/worker/
DSetupWizardCompletionTimeoutWorker.java20 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED;
115 .addCapability(NET_CAPABILITY_NOT_RESTRICTED)
DPauseProvisioningWorker.java20 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED;
74 .addCapability(NET_CAPABILITY_NOT_RESTRICTED) in reportProvisionPausedByUser()
DReportDeviceProvisionStateWorker.java20 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED;
114 .addCapability(NET_CAPABILITY_NOT_RESTRICTED) in enqueueReportWork()
DDeviceCheckInHelper.java20 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED;
221 .addCapability(NET_CAPABILITY_NOT_RESTRICTED) in maybeEnqueueFcmRegistrationTokenRetrievalWork()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivityservice/
DCSCaptivePortalAppTest.kt32 import android.net.NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED
67 addCapability(NET_CAPABILITY_NOT_RESTRICTED) in keepScore()
DCSSatelliteNetworkTest.kt28 import android.net.NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED
222 removeCapability(NET_CAPABILITY_NOT_RESTRICTED) in satelliteNc()
/packages/modules/DeviceLock/DeviceLockController/tests/robolectric/src/com/android/devicelockcontroller/receivers/
DNextProvisionFailedStepReceiverTest.java20 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED;
161 assertThat(networkRequest.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)).isTrue(); in verifyReportProvisionStateWorkScheduled()
/packages/modules/Connectivity/tests/unit/java/android/net/
DConnectivityManagerTest.java26 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED;
126 NET_CAPABILITY_NOT_RESTRICTED, in verifyUnrestrictedNetworkCapabilities()
140 assertFalse(nc.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in verifyRestrictedMobileNetworkCapabilities()
214 NET_CAPABILITY_NOT_RESTRICTED, NET_CAPABILITY_NOT_VPN, in testNetworkCapabilitiesForTypeWifiP2p()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DUpstreamNetworkMonitor.java27 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED;
249 .removeCapability(NET_CAPABILITY_NOT_RESTRICTED) in registerMobileNetworkRequest()
681 builder.removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED); in networkCapabilitiesForType()
/packages/modules/Connectivity/framework/src/android/net/
DNetworkCapabilities.java441 NET_CAPABILITY_NOT_RESTRICTED,
552 public static final int NET_CAPABILITY_NOT_RESTRICTED = 13; field in NetworkCapabilities
814 (1L << NET_CAPABILITY_NOT_RESTRICTED)
843 (1L << NET_CAPABILITY_NOT_RESTRICTED) |
1224 removeCapability(NET_CAPABILITY_NOT_RESTRICTED); in maybeMarkCapabilitiesRestricted()
1257 if (0 != (originalCapabilities & (1 << NET_CAPABILITY_NOT_RESTRICTED))) { in restrictCapabilitiesForTestNetwork()
2614 case NET_CAPABILITY_NOT_RESTRICTED: return "NOT_RESTRICTED"; in capabilityNameOf()
DNetworkRequest.java26 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED;
283 NET_CAPABILITY_NOT_RESTRICTED,
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/policy/
DFinalizationControllerImpl.java20 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED;
248 .addCapability(NET_CAPABILITY_NOT_RESTRICTED)
DProvisionHelperImpl.java20 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED;
371 .addCapability(NET_CAPABILITY_NOT_RESTRICTED) in getIsDeviceInApprovedCountryWork()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DRestrictedWifiNetworkFactoryTest.java63 mNetworkCapabilities.removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED); in setUp()
/packages/modules/DeviceLock/DeviceLockController/tests/robolectric/src/com/android/devicelockcontroller/provision/worker/
DDeviceCheckInHelperTest.java20 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED;
311 assertThat(networkRequest.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)).isTrue(); in assertNetworkRequestCapabilities()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DCarrierPrivilegeAuthenticatorTest.java335 ncBuilder.removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED); in testNetworkCapabilitiesContainOneSubId()
351 ncBuilder.removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED); in testNetworkCapabilitiesContainTwoSubIds()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/pan/
DBluetoothTetheringNetworkFactory.java272 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in initNetworkCapabilities()
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/schedule/
DDeviceLockControllerSchedulerImpl.java20 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED;
491 .addCapability(NET_CAPABILITY_NOT_RESTRICTED)

123