Log watchdog-initiated rollback reason

To help with monitoring Mainline releases, log the reason
for a watchdog-initiated rollback. This may be due to
native crashes, app crashes, ANRs or explicit health check
failures.

Add a mapping from PackageWatchdog failure reason to the
new metrics.

Bug: 138782888
Test: atest PackageWatchdogTest
Test: atest StatsdHostTestCases
Change-Id: Ia3e73d955508297004591eac762555665c557b8a
diff --git a/apex/aidl/android/os/IStatsManager.aidl b/apex/aidl/android/os/IStatsManager.aidl
index 5ebb9f2..cc62f07 100644
--- a/apex/aidl/android/os/IStatsManager.aidl
+++ b/apex/aidl/android/os/IStatsManager.aidl
@@ -240,7 +240,7 @@
      * Logs an event for watchdog rollbacks.
      */
      oneway void sendWatchdogRollbackOccurredAtom(in int rollbackType, in String packageName,
-         in long packageVersionCode);
+         in long packageVersionCode, in int rollbackReason, in String failingPackageName);
 
     /**
      * Returns the most recently registered experiment IDs.