From e931b159dd2385cec8ed59994a824b476515843b Mon Sep 17 00:00:00 2001 From: Aaron Huang Date: Wed, 10 Mar 2021 19:20:59 +0800 Subject: [PATCH] Update import class of TAG_SYSTEM_NEIGHBOR TrafficStatsConstants.TAG_SYSTEM_NEIGHBOR is moved to NetworkStackConstants so update the import class name for it. Bug: 182349970 Test: FrameworksNetTests NetworkStackTests TetheringTests Change-Id: I8fcd2772ed873d318233d3029184e4352245d4cd Merged-In: I8fcd2772ed873d318233d3029184e4352245d4cd --- Tethering/src/android/net/ip/RouterAdvertisementDaemon.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tethering/src/android/net/ip/RouterAdvertisementDaemon.java b/Tethering/src/android/net/ip/RouterAdvertisementDaemon.java index 7c0b7cc751..afccd0a5d9 100644 --- a/Tethering/src/android/net/ip/RouterAdvertisementDaemon.java +++ b/Tethering/src/android/net/ip/RouterAdvertisementDaemon.java @@ -37,7 +37,7 @@ import android.system.StructTimeval; import android.util.Log; import com.android.internal.annotations.GuardedBy; -import com.android.internal.util.TrafficStatsConstants; +import com.android.net.module.util.NetworkStackConstants; import java.io.FileDescriptor; import java.io.IOException; @@ -589,7 +589,7 @@ public class RouterAdvertisementDaemon { final int send_timout_ms = 300; final int oldTag = TrafficStats.getAndSetThreadStatsTag( - TrafficStatsConstants.TAG_SYSTEM_NEIGHBOR); + NetworkStackConstants.TAG_SYSTEM_NEIGHBOR); try { mSocket = Os.socket(AF_INET6, SOCK_RAW, IPPROTO_ICMPV6); // Setting SNDTIMEO is purely for defensive purposes.