Home
last modified time | relevance | path

Searched refs:hostAddress (Results 1 – 13 of 13) sorted by relevance

/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DInet4AddressUtils.java37 public static Inet4Address intToInet4AddressHTL(int hostAddress) { in intToInet4AddressHTL() argument
38 return intToInet4AddressHTH(Integer.reverseBytes(hostAddress)); in intToInet4AddressHTL()
45 public static Inet4Address intToInet4AddressHTH(int hostAddress) { in intToInet4AddressHTH() argument
46 byte[] addressBytes = { (byte) (0xff & (hostAddress >> 24)), in intToInet4AddressHTH()
47 (byte) (0xff & (hostAddress >> 16)), in intToInet4AddressHTH()
48 (byte) (0xff & (hostAddress >> 8)), in intToInet4AddressHTH()
49 (byte) (0xff & hostAddress) }; in intToInet4AddressHTH()
/packages/modules/Connectivity/tests/common/java/android/net/
DTcpKeepalivePacketDataTest.kt85 assertTrue(str.contains(data.srcAddress.hostAddress)) in <lambda>()
87 assertTrue(str.contains(data.dstAddress.hostAddress)) in <lambda>()
/packages/modules/Connectivity/framework/src/android/net/
DNetworkUtils.java184 public static InetAddress intToInetAddress(int hostAddress) { in intToInetAddress() argument
185 return Inet4AddressUtils.intToInet4AddressHTL(hostAddress); in intToInetAddress()
DIConnectivityManager.aidl97 boolean requestRouteToHostAddress(int networkType, in byte[] hostAddress, in requestRouteToHostAddress() argument
DConnectivityManager.java2750 public boolean requestRouteToHost(int networkType, int hostAddress) { in requestRouteToHost() argument
2751 return requestRouteToHostAddress(networkType, NetworkUtils.intToInetAddress(hostAddress)); in requestRouteToHost()
2775 public boolean requestRouteToHostAddress(int networkType, InetAddress hostAddress) { in requestRouteToHostAddress() argument
2778 return mService.requestRouteToHostAddress(networkType, hostAddress.getAddress(), in requestRouteToHostAddress()
/packages/modules/Virtualization/android/TerminalApp/java/com/android/virtualization/terminal/
DVmLauncherService.kt261 val ipAddress = info.hostAddresses[0].hostAddress in <lambda>()
421 if (remoteAddr?.address?.hostAddress == ipAddress) { in <lambda>()
/packages/services/Telephony/src/com/android/services/telephony/
DImsConference.java892 Uri hostAddress = mTelecomAccountRegistry.getAddress(mConferenceHostPhoneAccountHandle); in setConferenceHost() local
897 if (hostAddress != null) { in setConferenceHost()
898 hostAddresses.add(hostAddress); in setConferenceHost()
/packages/modules/Connectivity/tests/integration/src/com/android/server/net/integrationtests/
DNetworkStatsIntegrationTest.kt136 LOCAL_V6ADDR.address.hostAddress, in <lambda>()
/packages/modules/Connectivity/thread/tests/utils/src/android/net/thread/utils/
DIntegrationTestUtils.kt459 if (line.contains(address.hostAddress!!)) { in <lambda>()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DClientModeImplTest.java9454 String hostAddress = "127.0.0.1"; in testNetworkValidationUpdatesLinkedNetworks() local
9462 when(gatewayAddress.getHostAddress()).thenReturn(hostAddress); in testNetworkValidationUpdatesLinkedNetworks()
9465 .add(hostAddress) in testNetworkValidationUpdatesLinkedNetworks()
9523 String hostAddress = "127.0.0.1"; in testNonPskNetworkDoesNotUpdateLinkedNetworks() local
9531 when(gatewayAddress.getHostAddress()).thenReturn(hostAddress); in testNonPskNetworkDoesNotUpdateLinkedNetworks()
9534 .add(hostAddress) in testNonPskNetworkDoesNotUpdateLinkedNetworks()
9576 String hostAddress = "127.0.0.1"; in testInvalidScanResultDoesNotUpdateLinkedNetworks() local
9584 when(gatewayAddress.getHostAddress()).thenReturn(hostAddress); in testInvalidScanResultDoesNotUpdateLinkedNetworks()
9587 .add(hostAddress) in testInvalidScanResultDoesNotUpdateLinkedNetworks()
9656 String hostAddress = "127.0.0.1"; in testLinkedNetworksFiltersOutAutojoinDisabledNetworks() local
[all …]
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNsdManagerTest.kt968 for (hostAddress in hostAddresses) { in <lambda>() constant
969 assertTrue(addresses.contains(hostAddress)) in <lambda>()
DConnectivityManagerTest.java1017 private void assertRequestRouteToHostUnsupported(int networkType, int hostAddress) { in assertRequestRouteToHostUnsupported() argument
1019 mCm.requestRouteToHost(networkType, hostAddress); in assertRequestRouteToHostUnsupported()
/packages/modules/Connectivity/service/src/com/android/server/
DConnectivityService.java3308 public boolean requestRouteToHostAddress(int networkType, byte[] hostAddress,
3322 addr = InetAddress.getByAddress(hostAddress);