Home
last modified time | relevance | path

Searched refs:BatteryUsageInfoItem (Results 1 – 2 of 2) sorted by relevance

/tools/loganalysis/src/com/android/loganalysis/item/
DBatteryUsageItem.java39 private Collection<BatteryUsageInfoItem> mBatteryUsage = new LinkedList<BatteryUsageInfoItem>();
43 public static class BatteryUsageInfoItem extends GenericItem { class in BatteryUsageItem
58 public BatteryUsageInfoItem(String name, double usage) { in BatteryUsageInfoItem() method in BatteryUsageItem.BatteryUsageInfoItem
86 mBatteryUsage.add(new BatteryUsageInfoItem(name, usage)); in addBatteryUsage()
93 public List<BatteryUsageInfoItem> getBatteryUsage() { in getBatteryUsage()
94 return (List<BatteryUsageInfoItem>)mBatteryUsage; in getBatteryUsage()
127 for (BatteryUsageInfoItem usage : mBatteryUsage) { in toJson()
/tools/loganalysis/tests/src/com/android/loganalysis/item/
DBatteryUsageItemTest.java18 import com.android.loganalysis.item.BatteryUsageItem.BatteryUsageInfoItem;
47 assertTrue(usage.getJSONObject(0).has(BatteryUsageInfoItem.NAME)); in testToJson()
48 assertTrue(usage.getJSONObject(0).has(BatteryUsageInfoItem.USAGE)); in testToJson()
50 assertTrue(usage.getJSONObject(1).has(BatteryUsageInfoItem.NAME)); in testToJson()
51 assertTrue(usage.getJSONObject(1).has(BatteryUsageInfoItem.USAGE)); in testToJson()