Searched refs:route (Results 1 - 25 of 34) sorted by relevance

12

/frameworks/base/nfc-extras/java/com/android/nfc_extras/
H A DNfcAdapterExtras.java122 * Immutable data class that describes a card emulation route.
138 * A route such as {@link #ROUTE_OFF} or {@link #ROUTE_ON_WHEN_SCREEN_ON}.
140 public final int route; field in class:NfcAdapterExtras.CardEmulationRoute
144 * <p>null if {@link #route} is {@link #ROUTE_OFF}, otherwise not null.
148 public CardEmulationRoute(int route, NfcExecutionEnvironment nfcEe) { argument
149 if (route == ROUTE_OFF && nfcEe != null) {
151 } else if (route != ROUTE_OFF && nfcEe == null) {
152 throw new IllegalArgumentException("must specifiy a NFC-EE for this route");
154 this.route = route;
200 setCardEmulationRoute(CardEmulationRoute route) argument
[all...]
/frameworks/base/media/java/android/media/
H A DMediaRouter.java141 // This will select the active wifi display route if there is one.
157 // This will select the active BT route if there is one and the current
158 // selected route is the default system route, or if there is no selected
159 // route yet.
166 // Select the default route if the above didn't sync us up
322 final RouteInfo route = mRoutes.get(i);
323 if (route.updatePresentationDisplay() || (route.mPresentationDisplay != null
324 && route
451 requestSetVolume(RouteInfo route, int volume) argument
462 requestUpdateVolume(RouteInfo route, int direction) argument
491 updateGlobalRoute(RouteInfo route, MediaRouterClientState.RouteInfo globalRoute) argument
883 selectRoute(int types, RouteInfo route) argument
890 selectRouteInt(int types, RouteInfo route, boolean explicit) argument
894 selectRouteStatic(int types, RouteInfo route, boolean explicit) argument
1408 updateWifiDisplayRoute( RouteInfo route, WifiDisplay display, WifiDisplayStatus wfdStatus, boolean disconnected) argument
2238 addRoute(RouteInfo route) argument
2263 addRoute(RouteInfo route, int insertAt) argument
2286 removeRoute(RouteInfo route) argument
2603 filterRouteEvent(RouteInfo route) argument
2760 public final RouteInfo route; field in class:MediaRouter.VolumeCallbackInfo
2762 VolumeCallbackInfo(VolumeCallback vcb, RouteInfo route) argument
[all...]
H A DMediaRouterClientState.java38 * The id of the current globally selected route, or null if none.
39 * Globally selected routes override any other route selections that applications
56 final RouteInfo route = routes.get(i);
57 if (route.id.equals(id)) {
58 return route;
/frameworks/base/core/java/com/android/internal/app/
H A DMediaRouteDialogPresenter.java30 * Shows media route dialog as appropriate.
47 MediaRouter.RouteInfo route = router.getSelectedRoute();
48 if (route.isDefault() || !route.matchesTypes(routeTypes)) {
74 MediaRouter.RouteInfo route = router.getSelectedRoute();
75 if (route.isDefault() || !route.matchesTypes(routeTypes)) {
H A DMediaRouteChooserDialog.java40 * This class implements the route chooser dialog for {@link MediaRouter}.
42 * This dialog allows the user to choose a route that matches a given selector.
69 * Gets the media route types for filtering the routes that the user can
70 * select using the media route chooser dialog.
72 * @return The route types.
79 * Sets the types of routes that will be shown in the media route chooser dialog
82 * @param types The route types to match.
106 * Returns true if the route should be included in the list.
109 * match the route types. Subclasses can override this method to filter routes
113 * @param route Th
116 onFilterRoute(MediaRouter.RouteInfo route) argument
[all...]
H A DMediaRouteControllerDialog.java39 * This class implements the route controller dialog for {@link MediaRouter}.
41 * This dialog allows the user to control or disconnect from the currently selected route.
51 // to allow the route provider time to propagate the change and publish a new
52 // route descriptor.
82 * Gets the route that this dialog is controlling.
111 * when the route supports it.
127 * when the route supports it.
165 // Defer resetting mVolumeSliderTouched to allow the media route provider
296 public void onRouteChanged(MediaRouter router, MediaRouter.RouteInfo route) { argument
301 public void onRouteVolumeChanged(MediaRouter router, MediaRouter.RouteInfo route) { argument
[all...]
/frameworks/support/v7/mediarouter/src/android/support/v7/media/
H A DMediaRouter.java46 * can query the media router about the currently selected route and its capabilities
47 * to determine how to send content to the route's destination. Applications can
48 * also {@link RouteInfo#sendControlRequest send control requests} to the route
49 * to ask the route's destination to perform certain remote control functions
79 * except when actively scanning. This flag is typically used when the route picker
80 * dialog has been opened by the user to ensure that the route information is
86 * discover and select a new route.
97 * Flag for {@link #addCallback}: Do not filter route events.
100 * route even if they do not match the callback's filter.
106 * Flag for {@link #addCallback}: Request that route discover
287 selectRoute(RouteInfo route) argument
1236 onRouteSelected(MediaRouter router, RouteInfo route) argument
1245 onRouteUnselected(MediaRouter router, RouteInfo route) argument
1254 onRouteAdded(MediaRouter router, RouteInfo route) argument
1263 onRouteRemoved(MediaRouter router, RouteInfo route) argument
1272 onRouteChanged(MediaRouter router, RouteInfo route) argument
1281 onRouteVolumeChanged(MediaRouter router, RouteInfo route) argument
1296 onRoutePresentationDisplayChanged(MediaRouter router, RouteInfo route) argument
1366 filterRouteEvent(RouteInfo route) argument
1457 sendControlRequest(RouteInfo route, Intent intent, ControlRequestCallback callback) argument
1469 requestSetVolume(RouteInfo route, int volume) argument
1475 requestUpdateVolume(RouteInfo route, int delta) argument
1511 selectRoute(RouteInfo route) argument
1838 isSystemLiveAudioOnlyRoute(RouteInfo route) argument
1844 isRouteSelectable(RouteInfo route) argument
1850 isSystemDefaultRoute(RouteInfo route) argument
1856 setSelectedRouteInternal(RouteInfo route) argument
[all...]
H A DMediaRouteProviderDescriptor.java28 * Describes the state of a media route provider and the routes that it publishes.
69 * Returns true if the route provider descriptor and all of the routes that
80 MediaRouteDescriptor route = mRoutes.get(i);
81 if (route == null || !route.isValid()) {
119 * Builder for {@link MediaRouteProviderDescriptor media route provider descriptors}.
126 * Creates an empty media route provider descriptor builder.
133 * Creates a media route provider descriptor builder whose initial contents are
150 * Adds a route.
152 public Builder addRoute(MediaRouteDescriptor route) { argument
[all...]
H A DSystemMediaRouteProvider.java65 * Called by the media router when a route is added to synchronize state with
68 public void onSyncRouteAdded(MediaRouter.RouteInfo route) { argument
72 * Called by the media router when a route is removed to synchronize state with
75 public void onSyncRouteRemoved(MediaRouter.RouteInfo route) { argument
79 * Called by the media router when a route is changed to synchronize state with
82 public void onSyncRouteChanged(MediaRouter.RouteInfo route) { argument
86 * Called by the media router when a route is selected to synchronize state with
89 public void onSyncRouteSelected(MediaRouter.RouteInfo route) { argument
331 // TODO: The framework media router should supply a unique route id that
332 // we can use here. For now we use a hash of the route nam
449 onSyncRouteAdded(MediaRouter.RouteInfo route) argument
476 onSyncRouteRemoved(MediaRouter.RouteInfo route) argument
489 onSyncRouteChanged(MediaRouter.RouteInfo route) argument
500 onSyncRouteSelected(MediaRouter.RouteInfo route) argument
553 findUserRouteRecord(MediaRouter.RouteInfo route) argument
682 UserRouteRecord(MediaRouter.RouteInfo route, Object routeObj) argument
[all...]
/frameworks/support/v7/mediarouter/src/android/support/v7/app/
H A DMediaRouteChooserDialog.java39 * This class implements the route chooser dialog for {@link MediaRouter}.
41 * This dialog allows the user to choose a route that matches a given selector.
69 * Gets the media route selector for filtering the routes that the user can select.
78 * Sets the media route selector for filtering the routes that the user can select.
101 * Returns true if the route should be included in the list.
108 * @param route The route to consider, never null.
109 * @return True if the route should be included in the chooser dialog.
111 public boolean onFilterRoute(MediaRouter.RouteInfo route) { argument
112 return !route
244 onRouteSelected(MediaRouter router, MediaRouter.RouteInfo route) argument
[all...]
H A DMediaRouteControllerDialog.java35 * This class implements the route controller dialog for {@link MediaRouter}.
37 * This dialog allows the user to control or disconnect from the currently selected route.
47 // to allow the route provider time to propagate the change and publish a new
48 // route descriptor.
83 * Gets the route that this dialog is controlling.
112 * when the route supports it.
128 * when the route supports it.
166 // Defer resetting mVolumeSliderTouched to allow the media route provider
299 public void onRouteUnselected(MediaRouter router, MediaRouter.RouteInfo route) { argument
304 public void onRouteChanged(MediaRouter router, MediaRouter.RouteInfo route) { argument
309 onRouteVolumeChanged(MediaRouter router, MediaRouter.RouteInfo route) argument
[all...]
H A DMediaRouteButton.java43 * The media route button allows the user to select routes and to control the
44 * currently selected route.
50 * When the default route is selected or when the currently selected route does not
53 * route of the kind that it wants to use. Clicking on the button opens
54 * a {@link MediaRouteChooserDialog} to allow the user to select a route.
59 * When a non-default route is selected that matches the selector, the button will
61 * to a route of the kind that it wants to use. The button may also appear
62 * in an intermediary connecting state if the route is in the process of connecting
65 * to control or disconnect from the current route
[all...]
/frameworks/support/v7/mediarouter/jellybean/android/support/v7/media/
H A DMediaRouterJellybean.java295 android.media.MediaRouter.RouteInfo route =
298 int routeTypes = route.getSupportedTypes();
307 mSelectRouteIntMethod.invoke(router, types, route);
310 Log.w(TAG, "Cannot programmatically select non-user route. "
313 Log.w(TAG, "Cannot programmatically select non-user route. "
317 Log.w(TAG, "Cannot programmatically select non-user route "
324 router.selectRoute(types, route);
358 // Return the first route and hope for the best.
373 int type, android.media.MediaRouter.RouteInfo route) {
374 mCallback.onRouteSelected(type, route);
372 onRouteSelected(android.media.MediaRouter router, int type, android.media.MediaRouter.RouteInfo route) argument
378 onRouteUnselected(android.media.MediaRouter router, int type, android.media.MediaRouter.RouteInfo route) argument
384 onRouteAdded(android.media.MediaRouter router, android.media.MediaRouter.RouteInfo route) argument
390 onRouteRemoved(android.media.MediaRouter router, android.media.MediaRouter.RouteInfo route) argument
396 onRouteChanged(android.media.MediaRouter router, android.media.MediaRouter.RouteInfo route) argument
402 onRouteGrouped(android.media.MediaRouter router, android.media.MediaRouter.RouteInfo route, android.media.MediaRouter.RouteGroup group, int index) argument
409 onRouteUngrouped(android.media.MediaRouter router, android.media.MediaRouter.RouteInfo route, android.media.MediaRouter.RouteGroup group) argument
416 onRouteVolumeChanged(android.media.MediaRouter router, android.media.MediaRouter.RouteInfo route) argument
431 onVolumeSetRequest(android.media.MediaRouter.RouteInfo route, int volume) argument
437 onVolumeUpdateRequest(android.media.MediaRouter.RouteInfo route, int direction) argument
[all...]
/frameworks/base/core/java/android/os/
H A DINetworkManagementService.aidl99 * Add the specified route to the interface.
101 void addRoute(String iface, in RouteInfo route);
104 * Remove the specified route from the interface.
106 void removeRoute(String iface, in RouteInfo route);
109 * Add the specified route to a secondary interface
110 * This will go into a special route table to be accessed
113 void addSecondaryRoute(String iface, in RouteInfo route);
116 * Remove the specified secondary route.
118 void removeSecondaryRoute(String iface, in RouteInfo route);
385 * Route all traffic in {@code route} t
[all...]
/frameworks/support/v7/mediarouter/jellybean-mr1/android/support/v7/media/
H A DMediaRouterJellybeanMr1.java147 android.media.MediaRouter.RouteInfo route =
152 int statusCode = (Integer)mGetStatusCodeMethod.invoke(route);
172 android.media.MediaRouter.RouteInfo route) {
173 mCallback.onRoutePresentationDisplayChanged(route);
171 onRoutePresentationDisplayChanged(android.media.MediaRouter router, android.media.MediaRouter.RouteInfo route) argument
/frameworks/base/core/java/android/nfc/
H A DINfcAdapterExtras.aidl30 void setCardEmulationRoute(in String pkg, int route);
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DKeyguardDisplayManager.java94 MediaRouter.RouteInfo route = mMediaRouter.getSelectedRoute(
96 boolean useDisplay = route != null
97 && route.getPlaybackType() == MediaRouter.RouteInfo.PLAYBACK_TYPE_REMOTE;
98 Display presentationDisplay = useDisplay ? route.getPresentationDisplay() : null;
/frameworks/base/core/java/android/net/
H A DLinkProperties.java115 for (RouteInfo route : mRoutes) {
116 newRoutes.add(routeWithInterface(route));
236 private RouteInfo routeWithInterface(RouteInfo route) { argument
238 route.getDestination(),
239 route.getGateway(),
243 public void addRoute(RouteInfo route) { argument
244 if (route != null) {
245 String routeIface = route.getInterface();
251 mRoutes.add(routeWithInterface(route));
363 for (RouteInfo route
[all...]
H A DRouteInfo.java30 * A simple container for route information.
32 * In order to be used, a route must have a destination prefix and:
47 * The IP destination address for this route.
52 * The gateway address for this route.
57 * The interface for this route.
69 * constructed route is either the IPv4 default route <code>0.0.0.0</code>
71 * route <code>::/0</code> if gateway is an instance of
77 * @param gateway the IP address to route packets through
286 // match the route destinatio
[all...]
/frameworks/base/nfc-extras/tests/src/com/android/nfc_extras/tests/
H A DBasicNfcEeTest.java99 assertEquals(CardEmulationRoute.ROUTE_ON_WHEN_SCREEN_ON, newRoute.route);
107 assertEquals(CardEmulationRoute.ROUTE_OFF, newRoute.route);
/frameworks/base/core/java/android/net/arp/
H A DArpPeer.java145 for (RouteInfo route : linkProperties.getRoutes()) {
146 gateway = route.getGateway();
/frameworks/base/core/java/com/android/internal/net/
H A DVpnConfig.java79 for (String route : routes) {
80 //each route is ip/prefix
81 String[] split = route.split("/");
/frameworks/base/core/java/android/app/
H A DMediaRouteButton.java57 // The checked state is used when connected to a remote route.
62 // The activated state is used while connecting to a remote route.
101 * Gets the media route types for filtering the routes that the user can
102 * select using the media route chooser dialog.
104 * @return The route types.
111 * Sets the types of routes that will be shown in the media route chooser dialog
114 * @param types The route types to match.
138 * Show the route chooser or controller dialog.
140 * If the default route is selected or if the currently selected route doe
[all...]
/frameworks/base/services/java/com/android/server/
H A DNetworkManagementService.java691 public void addRoute(String interfaceName, RouteInfo route) { argument
693 modifyRoute(interfaceName, ADD, route, DEFAULT);
697 public void removeRoute(String interfaceName, RouteInfo route) { argument
699 modifyRoute(interfaceName, REMOVE, route, DEFAULT);
703 public void addSecondaryRoute(String interfaceName, RouteInfo route) { argument
705 modifyRoute(interfaceName, ADD, route, SECONDARY);
709 public void removeSecondaryRoute(String interfaceName, RouteInfo route) { argument
711 modifyRoute(interfaceName, REMOVE, route, SECONDARY);
714 private void modifyRoute(String interfaceName, String action, RouteInfo route, String type) { argument
715 final Command cmd = new Command("interface", "route", actio
1516 setMarkedForwardingRoute(String iface, RouteInfo route) argument
1528 clearMarkedForwardingRoute(String iface, RouteInfo route) argument
[all...]
/frameworks/base/services/java/com/android/server/media/
H A DMediaRouterService.java70 * Timeout in milliseconds for a selected route to transition from a
72 * progress within this interval, then we will give up and unselect the route.
77 * Timeout in milliseconds for a selected route to transition from a
79 * progress within this interval, then we will give up and unselect the route.
197 // A null routeId means that the client wants to unselect its current route.
201 // selected route or a default selection.
389 Slog.d(TAG, clientRecord + ": Set selected route, routeId=" + routeId
396 // Any app can disconnect from the globally selected route.
444 // then leave it alone since we might be connected to a route or want to query
445 // the same route informatio
[all...]

Completed in 6127 milliseconds

12