Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/android/net/dhcp/
DDhcpPacketTest.java187 DhcpResults dhcpResults = offerPacket.toDhcpResults(); // Just check this doesn't crash. in assertLeaseTimeParses() local
264 boolean hasMeteredHint, int mtu, DhcpResults dhcpResults) throws Exception { in assertDhcpResults() argument
265 assertEquals(new LinkAddress(ipAddress), dhcpResults.ipAddress); in assertDhcpResults()
266 assertEquals(v4Address(gateway), dhcpResults.gateway); in assertDhcpResults()
273 assertEquals(dnsServers, dhcpResults.dnsServers); in assertDhcpResults()
275 assertEquals(domains, dhcpResults.domains); in assertDhcpResults()
276 assertEquals(v4Address(serverAddress), dhcpResults.serverAddress); in assertDhcpResults()
277 assertEquals(vendorInfo, dhcpResults.vendorInfo); in assertDhcpResults()
278 assertEquals(leaseDuration, dhcpResults.leaseDuration); in assertDhcpResults()
279 assertEquals(hasMeteredHint, dhcpResults.hasMeteredHint()); in assertDhcpResults()
[all …]
/frameworks/base/core/java/android/net/
DDhcpResults.java117 DhcpResults dhcpResults = new DhcpResults();
118 readFromParcel(dhcpResults, in);
119 return dhcpResults;
136 private static void readFromParcel(DhcpResults dhcpResults, Parcel in) { in readFromParcel() argument
137 StaticIpConfiguration.readFromParcel(dhcpResults, in); in readFromParcel()
138 dhcpResults.leaseDuration = in.readInt(); in readFromParcel()
139 dhcpResults.mtu = in.readInt(); in readFromParcel()
140 dhcpResults.serverAddress = (Inet4Address) NetworkUtils.unparcelInetAddress(in); in readFromParcel()
141 dhcpResults.vendorInfo = in.readString(); in readFromParcel()
/frameworks/base/services/net/java/android/net/ip/
DIpManager.java102 public void onNewDhcpResults(DhcpResults dhcpResults) {} in onNewDhcpResults() argument
198 public void onNewDhcpResults(DhcpResults dhcpResults) { in onNewDhcpResults() argument
199 mCallback.onNewDhcpResults(dhcpResults); in onNewDhcpResults()
200 log("onNewDhcpResults({" + dhcpResults + "})"); in onNewDhcpResults()
854 private void handleIPv4Success(DhcpResults dhcpResults) { in handleIPv4Success() argument
855 mDhcpResults = new DhcpResults(dhcpResults); in handleIPv4Success()
860 Log.d(mTag, "onNewDhcpResults(" + Objects.toString(dhcpResults) + ")"); in handleIPv4Success()
862 mCallback.onNewDhcpResults(dhcpResults); in handleIPv4Success()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiStateMachineTest.java142 void injectDhcpSuccess(DhcpResults dhcpResults) { in injectDhcpSuccess() argument
143 mCallback.onNewDhcpResults(dhcpResults); in injectDhcpSuccess()
855 DhcpResults dhcpResults = new DhcpResults(); in connect() local
856 dhcpResults.setGateway("1.2.3.4"); in connect()
857 dhcpResults.setIpAddress("192.168.1.100", 0); in connect()
858 dhcpResults.addDns("8.8.8.8"); in connect()
859 dhcpResults.setLeaseDuration(3600); in connect()
861 mTestIpManager.injectDhcpSuccess(dhcpResults); in connect()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiServiceImpl.java1184 DhcpResults dhcpResults = mWifiStateMachine.syncGetDhcpResults(); in getDhcpInfo() local
1188 if (dhcpResults.ipAddress != null && in getDhcpInfo()
1189 dhcpResults.ipAddress.getAddress() instanceof Inet4Address) { in getDhcpInfo()
1190 … info.ipAddress = NetworkUtils.inetAddressToInt((Inet4Address) dhcpResults.ipAddress.getAddress()); in getDhcpInfo()
1193 if (dhcpResults.gateway != null) { in getDhcpInfo()
1194 info.gateway = NetworkUtils.inetAddressToInt((Inet4Address) dhcpResults.gateway); in getDhcpInfo()
1198 for (InetAddress dns : dhcpResults.dnsServers) { in getDhcpInfo()
1208 Inet4Address serverAddress = dhcpResults.serverAddress; in getDhcpInfo()
1212 info.leaseDuration = dhcpResults.leaseDuration; in getDhcpInfo()
DWifiStateMachine.java1230 public void onNewDhcpResults(DhcpResults dhcpResults) { in onNewDhcpResults() argument
1231 if (dhcpResults != null) { in onNewDhcpResults()
1232 sendMessage(CMD_IPV4_PROVISIONING_SUCCESS, dhcpResults); in onNewDhcpResults()
3630 private void handleIPv4Success(DhcpResults dhcpResults) { in handleIPv4Success() argument
3632 logd("handleIPv4Success <" + dhcpResults.toString() + ">"); in handleIPv4Success()
3633 logd("link address " + dhcpResults.ipAddress); in handleIPv4Success()
3638 mDhcpResults = dhcpResults; in handleIPv4Success()
3639 addr = (Inet4Address) dhcpResults.ipAddress.getAddress(); in handleIPv4Success()
3652 mWifiInfo.setMeteredHint(dhcpResults.hasMeteredHint()); in handleIPv4Success()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pServiceImpl.java436 public void onNewDhcpResults(DhcpResults dhcpResults) { in startIpManager()
437 mP2pStateMachine.sendMessage(IPM_DHCP_RESULTS, dhcpResults); in startIpManager()