Home
last modified time | relevance | path

Searched refs:packagesToTokensMap (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/services/usage/java/com/android/server/usage/
DPackagesTokenData.java55 public final ArrayMap<String, ArrayMap<String, Integer>> packagesToTokensMap = new ArrayMap<>(); field in PackagesTokenData
94 ArrayMap<String, Integer> packageTokensMap = packagesToTokensMap.get(packageName); in getPackageTokenOrAdd()
97 packagesToTokensMap.put(packageName, packageTokensMap); in getPackageTokenOrAdd()
124 int token = packagesToTokensMap.get(packageName).getOrDefault(key, UNASSIGNED_TOKEN); in getTokenOrAdd()
127 packagesToTokensMap.get(packageName).put(key, token); in getTokenOrAdd()
177 if (!packagesToTokensMap.containsKey(packageName)) { in removePackage()
180 final int packageToken = packagesToTokensMap.get(packageName).get(packageName); in removePackage()
181 packagesToTokensMap.remove(packageName); in removePackage()
DUserUsageStatsService.java239 for (int i = mDatabase.mPackagesTokenData.packagesToTokensMap.size() - 1; i >= 0; i--) { in updatePackageMappingsLocked()
240 final String packageName = mDatabase.mPackagesTokenData.packagesToTokensMap.keyAt(i); in updatePackageMappingsLocked()
DUsageStatsDatabase.java1210 mPackagesTokenData.packagesToTokensMap.put(tokensMap.get(0), packageStringsMap); in readMappingsLocked()
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DIntervalStatsTests.java149 assertEquals(packagesTokenData.packagesToTokensMap.size(), NUMBER_OF_PACKAGES); in testObfuscation()
167 assertEquals(packagesTokenData.packagesToTokensMap.size(), NUMBER_OF_PACKAGES); in testDeobfuscation()