/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/ |
D | DhcpPacketTest.java | 241 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/ |
D | ClientModeImplTest.java | 376 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/ |
D | EthernetTetheringTest.java | 236 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/ |
D | IpClientUtil.java | 118 public void onNewDhcpResults(DhcpResultsParcelable dhcpResults) { in onNewDhcpResults() argument 119 mCb.onNewDhcpResults(dhcpResults); in onNewDhcpResults()
|
D | IpClientCallbacks.java | 69 public void onNewDhcpResults(DhcpResultsParcelable dhcpResults) { in onNewDhcpResults() argument
|
D | IIpClientCallbacks.aidl | 36 void onNewDhcpResults(in DhcpResultsParcelable dhcpResults); in onNewDhcpResults() argument
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | ClientModeImpl.java | 899 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 …]
|
D | WifiServiceImpl.java | 3559 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/ |
D | IIpClientCallbacks.aidl | 6 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/ |
D | IIpClientCallbacks.aidl | 6 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/ |
D | IIpClientCallbacks.aidl | 6 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/ |
D | IIpClientCallbacks.aidl | 23 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/ |
D | IIpClientCallbacks.aidl | 24 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/ |
D | IIpClientCallbacks.aidl | 24 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/ |
D | IIpClientCallbacks.aidl | 25 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/ |
D | IIpClientCallbacks.aidl | 24 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/ |
D | IIpClientCallbacks.aidl | 25 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/ |
D | IIpClientCallbacks.aidl | 24 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/ |
D | IIpClientCallbacks.aidl | 24 oneway void onNewDhcpResults(in android.net.DhcpResultsParcelable dhcpResults); in onNewDhcpResults() argument
|
/packages/modules/NetworkStack/src/android/net/ip/ |
D | IpClient.java | 265 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/ |
D | WifiP2pServiceImpl.java | 650 public void onNewDhcpResults(DhcpResultsParcelable dhcpResults) { in onNewDhcpResults() argument 651 mP2pStateMachine.sendMessage(IPC_DHCP_RESULTS, dhcpResults); in onNewDhcpResults()
|