Home
last modified time | relevance | path

Searched refs:networkCapabilities (Results 1 – 25 of 50) sorted by relevance

12

/frameworks/base/core/java/android/net/
DNetworkState.java37 public final NetworkCapabilities networkCapabilities; field in NetworkState
44 NetworkCapabilities networkCapabilities, Network network, String subscriberId, in NetworkState() argument
48 this.networkCapabilities = networkCapabilities; in NetworkState()
55 if (SANITY_CHECK_ROAMING && networkInfo != null && networkCapabilities != null) { in NetworkState()
56 if (networkInfo.isRoaming() == networkCapabilities in NetworkState()
59 + " and " + networkCapabilities); in NetworkState()
68 networkCapabilities = in.readParcelable(null); in NetworkState()
83 out.writeParcelable(networkCapabilities, flags); in writeToParcel()
DNetworkRequest.java46 public final @NonNull NetworkCapabilities networkCapabilities; field in NetworkRequest
126 networkCapabilities = nc; in NetworkRequest()
135 networkCapabilities = new NetworkCapabilities(that.networkCapabilities); in NetworkRequest()
366 networkCapabilities.writeToParcel(dest, flags); in writeToParcel()
445 return networkCapabilities.hasCapability(capability); in hasCapability()
454 return networkCapabilities.hasUnwantedCapability(capability); in hasUnwantedCapability()
461 return networkCapabilities.hasTransport(transportType); in hasTransport()
467 ", " + networkCapabilities.toString() + " ]"; in toString()
494 networkCapabilities.writeToProto(proto, NetworkRequestProto.NETWORK_CAPABILITIES); in writeToProto()
505 Objects.equals(that.networkCapabilities, this.networkCapabilities)); in equals()
[all …]
DIConnectivityManager.aidl163 NetworkRequest requestNetwork(in NetworkCapabilities networkCapabilities, in requestNetwork() argument
166 NetworkRequest pendingRequestForNetwork(in NetworkCapabilities networkCapabilities, in pendingRequestForNetwork() argument
171 NetworkRequest listenForNetwork(in NetworkCapabilities networkCapabilities, in listenForNetwork() argument
174 void pendingListenForNetwork(in NetworkCapabilities networkCapabilities, in pendingListenForNetwork() argument
DConnectivityManager.java1604 NetworkCapabilities networkCapabilities; field in ConnectivityManager.LegacyRequest
1647 sendExpireMsgForFeature(l.networkCapabilities, l.expireSequenceNumber, l.delay); in renewRequestLocked()
1671 l.networkCapabilities = netCap; in requestNetworkForFeatureLocked()
3251 @NonNull NetworkCapabilities networkCapabilities, in onAvailable() argument
3257 if (!networkCapabilities.hasCapability( in onAvailable()
3261 onCapabilitiesChanged(network, networkCapabilities); in onAvailable()
3321 @NonNull NetworkCapabilities networkCapabilities) {} in onCapabilitiesChanged() argument
3584 NetworkCapabilities nc = request.networkCapabilities; in requestNetwork()
3659 int legacyType = inferLegacyTypeForNetworkCapabilities(request.networkCapabilities); in requestNetwork()
3698 int legacyType = inferLegacyTypeForNetworkCapabilities(request.networkCapabilities); in requestNetwork()
[all …]
DNetworkIdentity.java203 boolean roaming = !state.networkCapabilities.hasCapability( in buildNetworkIdentity()
205 boolean metered = !state.networkCapabilities.hasCapability( in buildNetworkIdentity()
/frameworks/base/services/core/java/com/android/server/connectivity/
DNetworkAgentInfo.java127 public NetworkCapabilities networkCapabilities; field in NetworkAgentInfo
267 networkCapabilities = nc; in NetworkAgentInfo()
292 networkCapabilities = nc; in setNetworkCapabilities()
457 request.networkCapabilities.satisfiedByNetworkCapabilities(networkCapabilities); in satisfies()
462 request.networkCapabilities.satisfiedByImmutableNetworkCapabilities( in satisfiesImmutableCapabilitiesOf()
463 networkCapabilities); in satisfiesImmutableCapabilitiesOf()
467 return networkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_VPN); in isVPN()
496 boolean isWifi = networkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_WIFI) && in ignoreWifiUnvalidationPenalty()
497 networkCapabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in ignoreWifiUnvalidationPenalty()
525 new NetworkCapabilities(networkCapabilities), network, subscriberId, null); in getNetworkState()
[all …]
DNetworkNotificationManager.java94 if (nai.networkCapabilities.hasTransport(i)) return i; in getFirstTransportType()
150 name = TextUtils.isEmpty(extraInfo) ? nai.networkCapabilities.getSSID() : extraInfo; in showNotification()
152 if (!nai.networkCapabilities.hasCapability(NET_CAPABILITY_INTERNET)) return; in showNotification()
183 WifiInfo.removeDoubleQuotes(nai.networkCapabilities.getSSID())); in showNotification()
188 WifiInfo.removeDoubleQuotes(nai.networkCapabilities.getSSID())); in showNotification()
193 WifiInfo.removeDoubleQuotes(nai.networkCapabilities.getSSID())); in showNotification()
200 WifiInfo.removeDoubleQuotes(nai.networkCapabilities.getSSID())); in showNotification()
206 NetworkSpecifier specifier = nai.networkCapabilities.getNetworkSpecifier(); in showNotification()
227 title = WifiInfo.removeDoubleQuotes(nai.networkCapabilities.getSSID()); in showNotification()
DLingerMonitor.java110 return nai.networkCapabilities.hasTransport(transport); in hasTransport()
249 boolean forceToast = fromNai.networkCapabilities.hasCapability( in noteLingerDefaultNetwork()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiNetworkFactoryTest.java274 mNetworkRequest.networkCapabilities.setNetworkSpecifier(specifier); in testHandleAcceptNetworkRequestFromWithInvalidSpecifier()
290 mNetworkRequest.networkCapabilities.setNetworkSpecifier(specifier); in testHandleAcceptNetworkRequestFromWithInternetCapability()
291 mNetworkRequest.networkCapabilities.addCapability( in testHandleAcceptNetworkRequestFromWithInternetCapability()
309 mNetworkRequest.networkCapabilities.setNetworkSpecifier(specifier); in testHandleAcceptNetworkRequestFromNonFgAppOrSvcWithSpecifier()
326 mNetworkRequest.networkCapabilities.setNetworkSpecifier(specifier); in testHandleAcceptNetworkRequestFromFgAppWithSpecifier()
343 mNetworkRequest.networkCapabilities.setNetworkSpecifier(specifier); in testHandleAcceptNetworkRequestFromNetworkSettingAppWithSpecifier()
361 mNetworkRequest.networkCapabilities.setNetworkSpecifier(specifier1); in testHandleAcceptNetworkRequestFromFgAppWithSpecifierWithPendingRequestFromFgSvc()
367 mNetworkRequest.networkCapabilities.setNetworkSpecifier(specifier2); in testHandleAcceptNetworkRequestFromFgAppWithSpecifierWithPendingRequestFromFgSvc()
384 mNetworkRequest.networkCapabilities.setNetworkSpecifier(specifier1); in testHandleAcceptNetworkRequestFromFgSvcWithSpecifierWithPendingRequestFromFgSvc()
390 mNetworkRequest.networkCapabilities.setNetworkSpecifier(specifier2); in testHandleAcceptNetworkRequestFromFgSvcWithSpecifierWithPendingRequestFromFgSvc()
[all …]
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/
DUpstreamNetworkMonitorTest.java322 assertTrue(netReq.networkCapabilities.hasTransport(TRANSPORT_CELLULAR)); in testSelectPreferredUpstreamType()
323 assertFalse(netReq.networkCapabilities.hasCapability(NET_CAPABILITY_DUN)); in testSelectPreferredUpstreamType()
345 dunAgent.networkCapabilities.addCapability(NET_CAPABILITY_DUN); in testSelectPreferredUpstreamType()
358 assertTrue(netReq.networkCapabilities.hasTransport(TRANSPORT_CELLULAR)); in testSelectPreferredUpstreamType()
359 assertTrue(netReq.networkCapabilities.hasCapability(NET_CAPABILITY_DUN)); in testSelectPreferredUpstreamType()
409 dunAgent.networkCapabilities.addCapability(NET_CAPABILITY_DUN); in testGetCurrentPreferredUpstream()
410 dunAgent.networkCapabilities.removeCapability(NET_CAPABILITY_INTERNET); in testGetCurrentPreferredUpstream()
480 dunAgent.networkCapabilities.addCapability(NET_CAPABILITY_DUN); in testLocalPrefixes()
481 dunAgent.networkCapabilities.removeCapability(NET_CAPABILITY_INTERNET); in testLocalPrefixes()
549 assertTrue(nc.satisfiedByNetworkCapabilities(ns.networkCapabilities)); in assertSatisfiesLegacyType()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiStatusTracker.java62 Network network, NetworkCapabilities networkCapabilities) {
156 final NetworkCapabilities networkCapabilities in updateStatusLabel() local
158 if (networkCapabilities != null) { in updateStatusLabel()
159 if (networkCapabilities.hasCapability(NET_CAPABILITY_CAPTIVE_PORTAL)) { in updateStatusLabel()
162 } else if (networkCapabilities.hasCapability(NET_CAPABILITY_PARTIAL_CONNECTIVITY)) { in updateStatusLabel()
165 } else if (!networkCapabilities.hasCapability(NET_CAPABILITY_VALIDATED)) { in updateStatusLabel()
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/
DUpstreamNetworkMonitor.java299 if (prev == null || newNc.equals(prev.networkCapabilities)) { in handleNetCap()
314 final String prevSignal = getSignalStrength(prev.networkCapabilities); in handleNetCap()
340 null, newLp, prev.networkCapabilities, network, null, null)); in handleLinkProp()
515 if (!nc.satisfiedByNetworkCapabilities(value.networkCapabilities)) { in findFirstAvailableUpstreamByType()
546 return (ns != null) && isCellular(ns.networkCapabilities); in isCellular()
555 return (ns != null) && (ns.networkCapabilities != null) && in hasCapability()
556 ns.networkCapabilities.hasCapability(netCap); in hasCapability()
560 return (ns != null) && (ns.networkCapabilities != null) && (ns.linkProperties != null) && in isNetworkUsableAndNotCellular()
561 !isCellular(ns.networkCapabilities); in isNetworkUsableAndNotCellular()
DTetheringInterfaceUtils.java71 && (ns.linkProperties != null) && (ns.networkCapabilities != null) in getIPv6Interface()
77 && ns.networkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR); in getIPv6Interface()
DIPv6TetheringCoordinator.java149 new NetworkCapabilities(ns.networkCapabilities), in setUpstreamNetworkState()
303 ns.networkCapabilities, in toDebugString()
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java1356 if (requiredCaps.satisfiedByNetworkCapabilities(nai.networkCapabilities)) { in getActiveNetworkForUidInternal()
1555 if (nai.networkCapabilities != null) { in getNetworkCapabilitiesInternal()
1557 nai.networkCapabilities, in getNetworkCapabilitiesInternal()
1861 final boolean curMetered = nai.networkCapabilities.isMetered(); in handleRestrictBackgroundChanged()
2147 if (networkAgent.networkCapabilities.hasTransport( in setupDataActivityTracking()
2153 } else if (networkAgent.networkCapabilities.hasTransport( in setupDataActivityTracking()
2179 final NetworkCapabilities caps = networkAgent.networkCapabilities; in removeDataActivityTracking()
2560 final NetworkCapabilities networkCapabilities = (NetworkCapabilities) msg.obj; in maybeHandleNetworkAgentMessage() local
2561 if (networkCapabilities.hasConnectivityManagedCapability()) { in maybeHandleNetworkAgentMessage()
2564 updateCapabilities(nai.getCurrentScore(), nai, networkCapabilities); in maybeHandleNetworkAgentMessage() local
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DUntrustedWifiNetworkFactory.java50 if (!networkRequest.networkCapabilities.hasCapability( in needNetworkFor()
60 if (!networkRequest.networkCapabilities.hasCapability( in releaseNetworkFor()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/
DConnectivityServiceMock.java400 public NetworkRequest requestNetwork(NetworkCapabilities networkCapabilities, in requestNetwork() argument
402 networkCapabilities = new NetworkCapabilities(networkCapabilities); in requestNetwork()
408 NetworkRequest networkRequest = new NetworkRequest(networkCapabilities, legacyType, in requestNetwork()
450 LinkProperties linkProperties, NetworkCapabilities networkCapabilities, in registerNetworkAgent() argument
481 if (nri.request.networkCapabilities.hasSignalStrength() && in handleRegisterNetworkRequest()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDcNetworkAgent.java184 public synchronized void sendNetworkCapabilities(NetworkCapabilities networkCapabilities, in sendNetworkCapabilities() argument
195 if (!networkCapabilities.equals(mNetworkCapabilities)) { in sendNetworkCapabilities()
197 + networkCapabilities + ", Data RAT=" in sendNetworkCapabilities()
202 mNetworkCapabilities = networkCapabilities; in sendNetworkCapabilities()
204 sendNetworkCapabilities(networkCapabilities); in sendNetworkCapabilities()
/frameworks/base/packages/OsuLogin/src/com/android/hotspot2/osu/
DOsuLoginActivity.java124 final NetworkCapabilities networkCapabilities = mCm.getNetworkCapabilities(mNetwork); in onCreate() local
125 if (networkCapabilities == null || !networkCapabilities.hasTransport( in onCreate()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DNetworkNotificationManagerTest.java87 mWifiNai.networkCapabilities = WIFI_CAPABILITIES; in setUp()
89 mCellNai.networkCapabilities = CELL_CAPABILITIES; in setUp()
146 mWifiNai.networkCapabilities = new NetworkCapabilities(); in testNotificationsNotShownIfNoInternetCapability()
147 mWifiNai.networkCapabilities .addTransportType(NetworkCapabilities.TRANSPORT_WIFI); in testNotificationsNotShownIfNoInternetCapability()
/frameworks/base/telephony/java/com/android/internal/telephony/
DITelephonyRegistry.aidl58 in NetworkCapabilities networkCapabilities, int networkType, boolean roaming); in notifyDataConnection() argument
62 in NetworkCapabilities networkCapabilities, int networkType, boolean roaming); in notifyDataConnectionForSubscriber() argument
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCellularNetworkValidator.java239 NetworkCapabilities networkCapabilities) { in onCapabilitiesChanged() argument
240 if (networkCapabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED)) { in onCapabilitiesChanged()
DDefaultPhoneNotifier.java179 NetworkCapabilities networkCapabilities = null; in doNotifyDataConnection() local
184 networkCapabilities = sender.getNetworkCapabilities(apnType); in doNotifyDataConnection()
197 networkCapabilities, in doNotifyDataConnection()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
DWifiAwareDataPathStateManager.java565 NetworkCapabilities networkCapabilities = new NetworkCapabilities( in onDataPathConfirm() local
634 networkCapabilities.setTransportInfo( in onDataPathConfirm()
640 + networkCapabilities.getTransportInfo()); in onDataPathConfirm()
644 networkInfo, networkCapabilities, linkProperties)) { in onDataPathConfirm()
652 networkCapabilities, linkProperties, NETWORK_FACTORY_SCORE_AVAIL, in onDataPathConfirm()
839 request.networkCapabilities.getNetworkSpecifier(); in acceptRequest()
909 networkRequest.networkCapabilities.getNetworkSpecifier(); in needNetworkFor()
962 networkRequest.networkCapabilities.getNetworkSpecifier(); in releaseNetworkFor()
1221 nr -> nr.networkCapabilities.getNetworkSpecifier()).collect( in getNetworkCapabilities()
1486 NetworkInfo networkInfo, NetworkCapabilities networkCapabilities, in configureAgentProperties() argument
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DSecurityControllerTest.java192 (NetworkRequest request) -> request.networkCapabilities.getUids() == null in testNetworkRequest()
193 && request.networkCapabilities.getCapabilities().length == 0 in testNetworkRequest()

12