Add a collector for /proc/stats and integrate it with IoPerfCollection.

- /proc/stats collector will be invoked by IoPerfCollection module on
each collection.
- Added unit tests to test the parsing and processing logics using
temporary stats file.
- Added unit test to parse and process /proc/stat from device.

Bug: 148486340, 130382110
Test: Tested with unit tests.
Change-Id: Iabb3c344e5e2a318f2ec49364d90bdf10f056f2d
diff --git a/watchdog/server/Android.bp b/watchdog/server/Android.bp
index e1458c7..12e8a5e 100644
--- a/watchdog/server/Android.bp
+++ b/watchdog/server/Android.bp
@@ -46,6 +46,7 @@
     srcs: [
         "src/IoPerfCollection.cpp",
         "src/UidIoStats.cpp",
+        "src/ProcStat.cpp"
     ],
     static_libs: [
         "libgtest_prod",
@@ -65,6 +66,7 @@
     srcs: [
         "tests/IoPerfCollectionTest.cpp",
         "tests/UidIoStatsTest.cpp",
+        "tests/ProcStatTest.cpp",
     ],
     static_libs: [
         "libgmock",