Lines Matching refs:pm

17 package com.android.server.pm;
19 import static com.android.server.pm.PackageManagerService.DEBUG_DEXOPT;
38 import com.android.server.pm.dex.DexManager;
156 final PackageManagerService pm, final ArraySet<String> pkgs) {
164 postBootUpdate(jobParams, pm, pkgs);
171 private void postBootUpdate(JobParameters jobParams, PackageManagerService pm,
211 // Unfortunately this will also means that "pm.dexopt.boot=speed-profile" will
212 // behave differently than "pm.dexopt.bg-dexopt=speed-profile" but that's a
214 int result = pm.performDexOptWithStatus(pkg,
228 final PackageManagerService pm, final ArraySet<String> pkgs) {
232 int result = idleOptimization(pm, pkgs, BackgroundDexOptService.this);
245 private int idleOptimization(PackageManagerService pm, ArraySet<String> pkgs, Context context) {
253 int result = optimizePackages(pm, pkgs, lowStorageThreshold, /*is_for_primary_dex*/ true,
261 result = reconcileSecondaryDexFiles(pm.getDexManager());
266 result = optimizePackages(pm, pkgs, lowStorageThreshold, /*is_for_primary_dex*/ false,
272 private int optimizePackages(PackageManagerService pm, ArraySet<String> pkgs,
297 int result = pm.performDexOptWithStatus(pkg,
306 success = pm.performDexOptSecondary(pkg,
351 public static boolean runIdleOptimizationsNow(PackageManagerService pm, Context context) {
356 int result = bdos.idleOptimization(pm, pm.getOptimizablePackages(), context);
369 PackageManagerService pm = (PackageManagerService)ServiceManager.getService("package");
370 if (pm.isStorageLow()) {
377 final ArraySet<String> pkgs = pm.getOptimizablePackages();
387 result = runPostBootUpdate(params, pm, pkgs);
389 result = runIdleOptimization(params, pm, pkgs);