Log hibernation state with AppStartOccurred atom

Record global hibernation state when starting to launch an activity.
Then log it with AppStartOccurred atom.

Bug: 181183614
Test: test with another change in the same topic
run stats_testdrive 48; triggered the event and output are expected
Test: atest CtsWindowManagerDeviceTestCases:ActivityMetricsLoggerTests
Test: atest CtsStatsdAtomHostTestCases:AppStartStatsTests

Change-Id: Id7c385e850b8321536c74f6e8b2cfefde7bdd7f3
2 files changed