Home
last modified time | relevance | path

Searched refs:installedPackages (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DUsageStatsDatabaseTest.java658 Set<String> installedPackages) { in verifyPackageDataIsNotRemoved() argument
664 if (!stat.packageStats.containsAll(installedPackages)) { in verifyPackageDataIsNotRemoved()
669 for (String installedPackage : installedPackages) { in verifyPackageDataIsNotRemoved()
695 final Set<String> installedPackages = mIntervalStats.packageStats.keySet(); in testPackageDataIsRemoved() local
696 final String removedPackage = installedPackages.iterator().next(); in testPackageDataIsRemoved()
697 installedPackages.remove(removedPackage); in testPackageDataIsRemoved()
717 verifyPackageDataIsNotRemoved(newDB, UsageStatsManager.INTERVAL_DAILY, installedPackages); in testPackageDataIsRemoved()
718 verifyPackageDataIsNotRemoved(newDB, UsageStatsManager.INTERVAL_WEEKLY, installedPackages); in testPackageDataIsRemoved()
719 verifyPackageDataIsNotRemoved(newDB, UsageStatsManager.INTERVAL_MONTHLY, installedPackages); in testPackageDataIsRemoved()
720 verifyPackageDataIsNotRemoved(newDB, UsageStatsManager.INTERVAL_YEARLY, installedPackages); in testPackageDataIsRemoved()
/frameworks/base/services/usage/java/com/android/server/usage/
DUserUsageStatsService.java118 void init(final long currentTimeMillis, HashMap<String, Long> installedPackages) { in init() argument
119 readPackageMappingsLocked(installedPackages); in init()
122 mDatabase.prunePackagesDataOnUpgrade(installedPackages); in init()
183 private void readPackageMappingsLocked(HashMap<String, Long> installedPackages) { in readPackageMappingsLocked() argument
189 updatePackageMappingsLocked(installedPackages); in readPackageMappingsLocked()
203 boolean updatePackageMappingsLocked(HashMap<String, Long> installedPackages) { in updatePackageMappingsLocked() argument
204 if (ArrayUtils.isEmpty(installedPackages)) { in updatePackageMappingsLocked()
213 if (!installedPackages.containsKey(packageName)) { in updatePackageMappingsLocked()
DUsageStatsDatabase.java624 void prunePackagesDataOnUpgrade(HashMap<String, Long> installedPackages) { in prunePackagesDataOnUpgrade() argument
625 if (ArrayUtils.isEmpty(installedPackages)) { in prunePackagesDataOnUpgrade()
639 if (!pruneStats(installedPackages, stats)) { in prunePackagesDataOnUpgrade()
651 private boolean pruneStats(HashMap<String, Long> installedPackages, IntervalStats stats) { in pruneStats() argument
657 final Long timeInstalled = installedPackages.get(usageStats.mPackageName); in pruneStats()
671 final Long timeInstalled = installedPackages.get(event.mPackage); in pruneStats()
DUsageStatsService.java335 final HashMap<String, Long> installedPackages = getInstalledPackages(userId); in onUserUnlocked() local
358 installedPackages); in onUserUnlocked()
398 final List<PackageInfo> installedPackages = mPackageManager.getInstalledPackagesAsUser( in getInstalledPackages() local
401 for (int i = installedPackages.size() - 1; i >= 0; i--) { in getInstalledPackages()
402 final PackageInfo packageInfo = installedPackages.get(i); in getInstalledPackages()
553 HashMap<String, Long> installedPackages) { in initializeUserUsageStatsServiceLocked() argument
559 service.init(currentTimeMillis, installedPackages); in initializeUserUsageStatsServiceLocked()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCarrierPrivilegesTrackerTest.java141 List<PackageInfo> installedPackages = new ArrayList<>(); in setupInstalledPackages() local
155 installedPackages.add(pkg); in setupInstalledPackages()
159 .thenReturn(installedPackages); in setupInstalledPackages()
/frameworks/base/cmds/bmgr/src/com/android/commands/bmgr/
DBmgr.java437 List<PackageInfo> installedPackages = null; in backupNowAllPackages() local
439 installedPackages = mPm.getInstalledPackages(0, userId).getList(); in backupNowAllPackages()
444 if (installedPackages != null) { in backupNowAllPackages()
446 installedPackages.stream().map(p -> p.packageName).toArray(String[]::new); in backupNowAllPackages()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCarrierPrivilegesTracker.java423 List<PackageInfo> installedPackages = in handleInitializeTracker() local
426 for (PackageInfo pkg : installedPackages) { in handleInitializeTracker()
/frameworks/base/services/core/java/com/android/server/pm/
DLauncherAppsService.java444 List<ApplicationInfo> installedPackages = pmInt.getInstalledApplications(0, in getLauncherActivities() local
446 for (ApplicationInfo applicationInfo : installedPackages) { in getLauncherActivities()