From 07c7077c54717dbbf2c401ea32d00fa6df6d77c6 Mon Sep 17 00:00:00 2001 From: RoboErik Date: Thu, 20 Mar 2014 13:33:52 -0700 Subject: Add RouteProviders to the new Media APIs Compiles and works with OneMedia. This currently is a rough test of the system for finding, connecting to, and sending messages to routes. This will just connect to the first route it finds when a request to open the route picker is made (and disconnect when another request is made). Change-Id: I5de5521a079471b9e02664be4654c0591dfd9a6d --- core/java/android/app/ContextImpl.java | 4 ++-- core/java/android/content/Context.java | 4 ++-- core/res/AndroidManifest.xml | 8 ++++++++ core/res/res/values/strings.xml | 6 ++++++ 4 files changed, 18 insertions(+), 4 deletions(-) (limited to 'core') diff --git a/core/java/android/app/ContextImpl.java b/core/java/android/app/ContextImpl.java index 77b5485..f1ce54a 100644 --- a/core/java/android/app/ContextImpl.java +++ b/core/java/android/app/ContextImpl.java @@ -67,7 +67,7 @@ import android.location.ILocationManager; import android.location.LocationManager; import android.media.AudioManager; import android.media.MediaRouter; -import android.media.session.MediaSessionManager; +import android.media.session.SessionManager; import android.net.ConnectivityManager; import android.net.IConnectivityManager; import android.net.INetworkPolicyManager; @@ -639,7 +639,7 @@ class ContextImpl extends Context { registerService(MEDIA_SESSION_SERVICE, new ServiceFetcher() { public Object createService(ContextImpl ctx) { - return new MediaSessionManager(ctx); + return new SessionManager(ctx); } }); registerService(TRUST_SERVICE, new ServiceFetcher() { diff --git a/core/java/android/content/Context.java b/core/java/android/content/Context.java index ff92d82..906484a 100644 --- a/core/java/android/content/Context.java +++ b/core/java/android/content/Context.java @@ -2387,10 +2387,10 @@ public abstract class Context { /** * Use with {@link #getSystemService} to retrieve a - * {@link android.media.session.MediaSessionManager} for managing media Sessions. + * {@link android.media.session.SessionManager} for managing media Sessions. * * @see #getSystemService - * @see android.media.session.MediaSessionManager + * @see android.media.session.SessionManager */ public static final String MEDIA_SESSION_SERVICE = "media_session"; diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml index 606a4b1..66f947b 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -2070,6 +2070,14 @@ android:description="@string/permdesc_bindTvInput" android:protectionLevel="signature|system" /> + + + + bind to a route provider service + + Allows the holder to bind to any registered + route providers. Should never be needed for normal apps. + + interact with a device admin Allows the holder to send intents to -- cgit v1.1