summaryrefslogtreecommitdiff
path: root/tests/unit/java/android/net/NetworkStatsCollectionTest.java
diff options
context:
space:
mode:
authorAaron Huang <huangaaron@google.com>2022-05-06 02:59:09 +0800
committerAaron Huang <huangaaron@google.com>2022-05-13 15:15:22 +0800
commitb479f79cabf29e8dfcbd6a2bff410a4078754709 (patch)
treea476f07798e71047b3493d05b72bb6fd90daa79e /tests/unit/java/android/net/NetworkStatsCollectionTest.java
parent9f8b90f79632f47f2948c1c3dc9dddf68d1aa862 (diff)
Improve count of openSession callers in dumpsys
Currently, it's only uid=count in dumpsys, however, the call may also come from system but there is no such information in dumpsys. If the call came from system, it's hard to know who is the caller. So, this patch makes pid, uid and package as a key to record the count of the caller. The output will look like, Top openSession callers: {pid=1787,uid=1000,package=android}=26 {pid=2931,uid=1000,package=com.android.settings}=4 Test: adb shell dumpsys netstats and check the output Bug: 228081549 Change-Id: Id2dfdd4480aa5b1ece51e46de6efe30a46629811 (cherry picked from commit b87b5e5d0a4f08f58d85ff11d39a64e2c4e4646b) Merged-In: Id2dfdd4480aa5b1ece51e46de6efe30a46629811
Diffstat (limited to 'tests/unit/java/android/net/NetworkStatsCollectionTest.java')
0 files changed, 0 insertions, 0 deletions