Home
last modified time | relevance | path

Searched refs:linkProperties (Results 1 – 25 of 45) sorted by relevance

12

/frameworks/base/core/java/android/net/
DNetworkState.java36 public final LinkProperties linkProperties; field in NetworkState
43 public NetworkState(NetworkInfo networkInfo, LinkProperties linkProperties, in NetworkState() argument
47 this.linkProperties = linkProperties; in NetworkState()
67 linkProperties = in.readParcelable(null); in NetworkState()
82 out.writeParcelable(linkProperties, flags); in writeToParcel()
DNetworkAgent.java393 public void sendLinkProperties(LinkProperties linkProperties) { in sendLinkProperties() argument
394 queueOrSendMessage(EVENT_NETWORK_PROPERTIES_CHANGED, new LinkProperties(linkProperties)); in sendLinkProperties()
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/
DTetheringInterfaceUtils.java43 final LinkProperties lp = ns.linkProperties; in getTetheringInterfaces()
71 && (ns.linkProperties != null) && (ns.networkCapabilities != null) in getIPv6Interface()
73 && ns.linkProperties.hasIpv6DnsServer() in getIPv6Interface()
75 && ns.linkProperties.hasGlobalIpv6Address() in getIPv6Interface()
80 ? getInterfaceForDestination(ns.linkProperties, Inet6Address.ANY) in getIPv6Interface()
DIPv6TetheringCoordinator.java148 new LinkProperties(ns.linkProperties), in setUpstreamNetworkState()
181 if (mUpstreamNetworkState == null || mUpstreamNetworkState.linkProperties == null) { in getInterfaceIPv6LinkProperties()
193 mUpstreamNetworkState.linkProperties); in getInterfaceIPv6LinkProperties()
304 ns.linkProperties); in toDebugString()
DUpstreamNetworkMonitor.java319 null, prev.linkProperties, newNc, network, null, null)); in handleNetCap()
327 if (prev == null || newLp.equals(prev.linkProperties)) { in handleLinkProp()
532 final LinkProperties lp = ns.linkProperties; in allLocalPrefixes()
560 return (ns != null) && (ns.networkCapabilities != null) && (ns.linkProperties != null) && in isNetworkUsableAndNotCellular()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DNat464XlatTest.java91 mNai.linkProperties = new LinkProperties();
92 mNai.linkProperties.setInterfaceName(BASE_IFACE);
107 mMisc.skip464xlat, nai.linkProperties.getNat64Prefix(),
108 nai.linkProperties.getLinkAddresses());
116 mMisc.skip464xlat, nai.linkProperties.getNat64Prefix(),
117 nai.linkProperties.getLinkAddresses());
136 LinkProperties oldLp = new LinkProperties(mNai.linkProperties);
142 mNai.linkProperties.setNat64Prefix(new IpPrefix("2001:db8:0:64::/96"));
146 mNai.linkProperties.addLinkAddress(new LinkAddress("fc00::1/64"));
150 mNai.linkProperties.addLinkAddress(new LinkAddress("2001:db8::1/64"));
[all …]
DIpConnectivityMetricsTest.java589 nai.linkProperties = new LinkProperties(); in makeNai()
596 nai.linkProperties.addLinkAddress(new LinkAddress("192.0.2.12/24")); in makeNai()
597 nai.linkProperties.addRoute(new RouteInfo(new IpPrefix("0.0.0.0/0"))); in makeNai()
600 nai.linkProperties.addLinkAddress(new LinkAddress("2001:db8:dead:beef:f00::a0/64")); in makeNai()
601 nai.linkProperties.addRoute(new RouteInfo(new IpPrefix("::/0"))); in makeNai()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DDataConnectionTest.java353 LinkProperties linkProperties) in setLinkProperties() argument
360 return (SetupResult) method.invoke(mDc, response, linkProperties); in setLinkProperties()
672 LinkProperties linkProperties = new LinkProperties(); in testSetLinkProperties() local
673 assertEquals(SetupResult.SUCCESS, setLinkProperties(response, linkProperties)); in testSetLinkProperties()
674 logd(linkProperties.toString()); in testSetLinkProperties()
675 assertEquals(response.getInterfaceName(), linkProperties.getInterfaceName()); in testSetLinkProperties()
676 assertEquals(response.getAddresses().size(), linkProperties.getAddresses().size()); in testSetLinkProperties()
679 NetworkUtils.numericToInetAddress(linkProperties.getLinkAddresses().get(i) in testSetLinkProperties()
683 assertEquals(response.getDnsAddresses().size(), linkProperties.getDnsServers().size()); in testSetLinkProperties()
687 linkProperties.getDnsServers().get(i).getHostAddress())); in testSetLinkProperties()
[all …]
/frameworks/base/telephony/java/android/telephony/data/
DDataService.java163 @Nullable LinkProperties linkProperties, in setupDataCall() argument
280 public final LinkProperties linkProperties; field in DataService.SetupDataCallRequest
283 boolean allowRoaming, int reason, LinkProperties linkProperties, in SetupDataCallRequest() argument
289 this.linkProperties = linkProperties; in SetupDataCallRequest()
380 setupDataCallRequest.linkProperties, in handleMessage()
507 LinkProperties linkProperties, IDataServiceCallback callback) { in setupDataCall() argument
510 allowRoaming, reason, linkProperties, callback)) in setupDataCall()
DIDataService.aidl31 boolean allowRoaming, int reason, in LinkProperties linkProperties, in setupDataCall() argument
/frameworks/base/services/core/java/com/android/server/connectivity/
DNat464Xlat.java113 LinkProperties lp = nai.linkProperties; in requiresClat()
132 LinkProperties lp = nai.linkProperties; in shouldStartClat()
230 if (mNetwork.linkProperties == null) { in start()
235 String baseIface = mNetwork.linkProperties.getInterfaceName(); in start()
268 LinkProperties lp = new LinkProperties(mNetwork.linkProperties); in stop()
406 LinkProperties lp = new LinkProperties(mNetwork.linkProperties); in handleInterfaceLinkStateChanged()
DNetworkAgentInfo.java124 public LinkProperties linkProperties; field in NetworkAgentInfo
266 linkProperties = lp; in NetworkAgentInfo()
524 new LinkProperties(linkProperties), in getNetworkState()
624 + "lp{" + linkProperties + "} " in toString()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DOsuNetworkConnection.java256 public void onLinkPropertiesChanged(Network network, LinkProperties linkProperties) { in onLinkPropertiesChanged() argument
259 + " isProvisioned?" + linkProperties.isProvisioned()); in onLinkPropertiesChanged()
265 if (linkProperties.isProvisioned()) { in onLinkPropertiesChanged()
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
DEthernetNetworkFactory.java452 void onIpLayerStarted(LinkProperties linkProperties) { in onIpLayerStarted() argument
458 mLinkProperties = linkProperties; in onIpLayerStarted()
477 void onIpLayerStopped(LinkProperties linkProperties) { in onIpLayerStopped() argument
488 void updateLinkProperties(LinkProperties linkProperties) { in updateLinkProperties() argument
489 mLinkProperties = linkProperties; in updateLinkProperties()
491 mNetworkAgent.sendLinkProperties(linkProperties); in updateLinkProperties()
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/
DUpstreamNetworkMonitorTest.java432 final LinkProperties wifiLp = wifiAgent.linkProperties; in testLocalPrefixes()
459 final LinkProperties cellLp = cellAgent.linkProperties; in testLocalPrefixes()
482 final LinkProperties dunLp = dunAgent.linkProperties; in testLocalPrefixes()
624 defaultNetwork.networkId, defaultNetwork.linkProperties); in makeDefaultNetwork()
709 public final LinkProperties linkProperties; field in UpstreamNetworkMonitorTest.TestNetworkAgent
718 linkProperties = new LinkProperties(); in TestNetworkAgent()
725 cb.onLinkPropertiesChanged(networkId, copy(linkProperties)); in fakeConnect()
737 cb.onLinkPropertiesChanged(networkId, copy(linkProperties)); in sendLinkProperties()
/frameworks/base/telephony/java/android/telephony/
DPreciseDataConnectionState.java66 LinkProperties linkProperties, in PreciseDataConnectionState() argument
72 mLinkProperties = linkProperties; in PreciseDataConnectionState()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
DWifiAwareDataPathStateManager.java567 LinkProperties linkProperties = new LinkProperties(); in onDataPathConfirm() local
644 networkInfo, networkCapabilities, linkProperties)) { in onDataPathConfirm()
652 networkCapabilities, linkProperties, NETWORK_FACTORY_SCORE_AVAIL, in onDataPathConfirm()
655 handleAddressValidation(nnri, linkProperties, networkInfo, ndpId, in onDataPathConfirm()
672 LinkProperties linkProperties, NetworkInfo networkInfo, int ndpId, in handleAddressValidation() argument
674 if (mNiWrapper.isAddressUsable(linkProperties)) { in handleAddressValidation()
692 handleAddressValidation(nnri, linkProperties, networkInfo, ndpId, isOutOfBand); in handleAddressValidation()
1487 LinkProperties linkProperties) { in configureAgentProperties() argument
1532 linkProperties.setInterfaceName(nnri.interfaceName); in configureAgentProperties()
1533 linkProperties.addLinkAddress(new LinkAddress(linkLocal, 64)); in configureAgentProperties()
[all …]
/frameworks/base/telephony/java/com/android/internal/telephony/
DITelephonyRegistry.aidl57 String apn, String apnType, in LinkProperties linkProperties, in notifyDataConnection() argument
61 String apn, String apnType, in LinkProperties linkProperties, in notifyDataConnectionForSubscriber() argument
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java1300 if (state == null || state.networkInfo == null || state.linkProperties == null) return; in filterNetworkStateForUid()
1302 if (isNetworkWithLinkPropertiesBlocked(state.linkProperties, uid, ignoreBlocked)) { in filterNetworkStateForUid()
1363 && isNetworkWithLinkPropertiesBlocked(nai.linkProperties, uid, ignoreBlocked)) { in getActiveNetworkForUidInternal()
1435 if (!isNetworkWithLinkPropertiesBlocked(state.linkProperties, uid, false)) { in getNetworkForType()
1521 return state.linkProperties; in getActiveLinkProperties()
1530 return new LinkProperties(nai.linkProperties); in getLinkPropertiesForType()
1548 return new LinkProperties(nai.linkProperties); in getLinkProperties()
1723 lp = nai.linkProperties; in requestRouteToHostAddress()
2142 final String iface = networkAgent.linkProperties.getInterfaceName(); in setupDataActivityTracking()
2178 final String iface = networkAgent.linkProperties.getInterfaceName(); in removeDataActivityTracking()
[all …]
DTelephonyRegistry.java1413 LinkProperties linkProperties, in notifyDataConnection() argument
1418 isDataAllowed, apn, apnType, linkProperties, in notifyDataConnection()
1425 LinkProperties linkProperties, NetworkCapabilities networkCapabilities, in notifyDataConnectionForSubscriber() argument
1470 linkProperties, DataFailCause.NONE); in notifyDataConnectionForSubscriber()
1486 broadcastDataConnectionStateChanged(state, isDataAllowed, apn, apnType, linkProperties, in notifyDataConnectionForSubscriber()
1489 linkProperties, DataFailCause.NONE); in notifyDataConnectionForSubscriber()
2127 String apnType, LinkProperties linkProperties, in broadcastDataConnectionStateChanged() argument
2139 if (linkProperties != null) { in broadcastDataConnectionStateChanged()
2140 intent.putExtra(PhoneConstants.DATA_LINK_PROPERTIES_KEY, linkProperties); in broadcastDataConnectionStateChanged()
2141 String iface = linkProperties.getInterfaceName(); in broadcastDataConnectionStateChanged()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DCellularDataService.java129 boolean allowRoaming, int reason, LinkProperties linkProperties, in setupDataCall() argument
142 reason, linkProperties, message); in setupDataCall()
DDataConnection.java662 LinkProperties linkProperties = null; in connect() local
680 linkProperties = dc.getLinkProperties(); in connect()
686 if (linkProperties == null) { in connect()
701 linkProperties, in connect() local
1328 LinkProperties linkProperties) { in setLinkProperties() argument
1340 linkProperties.clear(); in setLinkProperties()
1345 linkProperties.setInterfaceName(response.getInterfaceName()); in setLinkProperties()
1355 linkProperties.addLinkAddress(la); in setLinkProperties()
1367 linkProperties.addDnsServer(dns); in setLinkProperties()
1381 linkProperties.addDnsServer(ia); in setLinkProperties()
[all …]
DDcNetworkAgent.java213 public synchronized void sendLinkProperties(LinkProperties linkProperties, in sendLinkProperties() argument
223 sendLinkProperties(linkProperties); in sendLinkProperties()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DDefaultPhoneNotifier.java178 LinkProperties linkProperties = null; in doNotifyDataConnection() local
183 linkProperties = sender.getLinkProperties(apnType); in doNotifyDataConnection()
196 linkProperties, in doNotifyDataConnection()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/
DTelephonyRegistryMock.java312 String apn, String apnType, LinkProperties linkProperties, in notifyDataConnection() argument
320 LinkProperties linkProperties, NetworkCapabilities networkCapabilities, in notifyDataConnectionForSubscriber() argument

12