Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 36960008 authored by Steven Moreland's avatar Steven Moreland
Browse files

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
parent a926d95e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -37,6 +37,7 @@ cc_library {
    ],
    static_libs: [
        "libc_malloc_debug_backtrace",
        "libbatterystats_aidl",
    ],
    shared_libs: [
        "libaudioutils", // for clock.h
@@ -48,6 +49,9 @@ cc_library {
        "android.hardware.graphics.bufferqueue@1.0",
        "android.hidl.token@1.0-utils",
    ],
    export_static_lib_headers: [
        "libbatterystats_aidl",
    ],

    logtags: ["EventLogTags.logtags"],

+1 −0
Original line number Diff line number Diff line
@@ -10,6 +10,7 @@ package {
cc_defaults {
    name: "libmediautils_fuzzer_defaults",
    shared_libs: [
        "libbatterystats_aidl",
        "libbinder",
        "libcutils",
        "liblog",
+1 −1
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@
 * limitations under the License.
 */
#define LOG_TAG "BatteryNotifierFuzzer"
#include <binder/IBatteryStats.h>
#include <batterystats/IBatteryStats.h>
#include <binder/IServiceManager.h>
#include <utils/String16.h>
#include <android/log.h>
+1 −1
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@
#ifndef MEDIA_BATTERY_NOTIFIER_H
#define MEDIA_BATTERY_NOTIFIER_H

#include <binder/IBatteryStats.h>
#include <batterystats/IBatteryStats.h>
#include <utils/Singleton.h>
#include <utils/String8.h>