/aosp12/frameworks/libs/net/common/tests/unit/src/com/android/net/module/util/ |
H A D | Inet4AddressUtilsTest.java | 52 assertEquals(0, inet4AddressToIntHTL(ipv4Address("0.0.0.0"))); in testInet4AddressToIntHTL() 62 assertEquals(ipv4Address("0.0.0.0"), intToInet4AddressHTL(0)); in testIntToInet4AddressHTL() 72 assertEquals(0, inet4AddressToIntHTH(ipv4Address("0.0.0.0"))); in testInet4AddressToIntHTH() 123 final int addrInt = inet4AddressToIntHTH(ipv4Address(addr)); in checkAddressMasking() 137 assertEquals(8, getImplicitNetmask(ipv4Address("4.2.2.2"))); in testGetImplicitNetmask() 164 assertInvalidNetworkMask(ipv4Address("0.0.0.1")); in testNetmaskToPrefixLength() 165 assertInvalidNetworkMask(ipv4Address("255.255.255.253")); in testNetmaskToPrefixLength() 166 assertInvalidNetworkMask(ipv4Address("255.255.0.255")); in testNetmaskToPrefixLength() 191 getBroadcastAddress(ipv4Address("192.168.0.123"), 33); in testGetBroadcastAddress_PrefixTooLarge() 196 getBroadcastAddress(ipv4Address("192.168.0.123"), -1); in testGetBroadcastAddress_NegativePrefix() [all …]
|
H A D | StructTest.java | 745 @Field(order = 0, type = Type.Ipv4Address) public final Inet4Address ipv4Address; field in StructTest.IpAddressMessage 748 IpAddressMessage(final Inet4Address ipv4Address, final Inet6Address ipv6Address) { in IpAddressMessage() argument 749 this.ipv4Address = ipv4Address; in IpAddressMessage() 759 assertEquals(TEST_IPV4_ADDRESS, msg.ipv4Address); in testIpAddressType() 768 @Field(order = 0, type = Type.Ipv4Address) public byte[] ipv4Address; field in StructTest.WrongIpAddressType 795 @Field(order = 15, type = Type.Ipv4Address) public final Inet4Address ipv4Address; field in StructTest.FullTypeMessage 818 this.ipv4Address = ipv4Address; in FullTypeMessage() 872 assertEquals(TEST_IPV4_ADDRESS, msg.ipv4Address); in testStructClass_equals() 904 @Field(order = 15, type = Type.Ipv4Address) public final Inet4Address ipv4Address; field in StructTest.FullTypeMessageWithDupType 927 this.ipv4Address = ipv4Address; in FullTypeMessageWithDupType() [all …]
|
/aosp12/packages/modules/IPsec/src/java/android/net/ipsec/ike/ |
H A D | IkeIpv4AddrIdentification.java | 33 @NonNull public final Inet4Address ipv4Address; field in IkeIpv4AddrIdentification 45 ipv4Address = (Inet4Address) (Inet4Address.getByAddress(ipv4AddrBytes)); in IkeIpv4AddrIdentification() 58 ipv4Address = address; in IkeIpv4AddrIdentification() 82 result.putString(IP_ADDRESS_KEY, ipv4Address.getHostAddress()); in toPersistableBundle() 90 return Objects.hash(idType, ipv4Address); in hashCode() 99 return ipv4Address.equals(((IkeIpv4AddrIdentification) o).ipv4Address); in equals() 113 validateEndCertSanOrThrow(endCert, SAN_TYPE_IP_ADDRESS, ipv4Address.getHostAddress()); in validateEndCertIdOrThrow() 124 return ipv4Address.getAddress(); in getEncodedIdData()
|
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/wifi/details/ |
H A D | WifiIpAddressPreferenceController.java | 46 String ipv4Address = null; in updateState() local 50 ipv4Address = addr.getAddress().getHostAddress(); in updateState() 55 if (ipv4Address == null) { in updateState() 58 preference.setDetailText(ipv4Address); in updateState()
|
/aosp12/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/ |
H A D | IkeIdPayloadTest.java | 116 assertEquals(expectedAddr, ikeId.ipv4Address); in testDecodeIpv4AddrIdPayload() 210 Inet4Address ipv4Address = (Inet4Address) Inet4Address.getByName(IPV4_ADDR_STRING); in testConstructAndEncodeIpv4AddrIdPayload() local 211 IkeIdPayload payload = new IkeIdPayload(false, new IkeIpv4AddrIdentification(ipv4Address)); in testConstructAndEncodeIpv4AddrIdPayload() 293 Inet4Address ipv4Address = (Inet4Address) InetAddress.getByName(IPV4_ADDR_STRING); in testPersistableBundleEncodeDecodeIpv4AddressId() local 294 verifyPersistableBundleEncodeDecodeIsLossless(new IkeIpv4AddrIdentification(ipv4Address)); in testPersistableBundleEncodeDecodeIpv4AddressId()
|
/aosp12/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/ |
H A D | IkeConfigPayload.java | 555 public ConfigAttributeIpv4Address(Inet4Address ipv4Address) { in ConfigAttributeIpv4Address() argument 556 super(CONFIG_ATTR_INTERNAL_IP4_ADDRESS, ipv4Address); in ConfigAttributeIpv4Address() 620 public ConfigAttributeIpv4Dhcp(Inet4Address ipv4Address) { in ConfigAttributeIpv4Dhcp() argument 621 super(CONFIG_ATTR_INTERNAL_IP4_DHCP, ipv4Address); in ConfigAttributeIpv4Dhcp() 653 public ConfigAttributeIpv4Dns(Inet4Address ipv4Address) { in ConfigAttributeIpv4Dns() argument 654 super(CONFIG_ATTR_INTERNAL_IP4_DNS, ipv4Address); in ConfigAttributeIpv4Dns() 788 public ConfigAttributeIpv4Pcscf(Inet4Address ipv4Address) { in ConfigAttributeIpv4Pcscf() argument 789 super(CONFIG_ATTR_IP4_PCSCF, ipv4Address); in ConfigAttributeIpv4Pcscf()
|
/aosp12/frameworks/base/tests/vcn/java/android/net/vcn/persistablebundleutils/ |
H A D | IkeIdentificationUtilsTest.java | 54 final Inet4Address ipv4Address = (Inet4Address) InetAddress.getByName("192.0.2.100"); in testPersistableBundleEncodeDecodeIpv4AddressId() local 55 verifyPersistableBundleEncodeDecodeIsLossless(new IkeIpv4AddrIdentification(ipv4Address)); in testPersistableBundleEncodeDecodeIpv4AddressId()
|
H A D | TunnelModeChildSessionParamsUtilsTest.java | 101 final Inet4Address ipv4Address = in testSetConfigRequestsEncodeDecodeIsLossless() local 110 .addInternalAddressRequest(ipv4Address) in testSetConfigRequestsEncodeDecodeIsLossless()
|
H A D | IkeSessionParamsUtilsTest.java | 116 final Inet4Address ipv4Address = in testEncodeRecodeParamsWithConfigRequests() local 125 .addPcscfServerRequest(ipv4Address) in testEncodeRecodeParamsWithConfigRequests()
|
/aosp12/packages/modules/NetworkStack/src/android/net/apf/ |
H A D | ApfFilter.java | 1840 LinkAddress ipv4Address = null; in findIPv4LinkAddress() local 1845 if (ipv4Address != null && !ipv4Address.isSameAddressAs(address)) { in findIPv4LinkAddress() 1849 ipv4Address = address; in findIPv4LinkAddress() 1851 return ipv4Address; in findIPv4LinkAddress() 1856 final LinkAddress ipv4Address = findIPv4LinkAddress(lp); in setLinkProperties() local 1857 final byte[] addr = (ipv4Address != null) ? ipv4Address.getAddress().getAddress() : null; in setLinkProperties() 1858 final int prefix = (ipv4Address != null) ? ipv4Address.getPrefixLength() : 0; in setLinkProperties()
|
/aosp12/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
H A D | PrivateAddressCoordinatorTest.java | 518 private int getSubAddress(final byte... ipv4Address) { in getSubAddress() argument 519 assertEquals(4, ipv4Address.length); in getSubAddress() 521 int subnet = Byte.toUnsignedInt(ipv4Address[2]); in getSubAddress() 522 return (subnet << 8) + ipv4Address[3]; in getSubAddress()
|
H A D | TetheringTest.java | 2337 private void updateV4Upstream(final LinkAddress ipv4Address, final Network network, in updateV4Upstream() argument 2339 final UpstreamNetworkState upstream = buildV4UpstreamState(ipv4Address, network, iface, in updateV4Upstream() 2358 final String ipv4Address = ifaceConfigCaptor.getValue().ipv4Addr; in testHandleIpConflict() local 2364 updateV4Upstream(new LinkAddress(InetAddresses.parseNumericAddress(ipv4Address), 30), in testHandleIpConflict()
|
/aosp12/frameworks/base/core/java/android/text/format/ |
H A D | Formatter.java | 210 public static String formatIpAddress(int ipv4Address) { in formatIpAddress() argument 211 return Inet4AddressUtils.intToInet4AddressHTL(ipv4Address).getHostAddress(); in formatIpAddress()
|
/aosp12/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/ |
H A D | IkeIdentificationTest.java | 55 assertEquals(IPV4_ADDRESS_LOCAL, ikeId.ipv4Address); in testIkeIpv4AddrIdentification()
|
/aosp12/frameworks/base/core/java/android/net/vcn/persistablebundleutils/ |
H A D | IkeIdentificationUtils.java | 82 result.putString(IP4_ADDRESS_KEY, id.ipv4Address.getHostAddress()); in toPersistableBundle()
|
/aosp12/packages/apps/Settings/src/com/android/settings/wifi/details2/ |
H A D | WifiDetailPreferenceController2.java | 880 String ipv4Address = null; in refreshIpLayerInfo() local 886 ipv4Address = addr.getAddress().getHostAddress(); in refreshIpLayerInfo() 909 updatePreference(mIpAddressPref, ipv4Address); in refreshIpLayerInfo()
|
/aosp12/packages/modules/Connectivity/Tethering/src/android/net/ip/ |
H A D | IpServer.java | 520 private RouteInfo getDirectConnectedRoute(@NonNull final LinkAddress ipv4Address) { in getDirectConnectedRoute() argument 521 Objects.requireNonNull(ipv4Address); in getDirectConnectedRoute() 522 return new RouteInfo(PrefixUtils.asIpPrefix(ipv4Address), null, mIfaceName, RTN_UNICAST); in getDirectConnectedRoute()
|
/aosp12/packages/modules/IPsec/api/ |
H A D | current.txt | 116 field @NonNull public final java.net.Inet4Address ipv4Address;
|
/aosp12/frameworks/base/tools/aapt2/integration-tests/CommandTests/ |
H A D | android-28.jar | META-INF/
META-INF/MANIFEST.MF
javax/
javax/net/
javax/ ... |