/frameworks/base/services/core/java/com/android/server/pm/ |
D | CompilerStats.java | 121 private final Map<String, PackageStats> packageStats; field in CompilerStats 125 packageStats = new HashMap<>(); in CompilerStats() 129 synchronized (packageStats) { in getPackageStats() 130 return packageStats.get(packageName); in getPackageStats() 135 synchronized (packageStats) { in setPackageStats() 136 packageStats.put(packageName, stats); in setPackageStats() 141 synchronized (packageStats) { in createPackageStats() 143 packageStats.put(packageName, newStats); in createPackageStats() 149 synchronized (packageStats) { in getOrCreatePackageStats() 150 PackageStats existingStats = packageStats.get(packageName); in getOrCreatePackageStats() [all …]
|
D | PackageDexOptimizer.java | 129 String[] instructionSets, CompilerStats.PackageStats packageStats, in performDexOpt() argument 142 packageStats, packageUseInfo, options); in performDexOpt() 155 String[] targetInstructionSets, CompilerStats.PackageStats packageStats, in performDexOptLI() argument 237 packageStats, options.isDowngrade(), profileName, dexMetadataPath, in performDexOptLI() 262 int dexoptFlags, int uid, CompilerStats.PackageStats packageStats, boolean downgrade, in dexOptPath() argument 290 if (packageStats != null) { in dexOptPath() 292 packageStats.setCompileTime(path, (int)(endTime - startTime)); in dexOptPath()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/app/ |
D | ResolverListControllerTest.java | 94 UsageStats packageStats = initStats(packageName, action, annotation, initialCount); in reportChooserSelection() local 97 slices.add(packageStats); in reportChooserSelection() 128 UsageStats packageStats = new UsageStats(); in initStats() local 129 packageStats.mPackageName = packageName; in initStats() 130 packageStats.mChooserCounts = chooserCounts; in initStats() 131 return packageStats; in initStats() 152 UsageStats packageStats = stats.get(packageName); in getCount() local 153 if (packageStats == null || packageStats.mChooserCounts == null in getCount() 154 || packageStats.mChooserCounts.get(action) == null) { in getCount() 157 return packageStats.mChooserCounts.get(action).getOrDefault(annotation, 0); in getCount()
|
/frameworks/base/services/core/java/com/android/server/storage/ |
D | AppCollector.java | 135 PackageStats packageStats = new PackageStats(app.packageName, in handleMessage() local 137 packageStats.cacheSize = storageStats.getCacheBytes(); in handleMessage() 138 packageStats.codeSize = storageStats.getAppBytes(); in handleMessage() 139 packageStats.dataSize = storageStats.getDataBytes(); in handleMessage() 140 stats.add(packageStats); in handleMessage()
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | IntervalStats.java | 66 public final ArrayMap<String, UsageStats> packageStats = new ArrayMap<>(); field in IntervalStats 122 UsageStats usageStats = packageStats.get(packageName); in getOrCreateUsageStats() 128 packageStats.put(usageStats.mPackageName, usageStats); in getOrCreateUsageStats() 299 final int size = packageStats.size(); in update() 301 UsageStats usageStats = packageStats.valueAt(i); in update()
|
D | UserUsageStatsService.java | 254 accResult.addAll(stats.packageStats.values()); 258 final int statCount = stats.packageStats.size(); 260 accResult.add(new UsageStats(stats.packageStats.valueAt(i))); 487 final int pkgCount = stat.packageStats.size(); in rolloverStats() 489 final UsageStats pkgStats = stat.packageStats.valueAt(i); in rolloverStats() 833 final ArrayMap<String, UsageStats> pkgStats = stats.packageStats; in printIntervalStats()
|
D | UsageStatsXmlV1.java | 384 statsOut.packageStats.clear(); in read() 466 final int statsCount = stats.packageStats.size(); in write() 468 writeUsageStats(xml, stats, stats.packageStats.valueAt(i)); in write()
|
D | UsageStatsProto.java | 509 statsOut.packageStats.clear(); in read() 591 final int statsCount = stats.packageStats.size(); in write() 594 stats.packageStats.valueAt(i)); in write()
|
D | UsageStatsDatabase.java | 769 final int pkgCount = stats.packageStats.size(); in pruneChooserCountsOlderThan() 771 UsageStats pkgStats = stats.packageStats.valueAt(i); in pruneChooserCountsOlderThan()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/ |
D | UsageStatsDatabaseTest.java | 307 String[] usageKey1 = stats1.packageStats.keySet().toArray(new String[0]); in compareIntervalStats() 308 String[] usageKey2 = stats2.packageStats.keySet().toArray(new String[0]); in compareIntervalStats() 310 UsageStats usageStats1 = stats1.packageStats.get(usageKey1[i]); in compareIntervalStats() 311 UsageStats usageStats2 = stats2.packageStats.get(usageKey2[i]); in compareIntervalStats()
|
/frameworks/base/core/java/android/os/ |
D | BatteryStats.java | 4428 final ArrayMap<String, ? extends BatteryStats.Uid.Pkg> packageStats in dumpCheckinLocked() local 4430 for (int ipkg=packageStats.size()-1; ipkg>=0; ipkg--) { in dumpCheckinLocked() 4431 final Uid.Pkg ps = packageStats.valueAt(ipkg); in dumpCheckinLocked() 4449 packageStats.keyAt(ipkg), // Apk in dumpCheckinLocked() 6149 final ArrayMap<String, ? extends BatteryStats.Uid.Pkg> packageStats in dumpLocked() 6151 for (int ipkg=packageStats.size()-1; ipkg>=0; ipkg--) { in dumpLocked() 6152 pw.print(prefix); pw.print(" Apk "); pw.print(packageStats.keyAt(ipkg)); in dumpLocked() 6155 final Uid.Pkg ps = packageStats.valueAt(ipkg); in dumpLocked() 7336 final ArrayMap<String, ? extends BatteryStats.Uid.Pkg> packageStats = in dumpProtoAppsLocked() local 7338 for (int ipkg = packageStats.size() - 1; ipkg >= 0; --ipkg) { in dumpProtoAppsLocked() [all …]
|