Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DBatteryUsageBroadcastReceiverTest.java240 BatteryDiffEntry.sValidForRestriction.put( in onReceive_clearCacheIntentInDebugMode_clearBatteryCacheData()
242 assertThat(BatteryDiffEntry.sValidForRestriction).isNotEmpty(); in onReceive_clearCacheIntentInDebugMode_clearBatteryCacheData()
248 assertThat(BatteryDiffEntry.sValidForRestriction).isEmpty(); in onReceive_clearCacheIntentInDebugMode_clearBatteryCacheData()
256 BatteryDiffEntry.sValidForRestriction.put( in onReceive_clearCacheIntentInNotDebugMode_notClearBatteryCacheData()
258 assertThat(BatteryDiffEntry.sValidForRestriction).isNotEmpty(); in onReceive_clearCacheIntentInNotDebugMode_notClearBatteryCacheData()
264 assertThat(BatteryDiffEntry.sValidForRestriction).isNotEmpty(); in onReceive_clearCacheIntentInNotDebugMode_notClearBatteryCacheData()
DBatteryDiffEntryTest.java222 assertThat(BatteryDiffEntry.sValidForRestriction.get(entry.getKey())).isFalse(); in testLoadLabelAndIcon_forSystemBattery_returnExpectedResult()
248 assertThat(BatteryDiffEntry.sValidForRestriction.get(entry.getKey())).isFalse(); in testLoadLabelAndIcon_forUserBattery_returnExpectedResult()
274 assertThat(BatteryDiffEntry.sValidForRestriction.get(entry.getKey())).isFalse(); in testGetAppLabel_loadDataFromApplicationInfo()
363 BatteryDiffEntry.sValidForRestriction.put("fake application key", Boolean.valueOf(false)); in testClearCache_clearDataForAllCaches()
369 assertThat(BatteryDiffEntry.sValidForRestriction).isEmpty(); in testClearCache_clearDataForAllCaches()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/
DBatteryDiffEntry.java62 static final Map<String, Boolean> sValidForRestriction = new ArrayMap<>(); field in BatteryDiffEntry
348 validForRestriction = sValidForRestriction.get(getKey()); in loadLabelAndIcon()
362 sValidForRestriction.put(getKey(), Boolean.valueOf(mValidForRestriction)); in loadLabelAndIcon()
574 sValidForRestriction.clear(); in clearCache()