Home
last modified time | relevance | path

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

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DCastControllerImpl.java89 final RouteInfo route = mRoutes.valueAt(i); in dump() local
90 pw.print(" "); pw.println(routeToString(route)); in dump()
157 for (RouteInfo route : mRoutes.values()) { in getCastDevices()
159 device.id = route.getTag().toString(); in getCastDevices()
160 final CharSequence name = route.getName(mContext); in getCastDevices()
162 final CharSequence description = route.getDescription(); in getCastDevices()
165 int statusCode = route.getStatusCode(); in getCastDevices()
168 } else if (route.isSelected() || statusCode == RouteInfo.STATUS_CONNECTED) { in getCastDevices()
174 device.tag = route; in getCastDevices()
197 final RouteInfo route = (RouteInfo) device.tag; in startCasting()
[all …]
/frameworks/base/telecomm/java/android/telecom/
DAudioState.java61 private final int route; field in AudioState
65 public AudioState(boolean muted, int route, int supportedRouteMask) { in AudioState() argument
67 this.route = route; in AudioState()
73 route = state.getRoute(); in AudioState()
79 route = state.getRoute(); in AudioState()
101 audioRouteToString(route), in toString()
105 public static String audioRouteToString(int route) { in audioRouteToString() argument
106 if (route == 0 || (route & ~ROUTE_ALL) != 0x0) { in audioRouteToString()
111 if ((route & ROUTE_EARPIECE) == ROUTE_EARPIECE) { in audioRouteToString()
114 if ((route & ROUTE_BLUETOOTH) == ROUTE_BLUETOOTH) { in audioRouteToString()
[all …]
DCallAudioState.java76 private final int route; field in CallAudioState
98 public CallAudioState(boolean muted, @CallAudioRoute int route, in CallAudioState() argument
100 this(muted, route, supportedRouteMask, null, Collections.emptyList()); in CallAudioState()
105 public CallAudioState(boolean isMuted, @CallAudioRoute int route, in CallAudioState() argument
110 this.route = route; in CallAudioState()
119 route = state.getRoute(); in CallAudioState()
129 route = state.getRoute(); in CallAudioState()
166 audioRouteToString(route), in toString()
184 return route; in getRoute()
217 public static String audioRouteToString(int route) { in audioRouteToString() argument
[all …]
/frameworks/base/media/java/android/media/
DMediaRouter.java364 final RouteInfo route = mRoutes.get(i); in updatePresentationDisplays() local
365 if (route.updatePresentationDisplay() || (route.mPresentationDisplay != null in updatePresentationDisplays()
366 && route.mPresentationDisplay.getDisplayId() == changedDisplayId)) { in updatePresentationDisplays()
367 dispatchRoutePresentationDisplayChanged(route); in updatePresentationDisplays()
377 final RouteInfo route = mRoutes.get(i); in updateSelectedRouteForId() local
378 if (TextUtils.equals(route.mGlobalRouteId, routeId)) { in updateSelectedRouteForId()
379 selectedRoute = route; in updateSelectedRouteForId()
460 RouteInfo route = findGlobalRoute(globalRoute.id); in updateClientState() local
461 if (route == null) { in updateClientState()
462 route = makeGlobalRoute(globalRoute); in updateClientState()
[all …]
DMediaRouterClientState.java48 final RouteInfo route = routes.get(i); in getRoute() local
49 if (route.id.equals(id)) { in getRoute()
50 return route; in getRoute()
/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.java117 public boolean onFilterRoute(MediaRouter.RouteInfo route) { in onFilterRoute() argument
118 return !route.isDefault() && route.isEnabled() && route.matchesTypes(mRouteTypes); in onFilterRoute()
200 MediaRouter.RouteInfo route = mRouter.getRouteAt(i); in update() local
201 if (onFilterRoute(route)) { in update()
202 add(route); in update()
225 MediaRouter.RouteInfo route = getItem(position); in getView() local
228 text1.setText(route.getName()); in getView()
229 CharSequence description = route.getDescription(); in getView()
237 view.setEnabled(route.isEnabled()); in getView()
243 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()
78 MediaRouter.RouteInfo route = router.getSelectedRoute(); in createDialog() local
79 if (route.isDefault() || !route.matchesTypes(routeTypes)) { in createDialog()
DMediaRouteControllerDialog.java333 public void onRouteChanged(MediaRouter router, MediaRouter.RouteInfo route) { in onRouteChanged() argument
338 public void onRouteVolumeChanged(MediaRouter router, MediaRouter.RouteInfo route) { in onRouteVolumeChanged() argument
339 if (route == mRoute) { in onRouteVolumeChanged()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
DInfoMediaManager.java74 public void onRouteAdded(MediaRouter router, MediaRouter.RouteInfo route) { in onRouteAdded() argument
75 MediaDevice mediaDevice = findMediaDevice(MediaDeviceUtils.getId(route)); in onRouteAdded()
77 mediaDevice = new InfoMediaDevice(mContext, route); in onRouteAdded()
78 Log.d(TAG, "onRouteAdded() route : " + route.getName()); in onRouteAdded()
85 public void onRouteRemoved(MediaRouter router, MediaRouter.RouteInfo route) { in onRouteRemoved() argument
86 final MediaDevice mediaDevice = findMediaDevice(MediaDeviceUtils.getId(route)); in onRouteRemoved()
88 Log.d(TAG, "onRouteRemoved() route : " + route.getName()); in onRouteRemoved()
DMediaDeviceUtils.java54 public static String getId(MediaRouter.RouteInfo route) { in getId() argument
55 return route.getId(); in getId()
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DHwModule.cpp157 sp<DeviceDescriptor> HwModule::getRouteSinkDevice(const sp<AudioRoute> &route) const in getRouteSinkDevice()
160 if (route->getSink()->getType() == AUDIO_PORT_TYPE_DEVICE) { in getRouteSinkDevice()
161 sinkDevice = mDeclaredDevices.getDeviceFromTagName(route->getSink()->getTagName()); in getRouteSinkDevice()
166 DeviceVector HwModule::getRouteSourceDevices(const sp<AudioRoute> &route) const in getRouteSourceDevices()
169 for (const auto& source : route->getSources()) { in getRouteSourceDevices()
189 for (const auto& route : stream->getRoutes()) { in refreshSupportedDevices() local
190 sp<AudioPort> sink = route->getSink(); in refreshSupportedDevices()
195 DeviceVector sourceDevicesForRoute = getRouteSourceDevices(route); in refreshSupportedDevices()
210 for (const auto& route : stream->getRoutes()) { in refreshSupportedDevices() local
211 sp<AudioPort> source = route->getSources().findByTagName(stream->getTagName()); in refreshSupportedDevices()
[all …]
/frameworks/base/core/java/com/android/server/net/
DNetlinkTracker.java148 public void routeUpdated(RouteInfo route) { in routeUpdated() argument
149 if (mInterfaceName.equals(route.getInterface())) { in routeUpdated()
150 maybeLog("routeUpdated", route); in routeUpdated()
153 changed = mLinkProperties.addRoute(route); in routeUpdated()
162 public void routeRemoved(RouteInfo route) { in routeRemoved() argument
163 if (mInterfaceName.equals(route.getInterface())) { in routeRemoved()
164 maybeLog("routeRemoved", route); in routeRemoved()
167 changed = mLinkProperties.removeRoute(route); in routeRemoved()
DBaseNetworkObserver.java77 public void routeUpdated(RouteInfo route) { in routeUpdated() argument
82 public void routeRemoved(RouteInfo route) { in routeRemoved() argument
/frameworks/base/core/java/android/net/
DLinkProperties.java208 for (RouteInfo route : mRoutes) { in setInterfaceName()
209 newRoutes.add(routeWithInterface(route)); in setInterfaceName()
657 private RouteInfo routeWithInterface(RouteInfo route) { in routeWithInterface() argument
659 route.getDestination(), in routeWithInterface()
660 route.getGateway(), in routeWithInterface()
662 route.getType()); in routeWithInterface()
674 public boolean addRoute(@NonNull RouteInfo route) { in addRoute() argument
675 String routeIface = route.getInterface(); in addRoute()
681 route = routeWithInterface(route); in addRoute()
682 if (!mRoutes.contains(route)) { in addRoute()
[all …]
DINetworkManagementEventObserver.aidl106 void routeUpdated(in RouteInfo route); in routeUpdated() argument
111 void routeRemoved(in RouteInfo route); in routeRemoved() argument
DRouteInfo.java448 for (RouteInfo route : routes) { in selectBestRoute()
449 if (NetworkUtils.addressTypeMatches(route.mDestination.getAddress(), dest)) { in selectBestRoute()
452 route.mDestination.getPrefixLength())) { in selectBestRoute()
455 if (route.matches(dest)) bestRoute = route; in selectBestRoute()
/frameworks/base/services/net/java/android/net/shared/
DInitialConfiguration.java180 private static boolean isDirectlyConnectedRoute(RouteInfo route, IpPrefix prefix) { in isDirectlyConnectedRoute() argument
181 return !route.hasGateway() && prefix.equals(route.getDestination()); in isDirectlyConnectedRoute()
/frameworks/base/nfc-extras/tests/src/com/android/nfc_extras/tests/
DBasicNfcEeTest.java99 assertEquals(CardEmulationRoute.ROUTE_ON_WHEN_SCREEN_ON, newRoute.route); in testEnableEe()
107 assertEquals(CardEmulationRoute.ROUTE_OFF, newRoute.route); in testDisableEe()
/frameworks/base/services/core/java/com/android/server/
DNetworkManagementService.java647 private void notifyRouteChange(boolean updated, RouteInfo route) { in notifyRouteChange() argument
649 invokeForAllObservers(o -> o.routeUpdated(route)); in notifyRouteChange()
651 invokeForAllObservers(o -> o.routeRemoved(route)); in notifyRouteChange()
719 String route, String gateway, String ifName) throws RemoteException { in onRouteChanged() argument
720 final RouteInfo processRoute = new RouteInfo(new IpPrefix(route), in onRouteChanged()
896 public void addRoute(int netId, RouteInfo route) { in addRoute() argument
897 modifyRoute(MODIFY_OPERATION_ADD, netId, route); in addRoute()
901 public void removeRoute(int netId, RouteInfo route) { in removeRoute() argument
902 modifyRoute(MODIFY_OPERATION_REMOVE, netId, route); in removeRoute()
905 private void modifyRoute(boolean add, int netId, RouteInfo route) { in modifyRoute() argument
[all …]
/frameworks/base/core/java/android/app/
DMediaRouteButton.java343 final MediaRouter.RouteInfo route = mRouter.getSelectedRoute(); in refreshRoute() local
344 final boolean isRemote = !route.isDefault() && route.matchesTypes(mRouteTypes); in refreshRoute()
345 final boolean isConnecting = isRemote && route.isConnecting(); in refreshRoute()
/frameworks/base/services/net/java/android/net/ip/
DIpServer.java458 final RouteInfo route = new RouteInfo(linkAddr); in configureIPv4() local
461 mLinkProperties.addRoute(route); in configureIPv4()
464 mLinkProperties.removeRoute(route); in configureIPv4()
565 for (RouteInfo route : toBeRemoved) mLinkProperties.removeRoute(route); in configureLocalIPv6Routes()
588 for (RouteInfo route : toBeAdded) mLinkProperties.addRoute(route); in configureLocalIPv6Routes()
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DHwModule.h77 sp<DeviceDescriptor> getRouteSinkDevice(const sp<AudioRoute> &route) const;
78 DeviceVector getRouteSourceDevices(const sp<AudioRoute> &route) const;
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/
DOffloadController.java430 for (RouteInfo route : lp.getRoutes()) { in removeDownstreamInterface()
431 if (shouldIgnoreDownstreamRoute(route)) continue; in removeDownstreamInterface()
432 mHwInterface.removeDownstreamPrefix(ifname, route.getDestination().toString()); in removeDownstreamInterface()
541 private static boolean shouldIgnoreDownstreamRoute(RouteInfo route) { in shouldIgnoreDownstreamRoute() argument
543 if (!route.getDestinationLinkAddress().isGlobalPreferred()) return true; in shouldIgnoreDownstreamRoute()
/frameworks/base/services/core/java/com/android/server/media/
DMediaRouterService.java1393 RouteRecord route = in updateDescriptor() local
1395 mRoutes.add(targetIndex++, route); in updateDescriptor()
1396 route.updateDescriptor(routeDescriptor); in updateDescriptor()
1404 RouteRecord route = mRoutes.get(sourceIndex); in updateDescriptor() local
1406 changed |= route.updateDescriptor(routeDescriptor); in updateDescriptor()
1417 RouteRecord route = mRoutes.remove(i); in updateDescriptor() local
1418 route.updateDescriptor(null); // mark route invalid in updateDescriptor()
1435 RouteRecord route = mRoutes.get(i); in findRouteByUniqueId() local
1436 if (route.getUniqueId().equals(uniqueId)) { in findRouteByUniqueId()
1437 return route; in findRouteByUniqueId()
[all …]

12