Loading cmds/statsd/src/AnomalyMonitor.cpp +8 −2 Original line number Diff line number Diff line Loading @@ -17,11 +17,13 @@ #define LOG_TAG "AnomalyMonitor" #define DEBUG true #include <AnomalyMonitor.h> #include "AnomalyMonitor.h" #include <cutils/log.h> using namespace android::os::statsd; namespace android { namespace os { namespace statsd { AnomalyMonitor::AnomalyMonitor(uint32_t minDiffToUpdateRegisteredAlarmTimeSec) : mRegisteredAlarmTimeSec(0), Loading Loading @@ -100,3 +102,7 @@ void AnomalyMonitor::updateRegisteredAlarmTime_l(uint32_t timestampSec) { int64_t AnomalyMonitor::secToMs(uint32_t timeSec) { return ((int64_t) timeSec) * 1000; } } // namespace statsd } // namespace os } // namespace android cmds/statsd/src/AnomalyMonitor.h +2 −1 Original line number Diff line number Diff line Loading @@ -25,7 +25,8 @@ #include <vector> using namespace android; using namespace android::os; using android::os::IStatsCompanionService; namespace android { namespace os { Loading cmds/statsd/src/DropboxReader.cpp +8 −1 Original line number Diff line number Diff line Loading @@ -23,11 +23,14 @@ using android::sp; using android::String16; using android::binder::Status; using android::base::unique_fd; using android::os::statsd::EventMetricData; using android::os::DropBoxManager; using android::ZipUtils; using std::vector; namespace android { namespace os { namespace statsd { status_t DropboxReader::readStatsLogs(FILE* out, const string& tag, long msec) { sp<DropBoxManager> dropbox = new DropBoxManager(); StatsLogReport logReport; Loading Loading @@ -117,3 +120,7 @@ void DropboxReader::printLog(FILE* out, const StatsLogReport& logReport) { } fprintf(out, "\n"); } } // namespace statsd } // namespace os } // namespace android cmds/statsd/src/DropboxReader.h +8 −1 Original line number Diff line number Diff line Loading @@ -23,10 +23,13 @@ #include <stdio.h> using android::base::unique_fd; using android::os::statsd::StatsLogReport; using android::status_t; using std::string; namespace android { namespace os { namespace statsd { class DropboxReader { public: // msec is the start timestamp. Loading @@ -42,4 +45,8 @@ private: }; }; } // namespace statsd } // namespace os } // namespace android #endif //DROPBOX_READER_H cmds/statsd/src/DropboxWriter.cpp +9 −1 Original line number Diff line number Diff line Loading @@ -18,12 +18,16 @@ #include "DropboxWriter.h" using android::os::DropBoxManager; using android::binder::Status; using android::os::DropBoxManager; using android::sp; using android::String16; using std::vector; namespace android { namespace os { namespace statsd { DropboxWriter::DropboxWriter(const string& tag) : mTag(tag), mLogReport(), mBufferSize(0) { } Loading Loading @@ -57,3 +61,7 @@ void DropboxWriter::flush() { mLogReport.Clear(); mBufferSize = 0; } } // namespace statsd } // namespace os } // namespace android Loading
cmds/statsd/src/AnomalyMonitor.cpp +8 −2 Original line number Diff line number Diff line Loading @@ -17,11 +17,13 @@ #define LOG_TAG "AnomalyMonitor" #define DEBUG true #include <AnomalyMonitor.h> #include "AnomalyMonitor.h" #include <cutils/log.h> using namespace android::os::statsd; namespace android { namespace os { namespace statsd { AnomalyMonitor::AnomalyMonitor(uint32_t minDiffToUpdateRegisteredAlarmTimeSec) : mRegisteredAlarmTimeSec(0), Loading Loading @@ -100,3 +102,7 @@ void AnomalyMonitor::updateRegisteredAlarmTime_l(uint32_t timestampSec) { int64_t AnomalyMonitor::secToMs(uint32_t timeSec) { return ((int64_t) timeSec) * 1000; } } // namespace statsd } // namespace os } // namespace android
cmds/statsd/src/AnomalyMonitor.h +2 −1 Original line number Diff line number Diff line Loading @@ -25,7 +25,8 @@ #include <vector> using namespace android; using namespace android::os; using android::os::IStatsCompanionService; namespace android { namespace os { Loading
cmds/statsd/src/DropboxReader.cpp +8 −1 Original line number Diff line number Diff line Loading @@ -23,11 +23,14 @@ using android::sp; using android::String16; using android::binder::Status; using android::base::unique_fd; using android::os::statsd::EventMetricData; using android::os::DropBoxManager; using android::ZipUtils; using std::vector; namespace android { namespace os { namespace statsd { status_t DropboxReader::readStatsLogs(FILE* out, const string& tag, long msec) { sp<DropBoxManager> dropbox = new DropBoxManager(); StatsLogReport logReport; Loading Loading @@ -117,3 +120,7 @@ void DropboxReader::printLog(FILE* out, const StatsLogReport& logReport) { } fprintf(out, "\n"); } } // namespace statsd } // namespace os } // namespace android
cmds/statsd/src/DropboxReader.h +8 −1 Original line number Diff line number Diff line Loading @@ -23,10 +23,13 @@ #include <stdio.h> using android::base::unique_fd; using android::os::statsd::StatsLogReport; using android::status_t; using std::string; namespace android { namespace os { namespace statsd { class DropboxReader { public: // msec is the start timestamp. Loading @@ -42,4 +45,8 @@ private: }; }; } // namespace statsd } // namespace os } // namespace android #endif //DROPBOX_READER_H
cmds/statsd/src/DropboxWriter.cpp +9 −1 Original line number Diff line number Diff line Loading @@ -18,12 +18,16 @@ #include "DropboxWriter.h" using android::os::DropBoxManager; using android::binder::Status; using android::os::DropBoxManager; using android::sp; using android::String16; using std::vector; namespace android { namespace os { namespace statsd { DropboxWriter::DropboxWriter(const string& tag) : mTag(tag), mLogReport(), mBufferSize(0) { } Loading Loading @@ -57,3 +61,7 @@ void DropboxWriter::flush() { mLogReport.Clear(); mBufferSize = 0; } } // namespace statsd } // namespace os } // namespace android