/frameworks/base/core/java/com/android/internal/app/ |
D | MediaRouteChooserDialog.java | 23 import android.media.MediaRouter; 24 import android.media.MediaRouter.RouteInfo; 52 private final MediaRouter mRouter; 65 mRouter = (MediaRouter) context.getSystemService(Context.MEDIA_ROUTER_SERVICE); in MediaRouteChooserDialog() 92 MediaRouter.CALLBACK_FLAG_PERFORM_ACTIVE_SCAN); in setRouteTypes() 117 public boolean onFilterRoute(MediaRouter.RouteInfo route) { in onFilterRoute() 128 setTitle(mRouteTypes == MediaRouter.ROUTE_TYPE_REMOTE_DISPLAY in onCreate() 160 mRouter.addCallback(mRouteTypes, mCallback, MediaRouter.CALLBACK_FLAG_PERFORM_ACTIVE_SCAN); in onAttachedToWindow() 187 private final class RouteAdapter extends ArrayAdapter<MediaRouter.RouteInfo> 200 MediaRouter.RouteInfo route = mRouter.getRouteAt(i); in update() [all …]
|
D | MediaRouteControllerDialog.java | 31 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 …]
|
D | MediaRouteDialogPresenter.java | 25 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() 78 MediaRouter.RouteInfo route = router.getSelectedRoute(); in createDialog()
|
/frameworks/base/core/java/android/app/ |
D | MediaRouteActionProvider.java | 20 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 …]
|
D | MediaRouteButton.java | 29 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 …]
|
D | SystemServiceRegistry.java | 92 import android.media.MediaRouter; 284 registerService(Context.MEDIA_ROUTER_SERVICE, MediaRouter.class, in registerService() 285 new CachedServiceFetcher<MediaRouter>() { in registerService() 287 public MediaRouter createService(ContextImpl ctx) { in registerService() 288 return new MediaRouter(ctx); in registerService()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/ |
D | InfoMediaManager.java | 23 import androidx.mediarouter.media.MediaRouter; 39 MediaRouter mMediaRouter; 46 mMediaRouter = MediaRouter.getInstance(context); in InfoMediaManager() 57 MediaRouter.CALLBACK_FLAG_REQUEST_DISCOVERY); in startScan() 72 class MediaRouterCallback extends MediaRouter.Callback { 74 public void onRouteAdded(MediaRouter router, MediaRouter.RouteInfo route) { in onRouteAdded() 85 public void onRouteRemoved(MediaRouter router, MediaRouter.RouteInfo route) { in onRouteRemoved()
|
D | InfoMediaDevice.java | 22 import androidx.mediarouter.media.MediaRouter; 34 private MediaRouter.RouteInfo mRouteInfo; 36 InfoMediaDevice(Context context, MediaRouter.RouteInfo info) { in InfoMediaDevice()
|
D | MediaDeviceUtils.java | 20 import androidx.mediarouter.media.MediaRouter; 54 public static String getId(MediaRouter.RouteInfo route) { in getId()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ |
D | MediaRouterWrapper.java | 20 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/SettingsLib/tests/robotests/src/com/android/settingslib/media/ |
D | InfoMediaManagerTest.java | 28 import androidx.mediarouter.media.MediaRouter; 45 private MediaRouter mMediaRouter; 74 MediaRouter.CALLBACK_FLAG_REQUEST_DISCOVERY); in startScan_shouldAddCallback() 79 final MediaRouter.RouteInfo info = mock(MediaRouter.RouteInfo.class); in onRouteAdded_mediaDeviceNotExistInList_addMediaDevice() 93 final MediaRouter.RouteInfo info = mock(MediaRouter.RouteInfo.class); in onRouteAdded_mediaDeviceExistInList_doNothing() 109 final MediaRouter.RouteInfo info = mock(MediaRouter.RouteInfo.class); in onRouteRemoved_mediaDeviceExistInList_removeMediaDevice() 125 final MediaRouter.RouteInfo info = mock(MediaRouter.RouteInfo.class); in onRouteRemoved_mediaDeviceNotExistInList_doNothing()
|
D | MediaDeviceUtilsTest.java | 25 import androidx.mediarouter.media.MediaRouter; 47 private MediaRouter.RouteInfo mRouteInfo;
|
D | MediaDeviceTest.java | 26 import androidx.mediarouter.media.MediaRouter; 79 private MediaRouter.RouteInfo mRouteInfo1; 81 private MediaRouter.RouteInfo mRouteInfo2; 83 private MediaRouter.RouteInfo mRouteInfo3;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | CastControllerImpl.java | 19 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() 133 MediaRouter.CALLBACK_FLAG_REQUEST_DISCOVERY); in handleDiscoveryChangeLocked() 142 MediaRouter.CALLBACK_FLAG_PASSIVE_DISCOVERY); in handleDiscoveryChangeLocked() 311 private final MediaRouter.SimpleCallback mMediaCallback = new MediaRouter.SimpleCallback() { 313 public void onRouteAdded(MediaRouter router, RouteInfo route) { [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardDisplayManager.java | 25 import android.media.MediaRouter; 26 import android.media.MediaRouter.RouteInfo; 46 private final MediaRouter mMediaRouter; 94 mMediaRouter = mContext.getSystemService(MediaRouter.class); in KeyguardDisplayManager() 161 mMediaRouter.addCallback(MediaRouter.ROUTE_TYPE_REMOTE_DISPLAY, in show() 162 mMediaRouterCallback, MediaRouter.CALLBACK_FLAG_PASSIVE_DISCOVERY); in show() 177 private final MediaRouter.SimpleCallback mMediaRouterCallback = 178 new MediaRouter.SimpleCallback() { 180 public void onRouteSelected(MediaRouter router, int type, RouteInfo info) { 186 public void onRouteUnselected(MediaRouter router, int type, RouteInfo info) { [all …]
|
/frameworks/base/media/java/android/media/ |
D | MediaRouterClientState.java | 97 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()
|
D | RemoteDisplayState.java | 102 MediaRouter.RouteInfo.PLAYBACK_VOLUME_VARIABLE; 104 MediaRouter.RouteInfo.PLAYBACK_VOLUME_FIXED; 118 volumeHandling = MediaRouter.RouteInfo.PLAYBACK_VOLUME_FIXED; in RemoteDisplayInfo()
|
D | MediaRouter.java | 69 public class MediaRouter { class 774 static final HashMap<Context, MediaRouter> sRouters = new HashMap<Context, MediaRouter>(); 794 public MediaRouter(Context context) { in MediaRouter() method in MediaRouter 2691 MediaRouter.removeRouteStatic(this); in routeUpdated() 2859 public final MediaRouter router; 2861 public CallbackInfo(Callback cb, int type, int flags, MediaRouter router) { in CallbackInfo() 2899 public abstract void onRouteSelected(MediaRouter router, int type, RouteInfo info); in onRouteSelected() 2909 public abstract void onRouteUnselected(MediaRouter router, int type, RouteInfo info); in onRouteUnselected() 2917 public abstract void onRouteAdded(MediaRouter router, RouteInfo info); in onRouteAdded() 2925 public abstract void onRouteRemoved(MediaRouter router, RouteInfo info); in onRouteRemoved() [all …]
|
/frameworks/base/services/core/java/com/android/server/media/projection/ |
D | MediaProjectionManagerService.java | 29 import android.media.MediaRouter; 77 private final MediaRouter mMediaRouter; 79 private MediaRouter.RouteInfo mMediaRouteInfo; 92 mMediaRouter = (MediaRouter) mContext.getSystemService(Context.MEDIA_ROUTER_SERVICE); in MediaProjectionManagerService() 101 mMediaRouter.addCallback(MediaRouter.ROUTE_TYPE_REMOTE_DISPLAY, mMediaRouterCallback, in onStart() 102 MediaRouter.CALLBACK_FLAG_PASSIVE_DISCOVERY); in onStart() 547 private class MediaRouterCallback extends MediaRouter.SimpleCallback { 549 public void onRouteSelected(MediaRouter router, int type, MediaRouter.RouteInfo info) { in onRouteSelected() 551 if ((type & MediaRouter.ROUTE_TYPE_REMOTE_DISPLAY) != 0) { in onRouteSelected() 561 public void onRouteUnselected(MediaRouter route, int type, MediaRouter.RouteInfo info) { in onRouteUnselected()
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | MediaRouterService.java | 35 import android.media.MediaRouter; 579 routeTypes &= ~MediaRouter.ROUTE_TYPE_REMOTE_DISPLAY; in setDiscoveryRequestLocked() 1015 if ((routeTypes & MediaRouter.ROUTE_TYPE_REMOTE_DISPLAY) != 0) { in updateDiscoveryRequest() 1339 case MediaRouter.RouteInfo.STATUS_NONE: in getConnectionPhase() 1340 case MediaRouter.RouteInfo.STATUS_CONNECTED: in getConnectionPhase() 1342 case MediaRouter.RouteInfo.STATUS_CONNECTING: in getConnectionPhase() 1344 case MediaRouter.RouteInfo.STATUS_SCANNING: in getConnectionPhase() 1345 case MediaRouter.RouteInfo.STATUS_AVAILABLE: in getConnectionPhase() 1347 case MediaRouter.RouteInfo.STATUS_NOT_AVAILABLE: in getConnectionPhase() 1348 case MediaRouter.RouteInfo.STATUS_IN_USE: in getConnectionPhase() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | CastControllerImplTest.java | 11 import android.media.MediaRouter; 39 MediaRouter mMediaRouter; 50 mContext.addMockSystemService(MediaRouter.class, mMediaRouter); in setUp()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/ |
D | CastTileTest.java | 27 import android.media.MediaRouter; 28 import android.media.MediaRouter.RouteInfo; 161 device.tag = mock(MediaRouter.RouteInfo.class); in testHandleClick_castDevicePresent()
|
/frameworks/base/tests/RemoteDisplayProvider/ |
D | README | 12 wireless displays or launch an activity that uses the MediaRouter,
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
D | CastTile.java | 19 import static android.media.MediaRouter.ROUTE_TYPE_REMOTE_DISPLAY; 24 import android.media.MediaRouter.RouteInfo;
|
/frameworks/base/docs/html/sdk/support_api_diff/25.1.0/ |
D | missingSinces.txt | 40 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()
|