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

Commit da3ed39e authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix enabling of power stats exporters: PHONE and CUSTOM" into main

parents f29257fb cb5a5cb6
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -687,6 +687,9 @@ public final class BatteryStatsService extends IBatteryStats.Stub
        mBatteryUsageStatsProvider.setPowerStatsExporterEnabled(
                BatteryConsumer.POWER_COMPONENT_MOBILE_RADIO,
                Flags.streamlinedConnectivityBatteryStats());
        mBatteryUsageStatsProvider.setPowerStatsExporterEnabled(
                BatteryConsumer.POWER_COMPONENT_PHONE,
                Flags.streamlinedConnectivityBatteryStats());

        mStats.setPowerStatsCollectorEnabled(BatteryConsumer.POWER_COMPONENT_WIFI,
                Flags.streamlinedConnectivityBatteryStats());
@@ -737,6 +740,9 @@ public final class BatteryStatsService extends IBatteryStats.Stub
        // By convention POWER_COMPONENT_ANY represents custom Energy Consumers
        mStats.setPowerStatsCollectorEnabled(BatteryConsumer.POWER_COMPONENT_ANY,
                Flags.streamlinedMiscBatteryStats());
        mBatteryUsageStatsProvider.setPowerStatsExporterEnabled(
                BatteryConsumer.POWER_COMPONENT_ANY,
                Flags.streamlinedMiscBatteryStats());

        mWorker.systemServicesReady();
        mStats.systemServicesReady(mContext);