Home
last modified time | relevance | path

Searched refs:route (Results 1 – 25 of 67) sorted by relevance

123

/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DSessionRoute.cpp56 sp<SessionRoute> route = indexOfKey(session) >= 0 ? valueFor(session) : 0; in removeRoute() local
57 if (route != 0) { in removeRoute()
58 ALOG_ASSERT(route->mRefCount > 0); in removeRoute()
59 --route->mRefCount; in removeRoute()
60 if (route->mRefCount <= 0) { in removeRoute()
68 sp<SessionRoute> route = indexOfKey(session) >= 0 ? valueFor(session) : 0; in incRouteActivity() local
69 return route != 0 ? ++(route->mActivityCount) : -1; in incRouteActivity()
74 sp<SessionRoute> route = indexOfKey(session) >= 0 ? valueFor(session) : 0; in decRouteActivity() local
75 if (route != 0 && route->mActivityCount > 0) { in decRouteActivity()
76 return --(route->mActivityCount); in decRouteActivity()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DCastControllerImpl.java78 final RouteInfo route = mRoutes.valueAt(i); in dump() local
79 pw.print(" "); pw.println(routeToString(route)); in dump()
148 for (RouteInfo route : mRoutes.values()) { in getCastDevices()
150 device.id = route.getTag().toString(); in getCastDevices()
151 final CharSequence name = route.getName(mContext); in getCastDevices()
153 final CharSequence description = route.getDescription(); in getCastDevices()
155 device.state = route.isConnecting() ? CastDevice.STATE_CONNECTING in getCastDevices()
156 : route.isSelected() ? CastDevice.STATE_CONNECTED in getCastDevices()
158 device.tag = route; in getCastDevices()
168 final RouteInfo route = (RouteInfo) device.tag; in startCasting()
[all …]
/frameworks/base/telecomm/java/android/telecom/
DAudioState.java57 private final int route; field in AudioState
60 public AudioState(boolean muted, int route, int supportedRouteMask) { in AudioState() argument
62 this.route = route; in AudioState()
68 route = state.getRoute(); in AudioState()
74 route = state.getRoute(); in AudioState()
96 audioRouteToString(route), in toString()
100 public static String audioRouteToString(int route) { in audioRouteToString() argument
101 if (route == 0 || (route & ~ROUTE_ALL) != 0x0) { in audioRouteToString()
106 if ((route & ROUTE_EARPIECE) == ROUTE_EARPIECE) { in audioRouteToString()
109 if ((route & ROUTE_BLUETOOTH) == ROUTE_BLUETOOTH) { in audioRouteToString()
[all …]
DCallAudioState.java52 private final int route; field in CallAudioState
72 public CallAudioState(boolean muted, int route, int supportedRouteMask) { in CallAudioState() argument
74 this.route = route; in CallAudioState()
81 route = state.getRoute(); in CallAudioState()
89 route = state.getRoute(); in CallAudioState()
111 audioRouteToString(route), in toString()
126 return route; in getRoute()
143 public static String audioRouteToString(int route) { in audioRouteToString() argument
144 if (route == 0 || (route & ~ROUTE_ALL) != 0x0) { in audioRouteToString()
149 if ((route & ROUTE_EARPIECE) == ROUTE_EARPIECE) { in audioRouteToString()
[all …]
/frameworks/base/media/java/android/media/
DMediaRouter.java326 final RouteInfo route = mRoutes.get(i); in updatePresentationDisplays() local
327 if (route.updatePresentationDisplay() || (route.mPresentationDisplay != null in updatePresentationDisplays()
328 && route.mPresentationDisplay.getDisplayId() == changedDisplayId)) { in updatePresentationDisplays()
329 dispatchRoutePresentationDisplayChanged(route); in updatePresentationDisplays()
410 RouteInfo route = findGlobalRoute(globalRoute.id); in updateClientState() local
411 if (route == null) { in updateClientState()
412 route = makeGlobalRoute(globalRoute); in updateClientState()
413 addRouteStatic(route); in updateClientState()
415 updateGlobalRoute(route, globalRoute); in updateClientState()
421 final RouteInfo route = findGlobalRoute(globallySelectedRouteId); in updateClientState() local
[all …]
/frameworks/support/v7/mediarouter/src/android/support/v7/media/
DMediaRouter.java357 RouteInfo route = sGlobal.getSelectedRoute(); in updateSelectedRoute() local
358 if (!route.isDefault() && !route.matchesSelector(selector)) { in updateSelectedRoute()
359 route = sGlobal.getDefaultRoute(); in updateSelectedRoute()
360 sGlobal.selectRoute(route); in updateSelectedRoute()
362 return route; in updateSelectedRoute()
370 public void selectRoute(@NonNull RouteInfo route) { in selectRoute() argument
371 if (route == null) { in selectRoute()
377 Log.d(TAG, "selectRoute: " + route); in selectRoute()
379 sGlobal.selectRoute(route); in selectRoute()
1458 public void onRouteSelected(MediaRouter router, RouteInfo route) { in onRouteSelected() argument
[all …]
DMediaRouteProviderDescriptor.java80 MediaRouteDescriptor route = mRoutes.get(i); in isValid() local
81 if (route == null || !route.isValid()) { in isValid()
152 public Builder addRoute(MediaRouteDescriptor route) { in addRoute() argument
153 if (route == null) { in addRoute()
159 } else if (mRoutes.contains(route)) { in addRoute()
162 mRoutes.add(route); in addRoute()
175 for (MediaRouteDescriptor route : routes) { in addRoutes()
176 addRoute(route); in addRoutes()
DSystemMediaRouteProvider.java68 public void onSyncRouteAdded(MediaRouter.RouteInfo route) { in onSyncRouteAdded() argument
75 public void onSyncRouteRemoved(MediaRouter.RouteInfo route) { in onSyncRouteRemoved() argument
82 public void onSyncRouteChanged(MediaRouter.RouteInfo route) { in onSyncRouteChanged() argument
89 public void onSyncRouteSelected(MediaRouter.RouteInfo route) { in onSyncRouteSelected() argument
407 MediaRouter.RouteInfo route = mSyncCallback.getSystemRouteByDescriptorId( in onRouteSelected() local
409 if (route != null) { in onRouteSelected()
410 route.select(); in onRouteSelected()
449 public void onSyncRouteAdded(MediaRouter.RouteInfo route) { in onSyncRouteAdded() argument
450 if (route.getProviderInstance() != this) { in onSyncRouteAdded()
453 UserRouteRecord record = new UserRouteRecord(route, routeObj); in onSyncRouteAdded()
[all …]
/frameworks/base/nfc-extras/java/com/android/nfc_extras/
DNfcAdapterExtras.java140 public final int route; field in NfcAdapterExtras.CardEmulationRoute
148 public CardEmulationRoute(int route, NfcExecutionEnvironment nfcEe) { in CardEmulationRoute() argument
149 if (route == ROUTE_OFF && nfcEe != null) { in CardEmulationRoute()
151 } else if (route != ROUTE_OFF && nfcEe == null) { in CardEmulationRoute()
154 this.route = route; in CardEmulationRoute()
180 int route = sService.getCardEmulationRoute(mPackageName); in getCardEmulationRoute() local
181 return route == CardEmulationRoute.ROUTE_OFF ? in getCardEmulationRoute()
200 public void setCardEmulationRoute(CardEmulationRoute route) { in setCardEmulationRoute() argument
202 sService.setCardEmulationRoute(mPackageName, route.route); in setCardEmulationRoute()
/frameworks/base/core/java/com/android/internal/app/
DMediaRouteChooserDialog.java116 public boolean onFilterRoute(MediaRouter.RouteInfo route) { in onFilterRoute() argument
117 return !route.isDefault() && route.isEnabled() && route.matchesTypes(mRouteTypes); in onFilterRoute()
192 MediaRouter.RouteInfo route = mRouter.getRouteAt(i); in update() local
193 if (onFilterRoute(route)) { in update()
194 add(route); in update()
217 MediaRouter.RouteInfo route = getItem(position); in getView() local
220 text1.setText(route.getName()); in getView()
221 CharSequence description = route.getDescription(); in getView()
229 view.setEnabled(route.isEnabled()); in getView()
235 MediaRouter.RouteInfo route = getItem(position); in onItemClick() local
[all …]
DMediaRouteDialogPresenter.java47 MediaRouter.RouteInfo route = router.getSelectedRoute(); in showDialogFragment() local
48 if (route.isDefault() || !route.matchesTypes(routeTypes)) { in showDialogFragment()
74 MediaRouter.RouteInfo route = router.getSelectedRoute(); in createDialog() local
75 if (route.isDefault() || !route.matchesTypes(routeTypes)) { in createDialog()
/frameworks/support/v4/jellybean/android/support/v4/media/routing/
DMediaRouterJellybean.java295 android.media.MediaRouter.RouteInfo route = in selectRoute() local
298 int routeTypes = route.getSupportedTypes(); in selectRoute()
307 mSelectRouteIntMethod.invoke(router, types, route); in selectRoute()
324 router.selectRoute(types, route); in selectRoute()
373 int type, android.media.MediaRouter.RouteInfo route) { in onRouteSelected() argument
374 mCallback.onRouteSelected(type, route); in onRouteSelected()
379 int type, android.media.MediaRouter.RouteInfo route) { in onRouteUnselected() argument
380 mCallback.onRouteUnselected(type, route); in onRouteUnselected()
385 android.media.MediaRouter.RouteInfo route) { in onRouteAdded() argument
386 mCallback.onRouteAdded(route); in onRouteAdded()
[all …]
/frameworks/support/v7/mediarouter/jellybean/android/support/v7/media/
DMediaRouterJellybean.java295 android.media.MediaRouter.RouteInfo route = in selectRoute() local
298 int routeTypes = route.getSupportedTypes(); in selectRoute()
307 mSelectRouteIntMethod.invoke(router, types, route); in selectRoute()
324 router.selectRoute(types, route); in selectRoute()
373 int type, android.media.MediaRouter.RouteInfo route) { in onRouteSelected() argument
374 mCallback.onRouteSelected(type, route); in onRouteSelected()
379 int type, android.media.MediaRouter.RouteInfo route) { in onRouteUnselected() argument
380 mCallback.onRouteUnselected(type, route); in onRouteUnselected()
385 android.media.MediaRouter.RouteInfo route) { in onRouteAdded() argument
386 mCallback.onRouteAdded(route); in onRouteAdded()
[all …]
/frameworks/support/v7/mediarouter/src/android/support/v7/app/
DMediaRouteChooserDialog.java133 public boolean onFilterRoute(@NonNull MediaRouter.RouteInfo route) { in onFilterRoute() argument
134 return !route.isDefault() && route.isEnabled() && route.matchesSelector(mSelector); in onFilterRoute()
214 MediaRouter.RouteInfo route = getItem(position); in getView() local
217 text1.setText(route.getName()); in getView()
218 String description = route.getDescription(); in getView()
226 view.setEnabled(route.isEnabled()); in getView()
232 MediaRouter.RouteInfo route = getItem(position); in onItemClick() local
233 if (route.isEnabled()) { in onItemClick()
234 route.select(); in onItemClick()
257 public void onRouteSelected(MediaRouter router, MediaRouter.RouteInfo route) { in onRouteSelected() argument
DMediaRouteButton.java232 MediaRouter.RouteInfo route = mRouter.getSelectedRoute(); in showDialog() local
233 if (route.isDefault() || !route.matchesSelector(mSelector)) { in showDialog()
493 final MediaRouter.RouteInfo route = mRouter.getSelectedRoute(); in refreshRoute() local
494 final boolean isRemote = !route.isDefault() && route.matchesSelector(mSelector); in refreshRoute()
495 final boolean isConnecting = isRemote && route.isConnecting(); in refreshRoute()
/frameworks/base/docs/html/guide/topics/media/
Dmediarouteprovider.jd11 <li><a href="#dist">Distribution of route providers</a></li>
17 <li><a href="#route-caps">Specifying Route Capabilities</a>
19 <li><a href="#route-cat">Route categories</a></li>
48 A route provider defines a common interface for playing media on a receiver device, making it
52 <p>This guide discusses how to create a media route provider for a receiver device and make it
66 <img src="{@docRoot}images/mediarouter/media-route-provider-framework.png" alt="" id="figure1"/>
68 <strong>Figure 1.</strong> Overview of how media route provider classes provide communication
72 <p>When you build a media route provider for your receiver device, the provider serves the
83 <h3 id="dist">Distribution of route providers</h3>
85 <p>A media route provider is distributed as part of an Android app. Your route provider can be
[all …]
Dmediarouter.jd17 <li><a href="#selector">Media route selector</a></li>
77 route support.</p>
82 available media routes. Content channelled through a media route passes through the route's
96 For more information on implementing a media route provider, see the {@link
130 as part of their user interface, to allow users to select a media route to play media on
177 route selector object. Building a selector is discussed in the next section.
184 Checklist</a>. You must also attach a media route selector to the button using the
193 <h3 id="selector">Media route selector</h3>
208 route providers created by you or other developers. The framework-provided route categories are as
240 // Create a route selector for the type of routes your app supports.
[all …]
/frameworks/base/core/java/android/net/
DLinkProperties.java172 for (RouteInfo route : mRoutes) { in setInterfaceName()
173 newRoutes.add(routeWithInterface(route)); in setInterfaceName()
442 private RouteInfo routeWithInterface(RouteInfo route) { in routeWithInterface() argument
444 route.getDestination(), in routeWithInterface()
445 route.getGateway(), in routeWithInterface()
447 route.getType()); in routeWithInterface()
461 public boolean addRoute(RouteInfo route) { in addRoute() argument
462 if (route != null) { in addRoute()
463 String routeIface = route.getInterface(); in addRoute()
469 route = routeWithInterface(route); in addRoute()
[all …]
DIpReachabilityMonitor.java197 for (RouteInfo route : routes) { in isOnLink()
198 if (!route.hasGateway() && route.matches(ip)) { in isOnLink()
225 for (RouteInfo route : routes) { in updateLinkProperties()
226 if (route.hasGateway()) { in updateLinkProperties()
227 InetAddress gw = route.getGateway(); in updateLinkProperties()
267 for (RouteInfo route : mLinkProperties.getRoutes()) { in handleNeighborLost()
268 if (ip.equals(route.getGateway())) { in handleNeighborLost()
269 whatIfLp.removeRoute(route); in handleNeighborLost()
DRouteInfo.java387 for (RouteInfo route : routes) { in selectBestRoute()
388 if (NetworkUtils.addressTypeMatches(route.mDestination.getAddress(), dest)) { in selectBestRoute()
391 route.mDestination.getPrefixLength())) { in selectBestRoute()
394 if (route.matches(dest)) bestRoute = route; in selectBestRoute()
DINetworkManagementEventObserver.aidl106 void routeUpdated(in RouteInfo route); in routeUpdated() argument
111 void routeRemoved(in RouteInfo route); in routeRemoved() argument
/frameworks/base/core/java/com/android/server/net/
DNetlinkTracker.java133 public void routeUpdated(RouteInfo route) { in routeUpdated() argument
134 if (mInterfaceName.equals(route.getInterface())) { in routeUpdated()
135 maybeLog("routeUpdated", route); in routeUpdated()
138 changed = mLinkProperties.addRoute(route); in routeUpdated()
147 public void routeRemoved(RouteInfo route) { in routeRemoved() argument
148 if (mInterfaceName.equals(route.getInterface())) { in routeRemoved()
149 maybeLog("routeRemoved", route); in routeRemoved()
152 changed = mLinkProperties.removeRoute(route); in routeRemoved()
/frameworks/support/v7/mediarouter/jellybean-mr1/android/support/v7/media/
DMediaRouterJellybeanMr1.java147 android.media.MediaRouter.RouteInfo route = in isConnecting() local
152 int statusCode = (Integer)mGetStatusCodeMethod.invoke(route); in isConnecting()
172 android.media.MediaRouter.RouteInfo route) { in onRoutePresentationDisplayChanged() argument
173 mCallback.onRoutePresentationDisplayChanged(route); in onRoutePresentationDisplayChanged()
/frameworks/support/v4/jellybean-mr1/android/support/v4/media/routing/
DMediaRouterJellybeanMr1.java147 android.media.MediaRouter.RouteInfo route = in isConnecting() local
152 int statusCode = (Integer)mGetStatusCodeMethod.invoke(route); in isConnecting()
172 android.media.MediaRouter.RouteInfo route) { in onRoutePresentationDisplayChanged() argument
173 mCallback.onRoutePresentationDisplayChanged(route); in onRoutePresentationDisplayChanged()
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
DKeyguardDisplayManager.java94 MediaRouter.RouteInfo route = mMediaRouter.getSelectedRoute( in updateDisplays() local
96 boolean useDisplay = route != null in updateDisplays()
97 && route.getPlaybackType() == MediaRouter.RouteInfo.PLAYBACK_TYPE_REMOTE; in updateDisplays()
98 Display presentationDisplay = useDisplay ? route.getPresentationDisplay() : null; in updateDisplays()

123