Merge "Remove debug log from NetworkStatsService"
This commit is contained in:
@@ -1597,11 +1597,6 @@ public class NetworkStatsService extends INetworkStatsService.Stub {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String[] getMobileIfaces() {
|
public String[] getMobileIfaces() {
|
||||||
// TODO (b/192758557): Remove debug log.
|
|
||||||
if (CollectionUtils.contains(mMobileIfaces, null)) {
|
|
||||||
throw new NullPointerException(
|
|
||||||
"null element in mMobileIfaces: " + Arrays.toString(mMobileIfaces));
|
|
||||||
}
|
|
||||||
return mMobileIfaces.clone();
|
return mMobileIfaces.clone();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2072,11 +2067,6 @@ public class NetworkStatsService extends INetworkStatsService.Stub {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mMobileIfaces = mobileIfaces.toArray(new String[0]);
|
mMobileIfaces = mobileIfaces.toArray(new String[0]);
|
||||||
// TODO (b/192758557): Remove debug log.
|
|
||||||
if (CollectionUtils.contains(mMobileIfaces, null)) {
|
|
||||||
throw new NullPointerException(
|
|
||||||
"null element in mMobileIfaces: " + Arrays.toString(mMobileIfaces));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static int getSubIdForMobile(@NonNull NetworkStateSnapshot state) {
|
private static int getSubIdForMobile(@NonNull NetworkStateSnapshot state) {
|
||||||
|
|||||||
@@ -140,6 +140,17 @@ import com.android.testutils.HandlerUtils;
|
|||||||
import com.android.testutils.TestBpfMap;
|
import com.android.testutils.TestBpfMap;
|
||||||
import com.android.testutils.TestableNetworkStatsProviderBinder;
|
import com.android.testutils.TestableNetworkStatsProviderBinder;
|
||||||
|
|
||||||
|
import libcore.testing.io.TestIoUtils;
|
||||||
|
|
||||||
|
import org.junit.After;
|
||||||
|
import org.junit.Before;
|
||||||
|
import org.junit.Ignore;
|
||||||
|
import org.junit.Test;
|
||||||
|
import org.junit.runner.RunWith;
|
||||||
|
import org.mockito.ArgumentCaptor;
|
||||||
|
import org.mockito.Mock;
|
||||||
|
import org.mockito.MockitoAnnotations;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.nio.file.Files;
|
import java.nio.file.Files;
|
||||||
import java.nio.file.Path;
|
import java.nio.file.Path;
|
||||||
@@ -153,17 +164,6 @@ import java.util.Objects;
|
|||||||
import java.util.concurrent.Executor;
|
import java.util.concurrent.Executor;
|
||||||
import java.util.concurrent.atomic.AtomicBoolean;
|
import java.util.concurrent.atomic.AtomicBoolean;
|
||||||
|
|
||||||
import libcore.testing.io.TestIoUtils;
|
|
||||||
|
|
||||||
import org.junit.After;
|
|
||||||
import org.junit.Before;
|
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
|
||||||
import org.junit.runner.RunWith;
|
|
||||||
import org.mockito.ArgumentCaptor;
|
|
||||||
import org.mockito.Mock;
|
|
||||||
import org.mockito.MockitoAnnotations;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests for {@link NetworkStatsService}.
|
* Tests for {@link NetworkStatsService}.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user