/frameworks/support/recyclerview-selection/src/androidTest/java/androidx/recyclerview/selection/ |
D | GestureRouterTest.java | 44 private GestureRouter<TestHandler> mRouter; field in GestureRouterTest 54 mRouter = new GestureRouter<>(); in testDelegates() 55 mRouter.register(MotionEvent.TOOL_TYPE_MOUSE, mHandler); in testDelegates() 56 mRouter.register(MotionEvent.TOOL_TYPE_FINGER, mAlt); in testDelegates() 58 mRouter.onDown(Mouse.CLICK); in testDelegates() 62 mRouter.onShowPress(Mouse.CLICK); in testDelegates() 66 mRouter.onSingleTapUp(Mouse.CLICK); in testDelegates() 70 mRouter.onScroll(null, Mouse.CLICK, -1, -1); in testDelegates() 74 mRouter.onLongPress(Mouse.CLICK); in testDelegates() 78 mRouter.onFling(null, Mouse.CLICK, -1, -1); in testDelegates() [all …]
|
/frameworks/support/mediarouter/src/main/java/androidx/mediarouter/app/ |
D | MediaRouteDiscoveryFragment.java | 44 private MediaRouter mRouter; field in MediaRouteDiscoveryFragment 56 return mRouter; in getMediaRouter() 60 if (mRouter == null) { in ensureRouter() 61 mRouter = MediaRouter.getInstance(getContext()); in ensureRouter() 98 mRouter.removeCallback(mCallback); in setRouteSelector() 99 mRouter.addCallback(mSelector, mCallback, onPrepareCallbackFlags()); in setRouteSelector() 151 mRouter.addCallback(mSelector, mCallback, onPrepareCallbackFlags()); in onStart() 158 mRouter.removeCallback(mCallback); in onStop()
|
D | MediaRouteActionProvider.java | 134 private final MediaRouter mRouter; field in MediaRouteActionProvider 149 mRouter = MediaRouter.getInstance(context); in MediaRouteActionProvider() 184 mRouter.removeCallback(mCallback); in setRouteSelector() 187 mRouter.addCallback(selector, mCallback); in setRouteSelector() 281 return mRouter.isRouteAvailable(mSelector, in isVisible()
|
D | MediaRouteButton.java | 87 private final MediaRouter mRouter; field in MediaRouteButton 128 mRouter = MediaRouter.getInstance(context); in MediaRouteButton() 182 mRouter.removeCallback(mCallback); in setRouteSelector() 185 mRouter.addCallback(selector, mCallback); in setRouteSelector() 246 MediaRouter.RouteInfo route = mRouter.getSelectedRoute(); in showDialog() 408 mRouter.addCallback(mSelector, mCallback); in onAttachedToWindow() 417 mRouter.removeCallback(mCallback); in onDetachedFromWindow() 488 final MediaRouter.RouteInfo route = mRouter.getSelectedRoute(); in refreshRoute() 506 setEnabled(mRouter.isRouteAvailable(mSelector, in refreshRoute()
|
D | MediaRouteChooserDialog.java | 71 private final MediaRouter mRouter; field in MediaRouteChooserDialog 101 mRouter = MediaRouter.getInstance(context); in MediaRouteChooserDialog() 129 mRouter.removeCallback(mCallback); in setRouteSelector() 130 mRouter.addCallback(selector, mCallback, in setRouteSelector() 211 mRouter.addCallback(mSelector, mCallback, MediaRouter.CALLBACK_FLAG_PERFORM_ACTIVE_SCAN); in onAttachedToWindow() 218 mRouter.removeCallback(mCallback); in onDetachedFromWindow() 229 ArrayList<MediaRouter.RouteInfo> routes = new ArrayList<>(mRouter.getRoutes()); in refreshRoutes()
|
D | MediaRouteControllerDialog.java | 115 final MediaRouter mRouter; field in MediaRouteControllerDialog 210 mRouter = MediaRouter.getInstance(mContext); in MediaRouteControllerDialog() 212 mRoute = mRouter.getSelectedRoute(); in MediaRouteControllerDialog() 213 setMediaSession(mRouter.getMediaSessionToken()); in MediaRouteControllerDialog() 482 mRouter.addCallback(MediaRouteSelector.EMPTY, mCallback, in onAttachedToWindow() 484 setMediaSession(mRouter.getMediaSessionToken()); in onAttachedToWindow() 489 mRouter.removeCallback(mCallback); in onDetachedFromWindow() 1194 mRouter.unselect(id == BUTTON_STOP_RES_ID ? in onClick()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ |
D | MediaRouterWrapper.java | 29 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/av/packages/MediaComponents/src/com/android/support/mediarouter/app/ |
D | MediaRouteDiscoveryFragment.java | 44 private MediaRouter mRouter; field in MediaRouteDiscoveryFragment 56 return mRouter; in getMediaRouter() 60 if (mRouter == null) { in ensureRouter() 61 mRouter = MediaRouter.getInstance(getContext()); in ensureRouter() 98 mRouter.removeCallback(mCallback); in setRouteSelector() 99 mRouter.addCallback(mSelector, mCallback, onPrepareCallbackFlags()); in setRouteSelector() 151 mRouter.addCallback(mSelector, mCallback, onPrepareCallbackFlags()); in onStart() 158 mRouter.removeCallback(mCallback); in onStop()
|
D | MediaRouteActionProvider.java | 132 private final MediaRouter mRouter; field in MediaRouteActionProvider 147 mRouter = MediaRouter.getInstance(context); in MediaRouteActionProvider() 182 mRouter.removeCallback(mCallback); in setRouteSelector() 185 mRouter.addCallback(selector, mCallback); in setRouteSelector() 279 return mRouter.isRouteAvailable(mSelector, in isVisible()
|
D | MediaRouteButton.java | 88 private final MediaRouter mRouter; field in MediaRouteButton 130 mRouter = MediaRouter.getInstance(context); in MediaRouteButton() 197 mRouter.removeCallback(mCallback); in setRouteSelector() 208 mRouter.addCallback(selector, mCallback, flags); in setRouteSelector() 266 MediaRouter.RouteInfo route = mRouter.getSelectedRoute(); in showDialog() 423 mRouter.addCallback(mSelector, mCallback, mRouteCallbackFlags); in onAttachedToWindow() 432 mRouter.removeCallback(mCallback); in onDetachedFromWindow() 503 final MediaRouter.RouteInfo route = mRouter.getSelectedRoute(); in refreshRoute() 521 setEnabled(mRouter.isRouteAvailable(mSelector, in refreshRoute()
|
D | MediaRouteChooserDialog.java | 75 private final MediaRouter mRouter; field in MediaRouteChooserDialog 106 mRouter = MediaRouter.getInstance(context); in MediaRouteChooserDialog() 134 mRouter.removeCallback(mCallback); in setRouteSelector() 135 mRouter.addCallback(selector, mCallback, in setRouteSelector() 218 mRouter.addCallback(mSelector, mCallback, MediaRouter.CALLBACK_FLAG_PERFORM_ACTIVE_SCAN); in onAttachedToWindow() 225 mRouter.removeCallback(mCallback); in onDetachedFromWindow() 236 ArrayList<MediaRouter.RouteInfo> routes = new ArrayList<>(mRouter.getRoutes()); in refreshRoutes()
|
D | MediaRouteControllerDialog.java | 118 final MediaRouter mRouter; field in MediaRouteControllerDialog 214 mRouter = MediaRouter.getInstance(mContext); in MediaRouteControllerDialog() 216 mRoute = mRouter.getSelectedRoute(); in MediaRouteControllerDialog() 217 setMediaSession(mRouter.getMediaSessionToken()); in MediaRouteControllerDialog() 489 mRouter.addCallback(MediaRouteSelector.EMPTY, mCallback, in onAttachedToWindow() 491 setMediaSession(mRouter.getMediaSessionToken()); in onAttachedToWindow() 496 mRouter.removeCallback(mCallback); in onDetachedFromWindow() 1200 mRouter.unselect(id == BUTTON_STOP_RES_ID ? in onClick()
|
/frameworks/base/core/java/android/app/ |
D | MediaRouteActionProvider.java | 49 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()
|
D | MediaRouteButton.java | 37 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/ |
D | MediaRouteChooserDialog.java | 52 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()
|
D | MediaRouteControllerDialog.java | 59 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()
|
/frameworks/support/mediarouter/src/androidTest/java/androidx/mediarouter/media/ |
D | MediaRouterTest.java | 47 private MediaRouter mRouter; field in MediaRouterTest 57 mRouter = MediaRouter.getInstance(mContext); in setUp() 79 mRouter.setMediaSessionCompat(mSession); in testSessionCallbackAfterSetMediaSessionCompat()
|
/frameworks/support/mediarouter/src/main/java/androidx/mediarouter/media/ |
D | MediaRouter.java | 1910 public final MediaRouter mRouter; field in MediaRouter.CallbackRecord 1916 mRouter = router; in CallbackRecord() 2961 final MediaRouter router = record.mRouter; in invokeCallback()
|
/frameworks/av/packages/MediaComponents/src/com/android/support/mediarouter/media/ |
D | MediaRouter.java | 1904 public final MediaRouter mRouter; field in MediaRouter.CallbackRecord 1910 mRouter = router; in CallbackRecord() 2948 final MediaRouter router = record.mRouter; in invokeCallback()
|