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

Commit 0aa4313e authored by Dianne Hackborn's avatar Dianne Hackborn
Browse files

A little cleanup of activity manager dumpsys output.

Test: manually ran dumpsys

Change-Id: I0c3a523c501576beba2bf85c61faa026eb2a0440
parent 90a96507
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -15293,11 +15293,13 @@ public class ActivityManagerService extends IActivityManager.Stub
                printedAnything = needSep = true;
            }
        }
        if (dumpAll) {
            if (mValidateUids.size() > 0) {
                if (dumpUids(pw, dumpPackage, mValidateUids, "UID validation:", needSep)) {
                    printedAnything = needSep = true;
                }
            }
        }
        if (mLruProcesses.size() > 0) {
            if (needSep) {
+4 −4
Original line number Diff line number Diff line
@@ -128,13 +128,13 @@ public final class UidRecord {
        }
        sb.append(" procs:");
        sb.append(numProcs);
        sb.append(" curProcStateSeq:");
        sb.append(" seq(");
        sb.append(curProcStateSeq);
        sb.append(" lastNetworkUpdatedProcStateSeq:");
        sb.append(",");
        sb.append(lastNetworkUpdatedProcStateSeq);
        sb.append(" lastDispatchedProcStateSeq:");
        sb.append(",");
        sb.append(lastDispatchedProcStateSeq);
        sb.append("}");
        sb.append(")}");
        return sb.toString();
    }
}
+14 −4
Original line number Diff line number Diff line
@@ -1965,12 +1965,22 @@ public final class JobSchedulerService extends com.android.server.SystemService
                    pw.print(mHandler.isReadyToBeExecutedLocked(job));
                    pw.print(" (job=");
                    pw.print(job.isReady());
                    pw.print(" pending=");
                    pw.print(mPendingJobs.contains(job));
                    pw.print(" active=");
                    pw.print(isCurrentlyActiveLocked(job));
                    pw.print(" user=");
                    pw.print(ArrayUtils.contains(mStartedUsers, job.getUserId()));
                    pw.print(" !pending=");
                    pw.print(!mPendingJobs.contains(job));
                    pw.print(" !active=");
                    pw.print(!isCurrentlyActiveLocked(job));
                    pw.print(" comp=");
                    boolean componentPresent = false;
                    try {
                        componentPresent = (AppGlobals.getPackageManager().getServiceInfo(
                                job.getServiceComponent(),
                                PackageManager.MATCH_DEBUG_TRIAGED_MISSING,
                                job.getUserId()) != null);
                    } catch (RemoteException e) {
                    }
                    pw.print(componentPresent);
                    pw.println(")");
                }
            } else {