package { default_applicable_licenses: ["Android-Apache-2.0"], } cc_library { name: "libpixelhealth", vendor: true, export_include_dirs: ["include"], srcs: [ "BatteryDefender.cpp", "BatteryMetricsLogger.cpp", "BatteryThermalControl.cpp", "ChargerDetect.cpp", "CycleCountBackupRestore.cpp", "DeviceHealth.cpp", "LowBatteryShutdownMetrics.cpp", "StatsHelper.cpp" ], cflags: [ "-Wall", "-Werror", ], static_libs: [ "libbatterymonitor", ], export_shared_lib_headers: [ "android.frameworks.stats-V1-ndk_platform", "pixelatoms-cpp", ], shared_libs: [ "android.frameworks.stats-V1-ndk_platform", "libbase", "libbinder_ndk", "libcutils", "libutils", "pixelatoms-cpp", ], } cc_test { name: "HealthTestCases", compile_multilib: "both", multilib: { lib32: { suffix: "32", }, lib64: { suffix: "64", }, }, srcs: [ "test/TestBatteryDefender.cpp", ], local_include_dirs: [ "include/pixelhealth", ], static_libs: [ "libgmock", "libpixelhealth", "libbatterymonitor", ], shared_libs: [ "libbase", "libcutils", "libutils", ], test_suites: [ "device-tests", ], vendor: true, }