Fixes to counter_span_view_merged.

* Don't require globalness the way global_span_view does.
* Rename it to make that clearer.
* Use it consistently when assembling android_batt_event.

This fixes incorrect appearance of the friendly charging / plug type tracks. We were only taking note of the system properties, not atrace events when building them.

Bug: 270696978
Change-Id: I546da24de249d3473d04fb25d45ce0c5a43a07ef
diff --git a/Android.bp b/Android.bp
index 212882f..a8d21de 100644
--- a/Android.bp
+++ b/Android.bp
@@ -9700,13 +9700,13 @@
         "src/trace_processor/metrics/sql/android/android_trusty_workqueues.sql",
         "src/trace_processor/metrics/sql/android/composer_execution.sql",
         "src/trace_processor/metrics/sql/android/composition_layers.sql",
+        "src/trace_processor/metrics/sql/android/counter_span_view_merged.sql",
         "src/trace_processor/metrics/sql/android/cpu_info.sql",
         "src/trace_processor/metrics/sql/android/display_metrics.sql",
         "src/trace_processor/metrics/sql/android/frame_missed.sql",
         "src/trace_processor/metrics/sql/android/g2d.sql",
         "src/trace_processor/metrics/sql/android/g2d_duration.sql",
         "src/trace_processor/metrics/sql/android/global_counter_span_view.sql",
-        "src/trace_processor/metrics/sql/android/global_counter_span_view_merged.sql",
         "src/trace_processor/metrics/sql/android/gpu_counter_span_view.sql",
         "src/trace_processor/metrics/sql/android/jank/cujs.sql",
         "src/trace_processor/metrics/sql/android/jank/cujs_boundaries.sql",