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

123

/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DSessionRoute.cpp56 sp<SessionRoute> route = indexOfKey(session) >= 0 ? valueFor(session) : 0; local
57 if (route != 0) {
58 ALOG_ASSERT(route->mRefCount > 0);
59 --route->mRefCount;
60 if (route->mRefCount <= 0) {
68 sp<SessionRoute> route = indexOfKey(session) >= 0 ? valueFor(session) : 0; local
69 return route != 0 ? ++(route->mActivityCount) : -1;
74 sp<SessionRoute> route = indexOfKey(session) >= 0 ? valueFor(session) : 0; local
75 if (route !
104 sp<SessionRoute> route = indexOfKey(session) >= 0 ? valueFor(session) : 0; local
[all...]
/frameworks/base/telecomm/java/android/telecom/
H A DAudioState.java57 private final int route; field in class:AudioState
60 public AudioState(boolean muted, int route, int supportedRouteMask) { argument
62 this.route = route;
68 route = state.getRoute();
74 route = state.getRoute();
94 "[AudioState isMuted: %b, route: %s, supportedRouteMask: %s]",
96 audioRouteToString(route),
100 public static String audioRouteToString(int route) { argument
101 if (route
[all...]
H A DCallAudioState.java52 private final int route; field in class:CallAudioState
59 * @param route The current audio route being used.
72 public CallAudioState(boolean muted, int route, int supportedRouteMask) { argument
74 this.route = route;
81 route = state.getRoute();
89 route = state.getRoute();
109 "[AudioState isMuted: %b, route: %s, supportedRouteMask: %s]",
111 audioRouteToString(route),
143 audioRouteToString(int route) argument
[all...]
/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/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DCastControllerImpl.java78 final RouteInfo route = mRoutes.valueAt(i);
79 pw.print(" "); pw.println(routeToString(route));
148 for (RouteInfo route : mRoutes.values()) {
150 device.id = route.getTag().toString();
151 final CharSequence name = route.getName(mContext);
153 final CharSequence description = route.getDescription();
155 device.state = route.isConnecting() ? CastDevice.STATE_CONNECTING
156 : route.isSelected() ? CastDevice.STATE_CONNECTED
158 device.tag = route;
168 final RouteInfo route
245 ensureTagExists(RouteInfo route) argument
261 routeToString(RouteInfo route) argument
[all...]
/frameworks/base/media/java/android/media/
H A DMediaRouter.java146 // This will select the active wifi display route if there is one.
162 // This will select the active BT route if there is one and the current
163 // selected route is the default system route, or if there is no selected
164 // route yet.
171 // Select the default route if the above didn't sync us up
331 final RouteInfo route = mRoutes.get(i);
332 if (route.updatePresentationDisplay() || (route.mPresentationDisplay != null
333 && route
460 requestSetVolume(RouteInfo route, int volume) argument
471 requestUpdateVolume(RouteInfo route, int direction) argument
501 updateGlobalRoute(RouteInfo route, MediaRouterClientState.RouteInfo globalRoute) argument
894 selectRoute(int types, @NonNull RouteInfo route) argument
904 selectRouteInt(int types, RouteInfo route, boolean explicit) argument
908 selectRouteStatic(int types, @NonNull RouteInfo route, boolean explicit) argument
1428 updateWifiDisplayRoute( RouteInfo route, WifiDisplay display, WifiDisplayStatus wfdStatus, boolean disconnected) argument
2372 addRoute(RouteInfo route) argument
2397 addRoute(RouteInfo route, int insertAt) argument
2420 removeRoute(RouteInfo route) argument
2737 filterRouteEvent(RouteInfo route) argument
2894 public final RouteInfo route; field in class:MediaRouter.VolumeCallbackInfo
2896 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...]
/frameworks/support/v7/mediarouter/src/android/support/v7/media/
H A DMediaRouter.java65 * can query the media router about the currently selected route and its capabilities
66 * to determine how to send content to the route's destination. Applications can
67 * also {@link RouteInfo#sendControlRequest send control requests} to the route
68 * to ask the route's destination to perform certain remote control functions
84 * and {@link Callback#onRouteUnselected(MediaRouter, RouteInfo, int)} when the reason the route
106 * a different route.
137 * except when actively scanning. This flag is typically used when the route picker
138 * dialog has been opened by the user to ensure that the route information is
144 * discover and select a new route.
155 * Flag for {@link #addCallback}: Do not filter route event
382 selectRoute(@onNull RouteInfo route) argument
1261 isSystemMediaRouteProvider(MediaRouter.RouteInfo route) argument
1717 onRouteSelected(MediaRouter router, RouteInfo route) argument
1728 onRouteUnselected(MediaRouter router, RouteInfo route) argument
1747 onRouteUnselected(MediaRouter router, RouteInfo route, int reason) argument
1757 onRouteAdded(MediaRouter router, RouteInfo route) argument
1766 onRouteRemoved(MediaRouter router, RouteInfo route) argument
1775 onRouteChanged(MediaRouter router, RouteInfo route) argument
1784 onRouteVolumeChanged(MediaRouter router, RouteInfo route) argument
1799 onRoutePresentationDisplayChanged(MediaRouter router, RouteInfo route) argument
1869 filterRouteEvent(RouteInfo route) argument
1982 sendControlRequest(RouteInfo route, Intent intent, ControlRequestCallback callback) argument
1994 requestSetVolume(RouteInfo route, int volume) argument
2005 requestUpdateVolume(RouteInfo route, int delta) argument
2050 selectRoute(RouteInfo route) argument
2054 selectRoute(RouteInfo route, int unselectReason) argument
2336 updateRouteDescriptorAndNotify(RouteInfo route, MediaRouteDescriptor routeDescriptor) argument
2484 isSystemLiveAudioOnlyRoute(RouteInfo route) argument
2490 isRouteSelectable(RouteInfo route) argument
2496 isSystemDefaultRoute(RouteInfo route) argument
2502 setSelectedRouteInternal(RouteInfo route, int unselectReason) 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.java68 * Called by the media router when a route is added to synchronize state with
71 public void onSyncRouteAdded(MediaRouter.RouteInfo route) { argument
75 * Called by the media router when a route is removed to synchronize state with
78 public void onSyncRouteRemoved(MediaRouter.RouteInfo route) { argument
82 * Called by the media router when a route is changed to synchronize state with
85 public void onSyncRouteChanged(MediaRouter.RouteInfo route) { argument
89 * Called by the media router when a route is selected to synchronize state with
92 public void onSyncRouteSelected(MediaRouter.RouteInfo route) { argument
334 // TODO: The framework media router should supply a unique route id that
335 // we can use here. For now we use a hash of the route nam
452 onSyncRouteAdded(MediaRouter.RouteInfo route) argument
479 onSyncRouteRemoved(MediaRouter.RouteInfo route) argument
492 onSyncRouteChanged(MediaRouter.RouteInfo route) argument
503 onSyncRouteSelected(MediaRouter.RouteInfo route) argument
556 findUserRouteRecord(MediaRouter.RouteInfo route) argument
685 UserRouteRecord(MediaRouter.RouteInfo route, Object routeObj) argument
[all...]
/frameworks/base/core/java/android/net/
H A DINetworkManagementEventObserver.aidl104 * A route has been added or updated.
106 void routeUpdated(in RouteInfo route);
109 * A route has been removed.
111 void routeRemoved(in RouteInfo route);
H A DLinkProperties.java176 for (RouteInfo route : mRoutes) {
177 newRoutes.add(routeWithInterface(route));
446 private RouteInfo routeWithInterface(RouteInfo route) { argument
448 route.getDestination(),
449 route.getGateway(),
451 route.getType());
460 * @param route A {@link RouteInfo} to add to this object.
461 * @return {@code false} if the route was already present, {@code true} if it was added.
465 public boolean addRoute(RouteInfo route) { argument
466 if (route !
491 removeRoute(RouteInfo route) argument
[all...]
H A DRouteInfo.java31 * Represents a network route.
36 * A route contains three pieces of information:
38 * <li>a destination {@link IpPrefix} specifying the network destinations covered by this route.
39 * If this is {@code null} it indicates a default route of the address family (IPv4 or IPv6)
42 * indicates a directly-connected route.
51 * The IP destination address for this route.
56 * The gateway address for this route.
61 * The interface for this route.
66 /** Unicast route. @hide */
69 /** Unreachable route
[all...]
/frameworks/support/v7/mediarouter/src/android/support/v7/app/
H A DMediaRouteChooserDialog.java57 * This class implements the route chooser dialog for {@link MediaRouter}.
59 * This dialog allows the user to choose a route that matches a given selector.
92 * Gets the media route selector for filtering the routes that the user can select.
102 * Sets the media route selector for filtering the routes that the user can select.
142 * Returns true if the route should be included in the list.
149 * @param route The route to consider, never null.
150 * @return True if the route should be included in the chooser dialog.
152 public boolean onFilterRoute(@NonNull MediaRouter.RouteInfo route) { argument
153 return !route
333 getIconDrawable(MediaRouter.RouteInfo route) argument
350 getDefaultIconDrawable(MediaRouter.RouteInfo route) argument
385 onRouteSelected(MediaRouter router, MediaRouter.RouteInfo route) argument
[all...]
H A DMediaRouteControllerDialog.java84 * This class implements the route controller dialog for {@link MediaRouter}.
86 * This dialog allows the user to control or disconnect from the currently selected route.
98 // to allow the route provider time to propagate the change and publish a new
99 // route descriptor.
212 * Gets the route that this dialog is controlling.
247 * when the route supports it.
264 * when the route supports it.
793 MediaRouter.RouteInfo route = mVolumeGroupAdapter.getItem(position);
794 Rect previousBounds = previousRouteBoundMap.get(route);
799 if (mGroupMemberRoutesAdded != null && mGroupMemberRoutesAdded.contains(route)) {
1008 isVolumeControlAvailable(MediaRouter.RouteInfo route) argument
1046 onRouteUnselected(MediaRouter router, MediaRouter.RouteInfo route) argument
1051 onRouteChanged(MediaRouter router, MediaRouter.RouteInfo route) argument
1056 onRouteVolumeChanged(MediaRouter router, MediaRouter.RouteInfo route) argument
[all...]
/frameworks/base/core/java/com/android/server/net/
H A DBaseNetworkObserver.java76 public void routeUpdated(RouteInfo route) { argument
81 public void routeRemoved(RouteInfo route) { argument
H A DNetlinkTracker.java146 public void routeUpdated(RouteInfo route) { argument
147 if (mInterfaceName.equals(route.getInterface())) {
148 maybeLog("routeUpdated", route);
151 changed = mLinkProperties.addRoute(route);
160 public void routeRemoved(RouteInfo route) { argument
161 if (mInterfaceName.equals(route.getInterface())) {
162 maybeLog("routeRemoved", route);
165 changed = mLinkProperties.removeRoute(route);
/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/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/support/v7/mediarouter/jellybean-mr1/android/support/v7/media/
H A DMediaRouterJellybeanMr1.java48 Log.w(TAG, "Cannot get presentation display for the route.", ex);
154 android.media.MediaRouter.RouteInfo route =
159 int statusCode = (Integer)mGetStatusCodeMethod.invoke(route);
179 android.media.MediaRouter.RouteInfo route) {
180 mCallback.onRoutePresentationDisplayChanged(route);
178 onRoutePresentationDisplayChanged(android.media.MediaRouter router, android.media.MediaRouter.RouteInfo route) argument
/frameworks/base/services/net/java/android/net/ip/
H A DIpReachabilityMonitor.java280 for (RouteInfo route : routes) {
281 if (!route.hasGateway() && route.matches(ip)) {
308 for (RouteInfo route : routes) {
309 if (route.hasGateway()) {
310 InetAddress gw = route.getGateway();
350 for (RouteInfo route : mLinkProperties.getRoutes()) {
351 if (ip.equals(route.getGateway())) {
352 whatIfLp.removeRoute(route);
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
H A DHwModule.h61 sp<DeviceDescriptor> getRouteSinkDevice(const sp<AudioRoute> &route) const;
62 DeviceVector getRouteSourceDevices(const sp<AudioRoute> &route) const;

Completed in 781 milliseconds

123