/packages/modules/Connectivity/tests/common/java/android/net/ |
D | NetworkCapabilitiesTest.java | 32 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/ |
D | ConnectivityManagerShimImpl.java | 19 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/ |
D | NetworkMonitorUtils.java | 21 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/ |
D | EthernetNetworkUpdateRequestTest.java | 19 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/ |
D | RestrictedWifiNetworkFactory.java | 68 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/ |
D | WifiEntryPreference.java | 19 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/ |
D | DeviceLockControllerSchedulerImplTest.java | 20 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/ |
D | SetupWizardCompletionTimeoutWorker.java | 20 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED; 115 .addCapability(NET_CAPABILITY_NOT_RESTRICTED)
|
D | PauseProvisioningWorker.java | 20 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED; 74 .addCapability(NET_CAPABILITY_NOT_RESTRICTED) in reportProvisionPausedByUser()
|
D | ReportDeviceProvisionStateWorker.java | 20 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED; 114 .addCapability(NET_CAPABILITY_NOT_RESTRICTED) in enqueueReportWork()
|
D | DeviceCheckInHelper.java | 20 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/ |
D | CSCaptivePortalAppTest.kt | 32 import android.net.NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED 67 addCapability(NET_CAPABILITY_NOT_RESTRICTED) in keepScore()
|
D | CSSatelliteNetworkTest.kt | 28 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/ |
D | NextProvisionFailedStepReceiverTest.java | 20 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/ |
D | ConnectivityManagerTest.java | 26 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/ |
D | UpstreamNetworkMonitor.java | 27 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/ |
D | NetworkCapabilities.java | 441 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()
|
D | NetworkRequest.java | 26 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED; 283 NET_CAPABILITY_NOT_RESTRICTED,
|
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/policy/ |
D | FinalizationControllerImpl.java | 20 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED; 248 .addCapability(NET_CAPABILITY_NOT_RESTRICTED)
|
D | ProvisionHelperImpl.java | 20 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/ |
D | RestrictedWifiNetworkFactoryTest.java | 63 mNetworkCapabilities.removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED); in setUp()
|
/packages/modules/DeviceLock/DeviceLockController/tests/robolectric/src/com/android/devicelockcontroller/provision/worker/ |
D | DeviceCheckInHelperTest.java | 20 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/ |
D | CarrierPrivilegeAuthenticatorTest.java | 335 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/ |
D | BluetoothTetheringNetworkFactory.java | 272 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in initNetworkCapabilities()
|
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/schedule/ |
D | DeviceLockControllerSchedulerImpl.java | 20 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED; 491 .addCapability(NET_CAPABILITY_NOT_RESTRICTED)
|