Home
last modified time | relevance | path

Searched refs:pkgs (Results 1 – 20 of 20) sorted by relevance

/frameworks/base/services/core/java/com/android/server/pm/
DBackgroundDexOptService.java132 final PackageManagerService pm, final ArraySet<String> pkgs) { in runPostBootUpdate() argument
148 for (String pkg : pkgs) { in runPostBootUpdate()
194 final PackageManagerService pm, final ArraySet<String> pkgs) { in runIdleOptimization() argument
205 for (String pkg : pkgs) { in runIdleOptimization()
264 final ArraySet<String> pkgs = pm.getOptimizablePackages(); in onStartJob() local
265 if (pkgs == null || pkgs.isEmpty()) { in onStartJob()
273 return runPostBootUpdate(params, pm, pkgs); in onStartJob()
275 return runIdleOptimization(params, pm, pkgs); in onStartJob()
DPackageManagerServiceUtils.java70 private static void filterRecentlyUsedApps(Collection<PackageParser.Package> pkgs, in filterRecentlyUsedApps() argument
74 int total = pkgs.size(); in filterRecentlyUsedApps()
76 for (Iterator<PackageParser.Package> i = pkgs.iterator(); i.hasNext();) { in filterRecentlyUsedApps()
DOtaDexoptService.java234 Collection<PackageParser.Package> pkgs = mPackageManagerService.getPackages(); in moveAbArtifacts() local
235 for (PackageParser.Package pkg : pkgs) { in moveAbArtifacts()
DPackageManagerService.java4699 ArraySet<String> pkgs = mAppOpPermissionPackages.get(permissionName);
4700 if (pkgs == null) {
4703 return pkgs.toArray(new String[pkgs.size()]);
7115 List<PackageParser.Package> pkgs; in updatePackagesIfNeeded() local
7117 pkgs = PackageManagerServiceUtils.getPackagesForDexopt(mPackages.values(), this); in updatePackagesIfNeeded()
7121 final int[] stats = performDexOptUpgrade(pkgs, mIsPreNUpgrade /* showDialog */, in updatePackagesIfNeeded()
7140 private int[] performDexOptUpgrade(List<PackageParser.Package> pkgs, boolean showDialog, in performDexOptUpgrade() argument
7147 final int numberOfPackagesToDexopt = pkgs.size(); in performDexOptUpgrade()
7149 for (PackageParser.Package pkg : pkgs) { in performDexOptUpgrade()
7288 ArraySet<String> pkgs = new ArraySet<String>(); in getOptimizablePackages() local
[all …]
/frameworks/base/services/backup/java/com/android/server/backup/
DPackageManagerBackupAgent.java138 List<PackageInfo> pkgs; in getStorableApplications() local
139 pkgs = pm.getInstalledPackages(PackageManager.GET_SIGNATURES); in getStorableApplications()
140 int N = pkgs.size(); in getStorableApplications()
142 PackageInfo pkg = pkgs.get(a); in getStorableApplications()
144 pkgs.remove(a); in getStorableApplications()
147 return pkgs; in getStorableApplications()
582 private void writeStateFile(List<PackageInfo> pkgs, ComponentName preferredHome, in writeStateFile() argument
608 for (PackageInfo pkg : pkgs) { in writeStateFile()
DBackupManagerService.java4172 List<String> pkgs = in run() local
4174 if (pkgs != null) { in run()
4179 for (String s : pkgs) { in run()
4185 addPackagesToSet(packagesToBackup, pkgs); in run()
/frameworks/base/services/core/java/com/android/server/am/
DAppTimeTracker.java84 Bundle pkgs = new Bundle(); in deliverResult() local
86 pkgs.putLong(mPackageTimes.keyAt(i), mPackageTimes.valueAt(i).value); in deliverResult()
88 extras.putBundle(ActivityOptions.EXTRA_USAGE_TIME_REPORT_PACKAGES, pkgs); in deliverResult()
DCompatModePackages.java395 HashMap<String, Integer> pkgs; in saveCompatModes() local
397 pkgs = new HashMap<String, Integer>(mPackages); in saveCompatModes()
413 final Iterator<Map.Entry<String, Integer>> it = pkgs.entrySet().iterator(); in saveCompatModes()
DActivityManagerService.java6784 String[] pkgs = intent.getStringArrayExtra(Intent.EXTRA_PACKAGES); in finishBooting()
6785 if (pkgs != null) { in finishBooting()
6786 for (String pkg : pkgs) { in finishBooting()
/frameworks/base/services/restrictions/java/com/android/server/restrictions/
DRestrictionsManagerService.java190 String[] pkgs = AppGlobals.getPackageManager().getPackagesForUid(callingUid); in enforceCallerMatchesPackage() local
191 if (pkgs != null) { in enforceCallerMatchesPackage()
192 if (!ArrayUtils.contains(pkgs, packageName)) { in enforceCallerMatchesPackage()
/frameworks/base/tools/preload2/src/com/android/preload/actions/
DRunMonkeyAction.java78 String pkgs[] = packages.split(","); in run() local
80 for (String pkg : pkgs) { in run()
/frameworks/base/core/java/android/app/
DNotificationManager.java691 final String[] pkgs = service.getPackagesRequestingNotificationPolicyAccess(); in getPackagesRequestingNotificationPolicyAccess() local
692 if (pkgs != null && pkgs.length > 0) { in getPackagesRequestingNotificationPolicyAccess()
693 final ArraySet<String> rt = new ArraySet<>(pkgs.length); in getPackagesRequestingNotificationPolicyAccess()
694 for (int i = 0; i < pkgs.length; i++) { in getPackagesRequestingNotificationPolicyAccess()
695 rt.add(pkgs[i]); in getPackagesRequestingNotificationPolicyAccess()
/frameworks/base/services/core/java/com/android/server/
DServiceWatcher.java123 String[] pkgs = resources.getStringArray(initialPackageNamesResId); in ServiceWatcher() local
124 if (pkgs != null) initialPackageNames.addAll(Arrays.asList(pkgs)); in ServiceWatcher()
126 if (D) Log.d(mTag, "Overlay enabled, packages=" + Arrays.toString(pkgs)); in ServiceWatcher()
DLocationManagerService.java383 private void ensureFallbackFusedProviderPresentLocked(ArrayList<String> pkgs) { in ensureFallbackFusedProviderPresentLocked() argument
386 ArrayList<HashSet<Signature>> sigSets = ServiceWatcher.getSignatureSets(mContext, pkgs); in ensureFallbackFusedProviderPresentLocked()
485 String[] pkgs = resources.getStringArray( in loadProvidersLocked() local
488 Arrays.toString(pkgs)); in loadProvidersLocked()
489 if (pkgs != null) providerPackageNames.addAll(Arrays.asList(pkgs)); in loadProvidersLocked()
DAppOpsService.java264 ArrayMap<String, Ops> pkgs = uidState.pkgOps; in systemReady() local
265 if (pkgs == null) { in systemReady()
269 Iterator<Ops> it = pkgs.values().iterator(); in systemReady()
DTelephonyRegistry.java1537 String[] pkgs = mContext.getPackageManager().getPackagesForUid(Binder.getCallingUid()); in enforceCarrierPrivilege() local
1538 for (String pkg : pkgs) { in enforceCarrierPrivilege()
/frameworks/base/graphics/java/android/graphics/
DTypeface.java217 final SparseArray<String> pkgs = mgr.getAssignedPackageIdentifiers(); in createAssetUid() local
219 final int size = pkgs.size(); in createAssetUid()
221 builder.append(pkgs.valueAt(i)); in createAssetUid()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationManagerService.java4275 final ArraySet<String> pkgs = getGrantedPackages(); in put()
4278 changed = pkgs.add(pkg); in put()
4280 changed = pkgs.remove(pkg); in put()
4283 final String setting = TextUtils.join(SEPARATOR, pkgs); in put()
4296 final ArraySet<String> pkgs = new ArraySet<>(); in getGrantedPackages() local
4314 pkgs.add(token); in getGrantedPackages()
4320 return pkgs; in getGrantedPackages()
4327 final List<PackageInfo> pkgs = list.getList(); in getRequestingPackages() local
4328 if (pkgs == null || pkgs.isEmpty()) return new String[0]; in getRequestingPackages()
4329 final int N = pkgs.size(); in getRequestingPackages()
[all …]
/frameworks/base/core/java/android/os/
DBatteryStats.java5574 Pair<ArrayList<String>, MutableBoolean> pkgs = uids.get( in dumpCheckinLocked() local
5576 if (pkgs == null) { in dumpCheckinLocked()
5577 pkgs = new Pair<>(new ArrayList<String>(), new MutableBoolean(false)); in dumpCheckinLocked()
5578 uids.put(UserHandle.getAppId(ai.uid), pkgs); in dumpCheckinLocked() local
5580 pkgs.first.add(ai.packageName); in dumpCheckinLocked()
5587 Pair<ArrayList<String>, MutableBoolean> pkgs = uids.get(uid); in dumpCheckinLocked() local
5588 if (pkgs != null && !pkgs.second.value) { in dumpCheckinLocked()
5589 pkgs.second.value = true; in dumpCheckinLocked()
5590 for (int j=0; j<pkgs.first.size(); j++) { in dumpCheckinLocked()
5592 lineArgs[1] = pkgs.first.get(j); in dumpCheckinLocked()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java8240 final String[] pkgs = mContext.getPackageManager().getPackagesForUid(callerUid); in isCallerDeviceOwner() local
8242 for (String pkg : pkgs) { in isCallerDeviceOwner()