/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
H A D | SessionRoute.cpp | 56 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 D | AudioState.java | 57 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 D | CallAudioState.java | 52 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 D | NfcAdapterExtras.java | 122 * 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 D | CastControllerImpl.java | 78 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 D | MediaRouter.java | 146 // 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 330 final RouteInfo route = mRoutes.get(i); 331 if (route.updatePresentationDisplay() || (route.mPresentationDisplay != null 332 && route 459 requestSetVolume(RouteInfo route, int volume) argument 470 requestUpdateVolume(RouteInfo route, int direction) argument 500 updateGlobalRoute(RouteInfo route, MediaRouterClientState.RouteInfo globalRoute) argument 893 selectRoute(int types, @NonNull RouteInfo route) argument 903 selectRouteInt(int types, RouteInfo route, boolean explicit) argument 907 selectRouteStatic(int types, @NonNull RouteInfo route, boolean explicit) argument 1427 updateWifiDisplayRoute( RouteInfo route, WifiDisplay display, WifiDisplayStatus wfdStatus, boolean disconnected) argument 2371 addRoute(RouteInfo route) argument 2396 addRoute(RouteInfo route, int insertAt) argument 2419 removeRoute(RouteInfo route) argument 2736 filterRouteEvent(RouteInfo route) argument 2893 public final RouteInfo route; field in class:MediaRouter.VolumeCallbackInfo 2895 VolumeCallbackInfo(VolumeCallback vcb, RouteInfo route) argument [all...] |
/frameworks/base/core/java/com/android/internal/app/ |
H A D | MediaRouteDialogPresenter.java | 30 * 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 D | MediaRouteChooserDialog.java | 40 * 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/app/ |
H A D | MediaRouteChooserDialog.java | 54 * This class implements the route chooser dialog for {@link MediaRouter}. 56 * This dialog allows the user to choose a route that matches a given selector. 65 // Do not update the route list immediately to avoid unnatural dialog change. 102 * Gets the media route selector for filtering the routes that the user can select. 112 * Sets the media route selector for filtering the routes that the user can select. 152 * Returns true if the route should be included in the list. 159 * @param route The route to consider, never null. 160 * @return True if the route should be included in the chooser dialog. 162 public boolean onFilterRoute(@NonNull MediaRouter.RouteInfo route) { argument 310 getIconDrawable(MediaRouter.RouteInfo route) argument 327 getDefaultIconDrawable(MediaRouter.RouteInfo route) argument 365 onRouteSelected(MediaRouter router, MediaRouter.RouteInfo route) argument [all...] |
H A D | MediaRouteControllerDialog.java | 85 * This class implements the route controller dialog for {@link MediaRouter}. 87 * This dialog allows the user to control or disconnect from the currently selected route. 99 // to allow the route provider time to propagate the change and publish a new 100 // route descriptor. 221 * Gets the route that this dialog is controlling. 256 * when the route supports it. 272 * when the route supports it. 808 MediaRouter.RouteInfo route = mVolumeGroupAdapter.getItem(position); 809 Rect previousBounds = previousRouteBoundMap.get(route); 814 if (mGroupMemberRoutesAdded != null && mGroupMemberRoutesAdded.contains(route)) { 1023 isVolumeControlAvailable(MediaRouter.RouteInfo route) argument 1103 onRouteUnselected(MediaRouter router, MediaRouter.RouteInfo route) argument 1108 onRouteChanged(MediaRouter router, MediaRouter.RouteInfo route) argument 1113 onRouteVolumeChanged(MediaRouter router, MediaRouter.RouteInfo route) argument [all...] |
/frameworks/support/v7/mediarouter/src/android/support/v7/media/ |
H A D | MediaRouter.java | 68 * can query the media router about the currently selected route and its capabilities 69 * to determine how to send content to the route's destination. Applications can 70 * also {@link RouteInfo#sendControlRequest send control requests} to the route 71 * to ask the route's destination to perform certain remote control functions 87 * and {@link Callback#onRouteUnselected(MediaRouter, RouteInfo, int)} when the reason the route 109 * a different route. 139 * except when actively scanning. This flag is typically used when the route picker 140 * dialog has been opened by the user to ensure that the route information is 146 * discover and select a new route. 157 * Flag for {@link #addCallback}: Do not filter route event 384 selectRoute(@onNull RouteInfo route) argument 1263 isSystemMediaRouteProvider(MediaRouter.RouteInfo route) argument 1722 onRouteSelected(MediaRouter router, RouteInfo route) argument 1733 onRouteUnselected(MediaRouter router, RouteInfo route) argument 1752 onRouteUnselected(MediaRouter router, RouteInfo route, int reason) argument 1762 onRouteAdded(MediaRouter router, RouteInfo route) argument 1771 onRouteRemoved(MediaRouter router, RouteInfo route) argument 1780 onRouteChanged(MediaRouter router, RouteInfo route) argument 1789 onRouteVolumeChanged(MediaRouter router, RouteInfo route) argument 1804 onRoutePresentationDisplayChanged(MediaRouter router, RouteInfo route) argument 1874 filterRouteEvent(RouteInfo route) argument 1987 sendControlRequest(RouteInfo route, Intent intent, ControlRequestCallback callback) argument 1999 requestSetVolume(RouteInfo route, int volume) argument 2010 requestUpdateVolume(RouteInfo route, int delta) argument 2055 selectRoute(RouteInfo route) argument 2059 selectRoute(RouteInfo route, int unselectReason) argument 2341 updateRouteDescriptorAndNotify(RouteInfo route, MediaRouteDescriptor routeDescriptor) argument 2490 isSystemLiveAudioOnlyRoute(RouteInfo route) argument 2496 isRouteSelectable(RouteInfo route) argument 2502 isSystemDefaultRoute(RouteInfo route) argument 2508 setSelectedRouteInternal(RouteInfo route, int unselectReason) argument [all...] |
H A D | MediaRouteProviderDescriptor.java | 28 * 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 D | SystemMediaRouteProvider.java | 68 * 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 D | INetworkManagementEventObserver.aidl | 104 * 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 D | LinkProperties.java | 176 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 D | RouteInfo.java | 31 * 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/base/core/java/com/android/server/net/ |
H A D | BaseNetworkObserver.java | 76 public void routeUpdated(RouteInfo route) { argument 81 public void routeRemoved(RouteInfo route) { argument
|
H A D | NetlinkTracker.java | 146 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/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/media/ |
H A D | Player.java | 56 public abstract void connect(RouteInfo route); argument 82 public static Player create(Context context, RouteInfo route, MediaSessionCompat session) { argument 84 if (route != null && route.supportsControlCategory( 87 } else if (route != null) { 94 player.connect(route);
|
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/media/ |
H A D | Player.java | 56 public abstract void connect(RouteInfo route); argument 82 public static Player create(Context context, RouteInfo route, MediaSessionCompat session) { argument 84 if (route != null && route.supportsControlCategory( 87 } else if (route != null) { 94 player.connect(route);
|
/frameworks/support/v7/mediarouter/jellybean/android/support/v7/media/ |
H A D | MediaRouterJellybean.java | 295 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 D | INfcAdapterExtras.aidl | 30 void setCardEmulationRoute(in String pkg, int route);
|
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
H A D | KeyguardDisplayManager.java | 94 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 D | MediaRouterJellybeanMr1.java | 48 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 D | IpReachabilityMonitor.java | 291 for (RouteInfo route : routes) { 292 if (!route.hasGateway() && route.matches(ip)) { 319 for (RouteInfo route : routes) { 320 if (route.hasGateway()) { 321 InetAddress gw = route.getGateway(); 361 for (RouteInfo route : mLinkProperties.getRoutes()) { 362 if (ip.equals(route.getGateway())) { 363 whatIfLp.removeRoute(route);
|