/packages/modules/Connectivity/framework/src/android/net/ |
D | NetworkState.java | 39 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()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/ |
D | Nat464XlatTest.java | 122 mNai.linkProperties = new LinkProperties(); 123 mNai.linkProperties.setInterfaceName(BASE_IFACE); 142 mAgentConfig.skip464xlat, nai.linkProperties.getNat64Prefix(), 143 nai.linkProperties.getLinkAddresses()); 152 mAgentConfig.skip464xlat, nai.linkProperties.getNat64Prefix(), 153 nai.linkProperties.getLinkAddresses()); 172 LinkProperties oldLp = new LinkProperties(mNai.linkProperties); 178 mNai.linkProperties.setNat64Prefix(new IpPrefix(OTHER_NAT64_PREFIX)); 182 mNai.linkProperties.addLinkAddress(new LinkAddress("fc00::1/64")); 186 mNai.linkProperties.addLinkAddress(new LinkAddress("2001:db8::1/64")); [all …]
|
D | IpConnectivityMetricsTest.java | 145 final LinkProperties lp = (nai != null) ? nai.linkProperties : null; in logDefaultNetworkEvent() 149 final LinkProperties prevLp = (oldNai != null) ? oldNai.linkProperties : null; in logDefaultNetworkEvent() 618 nai.linkProperties = new LinkProperties(); in makeNai() 628 nai.linkProperties.addLinkAddress(new LinkAddress("192.0.2.12/24")); in makeNai() 629 nai.linkProperties.addRoute(new RouteInfo(new IpPrefix("0.0.0.0/0"))); in makeNai() 632 nai.linkProperties.addLinkAddress(new LinkAddress("2001:db8:dead:beef:f00::a0/64")); in makeNai() 633 nai.linkProperties.addRoute(new RouteInfo(new IpPrefix("::/0"))); in makeNai()
|
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/ |
D | UpstreamNetworkState.java | 31 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()
|
D | TetheringInterfaceUtils.java | 51 final LinkProperties lp = ns.linkProperties; in getTetheringInterfaces() 79 && (ns.linkProperties != null) && (ns.networkCapabilities != null) in getIPv6Interface() 81 && ns.linkProperties.hasIpv6DnsServer() in getIPv6Interface() 83 && ns.linkProperties.hasGlobalIpv6Address() in getIPv6Interface() 88 ? getInterfaceForDestination(ns.linkProperties, IN6ADDR_ANY) in getIPv6Interface()
|
/packages/modules/Connectivity/tests/common/java/android/net/ |
D | ConnectivityDiagnosticsManagerTest.java | 95 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()
|
/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/ |
D | MdnsSocketProvider.java | 278 LinkProperties linkProperties; in addOrUpdateInterfaceAddress() local 279 linkProperties = mIfaceIdxToLinkProperties.get(ifaceIdx); in addOrUpdateInterfaceAddress() 280 if (linkProperties == null) { in addOrUpdateInterfaceAddress() 281 linkProperties = new LinkProperties(); in addOrUpdateInterfaceAddress() 282 mIfaceIdxToLinkProperties.put(ifaceIdx, linkProperties); in addOrUpdateInterfaceAddress() 284 boolean updated = linkProperties.addLinkAddress(newAddress); in addOrUpdateInterfaceAddress() 289 maybeUpdateTetheringSocketAddress(ifaceIdx, linkProperties.getLinkAddresses()); in addOrUpdateInterfaceAddress() 294 LinkProperties linkProperties; in deleteInterfaceAddress() local 296 linkProperties = mIfaceIdxToLinkProperties.get(ifaceIdx); in deleteInterfaceAddress() 297 if (linkProperties != null) { in deleteInterfaceAddress() [all …]
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/net/ |
D | IkeConnectionController.java | 470 LinkProperties linkProperties = mConnectivityManager.getLinkProperties(mNetwork); in setUp() local 475 if (linkProperties == null || mNc == null) { in setUp() 484 selectAndSetRemoteAddress(linkProperties); in setUp() 511 this, mNetwork, mLocalAddress, linkProperties, mNc); in setUp() 518 this, mNetwork, mLocalAddress, linkProperties, mNc); in setUp() 623 final LinkProperties linkProperties = mConnectivityManager.getLinkProperties(network); in onNetworkSetByUser() local 627 if (linkProperties == null || networkCapabilities == null) { in onNetworkSetByUser() 652 mNetworkCallback.setNetwork(network, linkProperties, networkCapabilities); in onNetworkSetByUser() 654 network, linkProperties, networkCapabilities, false /* skipIfSameNetwork */); in onNetworkSetByUser() 910 private static boolean hasLocalIpV4Address(LinkProperties linkProperties) { in hasLocalIpV4Address() argument [all …]
|
D | IkeSpecificNetworkCallback.java | 64 @NonNull Network network, @NonNull LinkProperties linkProperties) { in onLinkPropertiesChanged() argument 71 mCurrLp = linkProperties; in onLinkPropertiesChanged() 72 if (isCurrentAddressLost(linkProperties)) { in onLinkPropertiesChanged()
|
D | IkeDefaultNetworkCallback.java | 101 @NonNull Network network, @NonNull LinkProperties linkProperties) { in onLinkPropertiesChanged() argument 113 mCurrLp = linkProperties; in onLinkPropertiesChanged() 118 } else if (isCurrentAddressLost(linkProperties)) { in onLinkPropertiesChanged()
|
/packages/services/Car/tests/RailwayReferenceApp/src/com/google/android/car/networking/railway/ |
D | CurrentEthernetNetworksViewModel.java | 106 LinkProperties linkProperties = mConnectivityManager.getLinkProperties(network); in getCurrentEthernetNetworksText() local 110 if (linkProperties != null) { in getCurrentEthernetNetworksText() 112 sb.append(linkProperties.getInterfaceName()); in getCurrentEthernetNetworksText() 116 for (LinkAddress address : linkProperties.getLinkAddresses()) { in getCurrentEthernetNetworksText() 169 LinkProperties linkProperties) { in onLinkPropertiesChanged() argument 170 super.onLinkPropertiesChanged(network, linkProperties); in onLinkPropertiesChanged()
|
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | TestConnectivityManager.java | 157 defaultNetwork.networkId, defaultNetwork.linkProperties)); in sendDefaultNetworkCallbacks() 193 cb.onLinkPropertiesChanged(agent.networkId, agent.linkProperties); in sendLinkProperties() 312 public final LinkProperties linkProperties; field in TestConnectivityManager.TestNetworkAgent 320 linkProperties = new LinkProperties(); in TestNetworkAgent() 328 linkProperties = state.linkProperties; in TestNetworkAgent() 379 nri.handler.post(() -> cb.onLinkPropertiesChanged(networkId, copy(linkProperties))); in fakeConnect() 412 cb.onLinkPropertiesChanged(networkId, copy(linkProperties)); in sendLinkProperties()
|
D | UpstreamNetworkMonitorTest.java | 471 final LinkProperties wifiLp = wifiAgent.linkProperties; in testLocalPrefixes() 499 final LinkProperties cellLp = cellAgent.linkProperties; in testLocalPrefixes() 521 final LinkProperties dunLp = dunAgent.linkProperties; in testLocalPrefixes() 599 final LinkProperties cellLp = cellAgent.linkProperties; in testLinkAddressChanged() 619 assertEquals(cellAgent.linkProperties, mUNM.getCurrentPreferredUpstream().linkProperties); in testLinkAddressChanged() 626 assertEquals(agent.linkProperties, mUNM.getCurrentPreferredUpstream().linkProperties); in verifyCurrentLinkProperties()
|
/packages/services/Iwlan/src/com/google/android/iwlan/ |
D | IwlanDataService.java | 165 @NonNull Network network, @NonNull LinkProperties linkProperties) { in onLinkPropertiesChanged() argument 166 Log.d(TAG, "onLinkPropertiesChanged: " + linkProperties); in onLinkPropertiesChanged() 173 if (!linkProperties.equals(sLinkProperties)) { in onLinkPropertiesChanged() 176 sLinkProperties = linkProperties; in onLinkPropertiesChanged() 177 dp.updateNetwork(network, linkProperties); in onLinkPropertiesChanged() 404 public void onOpened(String apnName, TunnelLinkProperties linkProperties) { in onOpened() argument 407 "Tunnel opened!. APN: " + apnName + "linkproperties: " + linkProperties); in onOpened() 415 linkProperties, in onOpened() 754 @Nullable LinkProperties linkProperties, in setupDataCall() argument 775 + linkProperties in setupDataCall() [all …]
|
D | IwlanHelper.java | 119 LinkProperties linkProperties = connectivityManager.getLinkProperties(network); in getAllAddressesForNetwork() local 120 if (linkProperties != null) { in getAllAddressesForNetwork() 121 for (LinkAddress linkAddr : linkProperties.getAllLinkAddresses()) { in getAllAddressesForNetwork() 128 if (linkProperties.getNat64Prefix() != null) { in getAllAddressesForNetwork() 129 mNat64Prefix = linkProperties.getNat64Prefix(); in getAllAddressesForNetwork()
|
/packages/modules/Connectivity/service/src/com/android/server/connectivity/ |
D | DscpPolicyTracker.java | 151 String iface = nai.linkProperties.getInterfaceName(); in getIfaceIndex() 233 String iface = nai.linkProperties.getInterfaceName(); in addDscpPolicy() 277 if (!mAttachedIfaces.contains(nai.linkProperties.getInterfaceName())) { in removeDscpPolicy() 297 detachProgram(nai.linkProperties.getInterfaceName()); in removeDscpPolicy() 305 if (!mAttachedIfaces.contains(nai.linkProperties.getInterfaceName())) { in removeAllDscpPolicies() 321 detachProgram(nai.linkProperties.getInterfaceName()); in removeAllDscpPolicies()
|
D | Nat464Xlat.java | 139 LinkProperties lp = nai.linkProperties; in requiresClat() 161 LinkProperties lp = nai.linkProperties; in shouldStartClat() 261 String baseIface = mNetwork.linkProperties.getInterfaceName(); in start() 302 LinkProperties lp = new LinkProperties(mNetwork.linkProperties); in stop() 507 LinkProperties lp = new LinkProperties(mNetwork.linkProperties); in handleInterfaceLinkStateChanged()
|
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/details/ |
D | WifiIpAddressPreferenceController.java | 45 LinkProperties linkProperties = getWifiInfoProvider().getLinkProperties(); in updateState() local 47 if (linkProperties != null) { in updateState() 48 for (LinkAddress addr : linkProperties.getLinkAddresses()) { in updateState()
|
D | WifiDnsPreferenceController.java | 45 LinkProperties linkProperties = getWifiInfoProvider().getLinkProperties(); in updateState() local 47 if (linkProperties != null) { in updateState() 48 dnsServers = linkProperties.getDnsServers().stream() in updateState()
|
D | WifiGatewayPreferenceController.java | 45 LinkProperties linkProperties = getWifiInfoProvider().getLinkProperties(); in updateState() local 47 if (linkProperties != null) { in updateState() 48 for (RouteInfo routeInfo : linkProperties.getRoutes()) { in updateState()
|
D | WifiIpv6AddressPreferenceController.java | 49 LinkProperties linkProperties = getWifiInfoProvider().getLinkProperties(); in updateState() local 51 if (linkProperties != null) { in updateState() 52 for (LinkAddress addr : linkProperties.getLinkAddresses()) { in updateState()
|
D | WifiSubnetPreferenceController.java | 46 LinkProperties linkProperties = getWifiInfoProvider().getLinkProperties(); in updateState() local 48 if (linkProperties != null) { in updateState() 49 for (LinkAddress addr : linkProperties.getLinkAddresses()) { in updateState()
|
/packages/modules/Connectivity/tests/integration/util/com/android/server/ |
D | NetworkAgentWrapper.java | 107 public NetworkAgentWrapper(int transport, LinkProperties linkProperties, in NetworkAgentWrapper() argument 109 this(transport, linkProperties, ncTemplate, null /* provider */, in NetworkAgentWrapper() 113 public NetworkAgentWrapper(int transport, LinkProperties linkProperties, in NetworkAgentWrapper() argument 161 mNetworkAgent = makeNetworkAgent(linkProperties, mNetworkAgentConfig, provider); in NetworkAgentWrapper() 164 protected InstrumentedNetworkAgent makeNetworkAgent(LinkProperties linkProperties, in makeNetworkAgent() argument 166 return new InstrumentedNetworkAgent(this, linkProperties, nac, provider); in makeNetworkAgent()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/net/ |
D | IkeDefaultNetworkCallbackTest.java | 190 LinkProperties linkProperties = new LinkProperties(); in getLinkPropertiesWithAddresses() local 194 linkProperties.addLinkAddress(new LinkAddress(address, prefixLen)); in getLinkPropertiesWithAddresses() 196 return linkProperties; in getLinkPropertiesWithAddresses()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/ |
D | IkeSessionTestBase.java | 207 LinkProperties linkProperties = new LinkProperties(); in setupLocalAddressForNetwork() local 209 linkProperties.addLinkAddress(setupLocalAddressAndGetLinkAddress(network, addressV4)); in setupLocalAddressForNetwork() 212 linkProperties.addLinkAddress(setupLocalAddressAndGetLinkAddress(network, addressV6)); in setupLocalAddressForNetwork() 214 when(mMockConnectManager.getLinkProperties(eq(network))).thenReturn(linkProperties); in setupLocalAddressForNetwork()
|