History log of /frameworks/base/tests/net/java/com/android/server/net/NetworkStatsCollectionTest.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
7f0087be4804a9f8fb1f5fb68036015918c3b37f 19-Jan-2018 Lorenzo Colitti <lorenzo@google.com> Merge changes Id8776d14,Ifa291c62,I5ea9d200 am: c48f4cb7f1 am: b36b423230
am: cfbf873dd1

Change-Id: I12108d96e29bfe71406106c2af950a6d6a9f8351
d3e4a1e250194bbf59b1e04b60711f97001f61f8 18-Jan-2018 Lorenzo Colitti <lorenzo@google.com> Track and persist in stats whether traffic is on the default network.

This change adds the defaultNetwork to the ident based on current
system networking state, and persists that value to flash.

Bug: 35142602
Test: runtest frameworks-net
Test: downloaded files using default/non-default networks while watching dumpsys netstats
Change-Id: Id8776d149b2977548a9eb455ad4926af55e25aba
/frameworks/base/tests/net/java/com/android/server/net/NetworkStatsCollectionTest.java
3d6ba6ed6d1d3ab90a50fb3b461d833db381fe9f 12-Oct-2017 Hugo Benichi <hugobenichi@google.com> Migrating remaining core networking tests to Junit4

Bug: 62918393
Test: runtest frameworks-net
Change-Id: I30f7eaa0307b8fad5a8de7a0da235a4f76c18677
/frameworks/base/tests/net/java/com/android/server/net/NetworkStatsCollectionTest.java
d405d0555ce704d0417b85884ed267ac141302de 01-Sep-2017 Jeff Sharkey <jsharkey@android.com> Gracefully handle integer overflows.

Try sticking with integer-based math as much as possible for speed,
but switch to double-based math if we detect that we'd end up
causing an overflow.

New tests to verify.

Test: bit FrameworksNetTests:com.android.server.net.NetworkStatsCollectionTest
Bug: 65257769
Change-Id: I1ae35599be134f81850c0a3d86928b057fba1eff
/frameworks/base/tests/net/java/com/android/server/net/NetworkStatsCollectionTest.java
f4de294297de47d8c594956b2d8607e314e71836 29-Aug-2017 Jeff Sharkey <jsharkey@android.com> Augment network stats based on SubscriptionPlan.

When a carrier provides an "anchor" of data usage at a specific
moment in time, augment the network statistics used by warning/limit
thresholds and Settings UI. For example, if the OS measured 500MB
of usage, but the carrier says only 400MB has been used, we "squish"
down the OS measured usage to match that anchor.

Callers using the hidden API will have their data augmented by
default, and the public API offers a way to opt-into augmentation.

Thorough testing to verify behavior.

Test: bit FrameworksNetTests:android.net.,com.android.server.net.
Test: cts-tradefed run commandAndExit cts-dev -m CtsUsageStatsTestCases -t android.app.usage.cts.NetworkUsageStatsTest
Bug: 64534190
Change-Id: Id3d4d7625bbf04f57643e51dbf376e3fa0ea8eca
/frameworks/base/tests/net/java/com/android/server/net/NetworkStatsCollectionTest.java
e7e10303f3bc545a9763fab7a7e89da9120bedfa 15-May-2017 Hugo Benichi <hugobenichi@google.com> Finish moving NetworkStats tests to tests/net

Follow-up of commit c86013be936f36c61fa0cdfad95141f6de3c6ef7.

Also add @SmallTest annotation to classes moved to tests/net.

Test: no functional change
Bug: 32561414
Change-Id: I0a0e8865d37ba7bae06ce352d3fc385989adc300
/frameworks/base/tests/net/java/com/android/server/net/NetworkStatsCollectionTest.java