Home
last modified time | relevance | path

Searched refs:MediaRouter (Results 1 – 25 of 30) sorted by relevance

12

/frameworks/base/core/java/com/android/internal/app/
DMediaRouteChooserDialog.java21 import android.media.MediaRouter;
22 import android.media.MediaRouter.RouteInfo;
53 private final MediaRouter mRouter;
71 mRouter = (MediaRouter) context.getSystemService(Context.MEDIA_ROUTER_SERVICE); in MediaRouteChooserDialog()
99 MediaRouter.CALLBACK_FLAG_PERFORM_ACTIVE_SCAN); in setRouteTypes()
124 public boolean onFilterRoute(MediaRouter.RouteInfo route) { in onFilterRoute()
134 setTitle(mRouteTypes == MediaRouter.ROUTE_TYPE_REMOTE_DISPLAY in onCreate()
177 mRouter.addCallback(mRouteTypes, mCallback, MediaRouter.CALLBACK_FLAG_PERFORM_ACTIVE_SCAN); in onAttachedToWindow()
204 private final class RouteAdapter extends ArrayAdapter<MediaRouter.RouteInfo>
217 MediaRouter.RouteInfo route = mRouter.getRouteAt(i); in update()
[all …]
DMediaRouteControllerDialog.java31 import android.media.MediaRouter;
32 import android.media.MediaRouter.RouteGroup;
33 import android.media.MediaRouter.RouteInfo;
59 private final MediaRouter mRouter;
61 private final MediaRouter.RouteInfo mRoute;
80 mRouter = (MediaRouter) context.getSystemService(Context.MEDIA_ROUTER_SERVICE); in MediaRouteControllerDialog()
88 public MediaRouter.RouteInfo getRoute() { in getRoute()
221 mRouter.addCallback(0, mCallback, MediaRouter.CALLBACK_FLAG_UNFILTERED_EVENTS); in onAttachedToWindow()
323 MediaRouter.RouteInfo.PLAYBACK_VOLUME_VARIABLE; in isVolumeControlAvailable()
326 private final class MediaRouterCallback extends MediaRouter.SimpleCallback {
[all …]
DMediaRouteDialogPresenter.java25 import android.media.MediaRouter;
43 final MediaRouter router = (MediaRouter)activity.getSystemService( in showDialogFragment()
47 MediaRouter.RouteInfo route = router.getSelectedRoute(); in showDialogFragment()
89 final MediaRouter router = context.getSystemService(MediaRouter.class); in createDialog()
91 MediaRouter.RouteInfo route = router.getSelectedRoute(); in createDialog()
/frameworks/base/core/java/android/app/
DMediaRouteActionProvider.java20 import android.media.MediaRouter;
21 import android.media.MediaRouter.RouteInfo;
49 private final MediaRouter mRouter;
60 mRouter = (MediaRouter) context.getSystemService(Context.MEDIA_ROUTER_SERVICE); in MediaRouteActionProvider()
66 setRouteTypes(MediaRouter.ROUTE_TYPE_LIVE_AUDIO); in MediaRouteActionProvider()
90 MediaRouter.CALLBACK_FLAG_PASSIVE_DISCOVERY); in setRouteTypes()
146 MediaRouter.AVAILABILITY_FLAG_IGNORE_DEFAULT_ROUTE); in isVisible()
153 private static class MediaRouterCallback extends MediaRouter.SimpleCallback {
161 public void onRouteAdded(MediaRouter router, RouteInfo info) { in onRouteAdded()
166 public void onRouteRemoved(MediaRouter router, RouteInfo info) { in onRouteRemoved()
[all …]
DMediaRouteButton.java29 import android.media.MediaRouter;
30 import android.media.MediaRouter.RouteGroup;
31 import android.media.MediaRouter.RouteInfo;
37 private final MediaRouter mRouter;
79 mRouter = (MediaRouter)context.getSystemService(Context.MEDIA_ROUTER_SERVICE); in MediaRouteButton()
92 MediaRouter.ROUTE_TYPE_LIVE_AUDIO); in MediaRouteButton()
126 MediaRouter.CALLBACK_FLAG_PASSIVE_DISCOVERY); in setRouteTypes()
263 MediaRouter.CALLBACK_FLAG_PASSIVE_DISCOVERY); in onAttachedToWindow()
343 final MediaRouter.RouteInfo route = mRouter.getSelectedRoute(); in refreshRoute()
361 MediaRouter.AVAILABILITY_FLAG_IGNORE_DEFAULT_ROUTE)); in refreshRoute()
[all …]
DSystemServiceRegistry.java136 import android.media.MediaRouter;
398 registerService(Context.MEDIA_ROUTER_SERVICE, MediaRouter.class, in registerService()
399 new CachedServiceFetcher<MediaRouter>() { in registerService()
401 public MediaRouter createService(ContextImpl ctx) { in registerService()
402 return new MediaRouter(ctx); in registerService()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DMediaRouterWrapper.java20 import androidx.mediarouter.media.MediaRouter;
29 private final MediaRouter mRouter;
31 public MediaRouterWrapper(MediaRouter router) in MediaRouterWrapper()
36 public void addCallback(MediaRouteSelector selector, MediaRouter.Callback callback, int flags) { in addCallback()
40 public void removeCallback(MediaRouter.Callback callback) { in removeCallback()
48 public List<MediaRouter.RouteInfo> getRoutes() { in getRoutes()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DCastControllerImpl.java19 import static android.media.MediaRouter.ROUTE_TYPE_REMOTE_DISPLAY;
25 import android.media.MediaRouter;
26 import android.media.MediaRouter.RouteInfo;
60 private final MediaRouter mMediaRouter;
73 mMediaRouter = (MediaRouter) context.getSystemService(Context.MEDIA_ROUTER_SERVICE); in CastControllerImpl()
74 mMediaRouter.setRouterGroupId(MediaRouter.MIRRORING_GROUP_ID); in CastControllerImpl()
134 MediaRouter.CALLBACK_FLAG_REQUEST_DISCOVERY); in handleDiscoveryChangeLocked()
143 MediaRouter.CALLBACK_FLAG_PASSIVE_DISCOVERY); in handleDiscoveryChangeLocked()
319 private final MediaRouter.SimpleCallback mMediaCallback = new MediaRouter.SimpleCallback() {
321 public void onRouteAdded(MediaRouter router, RouteInfo route) {
[all …]
/frameworks/base/media/tests/MediaRouter/src/com/android/mediaroutertest/
DMediaRouteInfoTest.java22 import android.media.MediaRouter;
73 mRouteInfo.mSupportedType = MediaRouter.ROUTE_TYPE_REMOTE_DISPLAY; in testGetPresentationDisplay_notLiveVideo()
83 mRouteInfo.mSupportedType |= MediaRouter.ROUTE_TYPE_LIVE_AUDIO; in testGetPresentationDisplay_includesLiveVideo()
161 private static class TestableRouteInfo extends MediaRouter.RouteInfo {
163 private int mSupportedType = MediaRouter.ROUTE_TYPE_LIVE_VIDEO;
165 private MediaRouter.RouteInfo mDefaultRouteInfo = null;
192 public MediaRouter.RouteInfo getDefaultAudioVideo() { in getDefaultAudioVideo()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardDisplayManager.java24 import android.media.MediaRouter;
25 import android.media.MediaRouter.RouteInfo;
57 private MediaRouter mMediaRouter = null;
108 uiBgExecutor.execute(() -> mMediaRouter = mContext.getSystemService(MediaRouter.class)); in KeyguardDisplayManager()
204 mMediaRouter.addCallback(MediaRouter.ROUTE_TYPE_REMOTE_DISPLAY, in show()
205 mMediaRouterCallback, MediaRouter.CALLBACK_FLAG_PASSIVE_DISCOVERY); in show()
225 private final MediaRouter.SimpleCallback mMediaRouterCallback =
226 new MediaRouter.SimpleCallback() {
228 public void onRouteSelected(MediaRouter router, int type, RouteInfo info) {
234 public void onRouteUnselected(MediaRouter router, int type, RouteInfo info) {
[all …]
/frameworks/base/media/java/android/media/
DMediaRouterClientState.java97 public @MediaRouter.RouteInfo.DeviceType int deviceType;
102 statusCode = MediaRouter.RouteInfo.STATUS_NONE; in RouteInfo()
103 playbackType = MediaRouter.RouteInfo.PLAYBACK_TYPE_REMOTE; in RouteInfo()
105 volumeHandling = MediaRouter.RouteInfo.PLAYBACK_VOLUME_FIXED; in RouteInfo()
107 deviceType = MediaRouter.RouteInfo.DEVICE_TYPE_UNKNOWN; in RouteInfo()
DRemoteDisplayState.java103 MediaRouter.RouteInfo.PLAYBACK_VOLUME_VARIABLE;
105 MediaRouter.RouteInfo.PLAYBACK_VOLUME_FIXED;
119 volumeHandling = MediaRouter.RouteInfo.PLAYBACK_VOLUME_FIXED; in RemoteDisplayInfo()
DMediaRouter.java79 public class MediaRouter { class
821 static final HashMap<Context, MediaRouter> sRouters = new HashMap<Context, MediaRouter>();
841 public MediaRouter(Context context) { in MediaRouter() method in MediaRouter
2791 MediaRouter.removeRouteStatic(this); in routeUpdated()
2959 public final MediaRouter router;
2961 public CallbackInfo(Callback cb, int type, int flags, MediaRouter router) { in CallbackInfo()
2999 public abstract void onRouteSelected(MediaRouter router, int type, RouteInfo info); in onRouteSelected()
3009 public abstract void onRouteUnselected(MediaRouter router, int type, RouteInfo info); in onRouteUnselected()
3017 public abstract void onRouteAdded(MediaRouter router, RouteInfo info); in onRouteAdded()
3025 public abstract void onRouteRemoved(MediaRouter router, RouteInfo info); in onRouteRemoved()
[all …]
/frameworks/base/services/core/java/com/android/server/media/
DMediaRouterService.java44 import android.media.MediaRouter;
847 routeTypes &= ~MediaRouter.ROUTE_TYPE_REMOTE_DISPLAY; in setDiscoveryRequestLocked()
1322 if ((routeTypes & MediaRouter.ROUTE_TYPE_REMOTE_DISPLAY) != 0) { in updateDiscoveryRequest()
1645 case MediaRouter.RouteInfo.STATUS_NONE: in getConnectionPhase()
1646 case MediaRouter.RouteInfo.STATUS_CONNECTED: in getConnectionPhase()
1648 case MediaRouter.RouteInfo.STATUS_CONNECTING: in getConnectionPhase()
1650 case MediaRouter.RouteInfo.STATUS_SCANNING: in getConnectionPhase()
1651 case MediaRouter.RouteInfo.STATUS_AVAILABLE: in getConnectionPhase()
1653 case MediaRouter.RouteInfo.STATUS_NOT_AVAILABLE: in getConnectionPhase()
1654 case MediaRouter.RouteInfo.STATUS_IN_USE: in getConnectionPhase()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DCastControllerImplTest.java12 import android.media.MediaRouter;
41 MediaRouter mMediaRouter;
52 mContext.addMockSystemService(MediaRouter.class, mMediaRouter); in setUp()
/frameworks/base/services/core/java/com/android/server/media/projection/
DMediaProjectionManagerService.java54 import android.media.MediaRouter;
136 private final MediaRouter mMediaRouter;
139 private MediaRouter.RouteInfo mMediaRouteInfo;
163 mMediaRouter = (MediaRouter) mContext.getSystemService(Context.MEDIA_ROUTER_SERVICE); in MediaProjectionManagerService()
209 mMediaRouter.addCallback(MediaRouter.ROUTE_TYPE_REMOTE_DISPLAY, mMediaRouterCallback, in onStart()
210 MediaRouter.CALLBACK_FLAG_PASSIVE_DISCOVERY); in onStart()
1285 private class MediaRouterCallback extends MediaRouter.SimpleCallback {
1287 public void onRouteSelected(MediaRouter router, int type, MediaRouter.RouteInfo info) { in onRouteSelected()
1289 if ((type & MediaRouter.ROUTE_TYPE_REMOTE_DISPLAY) != 0) { in onRouteSelected()
1301 public void onRouteUnselected(MediaRouter route, int type, MediaRouter.RouteInfo info) { in onRouteUnselected()
/frameworks/av/media/janitors/
Dmedia_solutions_OWNERS4 # MediaRouter and native mirroring only:
/frameworks/base/tests/RemoteDisplayProvider/
DREADME12 wireless displays or launch an activity that uses the MediaRouter,
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DCastTileTest.java30 import android.media.MediaRouter;
31 import android.media.MediaRouter.RouteInfo;
314 device.tag = mock(MediaRouter.RouteInfo.class); in testHandleClick_castDevicePresent()
462 device.tag = mock(MediaRouter.RouteInfo.class); in testExpandView_casting_mediaRoute()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DCastTile.java19 import static android.media.MediaRouter.ROUTE_TYPE_REMOTE_DISPLAY;
26 import android.media.MediaRouter.RouteInfo;
/frameworks/base/docs/html/sdk/support_api_diff/25.1.0/
DmissingSinces.txt40 NO DOC BLOCK: android.support.v7.media.MediaRouter Method getBluetoothRoute()
63 NO DOC BLOCK: android.support.v7.media.MediaRouter.RouteInfo Method isBluetooth()
64 NO DOC BLOCK: android.support.v7.media.MediaRouter.RouteInfo Method isDeviceSpeaker()
/frameworks/base/boot/
Dboot-image-profile.txt2682 …/app/SystemServiceRegistry$10;->createService(Landroid/app/ContextImpl;)Landroid/media/MediaRouter;
10953 HSPLandroid/media/MediaRouter$Callback;-><init>()V
10954 HSPLandroid/media/MediaRouter$CallbackInfo;-><init>(Landroid/media/MediaRouter$Callback;IILandroid/…
10955 HSPLandroid/media/MediaRouter$CallbackInfo;->filterRouteEvent(I)Z
10956 HSPLandroid/media/MediaRouter$CallbackInfo;->filterRouteEvent(Landroid/media/MediaRouter$RouteInfo;…
10957 HSPLandroid/media/MediaRouter$RouteCategory;-><init>(IIZ)V
10958 HSPLandroid/media/MediaRouter$RouteCategory;-><init>(Ljava/lang/CharSequence;IZ)V
10959 HSPLandroid/media/MediaRouter$RouteCategory;->getName()Ljava/lang/CharSequence;
10960 HSPLandroid/media/MediaRouter$RouteCategory;->getName(Landroid/content/res/Resources;)Ljava/lang/Ch…
10961 HSPLandroid/media/MediaRouter$RouteCategory;->isGroupable()Z
[all …]
Dpreloaded-classes5266 android.media.MediaRouter$Callback
5267 android.media.MediaRouter$CallbackInfo
5268 android.media.MediaRouter$RouteCategory
5269 android.media.MediaRouter$RouteGroup
5270 android.media.MediaRouter$RouteInfo$1
5271 android.media.MediaRouter$RouteInfo
5272 android.media.MediaRouter$SimpleCallback
5273 android.media.MediaRouter$Static$1$1
5274 android.media.MediaRouter$Static$1
5275 android.media.MediaRouter$Static$Client$$ExternalSyntheticLambda0
[all …]
/frameworks/base/config/
Dboot-image-profile.txt2682 …/app/SystemServiceRegistry$10;->createService(Landroid/app/ContextImpl;)Landroid/media/MediaRouter;
10956 HSPLandroid/media/MediaRouter$Callback;-><init>()V
10957 HSPLandroid/media/MediaRouter$CallbackInfo;-><init>(Landroid/media/MediaRouter$Callback;IILandroid/…
10958 HSPLandroid/media/MediaRouter$CallbackInfo;->filterRouteEvent(I)Z
10959 HSPLandroid/media/MediaRouter$CallbackInfo;->filterRouteEvent(Landroid/media/MediaRouter$RouteInfo;…
10960 HSPLandroid/media/MediaRouter$RouteCategory;-><init>(IIZ)V
10961 HSPLandroid/media/MediaRouter$RouteCategory;-><init>(Ljava/lang/CharSequence;IZ)V
10962 HSPLandroid/media/MediaRouter$RouteCategory;->getName()Ljava/lang/CharSequence;
10963 HSPLandroid/media/MediaRouter$RouteCategory;->getName(Landroid/content/res/Resources;)Ljava/lang/Ch…
10964 HSPLandroid/media/MediaRouter$RouteCategory;->isGroupable()Z
[all …]
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt7477 Landroid/app/MediaRouteActionProvider$MediaRouterCallback;->refreshRoute(Landroid/media/MediaRouter
7482 Landroid/app/MediaRouteActionProvider;->mRouter:Landroid/media/MediaRouter;
7497 Landroid/app/MediaRouteButton;->mRouter:Landroid/media/MediaRouter;
28393 Landroid/media/MediaRouter$CallbackInfo;-><init>(Landroid/media/MediaRouter$Callback;IILandroid/med…
28394 Landroid/media/MediaRouter$CallbackInfo;->cb:Landroid/media/MediaRouter$Callback;
28395 Landroid/media/MediaRouter$CallbackInfo;->filterRouteEvent(I)Z
28396 Landroid/media/MediaRouter$CallbackInfo;->filterRouteEvent(Landroid/media/MediaRouter$RouteInfo;)Z
28397 Landroid/media/MediaRouter$CallbackInfo;->flags:I
28398 Landroid/media/MediaRouter$CallbackInfo;->router:Landroid/media/MediaRouter;
28399 Landroid/media/MediaRouter$CallbackInfo;->type:I
[all …]

12