Home
last modified time | relevance | path

Searched refs:NetworkCapabilities (Results 1 – 25 of 138) sorted by relevance

123456

/frameworks/base/tests/net/common/java/android/net/
DNetworkCapabilitiesTest.java19 import static android.net.NetworkCapabilities.LINK_BANDWIDTH_UNSPECIFIED;
20 import static android.net.NetworkCapabilities.MAX_TRANSPORT;
21 import static android.net.NetworkCapabilities.MIN_TRANSPORT;
22 import static android.net.NetworkCapabilities.NET_CAPABILITY_CAPTIVE_PORTAL;
23 import static android.net.NetworkCapabilities.NET_CAPABILITY_CBS;
24 import static android.net.NetworkCapabilities.NET_CAPABILITY_EIMS;
25 import static android.net.NetworkCapabilities.NET_CAPABILITY_FOREGROUND;
26 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET;
27 import static android.net.NetworkCapabilities.NET_CAPABILITY_MMS;
28 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED;
[all …]
DNetworkProviderTest.kt21 import android.net.NetworkCapabilities.TRANSPORT_TEST in <lambda>()
115 val nc = NetworkCapabilities().apply { in <lambda>()
116 addTransportType(NetworkCapabilities.TRANSPORT_TEST) in <lambda>()
117 removeCapability(NetworkCapabilities.NET_CAPABILITY_TRUSTED) in <lambda>()
118 removeCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in <lambda>()
119 addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_SUSPENDED) in <lambda>()
120 addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING) in <lambda>()
121 addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_VPN) in <lambda>()
/frameworks/base/core/java/android/net/
DNetworkCapabilities.java63 public final class NetworkCapabilities implements Parcelable { class
79 public NetworkCapabilities() { in NetworkCapabilities() method in NetworkCapabilities
84 public NetworkCapabilities(NetworkCapabilities nc) { in NetworkCapabilities() method in NetworkCapabilities
114 public void set(@NonNull NetworkCapabilities nc) { in set()
453 public @NonNull NetworkCapabilities addCapability(@NetCapability int capability) { in addCapability()
490 public @NonNull NetworkCapabilities removeCapability(@NetCapability int capability) { in removeCapability()
505 public @NonNull NetworkCapabilities setCapability(@NetCapability int capability, in setCapability()
585 private void combineNetCapabilities(@NonNull NetworkCapabilities nc) { in combineNetCapabilities()
612 private boolean satisfiedByNetCapabilities(@NonNull NetworkCapabilities nc, in satisfiedByNetCapabilities()
627 public boolean equalsNetCapabilities(@NonNull NetworkCapabilities nc) { in equalsNetCapabilities()
[all …]
DNetworkRequest.java24 import android.net.NetworkCapabilities.NetCapability;
25 import android.net.NetworkCapabilities.Transport;
47 public final @NonNull NetworkCapabilities networkCapabilities;
122 public NetworkRequest(NetworkCapabilities nc, int legacyType, int rId, Type type) { in NetworkRequest()
136 networkCapabilities = new NetworkCapabilities(that.networkCapabilities); in NetworkRequest()
147 private final NetworkCapabilities mNetworkCapabilities;
156 mNetworkCapabilities = new NetworkCapabilities(); in Builder()
168 final NetworkCapabilities nc = new NetworkCapabilities(mNetworkCapabilities); in build()
184 public Builder addCapability(@NetworkCapabilities.NetCapability int capability) { in addCapability()
195 public Builder removeCapability(@NetworkCapabilities.NetCapability int capability) { in removeCapability()
[all …]
DConnectivityManager.java1300 public NetworkCapabilities[] getDefaultNetworkCapabilitiesForUser(int userId) { in getDefaultNetworkCapabilitiesForUser()
1383 public NetworkCapabilities getNetworkCapabilities(@Nullable Network network) { in getNetworkCapabilities()
1443 NetworkCapabilities netCap = networkCapabilitiesForFeature(networkType, feature); in startUsingNetworkFeature()
1500 NetworkCapabilities netCap = networkCapabilitiesForFeature(networkType, feature); in stopUsingNetworkFeature()
1514 private NetworkCapabilities networkCapabilitiesForFeature(int networkType, String feature) { in networkCapabilitiesForFeature()
1541 private int legacyTypeForNetworkCapabilities(NetworkCapabilities netCap) { in legacyTypeForNetworkCapabilities()
1543 if (netCap.hasCapability(NetworkCapabilities.NET_CAPABILITY_CBS)) { in legacyTypeForNetworkCapabilities()
1546 if (netCap.hasCapability(NetworkCapabilities.NET_CAPABILITY_IMS)) { in legacyTypeForNetworkCapabilities()
1549 if (netCap.hasCapability(NetworkCapabilities.NET_CAPABILITY_FOTA)) { in legacyTypeForNetworkCapabilities()
1552 if (netCap.hasCapability(NetworkCapabilities.NET_CAPABILITY_DUN)) { in legacyTypeForNetworkCapabilities()
[all …]
/frameworks/base/tests/net/java/android/net/
DConnectivityManagerTest.java19 import static android.net.NetworkCapabilities.NET_CAPABILITY_CBS;
20 import static android.net.NetworkCapabilities.NET_CAPABILITY_DUN;
21 import static android.net.NetworkCapabilities.NET_CAPABILITY_FOTA;
22 import static android.net.NetworkCapabilities.NET_CAPABILITY_IMS;
23 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET;
24 import static android.net.NetworkCapabilities.NET_CAPABILITY_MMS;
25 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED;
26 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_VPN;
27 import static android.net.NetworkCapabilities.NET_CAPABILITY_SUPL;
28 import static android.net.NetworkCapabilities.NET_CAPABILITY_TRUSTED;
[all …]
DConnectivityDiagnosticsManagerTest.java95 final NetworkCapabilities networkCapabilities = new NetworkCapabilities(); in createSampleConnectivityReport()
96 networkCapabilities.addCapability(NetworkCapabilities.NET_CAPABILITY_IMS); in createSampleConnectivityReport()
110 new NetworkCapabilities(), in createDefaultConnectivityReport()
155 final NetworkCapabilities networkCapabilities = sampleReport.getNetworkCapabilities(); in testConnectivityReportEquals()
164 new NetworkCapabilities(), in testConnectivityReportEquals()
172 new NetworkCapabilities(), in testConnectivityReportEquals()
180 new NetworkCapabilities(), in testConnectivityReportEquals()
196 new NetworkCapabilities(), in testConnectivityReportEquals()
212 final NetworkCapabilities networkCapabilities = new NetworkCapabilities(); in createSampleDataStallReport()
213 networkCapabilities.addCapability(NetworkCapabilities.NET_CAPABILITY_IMS); in createSampleDataStallReport()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DDcRequestTest.java23 import android.net.NetworkCapabilities;
55 .addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR) in whenNetworkRequestInternetThenPriorityZero()
56 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in whenNetworkRequestInternetThenPriorityZero()
70 .addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR) in whenNetworkRequestMcxThenApnConfigTypeMcxPriorityReturned()
72 .addTransportType(NetworkCapabilities.TRANSPORT_BLUETOOTH) in whenNetworkRequestMcxThenApnConfigTypeMcxPriorityReturned()
73 .addCapability(NetworkCapabilities.NET_CAPABILITY_MCX) in whenNetworkRequestMcxThenApnConfigTypeMcxPriorityReturned()
86 .addTransportType(NetworkCapabilities.TRANSPORT_WIFI) in whenNetworkRequestNotCellularThenDcRequestIsNull()
87 .addCapability(NetworkCapabilities.NET_CAPABILITY_MCX) in whenNetworkRequestNotCellularThenDcRequestIsNull()
100 .addCapability(NetworkCapabilities.NET_CAPABILITY_MCX) in whenNetworkRequestHasNoTransportThenPriorityStays()
117 .addTransportType(NetworkCapabilities.TRANSPORT_BLUETOOTH) in whenNetworkRequestNotCellularWithTelephonySpecifierThenDcRequestIsNull()
DTelephonyNetworkFactoryTest.java33 import android.net.NetworkCapabilities;
85 NetworkCapabilities netCap = (new NetworkCapabilities()). in makeSubSpecificInternetRequest()
86 addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET). in makeSubSpecificInternetRequest()
87 addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED). in makeSubSpecificInternetRequest()
88 addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR); in makeSubSpecificInternetRequest()
99 NetworkCapabilities netCap = (new NetworkCapabilities()) in makeDefaultInternetRequest()
100 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in makeDefaultInternetRequest()
101 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in makeDefaultInternetRequest()
102 .addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR); in makeDefaultInternetRequest()
111 NetworkCapabilities netCap = (new NetworkCapabilities()). in makeSubSpecificMmsRequest()
[all …]
/frameworks/opt/net/ethernet/tests/java/com/android/server/ethernet/
DEthernetTrackerTest.java26 import android.net.NetworkCapabilities;
143 NetworkCapabilities defaultEthernetCleared = new NetworkCapabilitiesBuilder() in createNetworkCapabilities()
147 .addTransport(NetworkCapabilities.TRANSPORT_ETHERNET) in createNetworkCapabilities()
150 NetworkCapabilities ethernetClearedWithCommonCaps = new NetworkCapabilitiesBuilder() in createNetworkCapabilities()
154 .addTransport(NetworkCapabilities.TRANSPORT_ETHERNET) in createNetworkCapabilities()
171 .addTransport(NetworkCapabilities.TRANSPORT_ETHERNET) in createNetworkCapabilities()
181 .addTransport(NetworkCapabilities.TRANSPORT_ETHERNET) in createNetworkCapabilities()
263 private void assertParsedNetworkCapabilities(NetworkCapabilities expectedNetworkCapabilities, in assertParsedNetworkCapabilities()
271 private final NetworkCapabilities nc = new NetworkCapabilities();
301 NetworkCapabilities build() { in build()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DNetworkControllerWifiTest.java11 import android.net.NetworkCapabilities;
47 setConnectivityViaBroadcast(NetworkCapabilities.TRANSPORT_WIFI, true, true); in testWifiIcon()
49 setConnectivityViaBroadcast(NetworkCapabilities.TRANSPORT_WIFI, false, true); in testWifiIcon()
68 setConnectivityViaBroadcast(NetworkCapabilities.TRANSPORT_WIFI, true, true); in testQsWifiIcon()
71 setConnectivityViaBroadcast(NetworkCapabilities.TRANSPORT_WIFI, false, true); in testQsWifiIcon()
85 setConnectivityViaBroadcast(NetworkCapabilities.TRANSPORT_WIFI, true, true); in testQsDataDirection()
110 setConnectivityViaBroadcast(NetworkCapabilities.TRANSPORT_WIFI, true, true); in testRoamingIconDuringWifi()
116 setConnectivityViaBroadcast(NetworkCapabilities.TRANSPORT_WIFI, true, true); in testRoamingIconDuringWifi()
117 setConnectivityViaBroadcast(NetworkCapabilities.TRANSPORT_CELLULAR, false, false); in testRoamingIconDuringWifi()
131 setConnectivityViaBroadcast(NetworkCapabilities.TRANSPORT_WIFI, true, true); in testWifiIconInvalidatedViaCallback()
[all …]
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
DEthernetTracker.java30 import android.net.NetworkCapabilities;
83 private final ConcurrentHashMap<String, NetworkCapabilities> mNetworkCapabilities =
133 NetworkCapabilities nc = createNetworkCapabilities(true /* clear default capabilities */); in EthernetTracker()
185 final NetworkCapabilities nc = mNetworkCapabilities.get(iface); in isRestrictedInterface()
186 return nc != null && !nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED); in isRestrictedInterface()
298 NetworkCapabilities nc = mNetworkCapabilities.get(iface); in addInterface()
452 NetworkCapabilities nc = createNetworkCapabilities( in parseEthernetConfig()
463 private static NetworkCapabilities createDefaultNetworkCapabilities(boolean isTestIface) { in createDefaultNetworkCapabilities()
464 NetworkCapabilities nc = createNetworkCapabilities(false /* clear default capabilities */); in createDefaultNetworkCapabilities()
465 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED); in createDefaultNetworkCapabilities()
[all …]
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/
DUpstreamNetworkMonitor.java25 import static android.net.NetworkCapabilities.NET_CAPABILITY_DUN;
26 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET;
27 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED;
28 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_VPN;
29 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR;
37 import android.net.NetworkCapabilities;
97 sLegacyTypeToTransport.put(TYPE_MOBILE, NetworkCapabilities.TRANSPORT_CELLULAR); in sLegacyTypeToTransport.put()
98 sLegacyTypeToTransport.put(TYPE_MOBILE_DUN, NetworkCapabilities.TRANSPORT_CELLULAR); in sLegacyTypeToTransport.put()
99 sLegacyTypeToTransport.put(TYPE_MOBILE_HIPRI, NetworkCapabilities.TRANSPORT_CELLULAR); in sLegacyTypeToTransport.put()
100 sLegacyTypeToTransport.put(TYPE_WIFI, NetworkCapabilities.TRANSPORT_WIFI); in sLegacyTypeToTransport.put()
[all …]
/frameworks/base/tests/net/integration/util/com/android/server/
DConnectivityServiceTestUtils.kt26 import android.net.NetworkCapabilities.TRANSPORT_BLUETOOTH
27 import android.net.NetworkCapabilities.TRANSPORT_CELLULAR
28 import android.net.NetworkCapabilities.TRANSPORT_ETHERNET
29 import android.net.NetworkCapabilities.TRANSPORT_TEST
30 import android.net.NetworkCapabilities.TRANSPORT_VPN
31 import android.net.NetworkCapabilities.TRANSPORT_WIFI
DNetworkAgentWrapper.java19 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_SUSPENDED;
20 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_VPN;
21 import static android.net.NetworkCapabilities.TRANSPORT_CELLULAR;
22 import static android.net.NetworkCapabilities.TRANSPORT_ETHERNET;
23 import static android.net.NetworkCapabilities.TRANSPORT_VPN;
24 import static android.net.NetworkCapabilities.TRANSPORT_WIFI;
25 import static android.net.NetworkCapabilities.TRANSPORT_WIFI_AWARE;
40 import android.net.NetworkCapabilities;
59 private final NetworkCapabilities mNetworkCapabilities;
77 mNetworkCapabilities = new NetworkCapabilities(); in NetworkAgentWrapper()
[all …]
/frameworks/base/services/core/java/com/android/server/location/
DGnssNetworkConnectivityHandler.java23 import android.net.NetworkCapabilities;
109 private NetworkCapabilities mCapabilities;
117 private static boolean hasCapabilitiesChanged(NetworkCapabilities curCapabilities, in hasCapabilitiesChanged()
118 NetworkCapabilities newCapabilities) { in hasCapabilitiesChanged()
125 NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING) in hasCapabilitiesChanged()
127 NetworkCapabilities.NET_CAPABILITY_NOT_METERED); in hasCapabilitiesChanged()
130 private static boolean hasCapabilityChanged(NetworkCapabilities curCapabilities, in hasCapabilityChanged()
131 NetworkCapabilities newCapabilities, int capability) { in hasCapabilityChanged()
136 private static short getCapabilityFlags(NetworkCapabilities capabilities) { in getCapabilityFlags()
138 if (capabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING)) { in getCapabilityFlags()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCellularNetworkValidatorTest.java35 import android.net.NetworkCapabilities;
112 mValidatorUT.mNetworkCallback.onCapabilitiesChanged(null, new NetworkCapabilities() in testValidateSuccess()
113 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED)); in testValidateSuccess()
249 mValidatorUT.mNetworkCallback.onCapabilitiesChanged(null, new NetworkCapabilities() in testNetworkCachingOfMultipleSub()
250 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED)); in testNetworkCachingOfMultipleSub()
256 mValidatorUT.mNetworkCallback.onCapabilitiesChanged(null, new NetworkCapabilities() in testNetworkCachingOfMultipleSub()
257 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED)); in testNetworkCachingOfMultipleSub()
260 mValidatorUT.mNetworkCallback.onCapabilitiesChanged(null, new NetworkCapabilities() in testNetworkCachingOfMultipleSub()
261 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED)); in testNetworkCachingOfMultipleSub()
302 mValidatorUT.mNetworkCallback.onCapabilitiesChanged(null, new NetworkCapabilities() in testNetworkCachingOfMultipleNetworks()
[all …]
/frameworks/base/tests/net/java/com/android/server/connectivity/
DNetworkNotificationManagerTest.java37 import android.net.NetworkCapabilities;
63 static final NetworkCapabilities CELL_CAPABILITIES = new NetworkCapabilities();
64 static final NetworkCapabilities WIFI_CAPABILITIES = new NetworkCapabilities();
65 static final NetworkCapabilities VPN_CAPABILITIES = new NetworkCapabilities();
67 CELL_CAPABILITIES.addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR);
68 CELL_CAPABILITIES.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET);
70 WIFI_CAPABILITIES.addTransportType(NetworkCapabilities.TRANSPORT_WIFI);
71 WIFI_CAPABILITIES.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET);
74 VPN_CAPABILITIES.addTransportType(NetworkCapabilities.TRANSPORT_WIFI);
75 VPN_CAPABILITIES.addTransportType(NetworkCapabilities.TRANSPORT_VPN);
[all …]
DIpConnectivityMetricsTest.java36 import android.net.NetworkCapabilities;
129 final long cell = BitUtils.packBits(new int[]{NetworkCapabilities.TRANSPORT_CELLULAR}); in testDefaultNetworkEvents()
130 final long wifi = BitUtils.packBits(new int[]{NetworkCapabilities.TRANSPORT_WIFI}); in testDefaultNetworkEvents()
250 NetworkCapabilities ncWifi = new NetworkCapabilities(); in testEndToEndLogging()
251 NetworkCapabilities ncCell = new NetworkCapabilities(); in testEndToEndLogging()
252 ncWifi.addTransportType(NetworkCapabilities.TRANSPORT_WIFI); in testEndToEndLogging()
253 ncCell.addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR); in testEndToEndLogging()
330 final long cell = BitUtils.packBits(new int[]{NetworkCapabilities.TRANSPORT_CELLULAR}); in testEndToEndLogging()
331 final long wifi = BitUtils.packBits(new int[]{NetworkCapabilities.TRANSPORT_WIFI}); in testEndToEndLogging()
590 nai.networkCapabilities = new NetworkCapabilities(); in makeNai()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DTelephonyNetworkFactory.java21 import android.net.NetworkCapabilities;
127 private NetworkCapabilities makeNetworkFilter(SubscriptionController subscriptionController, in makeNetworkFilter()
133 private NetworkCapabilities makeNetworkFilter(int subscriptionId) { in makeNetworkFilter()
134 NetworkCapabilities nc = new NetworkCapabilities(); in makeNetworkFilter()
135 nc.addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR); in makeNetworkFilter()
136 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_MMS); in makeNetworkFilter()
137 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_SUPL); in makeNetworkFilter()
138 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_DUN); in makeNetworkFilter()
139 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_FOTA); in makeNetworkFilter()
140 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_IMS); in makeNetworkFilter()
[all …]
DApnContext.java19 import android.net.NetworkCapabilities;
462 NetworkCapabilities.NET_CAPABILITY_DUN)) { in hasRestrictedRequests()
466 NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED)) { in hasRestrictedRequests()
545 NetworkCapabilities nc = nr.networkCapabilities; in getApnTypeFromNetworkRequest()
548 nc.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR) == false) { in getApnTypeFromNetworkRequest()
557 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)) { in getApnTypeFromNetworkRequest()
560 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_MMS)) { in getApnTypeFromNetworkRequest()
564 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_SUPL)) { in getApnTypeFromNetworkRequest()
568 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_DUN)) { in getApnTypeFromNetworkRequest()
572 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_FOTA)) { in getApnTypeFromNetworkRequest()
[all …]
/frameworks/base/tests/net/java/android/net/util/
DKeepaliveUtilsTest.kt21 import android.net.NetworkCapabilities
22 import android.net.NetworkCapabilities.MAX_TRANSPORT
23 import android.net.NetworkCapabilities.TRANSPORT_CELLULAR
24 import android.net.NetworkCapabilities.TRANSPORT_ETHERNET
25 import android.net.NetworkCapabilities.TRANSPORT_VPN
26 import android.net.NetworkCapabilities.TRANSPORT_WIFI
108 val nc = NetworkCapabilities() in testGetSupportedKeepalivesForNetworkCapabilities()
/frameworks/base/core/java/android/net/util/
DKeepaliveUtils.java22 import android.net.NetworkCapabilities;
61 final int[] ret = new int[NetworkCapabilities.MAX_TRANSPORT + 1]; in getSupportedKeepalives()
80 if (!NetworkCapabilities.isValidTransport(transport)) { in getSupportedKeepalives()
87 + NetworkCapabilities.transportNameOf(transport)); in getSupportedKeepalives()
103 @NonNull int[] supportedKeepalives, @NonNull NetworkCapabilities nc) { in getSupportedKeepalivesForNetworkCapabilities()
/frameworks/base/services/core/java/com/android/server/job/controllers/
DConnectivityController.java19 import static android.net.NetworkCapabilities.LINK_BANDWIDTH_UNSPECIFIED;
20 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_CONGESTED;
21 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED;
28 import android.net.NetworkCapabilities;
162 final NetworkCapabilities capabilities = mConnManager.getNetworkCapabilities( in isNetworkAvailable()
323 NetworkCapabilities capabilities, Constants constants) { in isInsane()
332 final long slowest = NetworkCapabilities.minBandwidth( in isInsane()
354 NetworkCapabilities capabilities, Constants constants) { in isCongestionDelayed()
366 NetworkCapabilities capabilities, Constants constants) { in isStrictSatisfied()
373 NetworkCapabilities capabilities, Constants constants) { in isRelaxedSatisfied()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DUntrustedWifiNetworkFactoryTest.java23 import android.net.NetworkCapabilities;
41 NetworkCapabilities mNetworkCapabilities;
55 mNetworkCapabilities = new NetworkCapabilities(); in setUp()
56 mNetworkCapabilities.addTransportType(NetworkCapabilities.TRANSPORT_WIFI); in setUp()
57 mNetworkCapabilities.removeCapability(NetworkCapabilities.NET_CAPABILITY_TRUSTED); in setUp()

123456