From c4aa760428c3fddf891c4bf74c145688e914ee29 Mon Sep 17 00:00:00 2001 From: Yangster-mac Date: Tue, 20 Feb 2018 13:12:27 -0800 Subject: [PATCH] Remove a few atoms from the timestamp truncating whitelist. Test: statsd test Change-Id: Ic6a152cb400bef33139357d60f6d0feca855ade2 --- tools/stats_log_api_gen/main.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/stats_log_api_gen/main.cpp b/tools/stats_log_api_gen/main.cpp index a50fd1670c38..da67e92a364a 100644 --- a/tools/stats_log_api_gen/main.cpp +++ b/tools/stats_log_api_gen/main.cpp @@ -365,11 +365,14 @@ write_stats_log_header(FILE* out, const Atoms& atoms, const AtomDecl &attributio fprintf(out, "};\n"); fprintf(out, "\n"); - std::set kFuzzingAtomNames = { "mobile_radio_power_state_changed" }; + std::set kTruncatingAtomNames = + { "mobile_radio_power_state_changed", "audio_state_changed", "call_state_changed", + "phone_signal_strength_changed", "mobile_bytes_transfer_by_fg_bg", + "mobile_bytes_transfer"}; fprintf(out, "const static std::set kNotTruncatingTimestampAtomWhiteList = {\n"); for (set::const_iterator atom = atoms.decls.begin(); atom != atoms.decls.end(); atom++) { - if (kFuzzingAtomNames.find(atom->name) == kFuzzingAtomNames.end()) { + if (kTruncatingAtomNames.find(atom->name) == kTruncatingAtomNames.end()) { string constant = make_constant_name(atom->name); fprintf(out, " %s,\n", constant.c_str()); } -- 2.11.0