Merge "Show "in parole?" in dumpsys jobscheduler" into pi-dev
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user