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:
jackqdyulei
2018-03-06 14:56:14 -08:00
committed by Lei Yu
parent 2e79a7cc42
commit 0ed66a4120
7 changed files with 64 additions and 10 deletions

View File

@@ -158,4 +158,9 @@ public abstract class BatteryTip implements Comparable<BatteryTip>, Parcelable {
public int compareTo(BatteryTip o) {
return TIP_ORDER.get(mType) - TIP_ORDER.get(o.mType);
}
@Override
public String toString() {
return "type=" + mType + " state=" + mState;
}
}