Searched refs:PowerUsageData (Results 1 – 2 of 2) sorted by relevance
44 import com.android.settings.fuelgauge.PowerUsageAdvanced.PowerUsageData.UsageType;82 private Map<Integer, PowerUsageData> mBatteryDataMap;96 PowerUsageData usageData = mBatteryDataMap.get(usageType);203 List<PowerUsageData> dataList = parsePowerUsageData(statsHelper); in refreshPowerUsageDataList()206 final PowerUsageData batteryData = dataList.get(i); in refreshPowerUsageDataList()250 boolean shouldHideCategory(PowerUsageData powerUsageData) { in shouldHideCategory()264 List<PowerUsageData> parsePowerUsageData(BatteryStatsHelper statusHelper) { in parsePowerUsageData()266 final Map<Integer, PowerUsageData> batteryDataMap = new HashMap<>(); in parsePowerUsageData()269 batteryDataMap.put(type, new PowerUsageData(type)); in parsePowerUsageData()275 final PowerUsageData usageData = batteryDataMap.get(extractUsageType(sipper)); in parsePowerUsageData()[all …]
49 import com.android.settings.fuelgauge.PowerUsageAdvanced.PowerUsageData;50 import com.android.settings.fuelgauge.PowerUsageAdvanced.PowerUsageData.UsageType;98 private PowerUsageData mPowerUsageData;136 mPowerUsageData = new PowerUsageData(UsageType.USER); in setUp()197 List<PowerUsageData> batteryData = in testParsePowerUsageData_PercentageCalculatedCorrectly()199 for (PowerUsageData data : batteryData) { in testParsePowerUsageData_PercentageCalculatedCorrectly()270 List<PowerUsageData> dataList = new ArrayList<>(); in testPowerUsageData_SortedByUsage()272 dataList.add(new PowerUsageData(UsageType.WIFI, TYPE_WIFI_USAGE)); in testPowerUsageData_SortedByUsage()273 dataList.add(new PowerUsageData(UsageType.BLUETOOTH, TYPE_BLUETOOTH_USAGE)); in testPowerUsageData_SortedByUsage()274 dataList.add(new PowerUsageData(UsageType.APP, TYPE_APP_USAGE)); in testPowerUsageData_SortedByUsage()[all …]