clang-format existing code in statsd.
Added .clang-format, because there isn't an official .clang-format file for Android framework code.
before we upload changes, do:
clang-format -style=file -i [file list]
to format the files that you touched.
Test: formatting only. NO code changes.
Change-Id: I90e87f1ee6618da8ea9bc2221c609c415a4046a8
diff --git a/cmds/statsd/src/StatsService.h b/cmds/statsd/src/StatsService.h
index 57276d2..a956cbf 100644
--- a/cmds/statsd/src/StatsService.h
+++ b/cmds/statsd/src/StatsService.h
@@ -62,12 +62,13 @@
virtual status_t setProcessor(const sp<StatsLogProcessor>& main_processor);
- // TODO: public for testing since statsd doesn't run when system starts. Change to private later.
+ // TODO: public for testing since statsd doesn't run when system starts. Change to private
+ // later.
/** Inform statsCompanion that statsd is ready. */
virtual void sayHiToStatsCompanion();
private:
- sp<StatsLogProcessor> m_processor; // Reference to the processor for updating configs.
+ sp<StatsLogProcessor> m_processor; // Reference to the processor for updating configs.
const sp<AnomalyMonitor> mAnomalyMonitor; // TODO: Move this to a more logical file/class
@@ -84,8 +85,7 @@
// --- StatsdDeathRecipient ---
class StatsdDeathRecipient : public IBinder::DeathRecipient {
public:
- StatsdDeathRecipient(sp<AnomalyMonitor> anomalyMonitor)
- : mAnmlyMntr(anomalyMonitor) {
+ StatsdDeathRecipient(sp<AnomalyMonitor> anomalyMonitor) : mAnmlyMntr(anomalyMonitor) {
}
virtual void binderDied(const wp<IBinder>& who);
@@ -94,8 +94,8 @@
const sp<AnomalyMonitor> mAnmlyMntr;
};
-} // namespace statsd
-} // namespace os
-} // namespace android
+} // namespace statsd
+} // namespace os
+} // namespace android
-#endif // STATS_SERVICE_H
+#endif // STATS_SERVICE_H