Refactor for moved batterystats AIDL.

Moving this out of libbinder saves 4KB in 44 processes (on cuttlefish) =
176KB of private dirty memory (that is, this takes libbinder from 84 to
80 KB of private dirty memory). This also adds the cost of a new library
in two processes.

Bug: 183654927
Test: boot
Change-Id: I37644388ac7a7807198f5fcfae4186ec418eb862
diff --git a/media/utils/Android.bp b/media/utils/Android.bp
index 748afeb..cdbd52c 100644
--- a/media/utils/Android.bp
+++ b/media/utils/Android.bp
@@ -37,6 +37,7 @@
     ],
     static_libs: [
         "libc_malloc_debug_backtrace",
+        "libbatterystats_aidl",
     ],
     shared_libs: [
         "libaudioutils", // for clock.h
@@ -48,6 +49,9 @@
         "android.hardware.graphics.bufferqueue@1.0",
         "android.hidl.token@1.0-utils",
     ],
+    export_static_lib_headers: [
+        "libbatterystats_aidl",
+    ],
 
     logtags: ["EventLogTags.logtags"],