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

Commit 5be4b3e5 authored by Dmitri Plotnikov's avatar Dmitri Plotnikov
Browse files

Deprecate BatteryStatsHelper and BatterySipper

Remaining clients of BatteryStatsHelper and BatterySipper should switch
over to BatteryStatsManager.getBatteryUsageStats()

Bug: 191877985
Test: N/A
Change-Id: Icb55e574a3d91bc6bef716e6724b352ef3d426b3
parent 4ed9ab51
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -23,7 +23,10 @@ import java.util.List;

/**
 * Contains power usage of an application, system service, or hardware type.
 *
 * @deprecated Please use BatteryStatsManager.getBatteryUsageStats instead.
 */
@Deprecated
public class BatterySipper implements Comparable<BatterySipper> {
    @UnsupportedAppUsage
    public int userId;
+3 −0
Original line number Diff line number Diff line
@@ -59,7 +59,10 @@ import java.util.List;
 *
 * The caller must initialize this class as soon as activity object is ready to use (for example, in
 * onAttach() for Fragment), call create() in onCreate() and call destroy() in onDestroy().
 *
 * @deprecated Please use BatteryStatsManager.getBatteryUsageStats instead.
 */
@Deprecated
public class BatteryStatsHelper {
    static final boolean DEBUG = false;