Chenbo Feng bce7364aaf Add a lock to protect persistent stats snapshot
Since the network stats could be polled from multiple services at
runtime, it is not thread safe for networkStatsFactory to hold a
persistent stats snapshot without any protection. Use a internal lock to
prevent concurrent modification on mPersistentSnapshot to fix the
problem.

Bug: 124764595
Test: android.app.usage.cts.NetworkUsageStatsTest
      android.net.cts.TrafficStatsTest

Change-Id: I73851336452110afb74d6dd1ca5e50047d5b3d4a
Merged-In: I73851336452110afb74d6dd1ca5e50047d5b3d4a
Merged-In: I22afb46f17697e8b6359d4f593802e0f4b95db8b
(cherry picked from commit 25243b4eb9)
2019-04-23 14:21:05 +00:00
2019-04-09 10:34:26 -07:00
2019-04-11 09:58:11 -07:00
2019-01-09 06:57:13 +00:00
2019-04-11 09:58:11 -07:00
2019-02-11 14:29:27 -08:00
2019-04-09 22:57:58 +00:00
2019-02-14 12:55:10 -05:00
2019-01-22 21:11:25 +00:00
Description
No description provided
21 GiB
Languages
Java 73.7%
Kotlin 14%
PowerBuilder 5.8%
C++ 5.2%
AIDL 1%