Home
last modified time | relevance | path

Searched refs:addCapability (Results 1 – 16 of 16) sorted by relevance

/packages/apps/Bluetooth/src/com/android/bluetooth/pan/
DBluetoothTetheringNetworkFactory.java244 mNetworkCapabilities.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in initNetworkCapabilities()
245 mNetworkCapabilities.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED); in initNetworkCapabilities()
246 mNetworkCapabilities.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING); in initNetworkCapabilities()
247 mNetworkCapabilities.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_SUSPENDED); in initNetworkCapabilities()
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/
DNetworkMonitorTest.java294 .addCapability(NET_CAPABILITY_INTERNET);
299 .addCapability(NET_CAPABILITY_INTERNET)
300 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED);
305 .addCapability(NET_CAPABILITY_INTERNET)
306 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED);
691 nc.addCapability(NET_CAPABILITY_NOT_METERED); in testNeedEvaluatingBandwidth()
711 nc.addCapability(NET_CAPABILITY_NOT_METERED); in testNeedEvaluatingBandwidth()
723 .addCapability(NET_CAPABILITY_INTERNET); in testEvaluatingBandwidthState_meteredNetwork()
743 .addCapability(NET_CAPABILITY_INTERNET) in testEvaluatingBandwidthState_nonMeteredNetworkWithWrongConfig()
744 .addCapability(NET_CAPABILITY_NOT_METERED); in testEvaluatingBandwidthState_nonMeteredNetworkWithWrongConfig()
[all …]
/packages/modules/NetworkStack/tests/unit/src/android/net/testutils/
DTestableNetworkCallbackTest.kt109 val unmeteredNc = NetworkCapabilities().addCapability(NOT_METERED) in <lambda>()
152 val netCaps = NetworkCapabilities().addCapability(NOT_METERED).addTransportType(WIFI) in <lambda>()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DDataConnectivityListener.java43 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in DataConnectivityListener()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/details/
DWifiDetailPreferenceControllerTest.java979 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED); in onCapabilitiesChanged_callsRefreshIfNecessary()
1008 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_PARTIAL_CONNECTIVITY); in onCapabilitiesChanged_callsRefreshIfNecessary()
1014 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED); in onCapabilitiesChanged_callsRefreshIfNecessary()
1293 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_CAPTIVE_PORTAL); in captivePortal_shouldShowSignInButton()
1320 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_CAPTIVE_PORTAL); in testSignInButton_shouldHideSignInButtonForDisconnectedNetwork()
/packages/services/Telephony/src/com/android/services/telephony/
DTelephonyConferenceBase.java221 public void addCapability(int capability) { in addCapability() method in TelephonyConferenceBase
DTelephonyConference.java204 addCapability(Connection.CAPABILITY_HOLD); in setHoldable()
DImsConference.java749 addCapability(Connection.CAPABILITY_HOLD); in setHoldable()
/packages/apps/Dialer/java/com/android/voicemail/impl/sync/
DVvmNetworkRequestCallback.java92 new NetworkRequest.Builder().addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in createNetworkRequest()
/packages/services/Mms/src/com/android/mms/service/
DMmsNetworkManager.java126 .addCapability(NetworkCapabilities.NET_CAPABILITY_MMS) in MmsNetworkManager()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/slice/
DContextualWifiSliceTest.java165 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED); in makeValidatedNetworkCapabilities()
DWifiSliceTest.java255 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_CAPTIVE_PORTAL); in makeCaptivePortalNetworkCapabilities()
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/
DNetworkStackNotifierTest.kt120 .addCapability(NET_CAPABILITY_VALIDATED)
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/connectivity/
DConnectivityFragment.java167 b.addCapability(capability); in getRequestForNetwork()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DRadioInfo.java244 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)
/packages/services/Telephony/src/com/android/phone/settings/
DRadioInfo.java295 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)