Searched refs:dhcpResults (Results 1 – 8 of 8) sorted by relevance
209 final DhcpResults dhcpResults = new DhcpResults(s); in readFromParcel() local210 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()
118 public void onNewDhcpResults(DhcpResultsParcelable dhcpResults) { in onNewDhcpResults() argument119 mCb.onNewDhcpResults(dhcpResults); in onNewDhcpResults()
69 public void onNewDhcpResults(DhcpResultsParcelable dhcpResults) { in onNewDhcpResults() argument
222 DhcpResults dhcpResults = runDhcp(fd, client1); in testStaticIpv4() local223 assertEquals(new LinkAddress(clientAddr), dhcpResults.ipAddress); in testStaticIpv4()408 DhcpResults dhcpResults = runDhcp(fd, clientMacAddr); in checkTetheredClientCallbacks() local424 assertLinkAddressMatches(dhcpResults.ipAddress, info.getAddress()); in checkTetheredClientCallbacks()430 dhcpResults.leaseDuration, actualLeaseDuration); in checkTetheredClientCallbacks()431 assertTrue(msg, Math.abs(dhcpResults.leaseDuration - actualLeaseDuration) < 10); in checkTetheredClientCallbacks()
315 private void injectDhcpSuccess(DhcpResultsParcelable dhcpResults) { in injectDhcpSuccess() argument316 mIpClientCallback.onNewDhcpResults(dhcpResults); in injectDhcpSuccess()1020 DhcpResultsParcelable dhcpResults = new DhcpResultsParcelable(); in connect() local1021 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 …]
2497 DhcpResults dhcpResults = mClientModeImpl.syncGetDhcpResults(); in getDhcpInfo() local2501 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()
1026 public void onNewDhcpResults(DhcpResultsParcelable dhcpResults) { in onNewDhcpResults() argument1027 if (dhcpResults != null) { in onNewDhcpResults()1029 DhcpResultsCompatUtil.fromStableParcelable(dhcpResults)); in onNewDhcpResults()3190 private void handleIPv4Success(DhcpResults dhcpResults) { in handleIPv4Success() argument3192 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()
586 public void onNewDhcpResults(DhcpResultsParcelable dhcpResults) { in onNewDhcpResults() argument588 DhcpResultsCompatUtil.fromStableParcelable(dhcpResults)); in onNewDhcpResults()