summaryrefslogtreecommitdiff
path: root/services/stats/StatsAidl.cpp
diff options
context:
space:
mode:
author Vova Sharaienko <sharaienko@google.com> 2025-03-13 14:06:30 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2025-03-13 14:06:30 -0700
commit11a92a99db63fafe9efe05607e8d93fb9bc31950 (patch)
treec3cd0075d9c21f22d6b3e64f3b0e8e80f996a79a /services/stats/StatsAidl.cpp
parentb4fbc2d90134f6304939286bb302356b8cacb5b8 (diff)
parentc7f6586371c2f6cc077d939cb66fb978ad57b1aa (diff)
Merge "[libstatshidl] Removed dependency on libstatslog" into main
Diffstat (limited to 'services/stats/StatsAidl.cpp')
-rw-r--r--services/stats/StatsAidl.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/services/stats/StatsAidl.cpp b/services/stats/StatsAidl.cpp
index b22f903654..66f7682dd8 100644
--- a/services/stats/StatsAidl.cpp
+++ b/services/stats/StatsAidl.cpp
@@ -26,9 +26,8 @@
#include <log/log.h>
#include <stats_annotations.h>
#include <stats_event.h>
-#include <statslog.h>
-#include <unordered_map>
+#include <map>
namespace {
static const char* g_AtomErrorMetricName =
@@ -118,8 +117,8 @@ ndk::ScopedAStatus StatsHal::reportVendorAtom(const VendorAtom& vendorAtom) {
}
}
- // populate map for quickier access for VendorAtomValue associated annotations by value index
- std::unordered_map<int, int> fieldIndexToAnnotationSetMap;
+ // populate map for quicker access for VendorAtomValue associated annotations by value index
+ std::map<int, int> fieldIndexToAnnotationSetMap;
if (vendorAtom.valuesAnnotations) {
const std::vector<std::optional<AnnotationSet>>& valuesAnnotations =
*vendorAtom.valuesAnnotations;