Searched refs:sPackageNameAndUidCache (Results 1 – 2 of 2) sorted by relevance
364 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()
57 static final Map<String, Integer> sPackageNameAndUidCache = new ArrayMap<>(); field in BatteryDiffEntry322 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()