userdebug: support perfetto traces as a section in incident reports

This set of patches adds a way for the perfetto command line client to
save a trace to a hardcoded location,
/data/misc/perfetto-traces/incident-trace, and call into incidentd to
start a report, which will include said trace in a new section.

This is not a long-term solution, and is structured to minimize changes
to perfetto and incidentd. The latter is currently architected in a way
where it can only pull pre-defined information out of the system, so
we're resorting to persisting the intermediate results in a hardcoded
location.

This will introduce at most two more linked files at the same time.

Bug: 130543265
Tested: manually on blueline-userdebug
Change-Id: Ie9e2f17cee24706c93d63b88ffd3ded4628bac4e
diff --git a/src/android_internal/BUILD.gn b/src/android_internal/BUILD.gn
index 36734fd..142855a 100644
--- a/src/android_internal/BUILD.gn
+++ b/src/android_internal/BUILD.gn
@@ -21,6 +21,7 @@
   sources = [
     "atrace_hal.h",
     "health_hal.h",
+    "incident_service.h",
     "power_stats_hal.h",
   ]
 }
@@ -37,6 +38,7 @@
     sources = [
       "atrace_hal.cc",
       "health_hal.cc",
+      "incident_service.cc",
       "power_stats_hal.cc",
     ]
     libs = [
@@ -44,10 +46,13 @@
       "android.hardware.power.stats@1.0",
       "android.hardware.atrace@1.0",
       "base",
+      "binder",
       "log",
       "hidlbase",
       "hidltransport",
       "hwbinder",
+      "incident",
+      "services",
       "utils",
     ]
   }