Home
last modified time | relevance | path

Searched refs:mRoutes (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/media/java/android/media/
DMediaRoute2ProviderInfo.java52 final ArrayMap<String, MediaRoute2Info> mRoutes; field in MediaRoute2ProviderInfo
58 mRoutes = builder.mRoutes; in MediaRoute2ProviderInfo()
64 mRoutes = (routes == null) ? ArrayMap.EMPTY : routes; in MediaRoute2ProviderInfo()
76 final int count = mRoutes.size(); in isValid()
78 MediaRoute2Info route = mRoutes.valueAt(i); in isValid()
102 return mRoutes.get(Objects.requireNonNull(routeId, "routeId must not be null")); in getRoute()
110 return mRoutes.values(); in getRoutes()
121 dest.writeTypedArrayMap(mRoutes, flags); in writeToParcel()
139 final ArrayMap<String, MediaRoute2Info> mRoutes; field in MediaRoute2ProviderInfo.Builder
143 mRoutes = new ArrayMap<>(); in Builder()
[all …]
DMediaRouter.java88 final ArrayList<RouteInfo> mRoutes = new ArrayList<RouteInfo>(); field in MediaRouter.Static
368 final int count = mRoutes.size(); in updatePresentationDisplays()
370 final RouteInfo route = mRoutes.get(i); in updatePresentationDisplays()
381 final int count = mRoutes.size(); in updateSelectedRouteForId()
383 final RouteInfo route = mRoutes.get(i); in updateSelectedRouteForId()
476 outer: for (int i = mRoutes.size(); i-- > 0; ) { in updateClientState()
477 final RouteInfo route = mRoutes.get(i); in updateClientState()
601 final int count = mRoutes.size(); in findGlobalRoute()
603 final RouteInfo route = mRoutes.get(i); in findGlobalRoute()
890 final int count = sStatic.mRoutes.size(); in isRouteAvailable()
[all …]
DMediaRouter2.java87 final Map<String, MediaRoute2Info> mRoutes = new ArrayMap<>(); field in MediaRouter2
148 mRoutes.put(route.getId(), route); in MediaRouter2()
278 for (MediaRoute2Info route : mRoutes.values()) { in getRoutes()
407 routeFound = mRoutes.containsKey(route.getId()); in transfer()
538 for (String routeId : mRoutes.keySet()) { in syncRoutesOnHandler()
541 MediaRoute2Info route = mRoutes.get(routeId); in syncRoutesOnHandler()
543 removedRoutes.add(mRoutes.get(routeId)); in syncRoutesOnHandler()
549 if (mRoutes.containsKey(route.getId())) { in syncRoutesOnHandler()
550 if (!route.equals(mRoutes.get(route.getId()))) { in syncRoutesOnHandler()
565 mRoutes.clear(); in syncRoutesOnHandler()
[all …]
DMediaRouter2Manager.java83 private final Map<String, MediaRoute2Info> mRoutes = new HashMap<>(); field in MediaRouter2Manager
198 for (MediaRoute2Info route : mRoutes.values()) { in getAvailableRoutesForRoutingSession()
306 routes.addAll(mRoutes.values()); in getAllRoutes()
344 if (!mRoutes.containsKey(route.getId())) { in transfer()
423 mRoutes.put(route.getId(), route); in addRoutesOnHandler()
434 mRoutes.remove(route.getId()); in removeRoutesOnHandler()
445 mRoutes.put(route.getId(), route); in changeRoutesOnHandler()
599 return sessionInfo.getSelectedRoutes().stream().map(mRoutes::get) in getSelectedRoutes()
617 .map(mRoutes::get) in getSelectableRoutes()
635 .map(mRoutes::get) in getDeselectableRoutes()
/frameworks/base/media/tests/MediaRouter/src/com/android/mediaroutertest/
DStubMediaRoute2ProviderService.java75 Map<String, MediaRoute2Info> mRoutes = new HashMap<>(); field in StubMediaRoute2ProviderService
126 mRoutes.put(route1.getId(), route1); in initializeRoutes()
127 mRoutes.put(route2.getId(), route2); in initializeRoutes()
128 mRoutes.put(route3.getId(), route3); in initializeRoutes()
129 mRoutes.put(route4.getId(), route4); in initializeRoutes()
130 mRoutes.put(route5.getId(), route5); in initializeRoutes()
131 mRoutes.put(route6.getId(), route6); in initializeRoutes()
133 mRoutes.put(routeSpecial.getId(), routeSpecial); in initializeRoutes()
134 mRoutes.put(fixedVolumeRoute.getId(), fixedVolumeRoute); in initializeRoutes()
135 mRoutes.put(variableVolumeRoute.getId(), variableVolumeRoute); in initializeRoutes()
[all …]
/frameworks/base/core/java/android/net/
DLinkProperties.java67 private ArrayList<RouteInfo> mRoutes = new ArrayList<>(); field in LinkProperties
193 mRoutes.addAll(source.mRoutes); in LinkProperties()
215 ArrayList<RouteInfo> newRoutes = new ArrayList<>(mRoutes.size()); in setInterfaceName()
216 for (RouteInfo route : mRoutes) { in setInterfaceName()
219 mRoutes = newRoutes; in setInterfaceName()
694 for (int i = 0; i < mRoutes.size(); i++) { in findRouteIndexByRouteKey()
695 if (mRoutes.get(i).getRouteKey().equals(route.getRouteKey())) { in findRouteIndexByRouteKey()
725 mRoutes.add(route); in addRoute()
727 } else if (mRoutes.get(i).equals(route)) { in addRoute()
732 mRoutes.set(i, route); in addRoute()
[all …]
DVpnService.java486 private final List<RouteInfo> mRoutes = new ArrayList<RouteInfo>(); field in VpnService.Builder
600 mRoutes.add(new RouteInfo(new IpPrefix(address, prefixLength), null)); in addRoute()
894 mConfig.routes = mRoutes; in establish()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DCastControllerImpl.java61 private final ArrayMap<String, RouteInfo> mRoutes = new ArrayMap<>(); field in CastControllerImpl
87 pw.print(" mRoutes.size="); pw.println(mRoutes.size()); in dump()
88 for (int i = 0; i < mRoutes.size(); i++) { in dump()
89 final RouteInfo route = mRoutes.valueAt(i); in dump()
156 synchronized(mRoutes) { in getCastDevices()
157 for (RouteInfo route : mRoutes.values()) { in getCastDevices()
259 synchronized(mRoutes) { in updateRemoteDisplays()
260 mRoutes.clear(); in updateRemoteDisplays()
267 mRoutes.put(route.getTag().toString(), route); in updateRemoteDisplays()
272 mRoutes.put(selected.getTag().toString(), selected); in updateRemoteDisplays()
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DPolicyAudioPort.h119 void addRoute(const sp<AudioRoute> &route) { mRoutes.add(route); } in addRoute()
120 const AudioRouteVector &getRoutes() const { return mRoutes; } in getRoutes()
129 AudioRouteVector mRoutes; // Routes involving this port variable
DHwModule.h125 AudioRouteVector mRoutes; variable
/frameworks/base/services/core/java/com/android/server/media/
DMediaRouterService.java1541 private final ArrayList<RouteRecord> mRoutes = new ArrayList<RouteRecord>(); field in MediaRouterService.UserHandler.ProviderRecord
1579 mRoutes.add(targetIndex++, route); in updateDescriptor()
1588 RouteRecord route = mRoutes.get(sourceIndex); in updateDescriptor()
1589 Collections.swap(mRoutes, sourceIndex, targetIndex++); in updateDescriptor()
1600 for (int i = mRoutes.size() - 1; i >= targetIndex; i--) { in updateDescriptor()
1601 RouteRecord route = mRoutes.remove(i); in updateDescriptor()
1610 final int routeCount = mRoutes.size(); in appendClientState()
1612 state.routes.add(mRoutes.get(i).getInfo()); in appendClientState()
1617 final int routeCount = mRoutes.size(); in findRouteByUniqueId()
1619 RouteRecord route = mRoutes.get(i); in findRouteByUniqueId()
[all …]
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DHwModule.cpp176 mRoutes = routes; in setRoutes()
232 for (const auto &route : mRoutes) { in supportsPatch()
261 dumpAudioRouteVector(mRoutes, dst, 2); in dump()