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]
This commit is contained in:
Pietro Maggi
2023-01-09 14:31:58 +00:00
parent f5bf900a96
commit 4ec801cb12

View File

@@ -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");