commit | 82a074b191bd01f23f815c46090fcfec501f8778 | [log] [tgz] |
---|---|---|
author | Andy Hung <hunga@google.com> | Tue Dec 03 14:16:45 2019 -0800 |
committer | Andy Hung <hunga@google.com> | Wed Dec 04 14:33:50 2019 -0800 |
tree | b624d81c1f7d829c338e7418eb356951ec9ce27f | |
parent | 1efc9c6f15b61040eb80a5d61b947cd0a6356ed9 [diff] [blame] |
MediaMetrics: Add const correctness for items in service Allows multithreaded use of items without lock. Test: mediametrics dumpsys, atest mediametrics_tests Bug: 138583596 Change-Id: Ieb901076b9acc33a89737b320a4fc8ce82f2608d
diff --git a/services/mediaanalytics/statsd_audiothread.cpp b/services/mediaanalytics/statsd_audiothread.cpp index e9d6b17..e62899b 100644 --- a/services/mediaanalytics/statsd_audiothread.cpp +++ b/services/mediaanalytics/statsd_audiothread.cpp
@@ -37,7 +37,7 @@ namespace android { -bool statsd_audiothread(MediaAnalyticsItem *item) +bool statsd_audiothread(const MediaAnalyticsItem *item) { if (item == NULL) return false;