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

Commit c7af0eff authored by Kweku Adams's avatar Kweku Adams
Browse files

Fix dump calculation.

Fix the calculation of unsatisfied constraints so the dump properly
prints out unsatisfied implicit constraints.

Bug: 141495777
Test: read logcat
Change-Id: I1d764de17c2605d99c2567b445874756b8bbf809
parent e87bf3f9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2124,9 +2124,9 @@ public final class JobStatus {
            sb.append(" READY");
        } else {
            sb.append(" satisfied:0x").append(Integer.toHexString(satisfiedConstraints));
            final int requiredConstraints = mRequiredConstraintsOfInterest | IMPLICIT_CONSTRAINTS;
            sb.append(" unsatisfied:0x").append(Integer.toHexString(
                    (satisfiedConstraints & (mRequiredConstraintsOfInterest | IMPLICIT_CONSTRAINTS))
                            ^ mRequiredConstraintsOfInterest));
                    (satisfiedConstraints & requiredConstraints) ^ requiredConstraints));
        }
        sb.append("}");
        return sb.toString();