Home
last modified time | relevance | path

Searched refs:linkAddress (Results 1 – 14 of 14) sorted by relevance

/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeConfigPayload.java690 public final LinkAddress linkAddress; field in IkeConfigPayload.ConfigAttributeIpv4Subnet
700 this.linkAddress = ipv4LinkAddress; in ConfigAttributeIpv4Subnet()
710 this.linkAddress = null; in ConfigAttributeIpv4Subnet()
719 linkAddress = null; in ConfigAttributeIpv4Subnet()
735 linkAddress = new LinkAddress(address, netmaskToPrefixLen((Inet4Address) netmask)); in ConfigAttributeIpv4Subnet()
749 if (linkAddress == null) { in encodeValueToByteBuffer()
753 byte[] netmaskBytes = prefixToNetmaskBytes(linkAddress.getPrefixLength()); in encodeValueToByteBuffer()
754 buffer.put(linkAddress.getAddress().getAddress()).put(netmaskBytes); in encodeValueToByteBuffer()
759 return linkAddress == null ? 0 : VALUE_LEN; in getValueLength()
769 return Objects.hash(super.hashCode(), linkAddress); in hashCode()
[all …]
/packages/modules/Connectivity/framework/src/android/net/
DLinkAddress.java356 LinkAddress linkAddress = (LinkAddress) obj; in equals() local
357 return this.address.equals(linkAddress.address) in equals()
358 && this.prefixLength == linkAddress.prefixLength in equals()
359 && this.flags == linkAddress.flags in equals()
360 && this.scope == linkAddress.scope in equals()
361 && this.deprecationTime == linkAddress.deprecationTime in equals()
362 && this.expirationTime == linkAddress.expirationTime; in equals()
DLinkProperties.java255 for (LinkAddress linkAddress : mLinkAddresses) { in getAddresses()
256 addresses.add(linkAddress.getAddress()); in getAddresses()
268 for (LinkAddress linkAddress : mLinkAddresses) { in getAllAddresses()
269 addresses.add(linkAddress.getAddress()); in getAllAddresses()
1678 for (LinkAddress linkAddress : mLinkAddresses) { in writeToParcel()
1679 dest.writeParcelable(linkAddress, flags); in writeToParcel()
/packages/modules/IPsec/src/java/android/net/ipsec/ike/
DChildSessionConfiguration.java112 mInternalAddressList.add(((ConfigAttributeIpv6Address) att).linkAddress); in ChildSessionConfiguration()
124 ipv4SubnetAttr.linkAddress.getAddress(), in ChildSessionConfiguration()
125 ipv4SubnetAttr.linkAddress.getPrefixLength())); in ChildSessionConfiguration()
131 ipV6SubnetAttr.linkAddress.getAddress(), in ChildSessionConfiguration()
132 ipV6SubnetAttr.linkAddress.getPrefixLength())); in ChildSessionConfiguration()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeConfigPayloadTest.java227 assertNull(((ConfigAttributeIpv6Address) att).linkAddress); in testDecodeConfigRequest()
401 assertEquals(expectedLinkAddress, attribute.linkAddress); in verifyEncodeIpv6RangeBaseAttribute()
606 assertEquals(IPV4_LINK_ADDRESS, attributeIp4Subnet.linkAddress); in testDecodeIpv4SubnetWithValue()
614 assertNull(attributeIp4Subnet.linkAddress); in testDecodeIpv4SubnetWithoutValue()
638 assertNull(attributeIp4Subnet.linkAddress); in testEncodeIpv4SubnetWithoutValue()
737 assertEquals(IPV6_LINK_ADDRESS, attributeIp6Address.linkAddress); in testDecodeIpv6AddressWithValue()
746 assertNull(attributeIp6Address.linkAddress); in testDecodeIpv6AddressWithoutValue()
801 assertEquals(IPV6_LINK_ADDRESS, attributeIp6Subnet.linkAddress); in testDecodeIpv6SubnetWithValue()
809 assertNull(attributeIp6Subnet.linkAddress); in testDecodeIpv6SubnetWithoutValue()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/net/
DIkeNetworkCallbackBase.java66 for (LinkAddress linkAddress : linkProperties.getAllLinkAddresses()) { in onLinkPropertiesChanged()
67 if (mCurrAddress.equals(linkAddress.getAddress())) { in onLinkPropertiesChanged()
/packages/modules/NetworkStack/tests/unit/src/android/net/testutils/
DTestableNetworkCallbackTest.kt182 val linkAddress = LinkAddress("fe80::ace:d00d/64") in <lambda>() constant
187 addLinkAddress(linkAddress) in <lambda>()
203 lp.linkAddresses.contains(linkAddress) && in <lambda>()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiBackupDataV1Parser.java613 LinkAddress linkAddress = new LinkAddress( in parseIpConfigurationFromXml() local
615 if (linkAddress.getAddress() instanceof Inet4Address) { in parseIpConfigurationFromXml()
616 builder.setIpAddress(linkAddress); in parseIpConfigurationFromXml()
618 Log.w(TAG, "Non-IPv4 address: " + linkAddress); in parseIpConfigurationFromXml()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DConnectivityListener.java308 for (LinkAddress linkAddress : linkProperties.getLinkAddresses()) { in formatIpAddresses()
312 sb.append(linkAddress.getAddress().getHostAddress()); in formatIpAddresses()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DNetdWrapper.java391 public void setInterfaceLinkAddress(String iface, LinkAddress linkAddress) { in setInterfaceLinkAddress() argument
393 ifcg.setLinkAddress(linkAddress); in setInterfaceLinkAddress()
DXmlUtil.java1031 LinkAddress linkAddress = new LinkAddress( in parseStaticIpConfigurationFromXml() local
1034 if (linkAddress.getAddress() instanceof Inet4Address) { in parseStaticIpConfigurationFromXml()
1035 builder.setIpAddress(linkAddress); in parseStaticIpConfigurationFromXml()
1037 Log.w(TAG, "Non-IPv4 address: " + linkAddress); in parseStaticIpConfigurationFromXml()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiConfigurationTestUtil.java223 int ipAssignmentType, int proxySettingType, String linkAddress, int linkPrefixLength, in generateIpConfig() argument
233 if (!TextUtils.isEmpty(linkAddress)) { in generateIpConfig()
236 InetAddresses.parseNumericAddress(linkAddress), linkPrefixLength); in generateIpConfig()
/packages/services/Iwlan/src/com/google/android/iwlan/
DIwlanDataService.java1227 for (LinkAddress linkAddress : linkProperties.getLinkAddresses()) { in isLinkProtocolTypeChanged()
1228 InetAddress inetaddr = linkAddress.getAddress(); in isLinkProtocolTypeChanged()
/packages/modules/NetworkStack/tests/unit/src/android/net/apf/
DApfTest.java1531 LinkAddress linkAddress = new LinkAddress(InetAddress.getByAddress(MOCK_IPV4_ADDR), 24); in testApfFilterArp() local
1533 assertTrue(lp.addLinkAddress(linkAddress)); in testApfFilterArp()