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

Commit dfede0a3 authored by Makoto Onuki's avatar Makoto Onuki
Browse files

Show CONSTRAINT_BACKGROUND_NOT_RESTRICTED in dumpsys

Bug: 72331999
Test: Manual test with dumpsys
Test: atest CtsJobSchedulerTestCases
Change-Id: I3f7101f2b0b3c7ec8b1456469477bf42933569c4
parent bab202f7
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1054,6 +1054,14 @@ public final class JobStatus {
        if ((constraints&CONSTRAINT_DEVICE_NOT_DOZING) != 0) {
            pw.print(" DEVICE_NOT_DOZING");
        }
        if ((constraints&CONSTRAINT_BACKGROUND_NOT_RESTRICTED) != 0) {
            pw.print(" BACKGROUND_NOT_RESTRICTED");
        }
        if (constraints != 0) {
            pw.print(" [0x");
            pw.print(Integer.toHexString(constraints));
            pw.print("]");
        }
    }

    /** Writes constraints to the given repeating proto field. */