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/media/java/android/media/
DMediaRouter.java331 final RouteInfo route = mRoutes.get(i); in updatePresentationDisplays() local
332 if (route.updatePresentationDisplay() || (route.mPresentationDisplay != null in updatePresentationDisplays()
333 && route.mPresentationDisplay.getDisplayId() == changedDisplayId)) { in updatePresentationDisplays()
334 dispatchRoutePresentationDisplayChanged(route); in updatePresentationDisplays()
415 RouteInfo route = findGlobalRoute(globalRoute.id); in updateClientState() local
416 if (route == null) { in updateClientState()
417 route = makeGlobalRoute(globalRoute); in updateClientState()
418 addRouteStatic(route); in updateClientState()
420 updateGlobalRoute(route, globalRoute); in updateClientState()
426 final RouteInfo route = findGlobalRoute(globallySelectedRouteId); in updateClientState() local
[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/support/v7/mediarouter/src/android/support/v7/media/
DMediaRouter.java369 RouteInfo route = sGlobal.getSelectedRoute(); in updateSelectedRoute() local
370 if (!route.isDefaultOrBluetooth() && !route.matchesSelector(selector)) { in updateSelectedRoute()
371 route = sGlobal.chooseFallbackRoute(); in updateSelectedRoute()
372 sGlobal.selectRoute(route); in updateSelectedRoute()
374 return route; in updateSelectedRoute()
382 public void selectRoute(@NonNull RouteInfo route) { in selectRoute() argument
383 if (route == null) { in selectRoute()
389 Log.d(TAG, "selectRoute: " + route); in selectRoute()
391 sGlobal.selectRoute(route); in selectRoute()
1261 private static boolean isSystemMediaRouteProvider(MediaRouter.RouteInfo route) { in isSystemMediaRouteProvider() 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.java71 public void onSyncRouteAdded(MediaRouter.RouteInfo route) { in onSyncRouteAdded() argument
78 public void onSyncRouteRemoved(MediaRouter.RouteInfo route) { in onSyncRouteRemoved() argument
85 public void onSyncRouteChanged(MediaRouter.RouteInfo route) { in onSyncRouteChanged() argument
92 public void onSyncRouteSelected(MediaRouter.RouteInfo route) { in onSyncRouteSelected() argument
410 MediaRouter.RouteInfo route = mSyncCallback.getSystemRouteByDescriptorId( in onRouteSelected() local
412 if (route != null) { in onRouteSelected()
413 route.select(); in onRouteSelected()
452 public void onSyncRouteAdded(MediaRouter.RouteInfo route) { in onSyncRouteAdded() argument
453 if (route.getProviderInstance() != this) { in onSyncRouteAdded()
456 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/support/v7/mediarouter/src/android/support/v7/app/
DMediaRouteChooserDialog.java152 public boolean onFilterRoute(@NonNull MediaRouter.RouteInfo route) { in onFilterRoute() argument
153 return !route.isDefaultOrBluetooth() && route.isEnabled() in onFilterRoute()
154 && route.matchesSelector(mSelector); in onFilterRoute()
281 MediaRouter.RouteInfo route = getItem(position); in getView() local
284 text1.setText(route.getName()); in getView()
285 String description = route.getDescription(); in getView()
287 route.getConnectionState() == CONNECTION_STATE_CONNECTED in getView()
288 || route.getConnectionState() == CONNECTION_STATE_CONNECTING; in getView()
298 view.setEnabled(route.isEnabled()); in getView()
302 iconView.setImageDrawable(getIconDrawable(route)); in getView()
[all …]
DMediaRouteControllerDialog.java793 MediaRouter.RouteInfo route = mVolumeGroupAdapter.getItem(position); in animateGroupListItemsInternal() local
794 Rect previousBounds = previousRouteBoundMap.get(route); in animateGroupListItemsInternal()
799 if (mGroupMemberRoutesAdded != null && mGroupMemberRoutesAdded.contains(route)) { in animateGroupListItemsInternal()
817 previousRouteBoundMap.remove(route); in animateGroupListItemsInternal()
818 previousRouteBitmapMap.remove(route); in animateGroupListItemsInternal()
826 final MediaRouter.RouteInfo route = item.getKey(); in animateGroupListItemsInternal() local
828 final Rect bounds = previousRouteBoundMap.get(route); in animateGroupListItemsInternal()
830 if (mGroupMemberRoutesRemoved.contains(route)) { in animateGroupListItemsInternal()
842 mGroupMemberRoutesAnimatingWithBitmap.remove(route); in animateGroupListItemsInternal()
846 mGroupMemberRoutesAnimatingWithBitmap.add(route); in animateGroupListItemsInternal()
[all …]
DMediaRouteButton.java233 MediaRouter.RouteInfo route = mRouter.getSelectedRoute(); in showDialog() local
234 if (route.isDefaultOrBluetooth() || !route.matchesSelector(mSelector)) { in showDialog()
494 final MediaRouter.RouteInfo route = mRouter.getSelectedRoute(); in refreshRoute() local
495 final boolean isRemote = !route.isDefaultOrBluetooth() in refreshRoute()
496 && route.matchesSelector(mSelector); in refreshRoute()
497 final boolean isConnecting = isRemote && route.isConnecting(); in refreshRoute()
/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/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/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.java176 for (RouteInfo route : mRoutes) { in setInterfaceName()
177 newRoutes.add(routeWithInterface(route)); in setInterfaceName()
446 private RouteInfo routeWithInterface(RouteInfo route) { in routeWithInterface() argument
448 route.getDestination(), in routeWithInterface()
449 route.getGateway(), in routeWithInterface()
451 route.getType()); in routeWithInterface()
465 public boolean addRoute(RouteInfo route) { in addRoute() argument
466 if (route != null) { in addRoute()
467 String routeIface = route.getInterface(); in addRoute()
473 route = routeWithInterface(route); in addRoute()
[all …]
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.java146 public void routeUpdated(RouteInfo route) { in routeUpdated() argument
147 if (mInterfaceName.equals(route.getInterface())) { in routeUpdated()
148 maybeLog("routeUpdated", route); in routeUpdated()
151 changed = mLinkProperties.addRoute(route); in routeUpdated()
160 public void routeRemoved(RouteInfo route) { in routeRemoved() argument
161 if (mInterfaceName.equals(route.getInterface())) { in routeRemoved()
162 maybeLog("routeRemoved", route); in routeRemoved()
165 changed = mLinkProperties.removeRoute(route); in routeRemoved()
DBaseNetworkObserver.java76 public void routeUpdated(RouteInfo route) { in routeUpdated() argument
81 public void routeRemoved(RouteInfo route) { in routeRemoved() argument
/frameworks/support/v7/mediarouter/jellybean-mr1/android/support/v7/media/
DMediaRouterJellybeanMr1.java154 android.media.MediaRouter.RouteInfo route = in isConnecting() local
159 int statusCode = (Integer)mGetStatusCodeMethod.invoke(route); in isConnecting()
179 android.media.MediaRouter.RouteInfo route) { in onRoutePresentationDisplayChanged() argument
180 mCallback.onRoutePresentationDisplayChanged(route); in onRoutePresentationDisplayChanged()
/frameworks/base/services/net/java/android/net/ip/
DIpReachabilityMonitor.java280 for (RouteInfo route : routes) { in isOnLink()
281 if (!route.hasGateway() && route.matches(ip)) { in isOnLink()
308 for (RouteInfo route : routes) { in updateLinkProperties()
309 if (route.hasGateway()) { in updateLinkProperties()
310 InetAddress gw = route.getGateway(); in updateLinkProperties()
350 for (RouteInfo route : mLinkProperties.getRoutes()) { in handleNeighborLost()
351 if (ip.equals(route.getGateway())) { in handleNeighborLost()
352 whatIfLp.removeRoute(route); in handleNeighborLost()
/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