diff options
author | Esteban Talavera <etalavera@google.com> | 2014-08-21 14:03:55 +0100 |
---|---|---|
committer | Esteban Talavera <etalavera@google.com> | 2014-08-21 14:03:55 +0100 |
commit | 1aee98fbf3937879c65c523396939ffa054d2fa0 (patch) | |
tree | 1e81dfb178b8c721214a46cab24010edbc1d2328 /core/java/android/app/admin | |
parent | f860be88a9c8fca910f2d97694d102f627d06c71 (diff) | |
download | frameworks_base-1aee98fbf3937879c65c523396939ffa054d2fa0.zip frameworks_base-1aee98fbf3937879c65c523396939ffa054d2fa0.tar.gz frameworks_base-1aee98fbf3937879c65c523396939ffa054d2fa0.tar.bz2 |
Updated documentation for setScreenCaptureDisabled()
As requested in the API review. Also, removed unused import.
Bug: 17005622
Change-Id: I0bc57411ec34119f64e28eaf27c32a67b45fd66f
Diffstat (limited to 'core/java/android/app/admin')
-rw-r--r-- | core/java/android/app/admin/DevicePolicyManager.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/core/java/android/app/admin/DevicePolicyManager.java b/core/java/android/app/admin/DevicePolicyManager.java index bc4d2c1..e14f497 100644 --- a/core/java/android/app/admin/DevicePolicyManager.java +++ b/core/java/android/app/admin/DevicePolicyManager.java @@ -55,7 +55,6 @@ import java.security.cert.X509Certificate; import java.util.ArrayList; import java.util.Collections; import java.util.List; -import java.util.Set; /** * Public interface for managing policies enforced on a device. Most clients @@ -1875,12 +1874,16 @@ public class DevicePolicyManager { } /** - * Called by a device/profile owner to set whether the screen capture is disabled. + * Called by a device/profile owner to set whether the screen capture is disabled. Disabling + * screen capture also prevents the content from being shown on display devices that do not have + * a secure video output. See {@link android.view.Display#FLAG_SECURE} for more details about + * secure surfaces and secure displays. * * <p>The calling device admin must be a device or profile owner. If it is not, a * security exception will be thrown. * * @param admin Which {@link DeviceAdminReceiver} this request is associated with. + * @param disabled Whether or not screen capture should be disabled. */ public void setScreenCaptureDisabled(ComponentName admin, boolean disabled) { if (mService != null) { |