Home
last modified time | relevance | path

Searched refs:batteryHistoryMap (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DConvertUtilsTest.java171 final Map<Long, Map<String, BatteryHistEntry>> batteryHistoryMap = in testGetIndexedUsageMap_returnsExpectedResult() local
181 batteryHistoryMap.put(Long.valueOf(batteryHistoryKeys[0]), entryMap); in testGetIndexedUsageMap_returnsExpectedResult()
185 batteryHistoryMap.put(Long.valueOf(batteryHistoryKeys[1]), entryMap); in testGetIndexedUsageMap_returnsExpectedResult()
192 batteryHistoryMap.put(Long.valueOf(batteryHistoryKeys[2]), entryMap); in testGetIndexedUsageMap_returnsExpectedResult()
202 batteryHistoryMap.put(Long.valueOf(batteryHistoryKeys[3]), entryMap); in testGetIndexedUsageMap_returnsExpectedResult()
215 batteryHistoryMap.put(Long.valueOf(batteryHistoryKeys[4]), entryMap); in testGetIndexedUsageMap_returnsExpectedResult()
219 mContext, timeSlotSize, batteryHistoryKeys, batteryHistoryMap, in testGetIndexedUsageMap_returnsExpectedResult()
244 mContext, timeSlotSize, batteryHistoryKeys, batteryHistoryMap, in testGetIndexedUsageMap_returnsExpectedResult()
265 batteryHistoryMap.put(105L + index + 1, new HashMap<>()); in testGetIndexedUsageMap_returnsExpectedResult()
268 .thenReturn(batteryHistoryMap); in testGetIndexedUsageMap_returnsExpectedResult()
[all …]
DBatteryHistoryLoaderTest.java53 final Map<Long, Map<String, BatteryHistEntry>> batteryHistoryMap = new HashMap<>(); in testLoadIBackground_returnsMapFromPowerFeatureProvider() local
54 doReturn(batteryHistoryMap).when(mFeatureFactory.powerUsageFeatureProvider) in testLoadIBackground_returnsMapFromPowerFeatureProvider()
58 .isSameInstanceAs(batteryHistoryMap); in testLoadIBackground_returnsMapFromPowerFeatureProvider()
DBatteryChartPreferenceControllerTest.java701 final Map<Long, Map<String, BatteryHistEntry>> batteryHistoryMap = new HashMap<>(); in createBatteryHistoryMap() local
708 batteryHistoryMap.put(Long.valueOf(index + 1), entryMap); in createBatteryHistoryMap()
710 return batteryHistoryMap; in createBatteryHistoryMap()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryChartPreferenceController.java259 final Map<Long, Map<String, BatteryHistEntry>> batteryHistoryMap) { in setBatteryHistoryMap() argument
261 if (batteryHistoryMap == null || batteryHistoryMap.isEmpty()) { in setBatteryHistoryMap()
268 mBatteryHistoryKeys = getBatteryHistoryKeys(batteryHistoryMap); in setBatteryHistoryMap()
272 final Map<String, BatteryHistEntry> entryMap = batteryHistoryMap.get(timestamp); in setBatteryHistoryMap()
289 batteryHistoryMap.size(), in setBatteryHistoryMap()
295 new LoadAllItemsInfoTask(batteryHistoryMap).execute(); in setBatteryHistoryMap()
618 final Map<Long, Map<String, BatteryHistEntry>> batteryHistoryMap = in getBatteryLast24HrUsageData() local
622 if (batteryHistoryMap == null || batteryHistoryMap.isEmpty()) { in getBatteryLast24HrUsageData()
626 batteryHistoryMap.size(), (System.currentTimeMillis() - start))); in getBatteryLast24HrUsageData()
631 getBatteryHistoryKeys(batteryHistoryMap), in getBatteryLast24HrUsageData()
[all …]
DConvertUtils.java176 final Map<Long, Map<String, BatteryHistEntry>> batteryHistoryMap, in getIndexedUsageMap() argument
178 if (batteryHistoryMap == null || batteryHistoryMap.isEmpty()) { in getIndexedUsageMap()
196 batteryHistoryMap.getOrDefault(currentTimestamp, EMPTY_BATTERY_MAP); in getIndexedUsageMap()
198 batteryHistoryMap.getOrDefault(nextTimestamp, EMPTY_BATTERY_MAP); in getIndexedUsageMap()
200 batteryHistoryMap.getOrDefault(nextTwoTimestamp, EMPTY_BATTERY_MAP); in getIndexedUsageMap()
DPowerUsageAdvanced.java226 Map<Long, Map<String, BatteryHistEntry>> batteryHistoryMap) { in onLoadFinished() argument
227 mBatteryHistoryMap = batteryHistoryMap; in onLoadFinished()