Home
last modified time | relevance | path

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

123

/packages/modules/Connectivity/framework/src/android/net/
DNetworkState.java39 public final LinkProperties linkProperties; field in NetworkState
48 linkProperties = null; in NetworkState()
55 public NetworkState(int legacyNetworkType, @NonNull LinkProperties linkProperties, in NetworkState() argument
58 this(legacyNetworkType, new NetworkInfo(legacyNetworkType, 0, null, null), linkProperties, in NetworkState()
63 public NetworkState(@NonNull NetworkInfo networkInfo, @NonNull LinkProperties linkProperties, in NetworkState() argument
66 this(networkInfo.getType(), networkInfo, linkProperties, in NetworkState()
71 @NonNull LinkProperties linkProperties, in NetworkState() argument
75 this.linkProperties = linkProperties; in NetworkState()
95 linkProperties = in.readParcelable(null); in NetworkState()
110 out.writeParcelable(linkProperties, flags); in writeToParcel()
DConnectivityDiagnosticsManager.java249 @NonNull LinkProperties linkProperties, in ConnectivityReport() argument
254 mLinkProperties = new LinkProperties(linkProperties); in ConnectivityReport()
470 @NonNull LinkProperties linkProperties, in DataStallReport() argument
476 mLinkProperties = new LinkProperties(linkProperties); in DataStallReport()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DNat464XlatTest.java110 mNai.linkProperties = new LinkProperties();
111 mNai.linkProperties.setInterfaceName(BASE_IFACE);
130 mAgentConfig.skip464xlat, nai.linkProperties.getNat64Prefix(),
131 nai.linkProperties.getLinkAddresses());
140 mAgentConfig.skip464xlat, nai.linkProperties.getNat64Prefix(),
141 nai.linkProperties.getLinkAddresses());
160 LinkProperties oldLp = new LinkProperties(mNai.linkProperties);
166 mNai.linkProperties.setNat64Prefix(new IpPrefix(OTHER_NAT64_PREFIX));
170 mNai.linkProperties.addLinkAddress(new LinkAddress("fc00::1/64"));
174 mNai.linkProperties.addLinkAddress(new LinkAddress("2001:db8::1/64"));
[all …]
DIpConnectivityMetricsTest.java143 final LinkProperties lp = (nai != null) ? nai.linkProperties : null; in logDefaultNetworkEvent()
148 final LinkProperties prevLp = (oldNai != null) ? oldNai.linkProperties : null; in logDefaultNetworkEvent()
618 nai.linkProperties = new LinkProperties(); in makeNai()
625 nai.linkProperties.addLinkAddress(new LinkAddress("192.0.2.12/24")); in makeNai()
626 nai.linkProperties.addRoute(new RouteInfo(new IpPrefix("0.0.0.0/0"))); in makeNai()
629 nai.linkProperties.addLinkAddress(new LinkAddress("2001:db8:dead:beef:f00::a0/64")); in makeNai()
630 nai.linkProperties.addRoute(new RouteInfo(new IpPrefix("::/0"))); in makeNai()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DUpstreamNetworkState.java31 public final LinkProperties linkProperties; field in UpstreamNetworkState
38 public UpstreamNetworkState(LinkProperties linkProperties, in UpstreamNetworkState() argument
40 this.linkProperties = linkProperties; in UpstreamNetworkState()
51 linkProperties == null ? "null" : linkProperties); in toString()
DTetheringInterfaceUtils.java47 final LinkProperties lp = ns.linkProperties; in getTetheringInterfaces()
75 && (ns.linkProperties != null) && (ns.networkCapabilities != null) in getIPv6Interface()
77 && ns.linkProperties.hasIpv6DnsServer() in getIPv6Interface()
79 && ns.linkProperties.hasGlobalIpv6Address() in getIPv6Interface()
84 ? getInterfaceForDestination(ns.linkProperties, IN6ADDR_ANY) in getIPv6Interface()
DIPv6TetheringCoordinator.java153 new LinkProperties(ns.linkProperties), in setUpstreamNetworkState()
196 if (mUpstreamNetworkState == null || mUpstreamNetworkState.linkProperties == null) { in getInterfaceIPv6LinkProperties()
208 mUpstreamNetworkState.linkProperties); in getInterfaceIPv6LinkProperties()
/packages/modules/Connectivity/tests/common/java/android/net/
DConnectivityDiagnosticsManagerTest.java95 final LinkProperties linkProperties = new LinkProperties(); in createSampleConnectivityReport() local
96 linkProperties.setInterfaceName(INTERFACE_NAME); in createSampleConnectivityReport()
105 new Network(NET_ID), TIMESTAMP, linkProperties, networkCapabilities, bundle); in createSampleConnectivityReport()
157 final LinkProperties linkProperties = sampleReport.getLinkProperties(); in testConnectivityReportEquals() local
182 linkProperties, in testConnectivityReportEquals()
209 final LinkProperties linkProperties = new LinkProperties(); in createSampleDataStallReport() local
210 linkProperties.setInterfaceName(INTERFACE_NAME); in createSampleDataStallReport()
222 linkProperties, in createSampleDataStallReport()
244 final LinkProperties linkProperties = sampleReport.getLinkProperties(); in testDataStallReportEquals() local
281 linkProperties, in testDataStallReportEquals()
DLinkPropertiesTest.java1191 final LinkProperties linkProperties = new LinkProperties(); in makeIpv4LinkProperties() local
1192 linkProperties.setInterfaceName(NAME); in makeIpv4LinkProperties()
1193 linkProperties.addLinkAddress(LINKADDRV4); in makeIpv4LinkProperties()
1194 linkProperties.addDnsServer(DNS1); in makeIpv4LinkProperties()
1195 linkProperties.addRoute(new RouteInfo(GATEWAY1)); in makeIpv4LinkProperties()
1196 linkProperties.addRoute(new RouteInfo(GATEWAY2)); in makeIpv4LinkProperties()
1197 return linkProperties; in makeIpv4LinkProperties()
1201 final LinkProperties linkProperties = new LinkProperties(); in makeIpv6LinkProperties() local
1202 linkProperties.setInterfaceName(NAME); in makeIpv6LinkProperties()
1203 linkProperties.addLinkAddress(LINKADDRV6); in makeIpv6LinkProperties()
[all …]
/packages/services/Iwlan/src/com/google/android/iwlan/
DIwlanDataService.java136 public void onLinkPropertiesChanged(Network network, LinkProperties linkProperties) { in onLinkPropertiesChanged() argument
137 Log.d(TAG, "onLinkPropertiesChanged: " + linkProperties); in onLinkPropertiesChanged()
138 if (isLinkProtocolTypeChanged(linkProperties)) { in onLinkPropertiesChanged()
341 public void onOpened(String apnName, TunnelLinkProperties linkProperties) { in onOpened() argument
344 "Tunnel opened!. APN: " + apnName + "linkproperties: " + linkProperties); in onOpened()
349 tunnelState.setTunnelLinkProperties(linkProperties); in onOpened()
800 @Nullable LinkProperties linkProperties, in setupDataCall() argument
820 + linkProperties in setupDataCall()
828 || (linkProperties == null && reason == DataService.REQUEST_REASON_HANDOVER)) { in setupDataCall()
876 for (LinkAddress lAddr : linkProperties.getLinkAddresses()) { in setupDataCall()
[all …]
DIwlanHelper.java102 LinkProperties linkProperties = connectivityManager.getLinkProperties(network); in getAddressesForNetwork() local
103 if (linkProperties != null) { in getAddressesForNetwork()
104 for (LinkAddress laddr : linkProperties.getLinkAddresses()) { in getAddressesForNetwork()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTestConnectivityManager.java161 defaultNetwork.networkId, defaultNetwork.linkProperties)); in sendDefaultNetworkCallbacks()
301 public final LinkProperties linkProperties; field in TestConnectivityManager.TestNetworkAgent
309 linkProperties = new LinkProperties(); in TestNetworkAgent()
317 linkProperties = state.linkProperties; in TestNetworkAgent()
368 nri.handler.post(() -> cb.onLinkPropertiesChanged(networkId, copy(linkProperties))); in fakeConnect()
401 cb.onLinkPropertiesChanged(networkId, copy(linkProperties)); in sendLinkProperties()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/details/
DWifiIpAddressPreferenceController.java45 LinkProperties linkProperties = getWifiInfoProvider().getLinkProperties(); in updateState() local
47 if (linkProperties != null) { in updateState()
48 for (LinkAddress addr : linkProperties.getLinkAddresses()) { in updateState()
DWifiDnsPreferenceController.java45 LinkProperties linkProperties = getWifiInfoProvider().getLinkProperties(); in updateState() local
47 if (linkProperties != null) { in updateState()
48 dnsServers = linkProperties.getDnsServers().stream() in updateState()
DWifiGatewayPreferenceController.java45 LinkProperties linkProperties = getWifiInfoProvider().getLinkProperties(); in updateState() local
47 if (linkProperties != null) { in updateState()
48 for (RouteInfo routeInfo : linkProperties.getRoutes()) { in updateState()
DWifiSubnetPreferenceController.java46 LinkProperties linkProperties = getWifiInfoProvider().getLinkProperties(); in updateState() local
48 if (linkProperties != null) { in updateState()
49 for (LinkAddress addr : linkProperties.getLinkAddresses()) { in updateState()
DWifiIpv6AddressPreferenceController.java49 LinkProperties linkProperties = getWifiInfoProvider().getLinkProperties(); in updateState() local
51 if (linkProperties != null) { in updateState()
52 for (LinkAddress addr : linkProperties.getLinkAddresses()) { in updateState()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DNat464Xlat.java127 LinkProperties lp = nai.linkProperties; in requiresClat()
149 LinkProperties lp = nai.linkProperties; in shouldStartClat()
241 String baseIface = mNetwork.linkProperties.getInterfaceName(); in start()
274 LinkProperties lp = new LinkProperties(mNetwork.linkProperties); in stop()
477 LinkProperties lp = new LinkProperties(mNetwork.linkProperties); in handleInterfaceLinkStateChanged()
DNetworkNotificationManager.java166 if (nai.linkProperties != null && nai.linkProperties.getCaptivePortalData() != null in showNotification()
167 && !TextUtils.isEmpty(nai.linkProperties.getCaptivePortalData() in showNotification()
169 name = nai.linkProperties.getCaptivePortalData().getVenueFriendlyName(); in showNotification()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/net/
DIkeDefaultNetworkCallbackTest.java131 LinkProperties linkProperties = new LinkProperties(); in getLinkPropertiesWithAddresses() local
135 linkProperties.addLinkAddress(new LinkAddress(address, prefixLen)); in getLinkPropertiesWithAddresses()
137 return linkProperties; in getLinkPropertiesWithAddresses()
/packages/apps/Bluetooth/src/com/android/bluetooth/pan/
DBluetoothTetheringNetworkFactory.java154 final LinkProperties linkProperties = ipcCallback.waitForProvisioning(); in startNetwork()
155 if (linkProperties == null) { in startNetwork()
175 mNetworkCapabilities, linkProperties, NETWORK_SCORE, in startNetwork()
/packages/modules/Connectivity/tests/integration/util/com/android/server/
DNetworkAgentWrapper.java84 public NetworkAgentWrapper(int transport, LinkProperties linkProperties, in NetworkAgentWrapper() argument
127 mNetworkAgent = makeNetworkAgent(linkProperties, mNetworkAgentConfig); in NetworkAgentWrapper()
130 protected InstrumentedNetworkAgent makeNetworkAgent(LinkProperties linkProperties, in makeNetworkAgent() argument
132 return new InstrumentedNetworkAgent(this, linkProperties, nac); in makeNetworkAgent()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
DOsuNetworkConnection.java259 public void onLinkPropertiesChanged(Network network, LinkProperties linkProperties) { in onLinkPropertiesChanged() argument
262 + " isProvisioned?" + linkProperties.isProvisioned()); in onLinkPropertiesChanged()
268 if (linkProperties.isProvisioned()) { in onLinkPropertiesChanged()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/net/
DIkeNetworkCallbackBase.java57 public void onLinkPropertiesChanged(Network network, LinkProperties linkProperties) { in onLinkPropertiesChanged() argument
66 for (LinkAddress linkAddress : linkProperties.getAllLinkAddresses()) { in onLinkPropertiesChanged()
/packages/modules/Wifi/service/java/com/android/server/wifi/aware/
DWifiAwareDataPathStateManager.java706 LinkProperties linkProperties = new LinkProperties(); in handleAddressValidation() local
709 ncBuilder, linkProperties) in handleAddressValidation()
710 && mNiWrapper.isAddressUsable(linkProperties))) { in handleAddressValidation()
736 AGENT_TAG_PREFIX + ndpInfo.ndpId, ncBuilder.build(), linkProperties, in handleAddressValidation()
1619 NetworkCapabilities.Builder ncBuilder, LinkProperties linkProperties) { in configureAgentProperties() argument
1656 linkProperties.setInterfaceName(nnri.interfaceName); in configureAgentProperties()
1657 linkProperties.addLinkAddress(new LinkAddress(linkLocal, 64)); in configureAgentProperties()
1658 linkProperties.addRoute( in configureAgentProperties()
1669 public boolean isAddressUsable(LinkProperties linkProperties) { in isAddressUsable() argument
1670 InetAddress address = linkProperties.getLinkAddresses().get(0).getAddress(); in isAddressUsable()

123