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

Commit a02af709 authored by Android Build Merger (Role)'s avatar Android Build Merger (Role) Committed by Android (Google) Code Review
Browse files

Merge "Merge "Disable ScheduledJobConstraintChanged logging for now." into...

Merge "Merge "Disable ScheduledJobConstraintChanged logging for now." into qt-dev am: 0d540455 am: f9b1c71a"
parents f8f2429c 7a1f9376
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -104,6 +104,9 @@ public final class JobStatus {
            | CONSTRAINT_TIMING_DELAY
            | CONSTRAINT_WITHIN_QUOTA;

    // TODO(b/129954980)
    private static final boolean STATS_LOG_ENABLED = false;

    // Soft override: ignore constraints like time that don't affect API availability
    public static final int OVERRIDE_SOFT = 1;
    // Full override: ignore all constraints including API-affecting like connectivity
@@ -1000,7 +1003,7 @@ public final class JobStatus {
        }
        satisfiedConstraints = (satisfiedConstraints&~constraint) | (state ? constraint : 0);
        mSatisfiedConstraintsOfInterest = satisfiedConstraints & CONSTRAINTS_OF_INTEREST;
        if ((STATSD_CONSTRAINTS_TO_LOG & constraint) != 0) {
        if (STATS_LOG_ENABLED && (STATSD_CONSTRAINTS_TO_LOG & constraint) != 0) {
            StatsLog.write_non_chained(StatsLog.SCHEDULED_JOB_CONSTRAINT_CHANGED,
                    sourceUid, null, getBatteryName(), getProtoConstraint(constraint),
                    state ? StatsLog.SCHEDULED_JOB_CONSTRAINT_CHANGED__STATE__SATISFIED