summaryrefslogtreecommitdiff
path: root/tests/net/java/com/android
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2021-01-08 11:49:37 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-01-08 11:49:37 +0000
commitd2ae6601fd88206ca771dc4844c083f98374297b (patch)
treea10c68421e1d7e993e8641f3f2ae720fc0e46507 /tests/net/java/com/android
parentf1882fe75c3ccab9f940f022b927d5602085a1a5 (diff)
parentfe39a927b58ea563f567f94bd252fd490024df5f (diff)
Merge "Pivot network statistics to use DataInput/Output." am: 5b322f10be am: 5c5eff8d5c am: fe39a927b5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1540224 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I44be7ea64d012f35d312ae3b039b0fd7e37e9d60
Diffstat (limited to 'tests/net/java/com/android')
-rw-r--r--tests/net/java/com/android/server/net/NetworkStatsCollectionTest.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/net/java/com/android/server/net/NetworkStatsCollectionTest.java b/tests/net/java/com/android/server/net/NetworkStatsCollectionTest.java
index 89146f945e1f..435c3c0af817 100644
--- a/tests/net/java/com/android/server/net/NetworkStatsCollectionTest.java
+++ b/tests/net/java/com/android/server/net/NetworkStatsCollectionTest.java
@@ -64,7 +64,6 @@ import org.junit.runner.RunWith;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
-import java.io.DataOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.InputStream;
@@ -124,7 +123,7 @@ public class NetworkStatsCollectionTest {
// now export into a unified format
final ByteArrayOutputStream bos = new ByteArrayOutputStream();
- collection.write(new DataOutputStream(bos));
+ collection.write(bos);
// clear structure completely
collection.reset();
@@ -152,7 +151,7 @@ public class NetworkStatsCollectionTest {
// now export into a unified format
final ByteArrayOutputStream bos = new ByteArrayOutputStream();
- collection.write(new DataOutputStream(bos));
+ collection.write(bos);
// clear structure completely
collection.reset();
@@ -180,7 +179,7 @@ public class NetworkStatsCollectionTest {
// now export into a unified format
final ByteArrayOutputStream bos = new ByteArrayOutputStream();
- collection.write(new DataOutputStream(bos));
+ collection.write(bos);
// clear structure completely
collection.reset();