Home
last modified time | relevance | path

Searched refs:hasCapability (Results 1 – 20 of 20) sorted by relevance

/packages/modules/NetworkStack/common/moduleutils/src/android/net/shared/
DNetworkMonitorUtils.java63 if (nc.hasCapability(NET_CAPABILITY_INTERNET) in isPrivateDnsValidationRequired()
64 && nc.hasCapability(NET_CAPABILITY_NOT_RESTRICTED) in isPrivateDnsValidationRequired()
65 && nc.hasCapability(NET_CAPABILITY_TRUSTED)) { in isPrivateDnsValidationRequired()
78 if (nc.hasTransport(TRANSPORT_TEST) && nc.hasCapability(NET_CAPABILITY_NOT_RESTRICTED) && ( in isPrivateDnsValidationRequired()
95 return isPrivateDnsValidationRequired(nc) && nc.hasCapability(NET_CAPABILITY_NOT_VPN); in isValidationRequired()
/packages/apps/Settings/src/com/android/settings/wifi/slice/
DContextualWifiSlice.java89 && !nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_CAPTIVE_PORTAL) in hasInternetAccess()
90 && !nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_PARTIAL_CONNECTIVITY) in hasInternetAccess()
91 && nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED); in hasInternetAccess()
DWifiScanWorker.java221 mIsCaptivePortal = nc.hasCapability(NET_CAPABILITY_CAPTIVE_PORTAL); in onCapabilitiesChanged()
222 mHasPartialConnectivity = nc.hasCapability(NET_CAPABILITY_PARTIAL_CONNECTIVITY); in onCapabilitiesChanged()
223 mIsValidated = nc.hasCapability(NET_CAPABILITY_VALIDATED); in onCapabilitiesChanged()
/packages/services/Car/tests/GarageModeTestApp/src/com/google/android/car/garagemode/testapp/
DJobInfoRowArrayAdapter.java142 } else if (networkRequest.networkCapabilities.hasCapability(NET_CAPABILITY_NOT_METERED)) { in getNetworkType()
144 } else if (networkRequest.networkCapabilities.hasCapability(NET_CAPABILITY_NOT_ROAMING)) { in getNetworkType()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/details/
DWifiInfoProviderImpl.java124 return mNetworkCapabilities.hasCapability(cap) != nc.hasCapability(cap);
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/
DImapConnection.java172 if (hasCapability(ImapConstants.CAPABILITY_STARTTLS)) { in maybeDoStartTls()
306 private boolean hasCapability(String capability) { in hasCapability() method in ImapConnection
/packages/modules/ExtServices/src/android/ext/services/watchdog/
DNetworkChecker.java86 && capabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED)) { in onCapabilitiesChanged()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadThread.java725 if (!caps.hasCapability(NET_CAPABILITY_NOT_ROAMING) in checkConnectivity()
729 if (!caps.hasCapability(NET_CAPABILITY_NOT_METERED) in checkConnectivity()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DUtils.java623 return capabilities.hasCapability(NET_CAPABILITY_INTERNET) in isConnectedToInternet()
624 && capabilities.hasCapability(NET_CAPABILITY_VALIDATED); in isConnectedToInternet()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiUtils.java114 && capabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_CAPTIVE_PORTAL)); in canSignIntoNetwork()
DWifiNoInternetDialog.java103 if (mNetwork.equals(network) && nc.hasCapability(NET_CAPABILITY_VALIDATED)) { in onCreate()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/
DWifiUtils.java114 && capabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_CAPTIVE_PORTAL)); in canSignIntoNetwork()
DWifiNoInternetDialog.java102 if (mNetwork.equals(network) && nc.hasCapability(NET_CAPABILITY_VALIDATED)) { in onCreate()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DWifiUtil.java153 && capabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_CAPTIVE_PORTAL)); in canSignIntoNetwork()
/packages/apps/Settings/src/com/android/settings/wifi/details/
DWifiDetailPreferenceController.java235 return mNetworkCapabilities.hasCapability(cap) != nc.hasCapability(cap);
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/details/
DWifiDetailPreferenceController.java236 return mNetworkCapabilities.hasCapability(cap) != nc.hasCapability(cap);
/packages/modules/NetworkStack/src/com/android/networkstack/
DNetworkStackNotifier.java82 return mNetworkCapabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED); in isValidated()
/packages/modules/NetworkStack/tests/unit/src/android/net/testutils/
DTestableNetworkCallbackTest.kt165 caps.hasCapability(NOT_METERED) && in <lambda>()
/packages/modules/NetworkStack/src/com/android/server/connectivity/
DNetworkMonitor.java1120 final boolean isRoaming = !mNetworkCapabilities.hasCapability( in buildDataStallDetectionStats()
1778 || !mNetworkCapabilities.hasCapability(NET_CAPABILITY_NOT_METERED) in needEvaluatingBandwidth()
3335 if (!mNetworkCapabilities.hasCapability(NET_CAPABILITY_NOT_METERED) in isDataStall()
/packages/modules/CaptivePortalLogin/src/com/android/captiveportallogin/
DCaptivePortalLoginActivity.java252 if (network.equals(mNetwork) && nc.hasCapability(NET_CAPABILITY_VALIDATED)) { in handleCapabilitiesChanged()