diff options
author | junyulai <junyulai@google.com> | 2020-02-12 14:55:54 +0800 |
---|---|---|
committer | junyulai <junyulai@google.com> | 2020-02-14 17:03:35 +0800 |
commit | 05a04c24ad204a13e0e0c6e72863d3c9bb56585a (patch) | |
tree | a3c236c34c260fe31d302219e42f254b00cddab1 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 3091498e78ce7c3e4e71011070e3860da206cf92 (diff) |
[SP17] Wait for stats providers to report stats update
From current design, the traffic accounted by stats providers
will be updated asynchronously when force polling. When upper
layer make two subsequently queries. They will get stale
stats upon the first query, and may get newest/stale stats
base on the result of race.
Thus, wait for a bit of time to allow asynchronous stats update
complete to reduce the chance of race. In pratice, it would
be finished in ~2ms when testing.
Test: systrace.py network
Test: atest FrameworksNetTests
Bug: 147460444
Change-Id: I22a00fc4049cddf77fd578e25769ae1979f2cc6d
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions