/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | CastControllerImpl.java | 89 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/media/java/android/media/ |
D | MediaRouter.java | 364 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 …]
|
D | MediaRouterClientState.java | 48 final RouteInfo route = routes.get(i); in getRoute() local 49 if (route.id.equals(id)) { in getRoute() 50 return route; in getRoute()
|
/frameworks/base/telecomm/java/android/telecom/ |
D | AudioState.java | 63 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 …]
|
D | CallAudioState.java | 76 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/libs/net/common/tests/unit/src/android/net/util/ |
D | NetUtilsTest.java | 64 RouteInfo route = NetUtils.selectBestRoute(null, v4_dest); in testSelectBestRoute() local 65 assertEquals(null, route); in testSelectBestRoute() 66 route = NetUtils.selectBestRoute(routes, null); in testSelectBestRoute() 67 assertEquals(null, route); in testSelectBestRoute() 69 route = NetUtils.selectBestRoute(routes, v4_dest); in testSelectBestRoute() 70 assertEquals(null, route); in testSelectBestRoute() 87 route = NetUtils.selectBestRoute(routes, v4_dest); in testSelectBestRoute() 88 assertEquals(v4_expected, route); in testSelectBestRoute() 91 route = NetUtils.selectBestRoute(routes, v6_dest); in testSelectBestRoute() 92 assertEquals(v6_expected, route); in testSelectBestRoute() [all …]
|
/frameworks/base/nfc-extras/java/com/android/nfc_extras/ |
D | NfcAdapterExtras.java | 140 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/ |
D | MediaRouteChooserDialog.java | 117 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 …]
|
D | MediaRouteDialogPresenter.java | 47 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()
|
D | MediaRouteControllerDialog.java | 333 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/ |
D | InfoMediaManager.java | 74 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()
|
D | MediaDeviceUtils.java | 54 public static String getId(MediaRouter.RouteInfo route) { in getId() argument 55 return route.getId(); in getId()
|
/frameworks/libs/net/common/framework/android/net/util/ |
D | NetUtils.java | 58 for (RouteInfo route : routes) { in selectBestRoute() 59 if (addressTypeMatches(route.getDestination().getAddress(), dest)) { in selectBestRoute() 62 >= route.getDestination().getPrefixLength())) { in selectBestRoute() 65 if (route.matches(dest)) bestRoute = route; in selectBestRoute()
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
D | HwModule.cpp | 154 sp<DeviceDescriptor> HwModule::getRouteSinkDevice(const sp<AudioRoute> &route) const in getRouteSinkDevice() 157 if (route->getSink()->asAudioPort()->getType() == AUDIO_PORT_TYPE_DEVICE) { in getRouteSinkDevice() 158 sinkDevice = mDeclaredDevices.getDeviceFromTagName(route->getSink()->getTagName()); in getRouteSinkDevice() 163 DeviceVector HwModule::getRouteSourceDevices(const sp<AudioRoute> &route) const in getRouteSourceDevices() 166 for (const auto& source : route->getSources()) { in getRouteSourceDevices() 186 for (const auto& route : stream->getRoutes()) { in refreshSupportedDevices() local 187 sp<PolicyAudioPort> sink = route->getSink(); in refreshSupportedDevices() 192 DeviceVector sourceDevicesForRoute = getRouteSourceDevices(route); in refreshSupportedDevices() 207 for (const auto& route : stream->getRoutes()) { in refreshSupportedDevices() local 208 sp<PolicyAudioPort> source = findByTagName(route->getSources(), stream->getTagName()); in refreshSupportedDevices() [all …]
|
/frameworks/base/core/java/com/android/server/net/ |
D | NetlinkTracker.java | 148 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()
|
D | BaseNetworkObserver.java | 82 public void routeUpdated(RouteInfo route) { in routeUpdated() argument 87 public void routeRemoved(RouteInfo route) { in routeRemoved() argument
|
/frameworks/base/core/java/android/net/ |
D | LinkProperties.java | 216 for (RouteInfo route : mRoutes) { in setInterfaceName() 217 newRoutes.add(routeWithInterface(route)); in setInterfaceName() 684 private RouteInfo routeWithInterface(RouteInfo route) { in routeWithInterface() argument 686 route.getDestination(), in routeWithInterface() 687 route.getGateway(), in routeWithInterface() 689 route.getType(), in routeWithInterface() 690 route.getMtu()); in routeWithInterface() 693 private int findRouteIndexByRouteKey(RouteInfo route) { in findRouteIndexByRouteKey() argument 695 if (mRoutes.get(i).getRouteKey().equals(route.getRouteKey())) { in findRouteIndexByRouteKey() 713 public boolean addRoute(@NonNull RouteInfo route) { in addRoute() argument [all …]
|
D | INetworkManagementEventObserver.aidl | 106 void routeUpdated(in RouteInfo route); in routeUpdated() argument 111 void routeRemoved(in RouteInfo route); in routeRemoved() argument
|
/frameworks/base/nfc-extras/tests/src/com/android/nfc_extras/tests/ |
D | BasicNfcEeTest.java | 99 assertEquals(CardEmulationRoute.ROUTE_ON_WHEN_SCREEN_ON, newRoute.route); in testEnableEe() 107 assertEquals(CardEmulationRoute.ROUTE_OFF, newRoute.route); in testDisableEe()
|
/frameworks/base/core/java/android/app/ |
D | MediaRouteButton.java | 343 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/av/services/audiopolicy/common/managerdefinitions/include/ |
D | PolicyAudioPort.h | 110 void addRoute(const sp<AudioRoute> &route) { mRoutes.add(route); } in addRoute() argument
|
D | HwModule.h | 77 sp<DeviceDescriptor> getRouteSinkDevice(const sp<AudioRoute> &route) const; 78 DeviceVector getRouteSourceDevices(const sp<AudioRoute> &route) const;
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | MediaRouterService.java | 1393 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 …]
|
/frameworks/base/media/lib/remotedisplay/ |
D | README.txt | 31 This library will eventually be replaced when the media route provider 36 route provider protocol.
|
/frameworks/base/core/java/android/os/ |
D | INetworkManagementService.aidl | 112 void addRoute(int netId, in RouteInfo route); in addRoute() argument 117 void removeRoute(int netId, in RouteInfo route); in removeRoute() argument
|