Home
last modified time | relevance | path

Searched refs:mRouter (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DMediaRouterWrapper.java29 private final MediaRouter mRouter; field in MediaRouterWrapper
33 mRouter = router; in MediaRouterWrapper()
37 mRouter.addCallback(selector, callback, flags); in addCallback()
41 mRouter.removeCallback(callback); in removeCallback()
45 mRouter.unselect(reason); in unselect()
49 return mRouter.getRoutes(); in getRoutes()
/frameworks/base/core/java/android/app/
DMediaRouteActionProvider.java49 private final MediaRouter mRouter; field in MediaRouteActionProvider
60 mRouter = (MediaRouter) context.getSystemService(Context.MEDIA_ROUTER_SERVICE); in MediaRouteActionProvider()
85 mRouter.removeCallback(mCallback); in setRouteTypes()
89 mRouter.addCallback(types, mCallback, in setRouteTypes()
145 return mRouter.isRouteAvailable(mRouteTypes, in isVisible()
DMediaRouteButton.java37 private final MediaRouter mRouter; field in MediaRouteButton
79 mRouter = (MediaRouter)context.getSystemService(Context.MEDIA_ROUTER_SERVICE); in MediaRouteButton()
119 mRouter.removeCallback(mCallback); in setRouteTypes()
125 mRouter.addCallback(types, mCallback, in setRouteTypes()
262 mRouter.addCallback(mRouteTypes, mCallback, in onAttachedToWindow()
272 mRouter.removeCallback(mCallback); in onDetachedFromWindow()
343 final MediaRouter.RouteInfo route = mRouter.getSelectedRoute(); in refreshRoute()
360 setEnabled(mRouter.isRouteAvailable(mRouteTypes, in refreshRoute()
/frameworks/base/core/java/com/android/internal/app/
DMediaRouteChooserDialog.java52 private final MediaRouter mRouter; field in MediaRouteChooserDialog
65 mRouter = (MediaRouter) context.getSystemService(Context.MEDIA_ROUTER_SERVICE); in MediaRouteChooserDialog()
90 mRouter.removeCallback(mCallback); in setRouteTypes()
91 mRouter.addCallback(types, mCallback, in setRouteTypes()
160 mRouter.addCallback(mRouteTypes, mCallback, MediaRouter.CALLBACK_FLAG_PERFORM_ACTIVE_SCAN); in onAttachedToWindow()
167 mRouter.removeCallback(mCallback); in onDetachedFromWindow()
198 final int count = mRouter.getRouteCount(); in update()
200 MediaRouter.RouteInfo route = mRouter.getRouteAt(i); in update()
DMediaRouteControllerDialog.java59 private final MediaRouter mRouter; field in MediaRouteControllerDialog
80 mRouter = (MediaRouter) context.getSystemService(Context.MEDIA_ROUTER_SERVICE); in MediaRouteControllerDialog()
82 mRoute = mRouter.getSelectedRoute(); in MediaRouteControllerDialog()
147 mRouter.getDefaultRoute().select(); in onCreate()
149 mRouter.getFallbackRoute().select(); in onCreate()
221 mRouter.addCallback(0, mCallback, MediaRouter.CALLBACK_FLAG_UNFILTERED_EVENTS); in onAttachedToWindow()
227 mRouter.removeCallback(mCallback); in onDetachedFromWindow()