Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/net/
DNetworkRequest.java47 public final @NonNull NetworkCapabilities networkCapabilities; field in NetworkRequest
127 networkCapabilities = nc; in NetworkRequest()
136 networkCapabilities = new NetworkCapabilities(that.networkCapabilities); in NetworkRequest()
378 networkCapabilities.writeToParcel(dest, flags); in writeToParcel()
458 return networkCapabilities.hasCapability(capability); in hasCapability()
467 return networkCapabilities.hasUnwantedCapability(capability); in hasUnwantedCapability()
478 return networkCapabilities.satisfiedByNetworkCapabilities(nc); in canBeSatisfiedBy()
485 return networkCapabilities.hasTransport(transportType); in hasTransport()
493 return networkCapabilities.getNetworkSpecifier(); in getNetworkSpecifier()
505 return networkCapabilities.getRequestorUid(); in getRequestorUid()
[all …]
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 (VALIDATE_ROAMING_STATE && 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()
DIConnectivityManager.aidl172 NetworkRequest requestNetwork(in NetworkCapabilities networkCapabilities, in requestNetwork() argument
176 NetworkRequest pendingRequestForNetwork(in NetworkCapabilities networkCapabilities, in pendingRequestForNetwork() argument
181 NetworkRequest listenForNetwork(in NetworkCapabilities networkCapabilities, in listenForNetwork() argument
184 void pendingListenForNetwork(in NetworkCapabilities networkCapabilities, in pendingListenForNetwork() argument
DConnectivityDiagnosticsManager.java251 @NonNull NetworkCapabilities networkCapabilities, in ConnectivityReport() argument
256 mNetworkCapabilities = new NetworkCapabilities(networkCapabilities); in ConnectivityReport()
472 @NonNull NetworkCapabilities networkCapabilities, in DataStallReport() argument
478 mNetworkCapabilities = new NetworkCapabilities(networkCapabilities); in DataStallReport()
DConnectivityManager.java1571 NetworkCapabilities networkCapabilities; field in ConnectivityManager.LegacyRequest
1614 sendExpireMsgForFeature(l.networkCapabilities, l.expireSequenceNumber, l.delay); in renewRequestLocked()
1638 l.networkCapabilities = netCap; in requestNetworkForFeatureLocked()
3356 @NonNull NetworkCapabilities networkCapabilities, in onAvailable() argument
3362 if (!networkCapabilities.hasCapability( in onAvailable()
3366 onCapabilitiesChanged(network, networkCapabilities); in onAvailable()
3468 @NonNull NetworkCapabilities networkCapabilities) {} in onCapabilitiesChanged() argument
3771 NetworkCapabilities nc = request.networkCapabilities; in requestNetwork()
3877 NetworkCapabilities nc = request.networkCapabilities; in requestNetwork()
3911 NetworkCapabilities nc = request.networkCapabilities; in requestNetwork()
[all …]
DNetworkIdentity.java192 boolean roaming = !state.networkCapabilities.hasCapability( in buildNetworkIdentity()
194 boolean metered = !state.networkCapabilities.hasCapability( in buildNetworkIdentity()
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/
DUpstreamNetworkState.java31 public final NetworkCapabilities networkCapabilities; field in UpstreamNetworkState
37 NetworkCapabilities networkCapabilities, Network network) { in UpstreamNetworkState() argument
39 this.networkCapabilities = networkCapabilities; in UpstreamNetworkState()
48 networkCapabilities == null ? "null" : networkCapabilities, in toString()
DUpstreamNetworkMonitor.java347 if (prev == null || newNc.equals(prev.networkCapabilities)) { in handleNetCap()
381 newLp, prev.networkCapabilities, network)); in handleLinkProp()
529 if (!nc.satisfiedByNetworkCapabilities(value.networkCapabilities)) { in findFirstAvailableUpstreamByType()
555 return (ns != null) && isCellular(ns.networkCapabilities); in isCellular()
564 return (ns != null) && (ns.networkCapabilities != null) in hasCapability()
565 && ns.networkCapabilities.hasCapability(netCap); in hasCapability()
569 return (ns != null) && (ns.networkCapabilities != null) && (ns.linkProperties != null) in isNetworkUsableAndNotCellular()
570 && !isCellular(ns.networkCapabilities); in isNetworkUsableAndNotCellular()
DTetheringInterfaceUtils.java75 && (ns.linkProperties != null) && (ns.networkCapabilities != null) in getIPv6Interface()
81 && ns.networkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR); in getIPv6Interface()
DIPv6TetheringCoordinator.java154 new NetworkCapabilities(ns.networkCapabilities), in setUpstreamNetworkState()
170 if (mUpstreamNetworkState == null || mUpstreamNetworkState.networkCapabilities == null) { in getTtlAdjustment()
176 if (mUpstreamNetworkState.networkCapabilities.hasTransport( in getTtlAdjustment()
/frameworks/base/services/core/java/com/android/server/connectivity/
DNetworkAgentInfo.java133 public NetworkCapabilities networkCapabilities; field in NetworkAgentInfo
281 networkCapabilities = nc; in NetworkAgentInfo()
310 final NetworkCapabilities oldNc = networkCapabilities; in getAndSetNetworkCapabilities()
311 networkCapabilities = nc; in getAndSetNetworkCapabilities()
468 request.networkCapabilities.satisfiedByNetworkCapabilities(networkCapabilities); in satisfies()
473 request.networkCapabilities.satisfiedByImmutableNetworkCapabilities( in satisfiesImmutableCapabilitiesOf()
474 networkCapabilities); in satisfiesImmutableCapabilitiesOf()
478 return networkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_VPN); in isVPN()
508 boolean isWifi = networkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_WIFI) && in ignoreWifiUnvalidationPenalty()
509 networkCapabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in ignoreWifiUnvalidationPenalty()
[all …]
DNetworkNotificationManager.java101 if (nai.networkCapabilities.hasTransport(i)) return i; in getFirstTransportType()
153 name = TextUtils.isEmpty(extraInfo) ? nai.networkCapabilities.getSsid() : extraInfo; in showNotification()
155 if (!nai.networkCapabilities.hasCapability(NET_CAPABILITY_INTERNET)) return; in showNotification()
186 WifiInfo.sanitizeSsid(nai.networkCapabilities.getSsid())); in showNotification()
193 WifiInfo.sanitizeSsid(nai.networkCapabilities.getSsid())); in showNotification()
201 WifiInfo.sanitizeSsid(nai.networkCapabilities.getSsid())); in showNotification()
206 WifiInfo.sanitizeSsid(nai.networkCapabilities.getSsid())); in showNotification()
213 WifiInfo.sanitizeSsid(nai.networkCapabilities.getSsid())); in showNotification()
219 NetworkSpecifier specifier = nai.networkCapabilities.getNetworkSpecifier(); in showNotification()
DLingerMonitor.java112 return nai.networkCapabilities.hasTransport(transport); in hasTransport()
267 boolean forceToast = fromNai.networkCapabilities.hasCapability( in noteLingerDefaultNetwork()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiNetworkFactoryTest.java285 mNetworkRequest.networkCapabilities.setNetworkSpecifier(specifier); in testHandleAcceptNetworkRequestFromWithInvalidSpecifier()
301 mNetworkRequest.networkCapabilities.setNetworkSpecifier(specifier); in testHandleAcceptNetworkRequestFromWithInternetCapability()
302 mNetworkRequest.networkCapabilities.addCapability( in testHandleAcceptNetworkRequestFromWithInternetCapability()
320 mNetworkRequest.networkCapabilities.setNetworkSpecifier(specifier); in testHandleAcceptNetworkRequestFromNonFgAppOrSvcWithSpecifier()
337 mNetworkRequest.networkCapabilities.setNetworkSpecifier(specifier); in testHandleAcceptNetworkRequestFromFgAppWithSpecifier()
354 mNetworkRequest.networkCapabilities.setNetworkSpecifier(specifier); in testHandleAcceptNetworkRequestFromNetworkSettingAppWithSpecifier()
372 mNetworkRequest.networkCapabilities.setNetworkSpecifier(specifier1); in testHandleAcceptNetworkRequestFromFgAppWithSpecifierWithPendingRequestFromFgSvc()
378 mNetworkRequest.networkCapabilities.setNetworkSpecifier(specifier2); in testHandleAcceptNetworkRequestFromFgAppWithSpecifierWithPendingRequestFromFgSvc()
395 mNetworkRequest.networkCapabilities.setNetworkSpecifier(specifier1); in testHandleAcceptNetworkRequestFromFgSvcWithSpecifierWithPendingRequestFromFgSvc()
401 mNetworkRequest.networkCapabilities.setNetworkSpecifier(specifier2); in testHandleAcceptNetworkRequestFromFgSvcWithSpecifierWithPendingRequestFromFgSvc()
[all …]
/frameworks/base/tests/net/java/android/net/
DConnectivityDiagnosticsManagerTest.java95 final NetworkCapabilities networkCapabilities = new NetworkCapabilities(); in createSampleConnectivityReport() local
96 networkCapabilities.addCapability(NetworkCapabilities.NET_CAPABILITY_IMS); in createSampleConnectivityReport()
102 new Network(NET_ID), TIMESTAMP, linkProperties, networkCapabilities, bundle); in createSampleConnectivityReport()
155 final NetworkCapabilities networkCapabilities = sampleReport.getNetworkCapabilities(); in testConnectivityReportEquals() local
188 networkCapabilities, in testConnectivityReportEquals()
212 final NetworkCapabilities networkCapabilities = new NetworkCapabilities(); in createSampleDataStallReport() local
213 networkCapabilities.addCapability(NetworkCapabilities.NET_CAPABILITY_IMS); in createSampleDataStallReport()
220 networkCapabilities, in createSampleDataStallReport()
242 final NetworkCapabilities networkCapabilities = sampleReport.getNetworkCapabilities(); in testDataStallReportEquals() local
288 networkCapabilities, in testDataStallReportEquals()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiStatusTracker.java63 Network network, NetworkCapabilities networkCapabilities) {
157 final NetworkCapabilities networkCapabilities in updateStatusLabel() local
159 if (networkCapabilities != null) { in updateStatusLabel()
160 if (networkCapabilities.hasCapability(NET_CAPABILITY_CAPTIVE_PORTAL)) { in updateStatusLabel()
163 } else if (networkCapabilities.hasCapability(NET_CAPABILITY_PARTIAL_CONNECTIVITY)) { in updateStatusLabel()
166 } else if (!networkCapabilities.hasCapability(NET_CAPABILITY_VALIDATED)) { in updateStatusLabel()
169 if (networkCapabilities.isPrivateDnsBroken()) { in updateStatusLabel()
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/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()
551 assertTrue(nc.satisfiedByNetworkCapabilities(ns.networkCapabilities)); in assertSatisfiesLegacyType()
[all …]
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java1445 if (requiredCaps.satisfiedByNetworkCapabilities(nai.networkCapabilities)) { in getActiveNetworkForUidInternal()
1658 if (nai.networkCapabilities == null) return null; in getNetworkCapabilitiesInternal()
1660 nai.networkCapabilities, Binder.getCallingPid(), Binder.getCallingUid()); in getNetworkCapabilitiesInternal()
2018 final boolean curMetered = nai.networkCapabilities.isMetered(); in handleRestrictBackgroundChanged()
2331 if (networkAgent.networkCapabilities.hasTransport( in setupDataActivityTracking()
2337 } else if (networkAgent.networkCapabilities.hasTransport( in setupDataActivityTracking()
2362 final NetworkCapabilities caps = networkAgent.networkCapabilities; in removeDataActivityTracking()
2733 NetworkCapabilities networkCapabilities = (NetworkCapabilities) msg.obj; in maybeHandleNetworkAgentMessage() local
2734 if (networkCapabilities.hasConnectivityManagedCapability()) { in maybeHandleNetworkAgentMessage()
2737 if (networkCapabilities.hasTransport(TRANSPORT_TEST)) { in maybeHandleNetworkAgentMessage()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDcNetworkAgent.java230 public synchronized void sendNetworkCapabilities(NetworkCapabilities networkCapabilities, in sendNetworkCapabilities() argument
234 if (!networkCapabilities.equals(mNetworkCapabilities)) { in sendNetworkCapabilities()
236 + networkCapabilities + ", Data RAT=" in sendNetworkCapabilities()
241 if (networkCapabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)) { in sendNetworkCapabilities()
244 || networkCapabilities.hasCapability( in sendNetworkCapabilities()
249 mPhone.getPhoneId(), networkCapabilities); in sendNetworkCapabilities() local
252 mNetworkCapabilities = networkCapabilities; in sendNetworkCapabilities()
254 sendNetworkCapabilities(networkCapabilities); in sendNetworkCapabilities()
DApnContext.java461 nr.networkCapabilities.hasCapability( in hasRestrictedRequests()
465 if (!nr.networkCapabilities.hasCapability( in hasRestrictedRequests()
545 NetworkCapabilities nc = nr.networkCapabilities; in getApnTypeFromNetworkRequest()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DNetworkNotificationManagerTest.java97 mWifiNai.networkCapabilities = WIFI_CAPABILITIES; in setUp()
99 mCellNai.networkCapabilities = CELL_CAPABILITIES; in setUp()
101 mVpnNai.networkCapabilities = VPN_CAPABILITIES; in setUp()
188 mWifiNai.networkCapabilities = new NetworkCapabilities(); in testNotificationsNotShownIfNoInternetCapability()
189 mWifiNai.networkCapabilities .addTransportType(NetworkCapabilities.TRANSPORT_WIFI); in testNotificationsNotShownIfNoInternetCapability()
/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/opt/telephony/src/java/com/android/internal/telephony/metrics/
DTelephonyEventBuilder.java224 NetworkCapabilitiesInfo networkCapabilities) { in setNetworkCapabilities() argument
226 mEvent.networkCapabilities = networkCapabilities; in setNetworkCapabilities()
/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()
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
DEthernetNetworkFactory.java213 NetworkSpecifier specifier = request.networkCapabilities.getNetworkSpecifier(); in networkForRequest()
221 if (n != null && n.satisfied(request.networkCapabilities)) { in networkForRequest()
226 if (n.satisfied(request.networkCapabilities) && n.mLinkUp) { in networkForRequest()

12