diff options
author | Michael Wright <michaelwr@google.com> | 2014-07-08 18:07:36 -0700 |
---|---|---|
committer | Michael Wright <michaelwr@google.com> | 2014-07-17 14:30:19 -0700 |
commit | c39d47a8e7c74bd539104b0efab898ef6fc43ddf (patch) | |
tree | 98b0c601c9d3b0249e4bd2324aa66ad138e29ad9 /core/java/android/content | |
parent | 6ccb5f894e11a0ee59c0632643f265427731536e (diff) | |
download | frameworks_base-c39d47a8e7c74bd539104b0efab898ef6fc43ddf.zip frameworks_base-c39d47a8e7c74bd539104b0efab898ef6fc43ddf.tar.gz frameworks_base-c39d47a8e7c74bd539104b0efab898ef6fc43ddf.tar.bz2 |
Add MediaProjection APIs.
The new MediaProjection infrastructure allows the system to hand out
tokens granting the ability to capture the screen's contents, audio,
etc. at a granular level. It's intended to be used both for screen
casting, via the cast APIs, as well as screen sharing via third party
applications.
The screen sharing case is implemented, but all of audio capturing
is still forthcoming.
Change-Id: I4b24669bed7083e11413c10ed8d6b025f5375316
Diffstat (limited to 'core/java/android/content')
-rw-r--r-- | core/java/android/content/Context.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/java/android/content/Context.java b/core/java/android/content/Context.java index 1dd018f..6c7197e 100644 --- a/core/java/android/content/Context.java +++ b/core/java/android/content/Context.java @@ -2859,6 +2859,15 @@ public abstract class Context { public static final String PERSISTENT_DATA_BLOCK_SERVICE = "persistent_data_block"; /** + * Use with {@link #getSystemService} to retrieve a {@link + * android.media.projection.MediaProjectionManager} instance for managing + * media projection sessions. + * @see #getSystemService + * @see android.media.projection.ProjectionManager + */ + public static final String MEDIA_PROJECTION_SERVICE = "media_projection"; + + /** * Determine whether the given permission is allowed for a particular * process and user ID running in the system. * |