libbinder - split out libbatterystats_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 6 processes (6 * 12KB = 82 KB of additional private dirty memory).
Future considerations: once all these interfaces are moved, I'll file
bugs to have corresponding teams convert them to AIDL.
Bug: 183654927
Test: boot
Change-Id: Ic48f0ac8d5ebd27c76774f680b1891afcb1fa4c1
diff --git a/services/sensorservice/Android.bp b/services/sensorservice/Android.bp
index ca9ff7c..c769e97 100644
--- a/services/sensorservice/Android.bp
+++ b/services/sensorservice/Android.bp
@@ -7,9 +7,6 @@
default_applicable_licenses: ["frameworks_native_license"],
}
-subdirs = [
- "hidl"
-]
cc_library_shared {
name: "libsensorservice",
@@ -52,6 +49,7 @@
"libhardware_legacy",
"libutils",
"liblog",
+ "libbatterystats_aidl",
"libbinder",
"libsensor",
"libsensorprivacy",