/frameworks/base/tests/net/common/java/android/net/ |
D | NetworkCapabilitiesTest.java | 19 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 …]
|
D | NetworkProviderTest.kt | 21 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/ |
D | NetworkCapabilities.java | 63 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 …]
|
D | NetworkRequest.java | 24 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 …]
|
D | ConnectivityManager.java | 1300 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/ |
D | ConnectivityManagerTest.java | 19 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 …]
|
D | ConnectivityDiagnosticsManagerTest.java | 95 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/ |
D | DcRequestTest.java | 23 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()
|
D | TelephonyNetworkFactoryTest.java | 34 import android.net.NetworkCapabilities; 90 NetworkCapabilities netCap = (new NetworkCapabilities()). in makeSubSpecificInternetRequest() 91 addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET). in makeSubSpecificInternetRequest() 92 addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED). in makeSubSpecificInternetRequest() 93 addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR); in makeSubSpecificInternetRequest() 104 NetworkCapabilities netCap = (new NetworkCapabilities()) in makeDefaultInternetRequest() 105 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in makeDefaultInternetRequest() 106 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in makeDefaultInternetRequest() 107 .addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR); in makeDefaultInternetRequest() 116 NetworkCapabilities netCap = (new NetworkCapabilities()). in makeSubSpecificMmsRequest() [all …]
|
/frameworks/opt/net/ethernet/tests/java/com/android/server/ethernet/ |
D | EthernetTrackerTest.java | 26 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/tests/net/integration/util/com/android/server/ |
D | ConnectivityServiceTestUtils.kt | 26 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
|
D | NetworkAgentWrapper.java | 19 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/opt/net/ethernet/java/com/android/server/ethernet/ |
D | EthernetTracker.java | 30 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/ |
D | UpstreamNetworkMonitor.java | 25 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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CellularNetworkValidatorTest.java | 35 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/ |
D | NetworkNotificationManagerTest.java | 37 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 …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | NetworkControllerWifiTest.java | 13 import android.net.NetworkCapabilities; 50 setConnectivityViaBroadcast(NetworkCapabilities.TRANSPORT_WIFI, true, true); in testWifiIcon() 52 setConnectivityViaBroadcast(NetworkCapabilities.TRANSPORT_WIFI, false, true); in testWifiIcon() 72 setConnectivityViaBroadcast(NetworkCapabilities.TRANSPORT_WIFI, true, true); in testQsWifiIcon() 75 setConnectivityViaBroadcast(NetworkCapabilities.TRANSPORT_WIFI, false, true); in testQsWifiIcon() 89 setConnectivityViaBroadcast(NetworkCapabilities.TRANSPORT_WIFI, true, true); in testQsDataDirection() 114 setConnectivityViaBroadcast(NetworkCapabilities.TRANSPORT_WIFI, true, true); in testRoamingIconDuringWifi() 120 setConnectivityViaBroadcast(NetworkCapabilities.TRANSPORT_WIFI, true, true); in testRoamingIconDuringWifi() 121 setConnectivityViaBroadcast(NetworkCapabilities.TRANSPORT_CELLULAR, false, false); in testRoamingIconDuringWifi() 135 setConnectivityViaBroadcast(NetworkCapabilities.TRANSPORT_WIFI, true, true); in testWifiIconInvalidatedViaCallback() [all …]
|
/frameworks/base/services/core/java/com/android/server/location/gnss/ |
D | GnssNetworkConnectivityHandler.java | 23 import android.net.NetworkCapabilities; 125 private NetworkCapabilities mCapabilities; 133 private static boolean hasCapabilitiesChanged(NetworkCapabilities curCapabilities, in hasCapabilitiesChanged() 134 NetworkCapabilities newCapabilities) { in hasCapabilitiesChanged() 141 NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING) in hasCapabilitiesChanged() 143 NetworkCapabilities.NET_CAPABILITY_NOT_METERED); in hasCapabilitiesChanged() 146 private static boolean hasCapabilityChanged(NetworkCapabilities curCapabilities, in hasCapabilityChanged() 147 NetworkCapabilities newCapabilities, int capability) { in hasCapabilityChanged() 152 private static short getCapabilityFlags(NetworkCapabilities capabilities) { in getCapabilityFlags() 154 if (capabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING)) { in getCapabilityFlags() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | TelephonyNetworkFactory.java | 21 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 …]
|
D | ApnContext.java | 20 import android.net.NetworkCapabilities; 463 NetworkCapabilities.NET_CAPABILITY_DUN)) { in hasRestrictedRequests() 467 NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED)) { in hasRestrictedRequests() 546 NetworkCapabilities nc = nr.networkCapabilities; in getApnTypeFromNetworkRequest() 549 nc.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR) == false) { in getApnTypeFromNetworkRequest() 558 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)) { in getApnTypeFromNetworkRequest() 561 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_MMS)) { in getApnTypeFromNetworkRequest() 565 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_SUPL)) { in getApnTypeFromNetworkRequest() 569 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_DUN)) { in getApnTypeFromNetworkRequest() 573 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_FOTA)) { in getApnTypeFromNetworkRequest() [all …]
|
/frameworks/base/core/java/android/net/util/ |
D | KeepaliveUtils.java | 22 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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | UntrustedWifiNetworkFactoryTest.java | 23 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()
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/ |
D | ConnectivityController.java | 19 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; 30 import android.net.NetworkCapabilities; 169 final NetworkCapabilities capabilities = mConnManager.getNetworkCapabilities( in isNetworkAvailable() 321 NetworkCapabilities capabilities, Constants constants) { in isInsane() 364 NetworkCapabilities capabilities, Constants constants) { in isCongestionDelayed() 375 NetworkCapabilities capabilities, Constants constants) { in isStrictSatisfied() 376 final NetworkCapabilities required; in isStrictSatisfied() 380 required = new NetworkCapabilities( in isStrictSatisfied() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/ |
D | WifiStatusTracker.java | 13 import static android.net.NetworkCapabilities.NET_CAPABILITY_CAPTIVE_PORTAL; 14 import static android.net.NetworkCapabilities.NET_CAPABILITY_PARTIAL_CONNECTIVITY; 15 import static android.net.NetworkCapabilities.NET_CAPABILITY_VALIDATED; 22 import android.net.NetworkCapabilities; 60 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_VPN) 61 .addTransportType(NetworkCapabilities.TRANSPORT_WIFI).build(); 67 Network network, NetworkCapabilities networkCapabilities) { 74 public void onCapabilitiesChanged(Network network, NetworkCapabilities nc) { 94 private NetworkCapabilities mDefaultNetworkCapabilities = null; 217 NetworkCapabilities networkCapabilities; in updateStatusLabel()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | UntrustedWifiNetworkFactory.java | 20 import android.net.NetworkCapabilities; 40 public UntrustedWifiNetworkFactory(Looper l, Context c, NetworkCapabilities f, in UntrustedWifiNetworkFactory() 50 if (!networkRequest.hasCapability(NetworkCapabilities.NET_CAPABILITY_TRUSTED)) { in needNetworkFor() 59 if (!networkRequest.hasCapability(NetworkCapabilities.NET_CAPABILITY_TRUSTED)) { in releaseNetworkFor()
|