diff options
author | Jeff Brown <jeffbrown@google.com> | 2012-09-26 18:34:47 -0700 |
---|---|---|
committer | Jeff Brown <jeffbrown@google.com> | 2012-09-26 18:34:47 -0700 |
commit | bc335457462a12434a9df6955de1dd693cdccac7 (patch) | |
tree | 6c2881bbb48aecdfb3df4d73eb2c55b8b448237d /core/java/android/hardware/display/DisplayManager.java | |
parent | 62c82e4d92cc0b856059f905d81885f7808a0e7d (diff) | |
download | frameworks_base-bc335457462a12434a9df6955de1dd693cdccac7.zip frameworks_base-bc335457462a12434a9df6955de1dd693cdccac7.tar.gz frameworks_base-bc335457462a12434a9df6955de1dd693cdccac7.tar.bz2 |
Allow applications to connect to known wifi displays.
Bug: 7177920
Change-Id: I9d8406e1016988e2cd267dfa52d78a829f1b385e
Diffstat (limited to 'core/java/android/hardware/display/DisplayManager.java')
-rw-r--r-- | core/java/android/hardware/display/DisplayManager.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/core/java/android/hardware/display/DisplayManager.java b/core/java/android/hardware/display/DisplayManager.java index 58a0f13..28e320b 100644 --- a/core/java/android/hardware/display/DisplayManager.java +++ b/core/java/android/hardware/display/DisplayManager.java @@ -46,9 +46,7 @@ public final class DisplayManager { * The status is provided as a {@link WifiDisplayStatus} object in the * {@link #EXTRA_WIFI_DISPLAY_STATUS} extra. * </p><p> - * This broadcast is only sent to registered receivers with the - * {@link android.Manifest.permission#CONFIGURE_WIFI_DISPLAY} permission and can - * only be sent by the system. + * This broadcast is only sent to registered receivers and can only be sent by the system. * </p> * @hide */ @@ -163,6 +161,9 @@ public final class DisplayManager { * <p> * Automatically remembers the display after a successful connection, if not * already remembered. + * </p><p> + * Requires {@link android.Manifest.permission#CONFIGURE_WIFI_DISPLAY} to connect + * to unknown displays. No permissions are required to connect to already known displays. * </p> * * @param deviceAddress The MAC address of the device to which we should connect. @@ -187,6 +188,8 @@ public final class DisplayManager { * The display must already be remembered for this call to succeed. In other words, * we must already have successfully connected to the display at least once and then * not forgotten it. + * </p><p> + * Requires {@link android.Manifest.permission#CONFIGURE_WIFI_DISPLAY}. * </p> * * @param deviceAddress The MAC address of the device to rename. @@ -202,6 +205,8 @@ public final class DisplayManager { * Forgets a previously remembered Wifi display. * <p> * Automatically disconnects from the display if currently connected to it. + * </p><p> + * Requires {@link android.Manifest.permission#CONFIGURE_WIFI_DISPLAY}. * </p> * * @param deviceAddress The MAC address of the device to forget. |