Home
last modified time | relevance | path

Searched refs:getByName (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/libs/net/common/tests/unit/src/com/android/net/module/util/
DInterfaceParamsTest.java36 assertNull(InterfaceParams.getByName(null)); in testNullInterfaceReturnsNull()
41 assertNull(InterfaceParams.getByName("doesnotexist0")); in testNonExistentInterfaceReturnsNull()
46 final InterfaceParams ifParams = InterfaceParams.getByName("lo"); in testLoopback()
DInetAddressUtilsTest.java56 InetAddress ipv4 = InetAddress.getByName("192.0.2.1"); in testParcelUnparcelIpv4Address()
62 InetAddress ipv6 = InetAddress.getByName("2001:db8::1"); in testParcelUnparcelIpv6Address()
68 InetAddress ipv6 = InetAddress.getByName("fe80::1%42"); in testParcelUnparcelScopedIpv6Address()
/frameworks/base/packages/SettingsLib/Spa/spa/
Dbuild.gradle.kts33 sourceSets.getByName("main") { in <lambda>()
38 sourceSets.getByName("androidTest") { in <lambda>()
48 getByName("debug") { in <lambda>()
/frameworks/libs/net/common/tests/unit/src/com/android/net/module/util/netlink/
DInetDiagSocketTest.java103 InetSocketAddress local = new InetSocketAddress(InetAddress.getByName("10.0.100.2"), in testInetDiagReqV2UdpInet4()
105 InetSocketAddress remote = new InetSocketAddress(InetAddress.getByName("8.8.8.8"), in testInetDiagReqV2UdpInet4()
139 InetAddress.getByName("fe80::86c9:b2ff:fe6a:ed4b"), 42462); in testInetDiagReqV2TcpInet6()
140 InetSocketAddress remote = new InetSocketAddress(InetAddress.getByName("8.8.8.8"), in testInetDiagReqV2TcpInet6()
176 InetAddress.getByName("1.2.3.4"), 12345); in testInetDiagReqV2TcpInetWithExt()
177 InetSocketAddress remote = new InetSocketAddress(InetAddress.getByName("8.8.4.4"), in testInetDiagReqV2TcpInetWithExt()
185 InetAddress.getByName("fe80::86c9:b2ff:fe6a:ed4b"), 42462); in testInetDiagReqV2TcpInetWithExt()
186 remote = new InetSocketAddress(InetAddress.getByName("8.8.8.8"), in testInetDiagReqV2TcpInetWithExt()
222 InetAddress.getByName("fe80::fe6a:ed4b"), 12345); in testInetDiagReqV2TcpInet6NoIdSpecified()
223 InetSocketAddress remote = new InetSocketAddress(InetAddress.getByName("8.8.4.4"), in testInetDiagReqV2TcpInet6NoIdSpecified()
DConntrackMessageTest.java90 (Inet4Address) InetAddress.getByName("192.168.43.209"), 44333, in makeIPv4TimeoutUpdateRequestTcp()
91 (Inet4Address) InetAddress.getByName("23.211.13.26"), 443, in makeIPv4TimeoutUpdateRequestTcp()
131 (Inet4Address) InetAddress.getByName("100.96.167.146"), 37069, in makeIPv4TimeoutUpdateRequestUdp()
132 (Inet4Address) InetAddress.getByName("216.58.197.10"), 443, in makeIPv4TimeoutUpdateRequestUdp()
DNduseroptMessageTest.java106 InetAddress srcaddr = InetAddress.getByName("fe80::250:b6ff:feb7:c499%30"); in testParseWithinNetlinkMessage()
135 InetAddress srcaddr = InetAddress.getByName("fe80::250:b6ff:feb7:c499%30"); in testParseRdnssOptionWithinNetlinkMessage()
171 InetAddress srcaddr = InetAddress.getByName("fe80::250:b6ff:feb7:c499%30"); in testParseUnknownOptionWithinNetlinkMessage()
DStructNdOptPref64Test.java49 InetAddress addr = InetAddress.getByName(addrString); in prefixBytes()
57 return new IpPrefix(InetAddress.getByName(addrString), prefixLength); in prefix()
/frameworks/libs/net/common/framework/com/android/net/module/util/
DInterfaceParams.java52 public static InterfaceParams getByName(String name) { in getByName() method in InterfaceParams
92 return NetworkInterface.getByName(name); in getNetworkInterfaceByName()
/frameworks/base/tests/vcn/java/android/net/vcn/persistablebundleutils/
DIkeIdentificationUtilsTest.java54 final Inet4Address ipv4Address = (Inet4Address) InetAddress.getByName("192.0.2.100"); in testPersistableBundleEncodeDecodeIpv4AddressId()
60 final Inet6Address ipv6Address = (Inet6Address) InetAddress.getByName("2001:db8:2::100"); in testPersistableBundleEncodeDecodeIpv6AddressId()
/frameworks/base/packages/SettingsLib/Spa/gallery/
Dbuild.gradle.kts32 sourceSets.getByName("main") { in <lambda>()
/frameworks/base/packages/SettingsLib/Spa/testutils/
Dbuild.gradle.kts28 sourceSets.getByName("main") { in <lambda>()
/frameworks/base/apct-tests/perftests/core/src/android/libcore/regression/
DDnsPerfTest.java60 InetAddress.getByName(hosts[++i % hosts.length]); in timeDns()
/frameworks/base/tools/xmlpersistence/src/main/kotlin/
DParser.kt145 val annotation = annotations.getByName("XmlName") in parseFieldInfo()
147 val isRequired = annotations.getByName("NonNull") != null in parseFieldInfo()
201 private fun List<AnnotationExpr>.getByName(name: String): AnnotationExpr? = in getOrNull() method
/frameworks/base/core/java/android/app/admin/
DConnectEvent.java58 return InetAddress.getByName(mIpAddress); in getInetAddress()
DDnsEvent.java80 inetAddresses.add(InetAddress.getByName(ipAddress)); in getInetAddresses()
/frameworks/opt/net/voip/src/java/android/net/sip/
DSipAudioCall.java373 mAudioStream = new AudioStream(InetAddress.getByName( in transferToNewSession()
640 mAudioStream = new AudioStream(InetAddress.getByName(
711 mAudioStream = new AudioStream(InetAddress.getByName(
1050 stream.associate(InetAddress.getByName(address),
/frameworks/libs/net/common/device/com/android/net/module/util/netlink/
DInetDiagMessage.java240 Inet6Address.getByName("::"), 0); in lookupUid()
246 wildcard = new InetSocketAddress(Inet4Address.getByName("0.0.0.0"), 0); in lookupUid()
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
DWifiConfigurationHelper.java345 return InetAddress.getByName(ipAddress); in getInetAddress()
/frameworks/opt/net/voip/src/java/com/android/server/sip/
DSipService.java300 s.connect(InetAddress.getByName("192.168.1.1"), 80); in determineLocalIp()
457 byte[] d = InetAddress.getByName(address).getAddress(); in isBehindNAT()
/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/
DXmlConfigTests.java114 .createSocket(InetAddress.getByName("android.com"), 443); in testBasicDomainConfig()
/frameworks/base/services/core/java/com/android/server/display/
DWifiDisplayController.java1015 iface = NetworkInterface.getByName(info.getInterface()); in getInterfaceAddress()
/frameworks/base/telephony/java/android/telephony/data/
DApnSetting.java1519 return InetAddress.getByName(inetAddress); in inetAddressFromString()
/frameworks/base/services/core/java/com/android/server/vcn/
DVcnGatewayConnection.java2771 final NetworkInterface underlyingIface = NetworkInterface.getByName(ifaceName); in getUnderlyingIfaceMtu()
/frameworks/base/services/core/java/com/android/server/connectivity/
DVpn.java710 final NetworkInterface networkInterface = NetworkInterface.getByName(iface); in getJavaNetworkInterfaceMtu()
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt17100 …method public java.net.InetAddress getByName(java.lang.String) throws java.net.UnknownHostExceptio…
43027 …method public static java.net.InetAddress getByName(java.lang.String) throws java.net.UnknownHostE…
43114 …method public static java.net.NetworkInterface getByName(java.lang.String) throws java.net.SocketE…

12