Home
last modified time | relevance | path

Searched refs:mMediaRouter (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DCastControllerImpl.java51 private final MediaRouter mMediaRouter; field in CastControllerImpl
63 mMediaRouter = (MediaRouter) context.getSystemService(Context.MEDIA_ROUTER_SERVICE); in CastControllerImpl()
113 mMediaRouter.removeCallback(mMediaCallback); in handleDiscoveryChangeLocked()
117 mMediaRouter.addCallback(ROUTE_TYPE_REMOTE_DISPLAY, mMediaCallback, in handleDiscoveryChangeLocked()
121 mMediaRouter.addCallback(ROUTE_TYPE_REMOTE_DISPLAY, mMediaCallback, in handleDiscoveryChangeLocked()
129 mMediaRouter.rebindAsUser(currentUserId); in setCurrentUserId()
170 mMediaRouter.selectRoute(ROUTE_TYPE_REMOTE_DISPLAY, route); in startCasting()
185 mMediaRouter.getFallbackRoute().select(); in stopCasting()
228 final int n = mMediaRouter.getRouteCount(); in updateRemoteDisplays()
230 final RouteInfo route = mMediaRouter.getRouteAt(i); in updateRemoteDisplays()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardDisplayManager.java39 private final MediaRouter mMediaRouter; field in KeyguardDisplayManager
48 mMediaRouter = (MediaRouter) mContext.getSystemService(Context.MEDIA_ROUTER_SERVICE); in KeyguardDisplayManager()
54 mMediaRouter.addCallback(MediaRouter.ROUTE_TYPE_REMOTE_DISPLAY, in show()
64 mMediaRouter.removeCallback(mMediaRouterCallback); in hide()
102 MediaRouter.RouteInfo route = mMediaRouter.getSelectedRoute( in updateDisplays()
/frameworks/base/services/core/java/com/android/server/media/projection/
DMediaProjectionManagerService.java68 private final MediaRouter mMediaRouter; field in MediaProjectionManagerService
81 mMediaRouter = (MediaRouter) mContext.getSystemService(Context.MEDIA_ROUTER_SERVICE); in MediaProjectionManagerService()
90 mMediaRouter.addCallback(MediaRouter.ROUTE_TYPE_REMOTE_DISPLAY, mMediaRouterCallback, in onStart()
96 mMediaRouter.rebindAsUser(userId); in onSwitchUser()
114 mMediaRouter.getFallbackRoute().select(); in startProjectionLocked()
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/media/
DSampleMediaRouterActivity.java88 private MediaRouter mMediaRouter; field in SampleMediaRouterActivity
229 mMediaRouter = MediaRouter.getInstance(this); in onCreate()
392 mMediaRouter.setMediaSessionCompat(mMediaSession); in onCreate()
396 mMediaRouter.getSelectedRoute(), mMediaSession); in onCreate()
613 RouteInfo route = mMediaRouter.getSelectedRoute(); in updateRouteDescription()
620 MediaRouter.RouteInfo route = mMediaRouter.getSelectedRoute(); in updateButtons()
/frameworks/support/media-widget/src/main/java/androidx/media/widget/impl_with_mp1/
DVideoView2ImplBaseWithMp1.java165 private MediaRouter mMediaRouter; field in VideoView2ImplBaseWithMp1
647 mMediaRouter = MediaRouter.getInstance(mInstance.getContext()); in onAttachedToWindowImpl()
648 mMediaRouter.setMediaSessionCompat(mMediaSession); in onAttachedToWindowImpl()
649 mMediaRouter.addCallback(mRouteSelector, mRouterCallback, in onAttachedToWindowImpl()
/frameworks/support/media-widget/src/main/java/androidx/media/widget/impl/
DVideoView2ImplBase.java176 private MediaRouter mMediaRouter; field in VideoView2ImplBase
672 mMediaRouter = MediaRouter.getInstance(mInstance.getContext()); in onAttachedToWindowImpl()
673 mMediaRouter.setMediaSessionCompat(mMediaSession); in onAttachedToWindowImpl()
674 mMediaRouter.addCallback(mRouteSelector, mRouterCallback, in onAttachedToWindowImpl()
/frameworks/av/packages/MediaComponents/src/com/android/widget/
DVideoView2Impl.java180 private MediaRouter mMediaRouter; field in VideoView2Impl
520 mMediaRouter = MediaRouter.getInstance(mInstance.getContext()); in onAttachedToWindow_impl()
521 mMediaRouter.setMediaSession(mMediaSession); in onAttachedToWindow_impl()
522 mMediaRouter.addCallback(mRouteSelector, mRouterCallback); in onAttachedToWindow_impl()