summaryrefslogtreecommitdiff
path: root/tools/dump-coverage/dump_coverage.cc
diff options
context:
space:
mode:
authorChenbo Feng <fengc@google.com>2019-03-01 15:07:24 -0800
committerChenbo Feng <fengc@google.com>2019-04-03 11:33:40 -0700
commitf2f1f2709834bacfc5e5e9b80596adbb86aa4610 (patch)
tree430af9a64423f0745adbe26f356c04bde94fe11f /tools/dump-coverage/dump_coverage.cc
parent7754d368f4df84563996d3715b5b7213220c6252 (diff)
Move NetworkStatsFactory into service directory
In order to notify netd to swap eBPF maps before pulling the networkStats from eBPF maps, NetworkStatsFactory need to use the NetdServices to issue binder calls. So it need to be moved from framework/base/core to framework/base/service since object in framework/base/core cannot get any system services. This change is also necessary for setting up a lock inside NetworkStatsFactory to prevent racing between two netstats caller since the lock need to be hold before netd trigger the map swap. Also fix the compile problem caused by moving the NetworkStatsFactory and the related tests. Rename the packages and the jni functions to a more proper name. Bug: 124764595 Bug: 128900919 Test: NetworkStatsFactoryTest android.app.usage.cts.NetworkUsageStatsTest android.net.cts.TrafficStatsTest Merged-In: Ifcfe4df81caf8ede2e4e66a76552cb3200378fa8 Change-Id: Ifcfe4df81caf8ede2e4e66a76552cb3200378fa8
Diffstat (limited to 'tools/dump-coverage/dump_coverage.cc')
0 files changed, 0 insertions, 0 deletions