Home
last modified time | relevance | path

Searched refs:entryMap (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DConvertUtilsTest.java176 Map<String, BatteryHistEntry> entryMap = new HashMap<>(); in testGetIndexedUsageMap_returnsExpectedResult() local
179 entryMap.put(entry.getKey(), entry); in testGetIndexedUsageMap_returnsExpectedResult()
180 entryMap.put(fakeEntry.getKey(), fakeEntry); in testGetIndexedUsageMap_returnsExpectedResult()
181 batteryHistoryMap.put(Long.valueOf(batteryHistoryKeys[0]), entryMap); in testGetIndexedUsageMap_returnsExpectedResult() local
183 entryMap = new HashMap<>(); in testGetIndexedUsageMap_returnsExpectedResult()
184 entryMap.put(fakeEntry.getKey(), fakeEntry); in testGetIndexedUsageMap_returnsExpectedResult()
185 batteryHistoryMap.put(Long.valueOf(batteryHistoryKeys[1]), entryMap); in testGetIndexedUsageMap_returnsExpectedResult() local
187 entryMap = new HashMap<>(); in testGetIndexedUsageMap_returnsExpectedResult()
190 entryMap.put(entry.getKey(), entry); in testGetIndexedUsageMap_returnsExpectedResult()
191 entryMap.put(fakeEntry.getKey(), fakeEntry); in testGetIndexedUsageMap_returnsExpectedResult()
[all …]
DBatteryChartPreferenceControllerTest.java706 final Map<String, BatteryHistEntry> entryMap = new HashMap<>(); in createBatteryHistoryMap() local
707 entryMap.put("fake_entry_key" + index, entry); in createBatteryHistoryMap()
708 batteryHistoryMap.put(Long.valueOf(index + 1), entryMap); in createBatteryHistoryMap()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryChartPreferenceController.java272 final Map<String, BatteryHistEntry> entryMap = batteryHistoryMap.get(timestamp); in setBatteryHistoryMap() local
273 if (entryMap == null || entryMap.isEmpty()) { in setBatteryHistoryMap()
280 for (BatteryHistEntry entry : entryMap.values()) { in setBatteryHistoryMap()
284 Math.round(batteryLevelCounter / entryMap.size()); in setBatteryHistoryMap()