Home
last modified time | relevance | path

Searched refs:sPackageNameAndUidCache (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DBatteryDiffEntryTest.java364 BatteryDiffEntry.sPackageNameAndUidCache.put(PACKAGE_NAME, UID); in testClearCache_clearDataForAllCaches()
370 assertThat(BatteryDiffEntry.sPackageNameAndUidCache).isEmpty(); in testClearCache_clearDataForAllCaches()
454 assertThat(BatteryDiffEntry.sPackageNameAndUidCache.containsKey(PACKAGE_NAME)).isFalse(); in testIsUninstalledEntry_installedApp_returnFalse()
456 assertThat(BatteryDiffEntry.sPackageNameAndUidCache.containsKey(PACKAGE_NAME)).isTrue(); in testIsUninstalledEntry_installedApp_returnFalse()
457 assertThat(BatteryDiffEntry.sPackageNameAndUidCache.get(PACKAGE_NAME)).isEqualTo(UID); in testIsUninstalledEntry_installedApp_returnFalse()
469 assertThat(BatteryDiffEntry.sPackageNameAndUidCache.containsKey(PACKAGE_NAME)).isFalse(); in testIsUninstalledEntry_uidZero_returnFalse()
471 assertThat(BatteryDiffEntry.sPackageNameAndUidCache.containsKey(PACKAGE_NAME)).isFalse(); in testIsUninstalledEntry_uidZero_returnFalse()
483 assertThat(BatteryDiffEntry.sPackageNameAndUidCache.containsKey(UNINSTALLED_PACKAGE_NAME)) in testIsUninstalledEntry_uninstalledApp_returnTrue()
486 assertThat(BatteryDiffEntry.sPackageNameAndUidCache.get(UNINSTALLED_PACKAGE_NAME)) in testIsUninstalledEntry_uninstalledApp_returnTrue()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/
DBatteryDiffEntry.java57 static final Map<String, Integer> sPackageNameAndUidCache = new ArrayMap<>(); field in BatteryDiffEntry
322 if (sPackageNameAndUidCache.containsKey(packageName)) { in getPackageUid()
323 return sPackageNameAndUidCache.get(packageName); in getPackageUid()
330 sPackageNameAndUidCache.put(packageName, uid); in getPackageUid()
577 sPackageNameAndUidCache.clear(); in clearCache()