Add more fields to FGS_STATE_CHANGED atom. (atom change)

Bug: 300644381
Test: Manual test with debug logging
Test: atest MockingOomAdjusterTests
Change-Id: I588a09e1038f2203bb4b12a8b1dee91af11248c1
diff --git a/stats/atoms.proto b/stats/atoms.proto
index 0b8cae8..c275e71 100644
--- a/stats/atoms.proto
+++ b/stats/atoms.proto
@@ -5482,6 +5482,23 @@
     optional int32 fgs_start_reason_code_in_bind_service = 34;
     optional int32 fgs_start_reason_code_by_bindings = 35;
 
+    enum FgsStartApi {
+        // Not available -- used in atoms that are unrelated to this selection.
+        FGSSTARTAPI_NA = 0;
+        // The FGS was not started. (likely it's bound.)
+        FGSSTARTAPI_NONE = 1;
+        // The FGS was started with Context.startService().
+        FGSSTARTAPI_START_SERVICE = 2;
+        // The FGS was started with Context.startForegroundService().
+        FGSSTARTAPI_START_FOREGROUND_SERVICE = 3;
+        // It's a delegate FGS.
+        FGSSTARTAPI_DELEGATE = 4;
+
+    }
+    optional FgsStartApi fgs_start_api = 36;
+
+    // Whether setFgsRestrictionLocked() was called in Service.startForeground().
+    optional bool fgs_restriction_recalculated = 37;
 }
 
 /**