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

Commit 34d92ef6 authored by Suprabh Shukla's avatar Suprabh Shukla
Browse files

Updating javadoc for DPM apis

Added @throws tag in the javadoc for many APIs which might throw a
SecurityException in cases when such information might be useful for the
caller. E.g. when the caller has to be a device owner or must request
certain policies before making the API call.

Bug: b/27532288
Change-Id: I18e1a49a5e86a0322c035996ed7e9c3217da78c8
parent e1e3d99c
Loading
Loading
Loading
Loading
+887 −827

File changed.

Preview size limit exceeded, changes collapsed.

+3 −1
Original line number Diff line number Diff line
@@ -75,7 +75,9 @@ public abstract class DevicePolicyManagerInternal {

    /**
     * Checks if a given package has a device or a profile owner for the given user.
     * </br><em>Does <b>not</b> support negative userIds like {@link UserHandle#USER_ALL}</em>
     * <p>
     * <em>Note: does <b>not</b> support negative userIds like {@link UserHandle#USER_ALL}</em>
     *
     * @param packageName The package to check
     * @param userId the userId to check for.
     * @return true if package has a device or profile owner, false otherwise.