Home
last modified time | relevance | path

Searched refs:serverAddr (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/packages/Tethering/src/android/net/dhcp/
DDhcpServingParamsParcelExt.java49 public DhcpServingParamsParcelExt setServerAddr(@NonNull LinkAddress serverAddr) { in setServerAddr() argument
50 this.serverAddr = inet4AddressToIntHTH((Inet4Address) serverAddr.getAddress()); in setServerAddr()
51 this.serverAddrPrefixLength = serverAddr.getPrefixLength(); in setServerAddr()
/frameworks/base/core/java/android/net/
DIkev2VpnProfile.java110 @NonNull String serverAddr, in Ikev2VpnProfile() argument
126 checkNotNull(serverAddr, MISSING_PARAM_MSG_TMPL, "Server address"); in Ikev2VpnProfile()
130 mServerAddr = serverAddr; in Ikev2VpnProfile()
653 public Builder(@NonNull String serverAddr, @NonNull String identity) { in Builder() argument
654 checkNotNull(serverAddr, MISSING_PARAM_MSG_TMPL, "serverAddr"); in Builder()
657 mServerAddr = serverAddr; in Builder()
/frameworks/base/packages/Tethering/tests/unit/src/android/net/dhcp/
DDhcpServingParamsParcelExtTest.java68 assertEquals(TEST_ADDRESS_PARCELED, mParcel.serverAddr); in testSetServerAddr()
/frameworks/base/packages/Tethering/src/android/net/ip/
DIpServer.java524 @NonNull final Inet4Address dnsServer, @NonNull LinkAddress serverAddr, in makeServingParams() argument
532 .setServerAddr(serverAddr) in makeServingParams()
582 private boolean configureDhcp(boolean enable, final LinkAddress serverAddr, in configureDhcp() argument
585 return startDhcp(serverAddr, clientAddr); in configureDhcp()
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTetheringTest.java587 final LinkAddress serverAddr, final LinkAddress clientAddr, final boolean exempt) { in createTetheringRequestParcel() argument
590 request.localIPv4Address = serverAddr; in createTetheringRequestParcel()
1691 final String serverAddr = "192.168.20.1"; in testMultipleStartTethering() local
1727 verify(mNetd).interfaceSetCfg(argThat(cfg -> serverAddr.equals(cfg.ipv4Addr))); in testMultipleStartTethering()
1734 final String serverAddr = "192.168.0.123"; in testRequestStaticIp() local
1745 verify(mNetd).interfaceSetCfg(argThat(cfg -> serverAddr.equals(cfg.ipv4Addr))); in testRequestStaticIp()
1749 assertEquals(serverAddr, intToInet4AddressHTH(params.serverAddr).getHostAddress()); in testRequestStaticIp()
/frameworks/base/packages/Tethering/tests/unit/src/android/net/ip/
DIpServerTest.java1002 assertTrue(prefix.contains(intToInet4AddressHTH(params.serverAddr))); in assertDhcpServingParams()
1005 assertEquals(params.serverAddr, params.defaultRouters[0]); in assertDhcpServingParams()
1007 assertEquals(params.serverAddr, params.dnsServers[0]); in assertDhcpServingParams()