summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorHugo Benichi <hugobenichi@google.com>2017-12-14 09:56:04 +0900
committerHugo Benichi <hugobenichi@google.com>2018-01-29 16:07:33 +0900
commitbb16b75b6722dcc859feb18fb22c69c3ca67efa4 (patch)
tree06b83c3e4b74b4e870226d1004129afb7f55e2c7 /tools/aapt2/java/JavaClassGenerator.cpp
parente93c569bd3812be415dc21f7b60c042675b85503 (diff)
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
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions