perfetto: sync atoms with changes to protos and move to shared folder

See aosp/1510088 for the definition of atoms.

Putting in the android_stats folder means that all Perfetto
components (e.g. traced, perfetto_cmd, trigger_perfetto) can access it.

There should be no behavioural change in this CL.

Doc: go/perfetto-failure-stats
Bug: 174150911
Change-Id: I49bf210150806b18766b19d4ccd0b3c4d4cd7386
diff --git a/BUILD b/BUILD
index 8a1fa06..1c92b43 100644
--- a/BUILD
+++ b/BUILD
@@ -174,8 +174,8 @@
     srcs = [
         ":src_android_internal_headers",
         ":src_android_internal_lazy_library_loader",
+        ":src_android_stats_perfetto_atoms",
         ":src_kallsyms_kallsyms",
-        ":src_perfetto_cmd_perfetto_atoms",
         ":src_traced_probes_android_log_android_log",
         ":src_traced_probes_common_common",
         ":src_traced_probes_data_source",
@@ -556,6 +556,14 @@
     ],
 )
 
+# GN target: //src/android_stats:perfetto_atoms
+filegroup(
+    name = "src_android_stats_perfetto_atoms",
+    srcs = [
+        "src/android_stats/perfetto_atoms.h",
+    ],
+)
+
 # GN target: //src/base:base
 perfetto_cc_library(
     name = "src_base_base",
@@ -660,14 +668,6 @@
     ],
 )
 
-# GN target: //src/perfetto_cmd:perfetto_atoms
-filegroup(
-    name = "src_perfetto_cmd_perfetto_atoms",
-    srcs = [
-        "src/perfetto_cmd/perfetto_atoms.h",
-    ],
-)
-
 # GN target: //src/perfetto_cmd:perfetto_cmd
 filegroup(
     name = "src_perfetto_cmd_perfetto_cmd",
@@ -3032,7 +3032,7 @@
         ":include_perfetto_tracing_tracing",
         ":src_android_internal_headers",
         ":src_android_internal_lazy_library_loader",
-        ":src_perfetto_cmd_perfetto_atoms",
+        ":src_android_stats_perfetto_atoms",
         ":src_perfetto_cmd_perfetto_cmd",
         ":src_perfetto_cmd_trigger_producer",
         ":src_tracing_common",