commit | b7a5ed712570811045cd286da72defd95628fe30 | [log] [tgz] |
---|---|---|
author | Chenbo Feng <fengc@google.com> | Wed Feb 27 19:07:39 2019 -0800 |
committer | Chenbo Feng <fengc@google.com> | Wed Apr 10 12:59:38 2019 -0700 |
tree | e45b17da373d5ce7f7f153b682e8b7e76c7888c0 | |
parent | a61c36281278e282ac53f5ba91b73748374e192f [diff] |
Ask netd to swap stats map before reading To avoid protentail race problem between netd and system_server when reading the network stats map. Always inform netd before reading the stats and let netd to do a swap between active stats map and inactive stats map. So the system_server can safely remove the stats after reading. Bug: 126620214 Test: android.app.usage.cts.NetworkUsageStatsTest android.net.cts.TrafficStatsTest Change-Id: I8fa37c26bec23ffca0b29b679e72ba1189f557f1