android_packages_modules_Co.../tests/net/java/com/android/server
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hugo Benichi 11f04e863e Fix default network validation overcounting
When switching from a validated default network to a new validated
default network (typically because of a better score),
DefaultNetworkMetrics would not reset the last validation timestamp.

This would cause the new default network to have a total recorded
validation time overcounted by the validation time of the previous
default network.

The following fix should be applied downstream for consumers of
previously recorded data:

  validation_time = min validation_time, duration_time);

Test: runtest -x frameworks/base/tests/net/../IpConnectivityMetricsTest
Change-Id: I303d11023527c19435f5f5e796a0295ae3f76d9f
2018-01-29 16:07:33 +09:00
..
connectivity Fix default network validation overcounting 2018-01-29 16:07:33 +09:00
net Track and persist in stats whether traffic is on the default network. 2018-01-19 19:49:16 +09:00
ConnectivityServiceTest.java Let network requests see VPNs. 2018-01-23 21:38:00 +09:00
IpSecServiceParameterizedTest.java Add tunnel-mode calls to netd in IpSecService 2018-01-24 08:19:55 +00:00
IpSecServiceRefcountedResourceTest.java Add reference counted resources to IpSecService 2017-12-12 23:40:52 -08:00
IpSecServiceTest.java Add TunnelInterface API and KernelResourceRecords 2018-01-24 07:24:27 +00:00
NetworkManagementServiceTest.java Prevent crash in NetworkManagementServiceTest#shutdown() 2018-01-29 16:01:56 +09:00
NsdServiceTest.java Fix NPE in NsdServiceTest 2017-09-28 15:22:13 +09:00