Home
last modified time | relevance | path

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

/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpPacketTest.java241 DhcpResults dhcpResults = offerPacket.toDhcpResults(); // Just check this doesn't crash. in assertLeaseTimeParses() local
319 int leaseDuration, boolean hasMeteredHint, int mtu, DhcpResults dhcpResults) in assertDhcpResults() argument
321 assertEquals(new LinkAddress(ipAddress), dhcpResults.ipAddress); in assertDhcpResults()
322 assertEquals(v4Address(gateway), dhcpResults.gateway); in assertDhcpResults()
329 assertEquals(dnsServers, dhcpResults.dnsServers); in assertDhcpResults()
331 assertEquals(domains, dhcpResults.domains); in assertDhcpResults()
332 assertEquals(v4Address(serverAddress), dhcpResults.serverAddress); in assertDhcpResults()
333 assertEquals(serverHostName, dhcpResults.serverHostName); in assertDhcpResults()
334 assertEquals(vendorInfo, dhcpResults.vendorInfo); in assertDhcpResults()
335 assertEquals(leaseDuration, dhcpResults.leaseDuration); in assertDhcpResults()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DClientModeImplTest.java376 private void injectDhcpSuccess(DhcpResultsParcelable dhcpResults) { in injectDhcpSuccess() argument
377 mIpClientCallback.onNewDhcpResults(dhcpResults); in injectDhcpSuccess()
980 DhcpResultsParcelable dhcpResults = new DhcpResultsParcelable(); in connect() local
981 dhcpResults.baseConfiguration = new StaticIpConfiguration(); in connect()
982 dhcpResults.baseConfiguration.gateway = InetAddresses.parseNumericAddress("1.2.3.4"); in connect()
983 dhcpResults.baseConfiguration.ipAddress = in connect()
985 dhcpResults.baseConfiguration.dnsServers.add(InetAddresses.parseNumericAddress("8.8.8.8")); in connect()
986 dhcpResults.leaseDuration = 3600; in connect()
988 injectDhcpSuccess(dhcpResults); in connect()
2447 DhcpResultsParcelable dhcpResults = new DhcpResultsParcelable(); in disconnectFromNetworkWhenRemovedWhileObtainingIpAddr() local
[all …]
/packages/modules/Connectivity/Tethering/tests/integration/src/android/net/
DEthernetTetheringTest.java236 DhcpResults dhcpResults = runDhcp(fd, client1); in testStaticIpv4() local
237 assertEquals(new LinkAddress(clientAddr), dhcpResults.ipAddress); in testStaticIpv4()
549 DhcpResults dhcpResults = runDhcp(fd, clientMacAddr); in checkTetheredClientCallbacks() local
565 assertLinkAddressMatches(dhcpResults.ipAddress, info.getAddress()); in checkTetheredClientCallbacks()
571 dhcpResults.leaseDuration, actualLeaseDuration); in checkTetheredClientCallbacks()
572 assertTrue(msg, Math.abs(dhcpResults.leaseDuration - actualLeaseDuration) < 10); in checkTetheredClientCallbacks()
/packages/modules/NetworkStack/common/networkstackclient/src/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
DIIpClientCallbacks.aidl36 void onNewDhcpResults(in DhcpResultsParcelable dhcpResults); in onNewDhcpResults() argument
/packages/modules/Wifi/service/java/com/android/server/wifi/
DClientModeImpl.java899 public void onNewDhcpResults(DhcpResultsParcelable dhcpResults) { in onNewDhcpResults() argument
900 if (dhcpResults != null) { in onNewDhcpResults()
901 sendMessage(CMD_IPV4_PROVISIONING_SUCCESS, dhcpResults); in onNewDhcpResults()
1595 private static String dhcpResultsParcelableToString(DhcpResultsParcelable dhcpResults) {
1597 .append("baseConfiguration ").append(dhcpResults.baseConfiguration)
1598 .append("leaseDuration ").append(dhcpResults.leaseDuration)
1599 .append("mtu ").append(dhcpResults.mtu)
1600 .append("serverAddress ").append(dhcpResults.serverAddress)
1601 .append("serverHostName ").append(dhcpResults.serverHostName)
1602 .append("vendorInfo ").append(dhcpResults.vendorInfo)
[all …]
DWifiServiceImpl.java3559 DhcpResultsParcelable dhcpResults = mWifiThreadRunner.call(
3566 if (dhcpResults.baseConfiguration != null) {
3567 if (dhcpResults.baseConfiguration.getIpAddress() != null
3568 && dhcpResults.baseConfiguration.getIpAddress().getAddress()
3571 (Inet4Address) dhcpResults.baseConfiguration.getIpAddress().getAddress());
3574 if (dhcpResults.baseConfiguration.getGateway() != null) {
3576 (Inet4Address) dhcpResults.baseConfiguration.getGateway());
3580 for (InetAddress dns : dhcpResults.baseConfiguration.getDnsServers()) {
3591 String serverAddress = dhcpResults.serverAddress;
3597 info.leaseDuration = dhcpResults.leaseDuration;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/2/android/net/ip/
DIIpClientCallbacks.aidl6 oneway void onNewDhcpResults(in android.net.DhcpResultsParcelable dhcpResults); in onNewDhcpResults() argument
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/1/android/net/ip/
DIIpClientCallbacks.aidl6 oneway void onNewDhcpResults(in android.net.DhcpResultsParcelable dhcpResults); in onNewDhcpResults() argument
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/4/android/net/ip/
DIIpClientCallbacks.aidl6 oneway void onNewDhcpResults(in android.net.DhcpResultsParcelable dhcpResults); in onNewDhcpResults() argument
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/3/android/net/ip/
DIIpClientCallbacks.aidl23 oneway void onNewDhcpResults(in android.net.DhcpResultsParcelable dhcpResults); in onNewDhcpResults() argument
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/5/android/net/ip/
DIIpClientCallbacks.aidl24 oneway void onNewDhcpResults(in android.net.DhcpResultsParcelable dhcpResults); in onNewDhcpResults() argument
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/9/android/net/ip/
DIIpClientCallbacks.aidl24 oneway void onNewDhcpResults(in android.net.DhcpResultsParcelable dhcpResults); in onNewDhcpResults() argument
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/current/android/net/ip/
DIIpClientCallbacks.aidl25 oneway void onNewDhcpResults(in android.net.DhcpResultsParcelable dhcpResults); in onNewDhcpResults() argument
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/8/android/net/ip/
DIIpClientCallbacks.aidl24 oneway void onNewDhcpResults(in android.net.DhcpResultsParcelable dhcpResults); in onNewDhcpResults() argument
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/10/android/net/ip/
DIIpClientCallbacks.aidl25 oneway void onNewDhcpResults(in android.net.DhcpResultsParcelable dhcpResults); in onNewDhcpResults() argument
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/6/android/net/ip/
DIIpClientCallbacks.aidl24 oneway void onNewDhcpResults(in android.net.DhcpResultsParcelable dhcpResults); in onNewDhcpResults() argument
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/7/android/net/ip/
DIIpClientCallbacks.aidl24 oneway void onNewDhcpResults(in android.net.DhcpResultsParcelable dhcpResults); in onNewDhcpResults() argument
/packages/modules/NetworkStack/src/android/net/ip/
DIpClient.java265 public void onNewDhcpResults(DhcpResults dhcpResults) { in onNewDhcpResults() argument
266 log("onNewDhcpResults({" + dhcpResults + "})"); in onNewDhcpResults()
268 mCallback.onNewDhcpResults(toStableParcelable(dhcpResults)); in onNewDhcpResults()
1675 private void handleIPv4Success(DhcpResults dhcpResults) { in handleIPv4Success() argument
1676 mDhcpResults = new DhcpResults(dhcpResults); in handleIPv4Success()
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pServiceImpl.java650 public void onNewDhcpResults(DhcpResultsParcelable dhcpResults) { in onNewDhcpResults() argument
651 mP2pStateMachine.sendMessage(IPC_DHCP_RESULTS, dhcpResults); in onNewDhcpResults()