Merge "Deprecate BatteryStatsHelper and BatterySipper" into sc-dev am: fb1dc9e3db am: 35da44cdac

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15081293

Change-Id: I3917869b2f8a62807ce59c36af461d79372bc6cf
This commit is contained in:
Dmitri Plotnikov
2021-06-23 22:13:35 +00:00
committed by Automerger Merge Worker
2 changed files with 6 additions and 0 deletions

View File

@@ -23,7 +23,10 @@ import java.util.List;
/** /**
* Contains power usage of an application, system service, or hardware type. * Contains power usage of an application, system service, or hardware type.
*
* @deprecated Please use BatteryStatsManager.getBatteryUsageStats instead.
*/ */
@Deprecated
public class BatterySipper implements Comparable<BatterySipper> { public class BatterySipper implements Comparable<BatterySipper> {
@UnsupportedAppUsage @UnsupportedAppUsage
public int userId; public int userId;

View File

@@ -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 * 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(). * onAttach() for Fragment), call create() in onCreate() and call destroy() in onDestroy().
*
* @deprecated Please use BatteryStatsManager.getBatteryUsageStats instead.
*/ */
@Deprecated
public class BatteryStatsHelper { public class BatteryStatsHelper {
static final boolean DEBUG = false; static final boolean DEBUG = false;