diff options
| author | 2018-02-20 13:12:27 -0800 | |
|---|---|---|
| committer | 2018-02-20 13:20:54 -0800 | |
| commit | c4aa760428c3fddf891c4bf74c145688e914ee29 (patch) | |
| tree | 41f10beb85b95eb551e62fac0629e6673b6e0fca | |
| parent | 581ff5ec0dd4c63cae9f86ad95b76ff951853b13 (diff) | |
Remove a few atoms from the timestamp truncating whitelist.
Test: statsd test
Change-Id: Ic6a152cb400bef33139357d60f6d0feca855ade2
| -rw-r--r-- | tools/stats_log_api_gen/main.cpp | 7 |
1 files 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<string> kFuzzingAtomNames = { "mobile_radio_power_state_changed" }; + std::set<string> 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<int> kNotTruncatingTimestampAtomWhiteList = {\n"); for (set<AtomDecl>::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()); } |