summaryrefslogtreecommitdiff
path: root/framework-t/src/android/net/NetworkStatsHistory.java
diff options
context:
space:
mode:
authorJunyu Lai <junyulai@google.com>2021-12-13 07:52:45 +0000
committerJunyu Lai <junyulai@google.com>2021-12-20 09:12:13 +0000
commit46429b7dedc44b3bcc9053d5016af9e2c78d6b1a (patch)
tree51378b29327cbe1ac71c177ae10d6a24bb2792d6 /framework-t/src/android/net/NetworkStatsHistory.java
parent24138d07edb6dceff7bd147e29e46a55376089db (diff)
[MS10.1] Move multiplySafeByRational to NetworkStatsUtils
Since NetworkStats related code will be moved to the module. multiplySafeByRational in the NetworkUtilsInternal cannot be accessed after that. Thus, create another utils class that will be moved with NetworkStats code and put the function into it. Test: atest NetworkStaticLibTests:com.android.net.moduletests.util.NetworkStatsUtilsTest Bug: 204830222 Change-Id: I96f3ac02e57b7325ed53988285770f478dee529e
Diffstat (limited to 'framework-t/src/android/net/NetworkStatsHistory.java')
-rw-r--r--framework-t/src/android/net/NetworkStatsHistory.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework-t/src/android/net/NetworkStatsHistory.java b/framework-t/src/android/net/NetworkStatsHistory.java
index a875e1ad45..3eef4ee6f8 100644
--- a/framework-t/src/android/net/NetworkStatsHistory.java
+++ b/framework-t/src/android/net/NetworkStatsHistory.java
@@ -28,8 +28,8 @@ import static android.net.NetworkStatsHistory.ParcelUtils.readLongArray;
import static android.net.NetworkStatsHistory.ParcelUtils.writeLongArray;
import static android.text.format.DateUtils.SECOND_IN_MILLIS;
-import static com.android.internal.net.NetworkUtilsInternal.multiplySafeByRational;
import static com.android.internal.util.ArrayUtils.total;
+import static com.android.net.module.util.NetworkStatsUtils.multiplySafeByRational;
import android.compat.annotation.UnsupportedAppUsage;
import android.os.Build;