diff options
author | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-03-10 08:03:53 +0000 |
---|---|---|
committer | Lorenzo Colitti <lorenzo@google.com> | 2020-03-11 03:48:04 +0000 |
commit | aa561db2185e79ef3cf91932864b7007f902dadd (patch) | |
tree | 739d8470c09c70b216c534c78eabe2f54fa71248 /apishim/common/com/android/networkstack | |
parent | faac06e3e1412364512e46f38e63c6d2ca7548c1 (diff) |
Make IpClient populate the DHCP server address in LinkProperties
Bug: 134098566
Test:
lunch arm_aosp-userdebug
make -j32
Change-Id: Ide9610f9b17992eef83e1c42ac71b1b79c179f44
Merged-In: If86a6303671b03bb2ccf98de7e9d77020b013d2f
(cherry picked from commit 10d243214ae933d063affdd2b4f6c1f837279586)
Diffstat (limited to 'apishim/common/com/android/networkstack')
-rw-r--r-- | apishim/common/com/android/networkstack/apishim/NetworkInformationShim.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/apishim/common/com/android/networkstack/apishim/NetworkInformationShim.java b/apishim/common/com/android/networkstack/apishim/NetworkInformationShim.java index c266043..246a8ef 100644 --- a/apishim/common/com/android/networkstack/apishim/NetworkInformationShim.java +++ b/apishim/common/com/android/networkstack/apishim/NetworkInformationShim.java @@ -23,6 +23,8 @@ import android.net.Uri; import androidx.annotation.NonNull; import androidx.annotation.Nullable; +import java.net.Inet4Address; + /** * Compatibility interface for network info classes such as {@link LinkProperties} and * {@link NetworkCapabilities}. @@ -56,4 +58,12 @@ public interface NetworkInformationShim { */ @NonNull LinkProperties makeSensitiveFieldsParcelingCopy(@NonNull LinkProperties lp); + + /** + * @see LinkProperties#setDhcpServerAddress() + */ + @NonNull + void setDhcpServerAddress(@NonNull LinkProperties lp, + @NonNull Inet4Address serverAddress); + } |