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

Commit 960e72e8 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Atom: ScheduledJobStateChanged"

parents 79a90c83 d5747a6d
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -327,8 +327,9 @@ message ScheduledJobStateChanged {
    optional string name = 2;

    enum State {
        OFF = 0;
        ON = 1;
        FINISHED = 0;
        STARTED = 1;
        SCHEDULED = 2;
    }
    optional State state = 3;

+3 −0
Original line number Diff line number Diff line
@@ -63,6 +63,7 @@ import android.util.KeyValueListParser;
import android.util.Slog;
import android.util.SparseArray;
import android.util.SparseIntArray;
import android.util.StatsLog;
import android.util.TimeUtils;
import android.util.proto.ProtoOutputStream;

@@ -823,6 +824,8 @@ public final class JobSchedulerService extends com.android.server.SystemService
                jobStatus.enqueueWorkLocked(ActivityManager.getService(), work);
            }
            startTrackingJobLocked(jobStatus, toCancel);
            StatsLog.write_non_chained(StatsLog.SCHEDULED_JOB_STATE_CHANGED,
                    uId, null, jobStatus.getBatteryName(), 2);

            // If the job is immediately ready to run, then we can just immediately
            // put it in the pending list and try to schedule it.  This is especially