Skip to content

Commit

Permalink
Merge "Add implementation of getInterfaceHash()"
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Trautrim authored and Android (Google) Code Review committed Jan 28, 2020
2 parents 8326cae + af2e082 commit c446689
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,9 @@ public abstract class DhcpServerCallbacks extends IDhcpServerCallbacks.Stub {
public int getInterfaceVersion() {
return IDhcpServerCallbacks.VERSION;
}

@Override
public String getInterfaceHash() {
return IDhcpServerCallbacks.HASH;
}
}
5 changes: 5 additions & 0 deletions packages/Tethering/src/android/net/ip/IpServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,11 @@ public void onStatusAvailable(int statusCode) {
public int getInterfaceVersion() {
return this.VERSION;
}

@Override
public String getInterfaceHash() {
return this.HASH;
}
}

private class DhcpServerCallbacksImpl extends DhcpServerCallbacks {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,9 @@ public void onStrictCleartextDetected(int uid, @NonNull String hex) { }
public int getInterfaceVersion() {
return INetdUnsolicitedEventListener.VERSION;
}

@Override
public String getInterfaceHash() {
return INetdUnsolicitedEventListener.HASH;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2962,6 +2962,11 @@ public void hideProvisioningNotification() {
public int getInterfaceVersion() {
return this.VERSION;
}

@Override
public String getInterfaceHash() {
return this.HASH;
}
}

private boolean networkRequiresPrivateDnsValidation(NetworkAgentInfo nai) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,11 @@ public void onStrictCleartextDetected(int uid, String hex) throws RemoteExceptio
public int getInterfaceVersion() {
return INetdUnsolicitedEventListener.VERSION;
}

@Override
public String getInterfaceHash() {
return INetdUnsolicitedEventListener.HASH;
}
}

//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,11 @@ public int getInterfaceVersion() throws RemoteException {
return this.VERSION;
}

@Override
public String getInterfaceHash() {
return this.HASH;
}

private void addWakeupEvent(WakeupEvent event) {
String iface = event.iface;
mWakeupEvents.append(event);
Expand Down
5 changes: 5 additions & 0 deletions services/net/java/android/net/IpMemoryStore.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ public void onIpMemoryStoreFetched(@NonNull final IIpMemoryStore memoryStore) {
public int getInterfaceVersion() {
return this.VERSION;
}

@Override
public String getInterfaceHash() {
return this.HASH;
}
});
}

Expand Down
5 changes: 5 additions & 0 deletions services/net/java/android/net/ip/IpClientUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,11 @@ public void onPreconnectionStart(List<Layer2PacketParcelable> packets) {
public int getInterfaceVersion() {
return this.VERSION;
}

@Override
public String getInterfaceHash() {
return this.HASH;
}
}

/**
Expand Down

0 comments on commit c446689

Please sign in to comment.