Home
last modified time | relevance | path

Searched refs:dhcpResults (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/core/java/android/net/
DDhcpResults.java209 final DhcpResults dhcpResults = new DhcpResults(s); in readFromParcel() local
210 dhcpResults.leaseDuration = in.readInt(); in readFromParcel()
211 dhcpResults.mtu = in.readInt(); in readFromParcel()
212 dhcpResults.serverAddress = (Inet4Address) InetAddressUtils.unparcelInetAddress(in); in readFromParcel()
213 dhcpResults.vendorInfo = in.readString(); in readFromParcel()
214 dhcpResults.serverHostName = in.readString(); in readFromParcel()
215 dhcpResults.captivePortalApiUrl = in.readString(); in readFromParcel()
216 return dhcpResults; in readFromParcel()
/frameworks/base/services/net/java/android/net/ip/
DIpClientUtil.java118 public void onNewDhcpResults(DhcpResultsParcelable dhcpResults) { in onNewDhcpResults() argument
119 mCb.onNewDhcpResults(dhcpResults); in onNewDhcpResults()
DIpClientCallbacks.java69 public void onNewDhcpResults(DhcpResultsParcelable dhcpResults) { in onNewDhcpResults() argument
/frameworks/base/packages/Tethering/tests/integration/src/android/net/
DEthernetTetheringTest.java222 DhcpResults dhcpResults = runDhcp(fd, client1); in testStaticIpv4() local
223 assertEquals(new LinkAddress(clientAddr), dhcpResults.ipAddress); in testStaticIpv4()
408 DhcpResults dhcpResults = runDhcp(fd, clientMacAddr); in checkTetheredClientCallbacks() local
424 assertLinkAddressMatches(dhcpResults.ipAddress, info.getAddress()); in checkTetheredClientCallbacks()
430 dhcpResults.leaseDuration, actualLeaseDuration); in checkTetheredClientCallbacks()
431 assertTrue(msg, Math.abs(dhcpResults.leaseDuration - actualLeaseDuration) < 10); in checkTetheredClientCallbacks()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DClientModeImplTest.java315 private void injectDhcpSuccess(DhcpResultsParcelable dhcpResults) { in injectDhcpSuccess() argument
316 mIpClientCallback.onNewDhcpResults(dhcpResults); in injectDhcpSuccess()
1020 DhcpResultsParcelable dhcpResults = new DhcpResultsParcelable(); in connect() local
1021 dhcpResults.baseConfiguration = new StaticIpConfiguration(); in connect()
1022 dhcpResults.baseConfiguration.gateway = InetAddresses.parseNumericAddress("1.2.3.4"); in connect()
1023 dhcpResults.baseConfiguration.ipAddress = in connect()
1025 dhcpResults.baseConfiguration.dnsServers.add(InetAddresses.parseNumericAddress("8.8.8.8")); in connect()
1026 dhcpResults.leaseDuration = 3600; in connect()
1028 injectDhcpSuccess(dhcpResults); in connect()
2079 DhcpResultsParcelable dhcpResults = new DhcpResultsParcelable(); in disconnectFromNetworkWhenRemovedWhileObtainingIpAddr() local
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiServiceImpl.java2497 DhcpResults dhcpResults = mClientModeImpl.syncGetDhcpResults(); in getDhcpInfo() local
2501 if (dhcpResults.ipAddress != null && in getDhcpInfo()
2502 dhcpResults.ipAddress.getAddress() instanceof Inet4Address) { in getDhcpInfo()
2504 (Inet4Address) dhcpResults.ipAddress.getAddress()); in getDhcpInfo()
2507 if (dhcpResults.gateway != null) { in getDhcpInfo()
2508 info.gateway = NetworkUtils.inetAddressToInt((Inet4Address) dhcpResults.gateway); in getDhcpInfo()
2512 for (InetAddress dns : dhcpResults.dnsServers) { in getDhcpInfo()
2522 Inet4Address serverAddress = dhcpResults.serverAddress; in getDhcpInfo()
2526 info.leaseDuration = dhcpResults.leaseDuration; in getDhcpInfo()
DClientModeImpl.java1026 public void onNewDhcpResults(DhcpResultsParcelable dhcpResults) { in onNewDhcpResults() argument
1027 if (dhcpResults != null) { in onNewDhcpResults()
1029 DhcpResultsCompatUtil.fromStableParcelable(dhcpResults)); in onNewDhcpResults()
3190 private void handleIPv4Success(DhcpResults dhcpResults) { in handleIPv4Success() argument
3192 logd("handleIPv4Success <" + dhcpResults.toString() + ">"); in handleIPv4Success()
3193 logd("link address " + dhcpResults.ipAddress); in handleIPv4Success()
3198 mDhcpResults = dhcpResults; in handleIPv4Success()
3199 addr = (Inet4Address) dhcpResults.ipAddress.getAddress(); in handleIPv4Success()
3220 if (dhcpResults.hasMeteredHint()) { in handleIPv4Success()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pServiceImpl.java586 public void onNewDhcpResults(DhcpResultsParcelable dhcpResults) { in onNewDhcpResults() argument
588 DhcpResultsCompatUtil.fromStableParcelable(dhcpResults)); in onNewDhcpResults()