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

Commit 346cee22 authored by Eran Messeri's avatar Eran Messeri Committed by Android (Google) Code Review
Browse files

Merge "DPMS refactoring: Get Profile / Device owner"

parents 2cf2bd9c 9ac405b3
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -199,6 +199,20 @@ public class Preconditions {
        }
    }

    /**
     * Ensures the truth of an expression involving whether the calling identity is authorized to
     * call the calling method.
     *
     * @param expression a boolean expression
     * @param message the message of the security exception to be thrown
     * @throws SecurityException if {@code expression} is false
     */
    public static void checkSecurity(final boolean expression, final String message) {
        if (!expression) {
            throw new SecurityException(message);
        }
    }

    /**
     * Ensures the truth of an expression involving whether the calling user is authorized to
     * call the calling method.
+200 −91

File changed.

Preview size limit exceeded, changes collapsed.