/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 | 117 String[] instructionSets, CompilerStats.PackageStats packageStats, in performDexOpt() argument 126 packageStats, packageUseInfo, options); in performDexOpt() 139 String[] targetInstructionSets, CompilerStats.PackageStats packageStats, in performDexOptLI() argument 205 packageStats, options.isDowngrade()); in performDexOptLI() 229 int dexoptFlags, int uid, CompilerStats.PackageStats packageStats, boolean downgrade) { in dexOptPath() argument 256 if (packageStats != null) { in dexOptPath() 258 packageStats.setCompileTime(path, (int)(endTime - startTime)); in dexOptPath()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/app/ |
D | ResolverListControllerTest.java | 97 UsageStats packageStats = initStats(packageName, action, annotation, initialCount); in reportChooserSelection() local 100 slices.add(packageStats); in reportChooserSelection() 131 UsageStats packageStats = new UsageStats(); in initStats() local 132 packageStats.mPackageName = packageName; in initStats() 133 packageStats.mChooserCounts = chooserCounts; in initStats() 134 return packageStats; in initStats() 155 UsageStats packageStats = stats.get(packageName); in getCount() local 156 if (packageStats == null || packageStats.mChooserCounts == null in getCount() 157 || packageStats.mChooserCounts.get(action) == null) { in getCount() 160 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.getCodeBytes(); 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 | 30 public final ArrayMap<String, UsageStats> packageStats = new ArrayMap<>(); field in IntervalStats 45 UsageStats usageStats = packageStats.get(packageName); in getOrCreateUsageStats() 51 packageStats.put(usageStats.mPackageName, usageStats); in getOrCreateUsageStats()
|
D | UserUsageStatsService.java | 125 final int pkgCount = stat.packageStats.size(); in init() 127 UsageStats pkgStats = stat.packageStats.valueAt(i); in init() 205 accResult.addAll(stats.packageStats.values()); 209 final int statCount = stats.packageStats.size(); 211 accResult.add(new UsageStats(stats.packageStats.valueAt(i))); 381 final int pkgCount = stat.packageStats.size(); in rolloverStats() 383 UsageStats pkgStats = stat.packageStats.valueAt(i); in rolloverStats() 520 final ArrayMap<String, UsageStats> pkgStats = stats.packageStats; in printIntervalStats()
|
D | UsageStatsXmlV1.java | 293 statsOut.packageStats.clear(); in read() 340 final int statsCount = stats.packageStats.size(); in write() 342 writeUsageStats(xml, stats, stats.packageStats.valueAt(i)); in write()
|
D | UsageStatsDatabase.java | 566 final int pkgCount = stats.packageStats.size(); in pruneChooserCountsOlderThan() 568 UsageStats pkgStats = stats.packageStats.valueAt(i); in pruneChooserCountsOlderThan()
|
/frameworks/base/core/java/android/os/ |
D | BatteryStats.java | 3828 final ArrayMap<String, ? extends BatteryStats.Uid.Pkg> packageStats in dumpCheckinLocked() local 3830 for (int ipkg=packageStats.size()-1; ipkg>=0; ipkg--) { in dumpCheckinLocked() 3831 final Uid.Pkg ps = packageStats.valueAt(ipkg); in dumpCheckinLocked() 3849 packageStats.keyAt(ipkg), // Apk in dumpCheckinLocked() 5429 final ArrayMap<String, ? extends BatteryStats.Uid.Pkg> packageStats in dumpLocked() local 5431 for (int ipkg=packageStats.size()-1; ipkg>=0; ipkg--) { in dumpLocked() 5432 pw.print(prefix); pw.print(" Apk "); pw.print(packageStats.keyAt(ipkg)); in dumpLocked() 5435 final Uid.Pkg ps = packageStats.valueAt(ipkg); in dumpLocked()
|