Loading cmds/statsd/Android.bp +58 −0 Original line number Diff line number Diff line Loading @@ -138,11 +138,69 @@ cc_defaults { "android.hardware.power@1.1", "android.hardware.power.stats@1.0", "libpackagelistparser", "libstatsmetadata", "libsysutils", "libcutils", ], } // ================ // libstatsmetadata // ================ genrule { name: "atoms_info.h", tools: ["stats-log-api-gen"], cmd: "$(location stats-log-api-gen) --atomsInfoHeader $(genDir)/atoms_info.h", out: [ "atoms_info.h", ], } genrule { name: "atoms_info.cpp", tools: ["stats-log-api-gen"], cmd: "$(location stats-log-api-gen) --atomsInfoCpp $(genDir)/atoms_info.cpp", out: [ "atoms_info.cpp", ], } cc_library_shared { name: "libstatsmetadata", host_supported: true, generated_sources: [ "atoms_info.cpp", ], generated_headers: [ "atoms_info.h", ], cflags: [ "-Wall", "-Werror", ], export_generated_headers: [ "atoms_info.h", ], shared_libs: [ "libcutils", "libstatslog", ], target: { android: { shared_libs: [ "libutils", ], }, host: { static_libs: [ "libutils", ], }, }, } // ========= // statsd // ========= Loading cmds/statsd/src/FieldValue.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -18,8 +18,8 @@ #include "Log.h" #include "FieldValue.h" #include "HashableDimensionKey.h" #include "atoms_info.h" #include "math.h" #include "statslog.h" namespace android { namespace os { Loading cmds/statsd/src/StatsLogProcessor.cpp +1 −0 Original line number Diff line number Diff line Loading @@ -23,6 +23,7 @@ #include <frameworks/base/cmds/statsd/src/active_config_list.pb.h> #include "StatsLogProcessor.h" #include "android-base/stringprintf.h" #include "atoms_info.h" #include "external/StatsPullerManager.h" #include "guardrail/StatsdStats.h" #include "metrics/CountMetricProducer.h" Loading cmds/statsd/src/external/PowerStatsPuller.cpp +1 −0 Original line number Diff line number Diff line Loading @@ -22,6 +22,7 @@ #include <vector> #include "PowerStatsPuller.h" #include "statslog.h" #include "stats_log_util.h" using android::hardware::hidl_vec; Loading cmds/statsd/src/external/puller_util.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -18,8 +18,8 @@ #include "Log.h" #include "StatsPullerManager.h" #include "atoms_info.h" #include "puller_util.h" #include "statslog.h" namespace android { namespace os { Loading Loading
cmds/statsd/Android.bp +58 −0 Original line number Diff line number Diff line Loading @@ -138,11 +138,69 @@ cc_defaults { "android.hardware.power@1.1", "android.hardware.power.stats@1.0", "libpackagelistparser", "libstatsmetadata", "libsysutils", "libcutils", ], } // ================ // libstatsmetadata // ================ genrule { name: "atoms_info.h", tools: ["stats-log-api-gen"], cmd: "$(location stats-log-api-gen) --atomsInfoHeader $(genDir)/atoms_info.h", out: [ "atoms_info.h", ], } genrule { name: "atoms_info.cpp", tools: ["stats-log-api-gen"], cmd: "$(location stats-log-api-gen) --atomsInfoCpp $(genDir)/atoms_info.cpp", out: [ "atoms_info.cpp", ], } cc_library_shared { name: "libstatsmetadata", host_supported: true, generated_sources: [ "atoms_info.cpp", ], generated_headers: [ "atoms_info.h", ], cflags: [ "-Wall", "-Werror", ], export_generated_headers: [ "atoms_info.h", ], shared_libs: [ "libcutils", "libstatslog", ], target: { android: { shared_libs: [ "libutils", ], }, host: { static_libs: [ "libutils", ], }, }, } // ========= // statsd // ========= Loading
cmds/statsd/src/FieldValue.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -18,8 +18,8 @@ #include "Log.h" #include "FieldValue.h" #include "HashableDimensionKey.h" #include "atoms_info.h" #include "math.h" #include "statslog.h" namespace android { namespace os { Loading
cmds/statsd/src/StatsLogProcessor.cpp +1 −0 Original line number Diff line number Diff line Loading @@ -23,6 +23,7 @@ #include <frameworks/base/cmds/statsd/src/active_config_list.pb.h> #include "StatsLogProcessor.h" #include "android-base/stringprintf.h" #include "atoms_info.h" #include "external/StatsPullerManager.h" #include "guardrail/StatsdStats.h" #include "metrics/CountMetricProducer.h" Loading
cmds/statsd/src/external/PowerStatsPuller.cpp +1 −0 Original line number Diff line number Diff line Loading @@ -22,6 +22,7 @@ #include <vector> #include "PowerStatsPuller.h" #include "statslog.h" #include "stats_log_util.h" using android::hardware::hidl_vec; Loading
cmds/statsd/src/external/puller_util.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -18,8 +18,8 @@ #include "Log.h" #include "StatsPullerManager.h" #include "atoms_info.h" #include "puller_util.h" #include "statslog.h" namespace android { namespace os { Loading