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

Commit 3eab4929 authored by Xiao Ma's avatar Xiao Ma
Browse files

Rename IDhcpLeaseCallbacks to IDhcpEventCallbacks for more generic.

Bug: 130741856
Test: atest TetheringTests
Merged-In: I66614fbf67fba1e7dab0b8a2d41bc30a726e4f38
Change-Id: I66614fbf67fba1e7dab0b8a2d41bc30a726e4f38
parent 8694188f
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -40,7 +40,7 @@ import android.net.dhcp.DhcpLeaseParcelable;
import android.net.dhcp.DhcpServerCallbacks;
import android.net.dhcp.DhcpServingParamsParcel;
import android.net.dhcp.DhcpServingParamsParcelExt;
import android.net.dhcp.IDhcpLeaseCallbacks;
import android.net.dhcp.IDhcpEventCallbacks;
import android.net.dhcp.IDhcpServer;
import android.net.ip.IpNeighborMonitor.NeighborEvent;
import android.net.ip.RouterAdvertisementDaemon.RaParams;
@@ -448,7 +448,7 @@ public class IpServer extends StateMachine {
        }
    }

    private class DhcpLeaseCallback extends IDhcpLeaseCallbacks.Stub {
    private class DhcpLeaseCallback extends IDhcpEventCallbacks.Stub {
        @Override
        public void onLeasesChanged(List<DhcpLeaseParcelable> leaseParcelables) {
            final ArrayList<TetheredClient> leases = new ArrayList<>();
@@ -481,6 +481,11 @@ public class IpServer extends StateMachine {
            });
        }

        @Override
        public void onNewPrefixRequest(IpPrefix currentPrefix) {
            //TODO: add specific implementation.
        }

        @Override
        public int getInterfaceVersion() {
            return this.VERSION;