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

Commit 03528d7e authored by Jiakai Zhang's avatar Jiakai Zhang
Browse files

Remove `DEBUG_DEXOPT`.

It's only used by AbstractStatsBase now, and there's no need to debug
it.

Bug: 258223472
Test: Presubmit
Flag: EXEMPT cleanup
Change-Id: I94488c903d245676d426e86c7684b62eea57b270
parent 47485661
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -38,8 +38,7 @@ import java.util.concurrent.atomic.AtomicLong;
 */
public abstract class AbstractStatsBase<T> {

    private static final int WRITE_INTERVAL_MS =
            (PackageManagerService.DEBUG_DEXOPT) ? 0 : 30*60*1000;
    private static final int WRITE_INTERVAL_MS = 30 * 60 * 1000;
    private final Object mFileLock = new Object();
    private final AtomicLong mLastTimeWritten = new AtomicLong(0);
    private final AtomicBoolean mBackgroundWriteRunning = new AtomicBoolean(false);
@@ -66,8 +65,7 @@ public abstract class AbstractStatsBase<T> {
    }

    protected boolean maybeWriteAsync(final T data) {
        if (SystemClock.elapsedRealtime() - mLastTimeWritten.get() < WRITE_INTERVAL_MS
            && !PackageManagerService.DEBUG_DEXOPT) {
        if (SystemClock.elapsedRealtime() - mLastTimeWritten.get() < WRITE_INTERVAL_MS) {
            return false;
        }

+0 −5
Original line number Diff line number Diff line
@@ -357,11 +357,6 @@ public class PackageManagerService implements PackageSender, TestUtilityService
    public static final boolean TRACE_SNAPSHOTS = false;
    private static final boolean DEBUG_PER_UID_READ_TIMEOUTS = false;

    // Debug output for dexopting. This is shared between PackageManagerService, OtaDexoptService
    // and PackageDexOptimizer. All these classes have their own flag to allow switching a single
    // user, but by default initialize to this.
    public static final boolean DEBUG_DEXOPT = false;

    static final boolean DEBUG_ABI_SELECTION = false;
    public static final boolean DEBUG_INSTANT = Build.IS_DEBUGGABLE;