Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 36288571 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Add IpClientCallbacks.onNewDhcpResults(DhcpResultsParcelable)" am:...

Merge "Add IpClientCallbacks.onNewDhcpResults(DhcpResultsParcelable)" am: 7595e628 am: 39458f16 am: 0ed01af5

Change-Id: Ib14d2b633d694e33e23711d55c9a325aa26d1651
parents 72687eed 0ed01af5
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
package android.net.ip;

import android.net.DhcpResults;
import android.net.DhcpResultsParcelable;
import android.net.Layer2PacketParcelable;
import android.net.LinkProperties;

@@ -68,6 +69,18 @@ public class IpClientCallbacks {
     */
    public void onNewDhcpResults(DhcpResults dhcpResults) {}

    /**
     * Callback called when new DHCP results are available.
     *
     * <p>This is purely advisory and not an indication of provisioning success or failure.  This is
     * only here for callers that want to expose DHCPv4 results to other APIs
     * (e.g., WifiInfo#setInetAddress).
     *
     * <p>DHCPv4 or static IPv4 configuration failure or success can be determined by whether or not
     * the passed-in DhcpResults object is null.
     */
    public void onNewDhcpResults(DhcpResultsParcelable dhcpResults) {}

    /**
     * Indicates that provisioning was successful.
     */
+1 −0
Original line number Diff line number Diff line
@@ -119,6 +119,7 @@ public class IpClientUtil {
        @Override
        public void onNewDhcpResults(DhcpResultsParcelable dhcpResults) {
            mCb.onNewDhcpResults(fromStableParcelable(dhcpResults));
            mCb.onNewDhcpResults(dhcpResults);
        }

        @Override