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

Commit 0525b98b authored by Makoto Onuki's avatar Makoto Onuki
Browse files

Show "in parole?" in dumpsys jobscheduler

Bug: 77225434
Test: dumpsys jobscheduler  / incident_report  jobscheduler

Change-Id: I09fb2ca5702b81910b8361d395a94a4d5a6f80c9
parent 150bafd2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -40,6 +40,7 @@ message JobSchedulerServiceDumpProto {
    repeated int32 next_heartbeat = 15;
    optional int64 last_heartbeat_time_millis = 16;
    optional int64 next_heartbeat_time_millis = 17;
    optional bool in_parole = 18;

    repeated int32 started_users = 2;

+4 −0
Original line number Diff line number Diff line
@@ -3036,6 +3036,9 @@ public class JobSchedulerService extends com.android.server.SystemService
            TimeUtils.formatDuration(mLastHeartbeatTime + mConstants.STANDBY_HEARTBEAT_TIME,
                    nowElapsed, pw);
            pw.println();
            pw.print("    In parole?: ");
            pw.print(mInParole);
            pw.println();
            pw.println();

            pw.println("Started users: " + Arrays.toString(mStartedUsers));
@@ -3210,6 +3213,7 @@ public class JobSchedulerService extends com.android.server.SystemService
                    mLastHeartbeatTime - nowUptime);
            proto.write(JobSchedulerServiceDumpProto.NEXT_HEARTBEAT_TIME_MILLIS,
                    mLastHeartbeatTime + mConstants.STANDBY_HEARTBEAT_TIME - nowUptime);
            proto.write(JobSchedulerServiceDumpProto.IN_PAROLE, mInParole);

            for (int u : mStartedUsers) {
                proto.write(JobSchedulerServiceDumpProto.STARTED_USERS, u);