Add dump log for BatteryTip.
Since BatteryTipLoader will dump all BatteryTips, so we only need to add toString() for it. Bug: 74246970 Test: RunSettingsRoboTests Change-Id: I0a89c4ac06d107274d47f8b4b66867373c062c1b
This commit is contained in:
@@ -64,6 +64,12 @@ public class AppInfo implements Comparable<AppInfo>, Parcelable {
|
||||
dest.writeLong(screenOnTimeMs);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "packageName=" + packageName + ",anomalyType=" + anomalyType + ",screenTime="
|
||||
+ screenOnTimeMs;
|
||||
}
|
||||
|
||||
public static final Parcelable.Creator CREATOR = new Parcelable.Creator() {
|
||||
public AppInfo createFromParcel(Parcel in) {
|
||||
return new AppInfo(in);
|
||||
|
Reference in New Issue
Block a user