Home
last modified time | relevance | path

Searched refs:str_map (Results 1 – 2 of 2) sorted by relevance

/packages/modules/StatsD/statsd/tests/
Dstatsd_test_util.cpp1419 void backfillStringInDimension(const std::map<uint64_t, string>& str_map, in backfillStringInDimension() argument
1422 auto it = str_map.find((uint64_t)(dimension->value_str_hash())); in backfillStringInDimension()
1423 if (it != str_map.end()) { in backfillStringInDimension()
1433 backfillStringInDimension(str_map, value_tuple->mutable_dimensions_value(i)); in backfillStringInDimension()
1439 std::map<uint64_t, string> str_map; in backfillStringInReport() local
1442 if (str_map.find(hash) != str_map.end()) { in backfillStringInReport()
1443 ALOGE("String hash conflicts: %s %s", str.c_str(), str_map[hash].c_str()); in backfillStringInReport()
1445 str_map[hash] = str; in backfillStringInReport()
1450 backfillStringInDimension(str_map, metric_report->mutable_count_metrics()); in backfillStringInReport()
1452 backfillStringInDimension(str_map, metric_report->mutable_duration_metrics()); in backfillStringInReport()
[all …]
Dstatsd_test_util.h428 void backfillStringInDimension(const std::map<uint64_t, string>& str_map,
432 void backfillStringInDimension(const std::map<uint64_t, string>& str_map, in backfillStringInDimension() argument
437 backfillStringInDimension(str_map, data->mutable_dimensions_in_what()); in backfillStringInDimension()
440 backfillStringInDimension(str_map, data->mutable_dimensions_in_condition()); in backfillStringInDimension()