From 66b45f01ff0df5d7b674105722bdcd33a1bf2233 Mon Sep 17 00:00:00 2001 From: Benjamin Franz Date: Tue, 5 Apr 2016 19:12:39 +0100 Subject: [PATCH] Document which APIs are callable on the parent instance In DPM it is possible to retrieve a parent instance to set policies that are applied to the profile parent. Extend the javadoc to clarify which APIs are actually callable on the parent instance. Bug: 27532279 Change-Id: I7ed40f8c3c7c3089283489bff41a04c70239d5a4 --- .../app/admin/DevicePolicyManager.java | 39 ++++++++++++++++++- 1 file changed, 37 insertions(+), 2 deletions(-) diff --git a/core/java/android/app/admin/DevicePolicyManager.java b/core/java/android/app/admin/DevicePolicyManager.java index 656c7ff01e92f..fa7f8e491f188 100644 --- a/core/java/android/app/admin/DevicePolicyManager.java +++ b/core/java/android/app/admin/DevicePolicyManager.java @@ -5853,8 +5853,43 @@ public class DevicePolicyManager { /** * Called by the profile owner of a managed profile to obtain a {@link DevicePolicyManager} * whose calls act on the parent profile. - *

- * Note only some methods will work on the parent Manager. + * + *

The following methods are supported for the parent instance, all other methods will + * throw a SecurityException when called on the parent instance: + *

* * @return a new instance of {@link DevicePolicyManager} that acts on the parent profile. * @throws SecurityException if {@code admin} is not a profile owner.