Searched refs:BatteryUsageInfoItem (Results 1 – 2 of 2) sorted by relevance
39 private Collection<BatteryUsageInfoItem> mBatteryUsage = new LinkedList<BatteryUsageInfoItem>();43 public static class BatteryUsageInfoItem extends GenericItem { class in BatteryUsageItem58 public BatteryUsageInfoItem(String name, double usage) { in BatteryUsageInfoItem() method in BatteryUsageItem.BatteryUsageInfoItem86 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()
18 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()