statsd: parse the new format of stats log

+ Changed how we construct LogEvent, now it's based on the context from log_msg
  without making a copy of the list.

+ All stats logs now have the same event tag, the atom id is the first elem in the log.

Test: statsd_test
Change-Id: I4419380f2ee1c2b2155d427b9f2adb78883b337f
diff --git a/cmds/statsd/tests/condition/SimpleConditionTracker_test.cpp b/cmds/statsd/tests/condition/SimpleConditionTracker_test.cpp
index 855e666..80a0068 100644
--- a/cmds/statsd/tests/condition/SimpleConditionTracker_test.cpp
+++ b/cmds/statsd/tests/condition/SimpleConditionTracker_test.cpp
@@ -46,10 +46,9 @@
 }
 
 void makeWakeLockEvent(LogEvent* event, int uid, const string& wl, int acquire) {
-    auto list = event->GetAndroidLogEventList();
-    *list << uid;  // uid
-    *list << wl;
-    *list << acquire;
+    event->write(uid);  // uid
+    event->write(wl);
+    event->write(acquire);
     event->init();
 }