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

Commit 4ec801cb authored by Pietro Maggi's avatar Pietro Maggi
Browse files

Docs: DevicePolicyManager#getStorageEncryptionStatus() cannot be called on the parent instance

Add note to the API that this method will throw a SecurityException if called on a parent instance

Bug: 223789616
Change-Id: I444843ef46eafd126ee40b3affd60bd7deba7d3d
Test: Built docs with [go/abtd]
parent f5bf900a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -6787,6 +6787,8 @@ public class DevicePolicyManager {
     * {@link #ENCRYPTION_STATUS_UNSUPPORTED}, {@link #ENCRYPTION_STATUS_INACTIVE},
     * {@link #ENCRYPTION_STATUS_ACTIVATING}, {@link #ENCRYPTION_STATUS_ACTIVE_DEFAULT_KEY},
     * {@link #ENCRYPTION_STATUS_ACTIVE}, or {@link #ENCRYPTION_STATUS_ACTIVE_PER_USER}.
     *
     * @throws SecurityException if called on a parent instance.
     */
    public int getStorageEncryptionStatus() {
        throwIfParentInstance("getStorageEncryptionStatus");