Home
last modified time | relevance | path

Searched refs:PackageStats (Results 1 – 25 of 37) sorted by relevance

12

/frameworks/base/core/java/android/content/pm/
DPackageStats.java38 public class PackageStats implements Parcelable { class
107 public static final @android.annotation.NonNull Parcelable.Creator<PackageStats> CREATOR
108 = new Parcelable.Creator<PackageStats>() {
109 public PackageStats createFromParcel(Parcel in) {
110 return new PackageStats(in);
113 public PackageStats[] newArray(int size) {
114 return new PackageStats[size];
183 public PackageStats(String pkgName) { in PackageStats() method in PackageStats
189 public PackageStats(String pkgName, int userHandle) { in PackageStats() method in PackageStats
194 public PackageStats(Parcel source) { in PackageStats() method in PackageStats
[all …]
DIPackageStatsObserver.aidl20 import android.content.pm.PackageStats;
30 void onGetStatsCompleted(in PackageStats pStats, boolean succeeded); in onGetStatsCompleted()
DPackageStats.aidl20 parcelable PackageStats;
/frameworks/base/services/core/java/com/android/server/pm/
DCompilerStats.java54 static class PackageStats { class in CompilerStats
67 public PackageStats(String packageName) { in PackageStats() method in CompilerStats.PackageStats
121 private final Map<String, PackageStats> packageStats;
128 public PackageStats getPackageStats(String packageName) { in getPackageStats()
134 public void setPackageStats(String packageName, PackageStats stats) { in setPackageStats()
140 public PackageStats createPackageStats(String packageName) { in createPackageStats()
142 PackageStats newStats = new PackageStats(packageName); in createPackageStats()
148 public PackageStats getOrCreatePackageStats(String packageName) { in getOrCreatePackageStats()
150 PackageStats existingStats = packageStats.get(packageName); in getOrCreatePackageStats()
184 for (PackageStats pkg : packageStats.values()) { in write()
[all …]
DMovePackageHelper.java37 import android.content.pm.PackageStats;
208 final PackageStats stats = new PackageStats(null, -1); in movePackageInternal()
358 private boolean getPackageSizeInfoLI(String packageName, int userId, PackageStats stats) { in getPackageSizeInfoLI()
DInstaller.java24 import android.content.pm.PackageStats;
497 long[] ceDataInodes, String[] codePaths, PackageStats stats) in getAppSize()
519 public void getUserSize(String uuid, int userId, int flags, int[] appIds, PackageStats stats) in getUserSize()
DPackageDexOptimizer.java220 String[] instructionSets, CompilerStats.PackageStats packageStats, in performDexOpt()
252 String[] targetInstructionSets, CompilerStats.PackageStats packageStats, in performDexOptLI()
469 CompilerStats.PackageStats packageStats, boolean downgrade, String profileName, in dexOptPath()
DDexOptHelper.java600 CompilerStats.PackageStats stats = in onDexoptDone()
DPackageManagerService.java7466 public CompilerStats.PackageStats getOrCreateCompilerPackageStats(AndroidPackage pkg) { in getOrCreateCompilerPackageStats()
7470 public CompilerStats.PackageStats getOrCreateCompilerPackageStats(String pkgName) { in getOrCreateCompilerPackageStats()
/frameworks/base/services/core/java/com/android/server/storage/
DDiskStatsFileLogger.java19 import android.content.pm.PackageStats;
70 private List<PackageStats> mPackageStats;
76 List<PackageStats> stats, long systemSize) { in DiskStatsFileLogger()
126 for (Map.Entry<String, PackageStats> entry : filterOnlyPrimaryUser().entrySet()) { in addAppsToJson()
127 PackageStats stat = entry.getValue(); in addAppsToJson()
159 private ArrayMap<String, PackageStats> filterOnlyPrimaryUser() { in filterOnlyPrimaryUser()
160 ArrayMap<String, PackageStats> packageMap = new ArrayMap<>(); in filterOnlyPrimaryUser()
161 for (PackageStats stat : mPackageStats) { in filterOnlyPrimaryUser()
166 PackageStats existingStats = packageMap.get(stat.packageName); in filterOnlyPrimaryUser()
175 packageMap.put(stat.packageName, new PackageStats(stat)); in filterOnlyPrimaryUser()
DAppCollector.java26 import android.content.pm.PackageStats;
53 private CompletableFuture<List<PackageStats>> mStats;
78 public List<PackageStats> getPackageStats(long timeoutMillis) { in getPackageStats()
86 List<PackageStats> value = null; in getPackageStats()
117 List<PackageStats> stats = new ArrayList<>(); in handleMessage()
135 PackageStats packageStats = new PackageStats(app.packageName, in handleMessage()
DDiskStatsLoggingService.java26 import android.content.pm.PackageStats;
174 List<PackageStats> stats = mCollector.getPackageStats(TIMEOUT_MILLIS); in run()
186 List<PackageStats> stats, long systemSize) { in logToFile()
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
DInstallerTest.java22 import android.content.pm.PackageStats;
117 final PackageStats stats = new PackageStats(app.packageName); in testGetAppSize()
118 final PackageStats quotaStats = new PackageStats(app.packageName); in testGetAppSize()
139 final PackageStats stats = new PackageStats("android"); in testGetUserSize()
140 final PackageStats quotaStats = new PackageStats("android"); in testGetUserSize()
190 private static void checkEquals(String msg, PackageStats a, PackageStats b) { in checkEquals()
/frameworks/base/services/usage/java/com/android/server/usage/
DStorageStatsManagerLocal.java20 import android.content.pm.PackageStats;
50 @NonNull PackageStats stats, in augmentStatsForPackageForUser()
67 @NonNull PackageStats stats, int uid, boolean canCallerAccessAllStats); in augmentStatsForUid()
76 void augmentStatsForUser(@NonNull PackageStats stats, @NonNull UserHandle userHandle); in augmentStatsForUser()
DStorageStatsService.java45 import android.content.pm.PackageStats;
400 final PackageStats stats = new PackageStats(TAG); in queryStatsForPackage()
443 final PackageStats stats = new PackageStats(TAG); in queryStatsForUid()
470 final PackageStats manualStats = new PackageStats(TAG); in queryStatsForUid()
498 final PackageStats stats = new PackageStats(TAG); in queryStatsForUser()
503 final PackageStats manualStats = new PackageStats(TAG); in queryStatsForUser()
580 private static void checkEquals(String msg, PackageStats a, PackageStats b) { in checkEquals()
595 private static StorageStats translate(PackageStats stats) { in translate()
957 PackageStats stats, String sourceDirName, String packageName) { in computeAppStatsByDataTypes()
/frameworks/base/services/tests/servicestests/src/com/android/server/storage/
DDiskStatsFileLoggerTest.java19 import android.content.pm.PackageStats;
42 private ArrayList<PackageStats> mPackages;
99 PackageStats firstPackage = new PackageStats("com.test.app"); in testAppsReported()
105 PackageStats secondPackage = new PackageStats("com.test.app2"); in testAppsReported()
141 PackageStats app = new PackageStats("com.test.app"); in testEmulatedExternalStorageCounted()
159 PackageStats app = new PackageStats("com.test.app"); in testDuplicatePackageNameIsNotMergedAcrossMultipleUsers()
166 PackageStats secondApp = new PackageStats("com.test.app"); in testDuplicatePackageNameIsNotMergedAcrossMultipleUsers()
DAppCollectorTest.java26 import android.content.pm.PackageStats;
116 PackageStats stats = new PackageStats("com.test.app"); in testOneValidApp()
133 PackageStats stats = new PackageStats("com.test.app"); in testMultipleUsersOneApp()
134 PackageStats otherStats = new PackageStats("com.test.app"); in testMultipleUsersOneApp()
DDiskStatsLoggingServiceTest.java37 import android.content.pm.PackageStats;
128 ArrayList<PackageStats> apps = new ArrayList<>(); in testPopulatedLogTask()
129 PackageStats testApp = new PackageStats("com.test.app"); in testPopulatedLogTask()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
DJobConcurrencyManager.java418 private final Pools.Pool<PackageStats> mPkgStatsPool =
421 private final SparseArrayMap<String, PackageStats> mActivePkgStats = new SparseArrayMap<>();
473 private final Consumer<PackageStats> mPackageStatsStagingCountClearer =
474 PackageStats::resetStagedCount;
555 final PackageStats packageStats = mActivePkgStats.get(UserHandle.getUserId(uid), pkgName); in onAppRemovedLocked()
1150 final PackageStats packageStats = getPkgStatsLocked( in determineAssignmentsLocked()
1475 private PackageStats getPkgStatsLocked(int userId, @NonNull String packageName) { in getPkgStatsLocked()
1476 PackageStats packageStats = mActivePkgStats.get(userId, packageName); in getPkgStatsLocked()
1480 packageStats = new PackageStats(); in getPkgStatsLocked()
1503 final PackageStats packageStats = in isPkgConcurrencyLimitedLocked()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DApplicationsState.java36 import android.content.pm.PackageStats;
574 final PackageStats legacy = new PackageStats(packageName, userId); in requestSize()
781 private long getTotalInternalSize(PackageStats ps) { in getTotalInternalSize()
790 private long getTotalExternalSize(PackageStats ps) { in getTotalExternalSize()
1388 final PackageStats legacy = new PackageStats( in handleMessage()
1442 public void onGetStatsCompleted(PackageStats stats, boolean succeeded) {
/frameworks/base/services/api/
Dcurrent.txt255 …method public void augmentStatsForPackageForUser(@NonNull android.content.pm.PackageStats, @NonNul…
256 method public void augmentStatsForUid(@NonNull android.content.pm.PackageStats, int, boolean);
257 …method public void augmentStatsForUser(@NonNull android.content.pm.PackageStats, @NonNull android.…
/frameworks/base/apex/blobstore/service/java/com/android/server/blob/
DBlobStoreManagerService.java71 import android.content.pm.PackageStats;
1303 @NonNull PackageStats stats, in augmentStatsForPackageForUser()
1325 public void augmentStatsForUid(@NonNull PackageStats stats, int uid, in augmentStatsForUid()
1347 @NonNull PackageStats stats, @NonNull UserHandle userHandle) { in augmentStatsForUser()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/
DJobConcurrencyManagerTest.java701 final JobConcurrencyManager.PackageStats packageStats = in testIsPkgConcurrencyLimited_top()
766 final JobConcurrencyManager.PackageStats packageStats = in testIsPkgConcurrencyLimited()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DQuotaController.java4749 StateControllerProto.QuotaController.PackageStats.TIMER, predicate); in dumpControllerStateLocked()
4753 StateControllerProto.QuotaController.PackageStats.FG_JOB_TIMER, in dumpControllerStateLocked()
4766 StateControllerProto.QuotaController.PackageStats.SAVED_SESSIONS); in dumpControllerStateLocked()
4778 StateControllerProto.QuotaController.PackageStats.EXECUTION_STATS); in dumpControllerStateLocked()
/frameworks/base/core/proto/android/server/
Djobscheduler.proto720 message PackageStats { message
735 repeated PackageStats package_stats = 5;

12