Add implementation of getInterfaceHash()

Exempt-From-Owner-Approval: cherry-pick from internal
Bug: 136065010
Test: m
Change-Id: I314f19aeca82cc8653eab71c9526ea7a208e6b50
Merged-In: I314f19aeca82cc8653eab71c9526ea7a208e6b50
This commit is contained in:
Paul Trautrim
2020-01-23 14:55:57 +09:00
parent 88d4019b82
commit e01ea259c4
8 changed files with 40 additions and 0 deletions

View File

@@ -28,4 +28,9 @@ public abstract class DhcpServerCallbacks extends IDhcpServerCallbacks.Stub {
public int getInterfaceVersion() {
return IDhcpServerCallbacks.VERSION;
}
@Override
public String getInterfaceHash() {
return IDhcpServerCallbacks.HASH;
}
}

View File

@@ -301,6 +301,11 @@ public class IpServer extends StateMachine {
public int getInterfaceVersion() {
return this.VERSION;
}
@Override
public String getInterfaceHash() {
return this.HASH;
}
}
private class DhcpServerCallbacksImpl extends DhcpServerCallbacks {

View File

@@ -67,4 +67,9 @@ public class BaseNetdUnsolicitedEventListener extends INetdUnsolicitedEventListe
public int getInterfaceVersion() {
return INetdUnsolicitedEventListener.VERSION;
}
@Override
public String getInterfaceHash() {
return INetdUnsolicitedEventListener.HASH;
}
}

View File

@@ -2955,6 +2955,11 @@ public class ConnectivityService extends IConnectivityManager.Stub
public int getInterfaceVersion() {
return this.VERSION;
}
@Override
public String getInterfaceHash() {
return this.HASH;
}
}
private boolean networkRequiresPrivateDnsValidation(NetworkAgentInfo nai) {

View File

@@ -734,6 +734,11 @@ public class NetworkManagementService extends INetworkManagementService.Stub {
public int getInterfaceVersion() {
return INetdUnsolicitedEventListener.VERSION;
}
@Override
public String getInterfaceHash() {
return INetdUnsolicitedEventListener.HASH;
}
}
//

View File

@@ -310,6 +310,11 @@ public class NetdEventListenerService extends INetdEventListener.Stub {
return this.VERSION;
}
@Override
public String getInterfaceHash() {
return this.HASH;
}
private void addWakeupEvent(WakeupEvent event) {
String iface = event.iface;
mWakeupEvents.append(event);

View File

@@ -52,6 +52,11 @@ public class IpMemoryStore extends IpMemoryStoreClient {
public int getInterfaceVersion() {
return this.VERSION;
}
@Override
public String getInterfaceHash() {
return this.HASH;
}
});
}

View File

@@ -189,6 +189,11 @@ public class IpClientUtil {
public int getInterfaceVersion() {
return this.VERSION;
}
@Override
public String getInterfaceHash() {
return this.HASH;
}
}
/**