Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ff1ec4d9 authored by Brian Carlstrom's avatar Brian Carlstrom
Browse files

Use package usage information to decide what dex files to optimize in PackageManagerService

Change-Id: Iac137311e2e9d5139b5aa8651c6f3d296802612a
parent f1f28d1d
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -3534,8 +3534,11 @@ public class PackageParser {
        // file an app came from.
        public String mScanPath;

        // For use by package manager to keep track of where it has done dexopt.
        public boolean mDidDexOpt;
        // For use by package manager to keep track of where it needs to do dexopt.
        public boolean mDexOptNeeded = true;

        // For use by package manager to keep track of when a package was last used.
        public long mLastPackageUsageTimeInMills;

        // // User set enabled state.
        // public int mSetEnabled = PackageManager.COMPONENT_ENABLED_STATE_DEFAULT;
+1 −1
Original line number Diff line number Diff line
@@ -924,7 +924,7 @@ public final class ActivityManagerService extends ActivityManagerNative
    /**
     * This is set if we had to do a delayed dexopt of an app before launching
     * it, to increasing the ANR timeouts in that case.
     * it, to increase the ANR timeouts in that case.
     */
    boolean mDidDexOpt;
+267 −71

File changed.

Preview size limit exceeded, changes collapsed.

+9 −0

File changed.

Preview size limit exceeded, changes collapsed.