Integrate the Debug store into frameworks

Introduce debug store to frameworks, and collect data from various events in ActivityThread
for more information, see b/314735374 and b/314735374#comment5

Flag: debug_store_enabled
Bug: 314735374
Test: atest && m && manual testing
Change-Id: I2b3481ae949ef78414dc213c3e1579039791ed31
8 files changed