Home
last modified time | relevance | path

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

123

/frameworks/support/v7/mediarouter/jellybean/android/support/v7/media/
DMediaRouterJellybean.java55 final android.media.MediaRouter router = (android.media.MediaRouter)routerObj; in getRoutes()
66 final android.media.MediaRouter router = (android.media.MediaRouter)routerObj; in getCategories()
76 return ((android.media.MediaRouter)routerObj).getSelectedRoute(type); in getSelectedRoute()
80 ((android.media.MediaRouter)routerObj).selectRoute(types, in selectRoute()
81 (android.media.MediaRouter.RouteInfo)routeObj); in selectRoute()
85 ((android.media.MediaRouter)routerObj).addCallback(types, in addCallback()
86 (android.media.MediaRouter.Callback)callbackObj); in addCallback()
90 ((android.media.MediaRouter)routerObj).removeCallback( in removeCallback()
91 (android.media.MediaRouter.Callback)callbackObj); in removeCallback()
96 return ((android.media.MediaRouter)routerObj).createRouteCategory(name, isGroupable); in createRouteCategory()
[all …]
/frameworks/support/v7/mediarouter/src/android/support/v7/app/
DMediaRouteChooserDialog.java19 import static android.support.v7.media.MediaRouter.RouteInfo.CONNECTION_STATE_CONNECTED;
20 import static android.support.v7.media.MediaRouter.RouteInfo.CONNECTION_STATE_CONNECTING;
32 import android.support.v7.media.MediaRouter;
69 private final MediaRouter mRouter;
74 private ArrayList<MediaRouter.RouteInfo> mRoutes;
84 updateRoutes((List<MediaRouter.RouteInfo>) message.obj);
98 mRouter = MediaRouter.getInstance(context); in MediaRouteChooserDialog()
128 MediaRouter.CALLBACK_FLAG_PERFORM_ACTIVE_SCAN); in setRouteSelector()
144 public void onFilterRoutes(@NonNull List<MediaRouter.RouteInfo> routes) { in onFilterRoutes()
163 public boolean onFilterRoute(@NonNull MediaRouter.RouteInfo route) { in onFilterRoute()
[all …]
DMediaRouteActionProvider.java24 import android.support.v7.media.MediaRouter;
131 private final MediaRouter mRouter;
146 mRouter = MediaRouter.getInstance(context); in MediaRouteActionProvider()
279 MediaRouter.AVAILABILITY_FLAG_IGNORE_DEFAULT_ROUTE); in isVisible()
286 private static final class MediaRouterCallback extends MediaRouter.Callback {
294 public void onRouteAdded(MediaRouter router, MediaRouter.RouteInfo info) { in onRouteAdded()
299 public void onRouteRemoved(MediaRouter router, MediaRouter.RouteInfo info) { in onRouteRemoved()
304 public void onRouteChanged(MediaRouter router, MediaRouter.RouteInfo info) { in onRouteChanged()
309 public void onProviderAdded(MediaRouter router, MediaRouter.ProviderInfo provider) { in onProviderAdded()
314 public void onProviderRemoved(MediaRouter router, MediaRouter.ProviderInfo provider) { in onProviderRemoved()
[all …]
DMediaRouteButton.java33 import android.support.v7.media.MediaRouter;
86 private final MediaRouter mRouter;
125 mRouter = MediaRouter.getInstance(context); in MediaRouteButton()
247 MediaRouter.RouteInfo route = mRouter.getSelectedRoute(); in showDialog()
471 final MediaRouter.RouteInfo route = mRouter.getSelectedRoute(); in refreshRoute()
490 MediaRouter.AVAILABILITY_FLAG_IGNORE_DEFAULT_ROUTE)); in refreshRoute()
522 private final class MediaRouterCallback extends MediaRouter.Callback {
527 public void onRouteAdded(MediaRouter router, MediaRouter.RouteInfo info) { in onRouteAdded()
532 public void onRouteRemoved(MediaRouter router, MediaRouter.RouteInfo info) { in onRouteRemoved()
537 public void onRouteChanged(MediaRouter router, MediaRouter.RouteInfo info) { in onRouteChanged()
[all …]
DMediaRouteDiscoveryFragment.java21 import android.support.v7.media.MediaRouter;
43 private MediaRouter mRouter;
45 private MediaRouter.Callback mCallback;
53 public MediaRouter getMediaRouter() { in getMediaRouter()
60 mRouter = MediaRouter.getInstance(getContext()); in ensureRouter()
125 public MediaRouter.Callback onCreateCallback() { in onCreateCallback()
126 return new MediaRouter.Callback() { }; in onCreateCallback()
139 return MediaRouter.CALLBACK_FLAG_REQUEST_DISCOVERY; in onPrepareCallbackFlags()
DMediaRouteControllerDialog.java47 import android.support.v7.media.MediaRouter;
114 final MediaRouter mRouter;
116 final MediaRouter.RouteInfo mRoute;
150 private List<MediaRouter.RouteInfo> mGroupMemberRoutes;
151 Set<MediaRouter.RouteInfo> mGroupMemberRoutesAdded;
152 private Set<MediaRouter.RouteInfo> mGroupMemberRoutesRemoved;
153 Set<MediaRouter.RouteInfo> mGroupMemberRoutesAnimatingWithBitmap;
156 MediaRouter.RouteInfo mRouteInVolumeSliderTouched;
161 Map<MediaRouter.RouteInfo, SeekBar> mVolumeSliderMap;
209 mRouter = MediaRouter.getInstance(mContext); in MediaRouteControllerDialog()
[all …]
/frameworks/base/core/java/com/android/internal/app/
DMediaRouteChooserDialog.java23 import android.media.MediaRouter;
24 import android.media.MediaRouter.RouteInfo;
51 private final MediaRouter mRouter;
64 mRouter = (MediaRouter) context.getSystemService(Context.MEDIA_ROUTER_SERVICE); in MediaRouteChooserDialog()
91 MediaRouter.CALLBACK_FLAG_PERFORM_ACTIVE_SCAN); in setRouteTypes()
116 public boolean onFilterRoute(MediaRouter.RouteInfo route) { in onFilterRoute()
127 setTitle(mRouteTypes == MediaRouter.ROUTE_TYPE_REMOTE_DISPLAY in onCreate()
158 mRouter.addCallback(mRouteTypes, mCallback, MediaRouter.CALLBACK_FLAG_PERFORM_ACTIVE_SCAN); in onAttachedToWindow()
179 private final class RouteAdapter extends ArrayAdapter<MediaRouter.RouteInfo>
192 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;
79 mRouter = (MediaRouter) context.getSystemService(Context.MEDIA_ROUTER_SERVICE); in MediaRouteControllerDialog()
87 public MediaRouter.RouteInfo getRoute() { in getRoute()
215 mRouter.addCallback(0, mCallback, MediaRouter.CALLBACK_FLAG_UNFILTERED_EVENTS); in onAttachedToWindow()
309 MediaRouter.RouteInfo.PLAYBACK_VOLUME_VARIABLE; in isVolumeControlAvailable()
312 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()
71 final MediaRouter router = (MediaRouter)context.getSystemService( in createDialog()
74 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.java28 import android.media.MediaRouter;
29 import android.media.MediaRouter.RouteGroup;
30 import android.media.MediaRouter.RouteInfo;
36 private final MediaRouter mRouter;
78 mRouter = (MediaRouter)context.getSystemService(Context.MEDIA_ROUTER_SERVICE); in MediaRouteButton()
91 MediaRouter.ROUTE_TYPE_LIVE_AUDIO); in MediaRouteButton()
125 MediaRouter.CALLBACK_FLAG_PASSIVE_DISCOVERY); in setRouteTypes()
262 MediaRouter.CALLBACK_FLAG_PASSIVE_DISCOVERY); in onAttachedToWindow()
343 final MediaRouter.RouteInfo route = mRouter.getSelectedRoute(); in refreshRoute()
362 MediaRouter.AVAILABILITY_FLAG_IGNORE_DEFAULT_ROUTE)); in refreshRoute()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardDisplayManager.java23 import android.media.MediaRouter;
24 import android.media.MediaRouter.RouteInfo;
35 private MediaRouter mMediaRouter;
41 mMediaRouter = (MediaRouter) mContext.getSystemService(Context.MEDIA_ROUTER_SERVICE); in KeyguardDisplayManager()
47 mMediaRouter.addCallback(MediaRouter.ROUTE_TYPE_REMOTE_DISPLAY, in show()
48 mMediaRouterCallback, MediaRouter.CALLBACK_FLAG_PASSIVE_DISCOVERY); in show()
63 private final MediaRouter.SimpleCallback mMediaRouterCallback =
64 new MediaRouter.SimpleCallback() {
66 public void onRouteSelected(MediaRouter router, int type, RouteInfo info) {
72 public void onRouteUnselected(MediaRouter router, int type, RouteInfo info) {
[all …]
/frameworks/support/v7/mediarouter/jellybean-mr2/android/support/v7/media/
DMediaRouterJellybeanMr2.java24 return ((android.media.MediaRouter)routerObj).getDefaultRoute(); in getDefaultRoute()
28 ((android.media.MediaRouter)routerObj).addCallback(types, in addCallback()
29 (android.media.MediaRouter.Callback)callbackObj, flags); in addCallback()
34 return ((android.media.MediaRouter.RouteInfo)routeObj).getDescription(); in getDescription()
38 return ((android.media.MediaRouter.RouteInfo)routeObj).isConnecting(); in isConnecting()
44 ((android.media.MediaRouter.UserRouteInfo)routeObj).setDescription(description); in setDescription()
/frameworks/support/v7/mediarouter/jellybean-mr1/android/support/v7/media/
DMediaRouterJellybeanMr1.java41 return ((android.media.MediaRouter.RouteInfo)routeObj).isEnabled(); in isEnabled()
48 return ((android.media.MediaRouter.RouteInfo)routeObj).getPresentationDisplay(); in getPresentationDisplay()
145 android.media.MediaRouter.RouteInfo.class.getField("STATUS_CONNECTING"); in IsConnectingWorkaround()
148 android.media.MediaRouter.RouteInfo.class.getMethod("getStatusCode"); in IsConnectingWorkaround()
156 android.media.MediaRouter.RouteInfo route = in isConnecting()
157 (android.media.MediaRouter.RouteInfo)routeObj; in isConnecting()
180 public void onRoutePresentationDisplayChanged(android.media.MediaRouter router, in onRoutePresentationDisplayChanged()
181 android.media.MediaRouter.RouteInfo route) { in onRoutePresentationDisplayChanged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DCastControllerImpl.java23 import android.media.MediaRouter;
24 import android.media.MediaRouter.RouteInfo;
42 import static android.media.MediaRouter.ROUTE_TYPE_REMOTE_DISPLAY;
51 private final MediaRouter mMediaRouter;
63 mMediaRouter = (MediaRouter) context.getSystemService(Context.MEDIA_ROUTER_SERVICE); in CastControllerImpl()
118 MediaRouter.CALLBACK_FLAG_REQUEST_DISCOVERY); in handleDiscoveryChangeLocked()
122 MediaRouter.CALLBACK_FLAG_PASSIVE_DISCOVERY); in handleDiscoveryChangeLocked()
273 private final MediaRouter.SimpleCallback mMediaCallback = new MediaRouter.SimpleCallback() {
275 public void onRouteAdded(MediaRouter router, RouteInfo route) {
280 public void onRouteChanged(MediaRouter router, RouteInfo route) {
[all …]
/frameworks/support/v7/mediarouter/tests/src/android/support/v7/media/
DTestUtils.java20 public static MediaRouter.RouteInfo createRouteInfo(String id, String name) { in createRouteInfo()
22 MediaRouter.RouteInfo routeInfo = new MediaRouter.RouteInfo(null, null, null); in createRouteInfo()
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/media/
DSampleMediaRouterActivity.java44 import android.support.v7.media.MediaRouter;
45 import android.support.v7.media.MediaRouter.Callback;
46 import android.support.v7.media.MediaRouter.ProviderInfo;
47 import android.support.v7.media.MediaRouter.RouteInfo;
86 private MediaRouter mMediaRouter;
113 private final MediaRouter.Callback mMediaRouterCB = new MediaRouter.Callback() {
117 public void onRouteAdded(MediaRouter router, RouteInfo route) {
122 public void onRouteChanged(MediaRouter router, RouteInfo route) {
127 public void onRouteRemoved(MediaRouter router, RouteInfo route) {
132 public void onRouteSelected(MediaRouter router, RouteInfo route) {
[all …]
/frameworks/support/v7/mediarouter/src/android/support/v7/media/
DSystemMediaRouteProvider.java72 public void onSyncRouteAdded(MediaRouter.RouteInfo route) { in onSyncRouteAdded()
79 public void onSyncRouteRemoved(MediaRouter.RouteInfo route) { in onSyncRouteRemoved()
86 public void onSyncRouteChanged(MediaRouter.RouteInfo route) { in onSyncRouteChanged()
93 public void onSyncRouteSelected(MediaRouter.RouteInfo route) { in onSyncRouteSelected()
100 MediaRouter.RouteInfo getSystemRouteByDescriptorId(String id); in getSystemRouteByDescriptorId()
107 protected Object getSystemRoute(MediaRouter.RouteInfo route) { in getSystemRoute()
149 .setPlaybackType(MediaRouter.RouteInfo.PLAYBACK_TYPE_LOCAL) in publishRoutes()
150 .setVolumeHandling(MediaRouter.RouteInfo.PLAYBACK_VOLUME_VARIABLE) in publishRoutes()
420 MediaRouter.RouteInfo route = mSyncCallback.getSystemRouteByDescriptorId( in onRouteSelected()
462 public void onSyncRouteAdded(MediaRouter.RouteInfo route) { in onSyncRouteAdded()
[all …]
DMediaRouter.java81 public final class MediaRouter { class
232 MediaRouter(Context context) { in MediaRouter() method in MediaRouter
253 public static MediaRouter getInstance(@NonNull Context context) { in getInstance()
420 if (reason < MediaRouter.UNSELECT_REASON_UNKNOWN || in unselect()
421 reason > MediaRouter.UNSELECT_REASON_ROUTE_CHANGED) { in unselect()
1297 private static boolean isSystemMediaRouteProvider(MediaRouter.RouteInfo route) { in isSystemMediaRouteProvider()
1756 public void onRouteSelected(MediaRouter router, RouteInfo route) { in onRouteSelected()
1767 public void onRouteUnselected(MediaRouter router, RouteInfo route) { in onRouteUnselected()
1786 public void onRouteUnselected(MediaRouter router, RouteInfo route, int reason) { in onRouteUnselected()
1796 public void onRouteAdded(MediaRouter router, RouteInfo route) { in onRouteAdded()
[all …]
DMediaRouteProvider.java30 import android.support.v7.media.MediaRouter.ControlRequestCallback;
126 MediaRouter.checkCallingThread(); in setCallback()
152 MediaRouter.checkCallingThread(); in setDiscoveryRequest()
225 MediaRouter.checkCallingThread(); in setDescriptor()
/frameworks/base/services/core/java/com/android/server/media/projection/
DMediaProjectionManagerService.java26 import android.media.MediaRouter;
68 private final MediaRouter mMediaRouter;
70 private MediaRouter.RouteInfo mMediaRouteInfo;
81 mMediaRouter = (MediaRouter) mContext.getSystemService(Context.MEDIA_ROUTER_SERVICE); in MediaProjectionManagerService()
90 mMediaRouter.addCallback(MediaRouter.ROUTE_TYPE_REMOTE_DISPLAY, mMediaRouterCallback, in onStart()
91 MediaRouter.CALLBACK_FLAG_PASSIVE_DISCOVERY); in onStart()
465 private class MediaRouterCallback extends MediaRouter.SimpleCallback {
467 public void onRouteSelected(MediaRouter router, int type, MediaRouter.RouteInfo info) { in onRouteSelected()
469 if ((type & MediaRouter.ROUTE_TYPE_REMOTE_DISPLAY) != 0) { in onRouteSelected()
479 public void onRouteUnselected(MediaRouter route, int type, MediaRouter.RouteInfo info) { in onRouteUnselected()
/frameworks/base/media/java/android/media/
DMediaRouterClientState.java107 public @MediaRouter.RouteInfo.DeviceType int deviceType;
112 statusCode = MediaRouter.RouteInfo.STATUS_NONE; in RouteInfo()
113 playbackType = MediaRouter.RouteInfo.PLAYBACK_TYPE_REMOTE; in RouteInfo()
115 volumeHandling = MediaRouter.RouteInfo.PLAYBACK_VOLUME_FIXED; in RouteInfo()
117 deviceType = MediaRouter.RouteInfo.DEVICE_TYPE_UNKNOWN; in RouteInfo()
DRemoteDisplayState.java99 MediaRouter.RouteInfo.PLAYBACK_VOLUME_VARIABLE;
101 MediaRouter.RouteInfo.PLAYBACK_VOLUME_FIXED;
115 volumeHandling = MediaRouter.RouteInfo.PLAYBACK_VOLUME_FIXED; in RemoteDisplayInfo()
/frameworks/base/services/core/java/com/android/server/media/
DMediaRouterService.java32 import android.media.MediaRouter;
360 routeTypes &= ~MediaRouter.ROUTE_TYPE_REMOTE_DISPLAY; in setDiscoveryRequestLocked()
750 if ((routeTypes & MediaRouter.ROUTE_TYPE_REMOTE_DISPLAY) != 0) { in updateDiscoveryRequest()
1059 case MediaRouter.RouteInfo.STATUS_NONE: in getConnectionPhase()
1060 case MediaRouter.RouteInfo.STATUS_CONNECTED: in getConnectionPhase()
1062 case MediaRouter.RouteInfo.STATUS_CONNECTING: in getConnectionPhase()
1064 case MediaRouter.RouteInfo.STATUS_SCANNING: in getConnectionPhase()
1065 case MediaRouter.RouteInfo.STATUS_AVAILABLE: in getConnectionPhase()
1067 case MediaRouter.RouteInfo.STATUS_NOT_AVAILABLE: in getConnectionPhase()
1068 case MediaRouter.RouteInfo.STATUS_IN_USE: in getConnectionPhase()
[all …]
/frameworks/support/v7/mediarouter/
Dbuild.gradle29 name 'Android MediaRouter Support Library'
31 description 'Android MediaRouter Support Library'

123