Home
last modified time | relevance | path

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

123

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DCastControllerImpl.java91 final RouteInfo route = mRoutes.valueAt(i); in dump() local
92 pw.print(" "); pw.println(routeToString(route)); in dump()
159 for (RouteInfo route : mRoutes.values()) { in getCastDevices()
161 device.id = route.getTag().toString(); in getCastDevices()
162 final CharSequence name = route.getName(mContext); in getCastDevices()
164 final CharSequence description = route.getDescription(); in getCastDevices()
167 int statusCode = route.getStatusCode(); in getCastDevices()
170 } else if (route.isSelected() || statusCode == RouteInfo.STATUS_CONNECTED) { in getCastDevices()
176 device.tag = route; in getCastDevices()
199 final RouteInfo route = (RouteInfo) device.tag; in startCasting()
[all …]
/frameworks/base/telecomm/java/android/telecom/
DAudioState.java63 private final int route; field in AudioState
67 public AudioState(boolean muted, int route, int supportedRouteMask) { in AudioState() argument
69 this.route = route; in AudioState()
75 route = state.getRoute(); in AudioState()
81 route = state.getRoute(); in AudioState()
104 audioRouteToString(route), in toString()
108 public static String audioRouteToString(int route) { in audioRouteToString() argument
109 if (route == 0 || (route & ~ROUTE_ALL) != 0x0) { in audioRouteToString()
114 if ((route & ROUTE_EARPIECE) == ROUTE_EARPIECE) { in audioRouteToString()
117 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.java407 final RouteInfo route = mRoutes.get(i); in updatePresentationDisplays() local
408 if (route.updatePresentationDisplay() || (route.mPresentationDisplay != null in updatePresentationDisplays()
409 && route.mPresentationDisplay.getDisplayId() == changedDisplayId)) { in updatePresentationDisplays()
410 dispatchRoutePresentationDisplayChanged(route); in updatePresentationDisplays()
420 final RouteInfo route = mRoutes.get(i); in handleGroupRouteSelected() local
421 if (TextUtils.equals(route.mGlobalRouteId, routeId)) { in handleGroupRouteSelected()
422 routeToSelect = route; in handleGroupRouteSelected()
503 RouteInfo route = findGlobalRoute(globalRoute.id); in updateClientState() local
504 if (route == null) { in updateClientState()
505 route = makeGlobalRoute(globalRoute); in updateClientState()
[all …]
DMediaRouter2Manager.java280 (route) -> sessionInfo.isSystemSession() ^ route.isSystemRoute()); in getTransferableRoutes()
317 for (MediaRoute2Info route : getSortedRoutes(discoveryPreference)) { in getFilteredRoutes()
318 if (sessionInfo.getTransferableRoutes().contains(route.getId()) in getFilteredRoutes()
320 && sessionInfo.getSelectedRoutes().contains(route.getId()))) { in getFilteredRoutes()
321 routes.add(route); in getFilteredRoutes()
324 if (!route.hasAnyFeatures(discoveryPreference.getPreferredFeatures())) { in getFilteredRoutes()
328 && (route.getPackageName() == null in getFilteredRoutes()
330 .contains(route.getPackageName()))) { in getFilteredRoutes()
333 if (additionalFilter != null && !additionalFilter.test(route)) { in getFilteredRoutes()
337 if (!Collections.disjoint(deduplicationIdSet, route.getDeduplicationIds())) { in getFilteredRoutes()
[all …]
DMediaRouter2.java298 for (MediaRoute2Info route : currentSystemRoutes) { in MediaRouter2()
299 mRoutes.put(route.getId(), route); in MediaRouter2() local
583 public void transferTo(@NonNull MediaRoute2Info route) { in transferTo() argument
585 sManager.selectRoute(mClientPackageName, route); in transferTo()
589 Log.v(TAG, "Transferring to route: " + route); in transferTo()
594 routeFound = mRoutes.containsKey(route.getId()); in transferTo()
597 notifyTransferFailure(route); in transferTo()
602 if (controller.getRoutingSessionInfo().getTransferableRoutes().contains(route.getId())) { in transferTo()
603 controller.transferToRoute(route); in transferTo()
607 requestCreateController(controller, route, MANAGER_REQUEST_ID_NONE); in transferTo()
[all …]
DMediaRoute2ProviderInfo.java78 MediaRoute2Info route = mRoutes.valueAt(i); in isValid() local
79 if (route == null || !route.isValid()) { in isValid()
190 MediaRoute2Info route = mRoutes.valueAt(i); in setSystemRouteProvider() local
191 if (route.isSystemRoute() != isSystem) { in setSystemRouteProvider()
192 mRoutes.setValueAt(i, new MediaRoute2Info.Builder(route) in setSystemRouteProvider()
204 public Builder addRoute(@NonNull MediaRoute2Info route) { in addRoute() argument
205 Objects.requireNonNull(route, "route must not be null"); in addRoute()
207 if (mRoutes.containsKey(route.getOriginalId())) { in addRoute()
211 mRoutes.put(route.getOriginalId(), in addRoute()
212 new MediaRoute2Info.Builder(route).setProviderId(mUniqueId).build()); in addRoute()
[all …]
DIMediaRouterService.aidl60 void setRouteVolumeWithRouter2(IMediaRouter2 router, in MediaRoute2Info route, int volume); in setRouteVolumeWithRouter2() argument
63 in RoutingSessionInfo oldSession, in MediaRoute2Info route, in requestCreateSessionWithRouter2() argument
65 void selectRouteWithRouter2(IMediaRouter2 router, String sessionId, in MediaRoute2Info route); in selectRouteWithRouter2() argument
66 void deselectRouteWithRouter2(IMediaRouter2 router, String sessionId, in MediaRoute2Info route); in deselectRouteWithRouter2() argument
68 in MediaRoute2Info route); in transferToRouteWithRouter2() argument
79 in MediaRoute2Info route, int volume); in setRouteVolumeWithManager() argument
84 in RoutingSessionInfo oldSession, in @nullable MediaRoute2Info route); in requestCreateSessionWithManager() argument
86 String sessionId, in MediaRoute2Info route); in selectRouteWithManager() argument
88 String sessionId, in MediaRoute2Info route); in deselectRouteWithManager() argument
90 String sessionId, in MediaRoute2Info route); in transferToRouteWithManager() argument
/frameworks/libs/net/common/tests/unit/src/com/android/net/module/util/
DNetUtilsTest.java81 RouteInfo route = NetUtils.selectBestRoute(null, V4_DEST); in testSelectBestRoute() local
82 assertNull(route); in testSelectBestRoute()
83 route = NetUtils.selectBestRoute(routes, null); in testSelectBestRoute()
84 assertNull(route); in testSelectBestRoute()
86 route = NetUtils.selectBestRoute(routes, V4_DEST); in testSelectBestRoute()
87 assertNull(route); in testSelectBestRoute()
100 route = NetUtils.selectBestRoute(routes, V4_DEST); in testSelectBestRoute()
101 assertEquals(V4_EXPECTED, route); in testSelectBestRoute()
104 route = NetUtils.selectBestRoute(routes, V6_DEST); in testSelectBestRoute()
105 assertEquals(V6_EXPECTED, route); in testSelectBestRoute()
[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/media/tests/MediaRouter/src/com/android/mediaroutertest/
DStubMediaRoute2ProviderService.java148 public void addRoute(@NonNull MediaRoute2Info route) { in addRoute() argument
149 Objects.requireNonNull(route, "route must not be null"); in addRoute()
150 mRoutes.put(route.getOriginalId(), route); in addRoute() local
159 MediaRoute2Info route = mRoutes.get(routeId); in removeRoute() local
160 if (route != null) { in removeRoute()
198 MediaRoute2Info route = mRoutes.get(routeId); in onSetRouteVolume() local
199 if (route == null) { in onSetRouteVolume()
202 volume = Math.max(0, Math.min(volume, route.getVolumeMax())); in onSetRouteVolume()
203 mRoutes.put(routeId, new MediaRoute2Info.Builder(route) in onSetRouteVolume()
225 MediaRoute2Info route = mRoutes.get(routeId); in onCreateSession() local
[all …]
DMediaRouter2ManagerTest.java188 for (MediaRoute2Info route : routes) { in testOnRoutesRemovedAndAdded()
189 if (route.getOriginalId().equals(ROUTE_ID2) in testOnRoutesRemovedAndAdded()
190 && route.getName().equals(ROUTE_NAME2)) { in testOnRoutesRemovedAndAdded()
201 for (MediaRoute2Info route : routes) { in testOnRoutesRemovedAndAdded()
202 if (route.getOriginalId().equals(ROUTE_ID2) in testOnRoutesRemovedAndAdded()
203 && route.getName().equals(ROUTE_NAME2)) { in testOnRoutesRemovedAndAdded()
271 for (MediaRoute2Info route : routes.values()) { in testRouteFeatures()
272 if (!route.isSystemRoute()) { in testRouteFeatures()
290 for (MediaRoute2Info route : routes.values()) { in testNoAllowedPackages_returnsZeroRoutes()
291 if (!route.isSystemRoute()) { in testNoAllowedPackages_returnsZeroRoutes()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
DInfoMediaManager.java256 for (MediaRoute2Info route : mRouterManager.getSelectableRoutes(info)) { in getSelectableMediaDevice()
258 route, mPackageName)); in getSelectableMediaDevice()
283 for (MediaRoute2Info route : mRouterManager.getDeselectableRoutes(info)) { in getDeselectableMediaDevice()
285 route, mPackageName)); in getDeselectableMediaDevice()
286 Log.d(TAG, route.getName() + " is deselectable for " + mPackageName); in getDeselectableMediaDevice()
310 for (MediaRoute2Info route : mRouterManager.getSelectedRoutes(info)) { in getSelectedMediaDevice()
312 route, mPackageName)); in getSelectedMediaDevice()
441 for (MediaRoute2Info route : mRouterManager.getAllRoutes()) { in buildAllRoutes()
443 Log.d(TAG, "buildAllRoutes() route : " + route.getName() + ", volume : " in buildAllRoutes()
444 + route.getVolume() + ", type : " + route.getType()); in buildAllRoutes()
[all …]
DMediaDeviceUtils.java56 public static String getId(MediaRoute2Info route) { in getId() argument
57 return route.getId(); in getId()
/frameworks/base/services/core/java/com/android/server/media/
DMediaRouter2ServiceImpl.java298 MediaRoute2Info route, int volume) { in setRouteVolumeWithRouter2() argument
300 Objects.requireNonNull(route, "route must not be null"); in setRouteVolumeWithRouter2()
305 setRouteVolumeWithRouter2Locked(router, route, volume); in setRouteVolumeWithRouter2()
314 MediaRoute2Info route, Bundle sessionHints) { in requestCreateSessionWithRouter2() argument
317 Objects.requireNonNull(route, "route must not be null"); in requestCreateSessionWithRouter2()
323 router, oldSession, route, sessionHints); in requestCreateSessionWithRouter2()
331 MediaRoute2Info route) { in selectRouteWithRouter2() argument
333 Objects.requireNonNull(route, "route must not be null"); in selectRouteWithRouter2()
341 selectRouteWithRouter2Locked(router, uniqueSessionId, route); in selectRouteWithRouter2()
349 MediaRoute2Info route) { in deselectRouteWithRouter2() argument
[all …]
DBluetoothRouteProvider.java198 return (mActiveRoutes.isEmpty() ? null : mActiveRoutes.get(0).route); in getSelectedRoute()
205 routes.remove(btRoute.route); in getTransferableRoutes()
223 if (routeIds.contains(btRoute.route.getId())) { in getAllBluetoothRoutes()
226 routes.add(btRoute.route); in getAllBluetoothRoutes()
227 routeIds.add(btRoute.route.getId()); in getAllBluetoothRoutes()
237 if (TextUtils.equals(btRouteInfo.route.getId(), routeId)) { in findBluetoothRouteWithRouteId()
266 if (btRoute.route.getType() != routeType) { in updateVolumeForDevices()
269 btRoute.route = new MediaRoute2Info.Builder(btRoute.route) in updateVolumeForDevices()
315 newBtRoute.route = new MediaRoute2Info.Builder(routeId, deviceName) in createBluetoothRoute()
335 if (btRoute.route.getConnectionState() == state) { in setRouteConnectionState()
[all …]
DMediaRouterService.java523 MediaRoute2Info route, int volume) { in setRouteVolumeWithRouter2() argument
524 mService2.setRouteVolumeWithRouter2(router, route, volume); in setRouteVolumeWithRouter2()
531 MediaRoute2Info route, Bundle sessionHints) { in requestCreateSessionWithRouter2() argument
533 oldSession, route, sessionHints); in requestCreateSessionWithRouter2()
539 MediaRoute2Info route) { in selectRouteWithRouter2() argument
540 mService2.selectRouteWithRouter2(router, sessionId, route); in selectRouteWithRouter2()
546 MediaRoute2Info route) { in deselectRouteWithRouter2() argument
547 mService2.deselectRouteWithRouter2(router, sessionId, route); in deselectRouteWithRouter2()
553 MediaRoute2Info route) { in transferToRouteWithRouter2() argument
554 mService2.transferToRouteWithRouter2(router, sessionId, route); in transferToRouteWithRouter2()
[all …]
/frameworks/base/core/java/com/android/internal/app/
DMediaRouteChooserDialog.java124 public boolean onFilterRoute(MediaRouter.RouteInfo route) { in onFilterRoute() argument
125 return !route.isDefault() && route.isEnabled() && route.matchesTypes(mRouteTypes); in onFilterRoute()
217 MediaRouter.RouteInfo route = mRouter.getRouteAt(i); in update() local
218 if (onFilterRoute(route)) { in update()
219 add(route); in update()
242 MediaRouter.RouteInfo route = getItem(position); in getView() local
245 text1.setText(route.getName()); in getView()
246 CharSequence description = route.getDescription(); in getView()
254 view.setEnabled(route.isEnabled()); in getView()
260 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()
91 MediaRouter.RouteInfo route = router.getSelectedRoute(); in createDialog() local
92 if (route.isDefault() || !route.matchesTypes(routeTypes)) { in createDialog()
/frameworks/libs/net/client-libs/netd/com/android/net/module/util/
DNetdUtils.java207 for (RouteInfo route : routes) { in addRoutesToLocalNetwork()
208 if (!route.isDefaultRoute()) { in addRoutesToLocalNetwork()
209 modifyRoute(netd, ModifyOperation.ADD, INetd.LOCAL_NET_ID, route); in addRoutesToLocalNetwork()
222 for (RouteInfo route : routes) { in removeRoutesFromLocalNetwork()
224 modifyRoute(netd, ModifyOperation.REMOVE, INetd.LOCAL_NET_ID, route); in removeRoutesFromLocalNetwork()
234 private static String findNextHop(final RouteInfo route) { in findNextHop() argument
236 switch (route.getType()) { in findNextHop()
238 if (route.hasGateway()) { in findNextHop()
239 nextHop = route.getGateway().getHostAddress(); in findNextHop()
259 final RouteInfo route) { in modifyRoute() argument
[all …]
/frameworks/libs/net/common/framework/com/android/net/module/util/
DNetUtils.java62 for (RouteInfo route : routes) { in selectBestRoute()
63 if (addressTypeMatches(route.getDestination().getAddress(), dest)) { in selectBestRoute()
66 >= route.getDestination().getPrefixLength())) { in selectBestRoute()
69 if (route.matches(dest)) bestRoute = route; in selectBestRoute()
/frameworks/base/core/java/com/android/server/net/
DNetlinkTracker.java149 public void routeUpdated(RouteInfo route) { in routeUpdated() argument
150 if (mInterfaceName.equals(route.getInterface())) { in routeUpdated()
151 maybeLog("routeUpdated", route); in routeUpdated()
154 changed = mLinkProperties.addRoute(route); in routeUpdated()
163 public void routeRemoved(RouteInfo route) { in routeRemoved() argument
164 if (mInterfaceName.equals(route.getInterface())) { in routeRemoved()
165 maybeLog("routeRemoved", route); in routeRemoved()
168 changed = mLinkProperties.removeRoute(route); in routeRemoved()
DBaseNetworkObserver.java83 public void routeUpdated(RouteInfo route) { in routeUpdated() argument
88 public void routeRemoved(RouteInfo route) { in routeRemoved() argument
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DHwModule.cpp166 sp<DeviceDescriptor> HwModule::getRouteSinkDevice(const sp<AudioRoute> &route) const in getRouteSinkDevice()
169 if (route->getSink()->asAudioPort()->getType() == AUDIO_PORT_TYPE_DEVICE) { in getRouteSinkDevice()
170 sinkDevice = mDeclaredDevices.getDeviceFromTagName(route->getSink()->getTagName()); in getRouteSinkDevice()
175 DeviceVector HwModule::getRouteSourceDevices(const sp<AudioRoute> &route) const in getRouteSourceDevices()
178 for (const auto& source : route->getSources()) { in getRouteSourceDevices()
198 for (const auto& route : stream->getRoutes()) { in refreshSupportedDevices() local
199 sp<PolicyAudioPort> sink = route->getSink(); in refreshSupportedDevices()
204 DeviceVector sourceDevicesForRoute = getRouteSourceDevices(route); in refreshSupportedDevices()
219 for (const auto& route : stream->getRoutes()) { in refreshSupportedDevices() local
220 sp<PolicyAudioPort> source = findByTagName(route->getSources(), stream->getTagName()); in refreshSupportedDevices()
[all …]
/frameworks/base/core/java/android/net/
DINetworkManagementEventObserver.aidl109 void routeUpdated(in RouteInfo route); in routeUpdated() argument
114 void routeRemoved(in RouteInfo route); in routeRemoved() argument

123