Searched refs:str_map (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/cmds/statsd/tests/ |
D | statsd_test_util.cpp | 651 void backfillStringInDimension(const std::map<uint64_t, string>& str_map, in backfillStringInDimension() argument 654 auto it = str_map.find((uint64_t)(dimension->value_str_hash())); in backfillStringInDimension() 655 if (it != str_map.end()) { in backfillStringInDimension() 665 backfillStringInDimension(str_map, value_tuple->mutable_dimensions_value(i)); in backfillStringInDimension() 671 std::map<uint64_t, string> str_map; in backfillStringInReport() local 674 if (str_map.find(hash) != str_map.end()) { in backfillStringInReport() 675 ALOGE("String hash conflicts: %s %s", str.c_str(), str_map[hash].c_str()); in backfillStringInReport() 677 str_map[hash] = str; in backfillStringInReport() 682 backfillStringInDimension(str_map, metric_report->mutable_count_metrics()); in backfillStringInReport() 684 backfillStringInDimension(str_map, metric_report->mutable_duration_metrics()); in backfillStringInReport() [all …]
|
D | statsd_test_util.h | 213 void backfillStringInDimension(const std::map<uint64_t, string>& str_map, 217 void backfillStringInDimension(const std::map<uint64_t, string>& str_map, in backfillStringInDimension() argument 222 backfillStringInDimension(str_map, data->mutable_dimensions_in_what()); in backfillStringInDimension() 225 backfillStringInDimension(str_map, data->mutable_dimensions_in_condition()); in backfillStringInDimension()
|