Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryDiffEntryTest.java130 assertThat(BatteryDiffEntry.sResourceCache).hasSize(1); in testLoadLabelAndIcon_forSystemBattery_returnExpectedResult()
133 BatteryDiffEntry.sResourceCache.get(entry.getKey()); in testLoadLabelAndIcon_forSystemBattery_returnExpectedResult()
156 assertThat(BatteryDiffEntry.sResourceCache).hasSize(1); in testLoadLabelAndIcon_forUserBattery_returnExpectedResult()
159 BatteryDiffEntry.sResourceCache.get(entry.getKey()); in testLoadLabelAndIcon_forUserBattery_returnExpectedResult()
185 assertThat(BatteryDiffEntry.sResourceCache).hasSize(1); in testGetAppLabel_loadDataFromApplicationInfo()
188 BatteryDiffEntry.sResourceCache.get(entry.getKey()); in testGetAppLabel_loadDataFromApplicationInfo()
205 assertThat(BatteryDiffEntry.sResourceCache).hasSize(1); in testGetAppLabel_loadDataFromPreDefinedNameAndUid()
208 BatteryDiffEntry.sResourceCache.get(entry.getKey()); in testGetAppLabel_loadDataFromPreDefinedNameAndUid()
224 assertThat(BatteryDiffEntry.sResourceCache).isEmpty(); in testGetAppLabel_nullAppLabel_returnAppLabelInBatteryHistEntry()
238 assertThat(BatteryDiffEntry.sResourceCache).isEmpty(); in testGetAppIcon_nonUidConsumer_returnAppIconInBatteryDiffEntry()
[all …]
DBatteryChartPreferenceControllerTest.java121 BatteryDiffEntry.sResourceCache.put( in setUp()
135 assertThat(BatteryDiffEntry.sResourceCache).hasSize(1); in testOnResume_uiModeIsChanged_clearBatteryDiffEntryCache()
141 assertThat(BatteryDiffEntry.sResourceCache).isEmpty(); in testOnResume_uiModeIsChanged_clearBatteryDiffEntryCache()
151 assertThat(BatteryDiffEntry.sResourceCache).hasSize(1); in testOnResume_uiModeIsNotChanged_notClearBatteryDiffEntryCache()
154 assertThat(BatteryDiffEntry.sResourceCache).isNotEmpty(); in testOnResume_uiModeIsNotChanged_notClearBatteryDiffEntryCache()
163 assertThat(BatteryDiffEntry.sResourceCache).hasSize(1); in testOnDestroy_activityIsChanging_clearBatteryEntryCache()
166 assertThat(BatteryDiffEntry.sResourceCache).isEmpty(); in testOnDestroy_activityIsChanging_clearBatteryEntryCache()
173 assertThat(BatteryDiffEntry.sResourceCache).hasSize(1); in testOnDestroy_activityIsNotChanging_notClearBatteryEntryCache()
176 assertThat(BatteryDiffEntry.sResourceCache).isNotEmpty(); in testOnDestroy_activityIsNotChanging_notClearBatteryEntryCache()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryDiffEntry.java41 static final Map<String, BatteryEntry.NameAndIcon> sResourceCache = new HashMap<>(); field in BatteryDiffEntry
191 sResourceCache.put( in loadLabelAndIcon()
206 sResourceCache.put( in loadLabelAndIcon()
220 sResourceCache.put( in loadLabelAndIcon()
270 return sResourceCache.get(getKey()); in getCache()
343 sResourceCache.clear(); in clearCache()