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

Commit f86af64d authored by Eghosa Ewansiha-Vlachavas's avatar Eghosa Ewansiha-Vlachavas Committed by Android (Google) Code Review
Browse files

Merge "Add delegation info to dumpsys device_policy"

parents 276bed86 058cd67a
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -671,6 +671,21 @@ class DevicePolicyData {
        if (mFactoryResetReason != null) {
            pw.print("mFactoryResetReason="); pw.println(mFactoryResetReason);
        }
        if (mDelegationMap.size() != 0) {
            pw.println("mDelegationMap=");
            pw.increaseIndent();
            for (int i = 0; i < mDelegationMap.size(); i++) {
                List<String> delegationScopes = mDelegationMap.valueAt(i);
                pw.println(mDelegationMap.keyAt(i) + "[size=" + delegationScopes.size()
                        + "]");
                pw.increaseIndent();
                for (int j = 0; j < delegationScopes.size(); j++) {
                    pw.println(j + ": " + delegationScopes.get(j));
                }
                pw.decreaseIndent();
            }
            pw.decreaseIndent();
        }
        pw.decreaseIndent();
    }