Home
last modified time | relevance | path

Searched refs:newRoutes (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/services/core/java/com/android/server/media/
DLegacyDeviceRouteController.java149 private MediaRoute2Info createRouteFromAudioInfo(@Nullable AudioRoutesInfo newRoutes) { in createRouteFromAudioInfo() argument
153 if (newRoutes != null) { in createRouteFromAudioInfo()
154 if ((newRoutes.mainType & AudioRoutesInfo.MAIN_HEADPHONES) != 0) { in createRouteFromAudioInfo()
157 } else if ((newRoutes.mainType & AudioRoutesInfo.MAIN_HEADSET) != 0) { in createRouteFromAudioInfo()
160 } else if ((newRoutes.mainType & AudioRoutesInfo.MAIN_DOCK_SPEAKERS) != 0) { in createRouteFromAudioInfo()
163 } else if ((newRoutes.mainType & AudioRoutesInfo.MAIN_HDMI) != 0) { in createRouteFromAudioInfo()
166 } else if ((newRoutes.mainType & AudioRoutesInfo.MAIN_USB) != 0) { in createRouteFromAudioInfo()
DMediaRouterService.java2074 public void dispatchAudioRoutesChanged(final AudioRoutesInfo newRoutes) { in dispatchAudioRoutesChanged() argument
2076 if (newRoutes.mainType != mAudioRouteMainType) { in dispatchAudioRoutesChanged()
2077 if ((newRoutes.mainType & HEADSET_FLAGS) == 0) { in dispatchAudioRoutesChanged()
2080 newRoutes.bluetoothName != null || mActiveBluetoothDevice != null; in dispatchAudioRoutesChanged()
2085 mAudioRouteMainType = newRoutes.mainType; in dispatchAudioRoutesChanged()
DMediaRouter2ServiceImpl.java2566 Collection<MediaRoute2Info> newRoutes; in onProviderStateChangedOnHandler() local
2570 newRoutes = newInfo.getRoutes(); in onProviderStateChangedOnHandler()
2572 newRoutes.stream().map(MediaRoute2Info::getId).collect(Collectors.toSet()); in onProviderStateChangedOnHandler()
2582 newRoutes = Collections.emptySet(); in onProviderStateChangedOnHandler()
2588 for (MediaRoute2Info newRouteInfo : newRoutes) { in onProviderStateChangedOnHandler()
/frameworks/base/media/java/android/media/
DMediaRoute2ProviderInfo.java169 final ArrayMap<String, MediaRoute2Info> newRoutes = new ArrayMap<>(); in setUniqueId() local
175 newRoutes.put(routeWithProviderId.getOriginalId(), routeWithProviderId); in setUniqueId()
179 mRoutes.putAll(newRoutes); in setUniqueId()
DIAudioRoutesObserver.aidl26 void dispatchAudioRoutesChanged(in AudioRoutesInfo newRoutes); in dispatchAudioRoutesChanged() argument
DMediaRouter.java122 public void dispatchAudioRoutesChanged(final AudioRoutesInfo newRoutes) {
132 updateAudioRoutes(newRoutes);
211 void updateAudioRoutes(AudioRoutesInfo newRoutes) { in updateAudioRoutes() argument
215 if (newRoutes.mainType != mCurAudioRoutesInfo.mainType) { in updateAudioRoutes()
216 mCurAudioRoutesInfo.mainType = newRoutes.mainType; in updateAudioRoutes()
218 if ((newRoutes.mainType & AudioRoutesInfo.MAIN_HEADPHONES) != 0 in updateAudioRoutes()
219 || (newRoutes.mainType & AudioRoutesInfo.MAIN_HEADSET) != 0) { in updateAudioRoutes()
221 } else if ((newRoutes.mainType & AudioRoutesInfo.MAIN_DOCK_SPEAKERS) != 0) { in updateAudioRoutes()
223 } else if ((newRoutes.mainType&AudioRoutesInfo.MAIN_HDMI) != 0) { in updateAudioRoutes()
225 } else if ((newRoutes.mainType&AudioRoutesInfo.MAIN_USB) != 0) { in updateAudioRoutes()
[all …]
DMediaRouter2.java1142 void dispatchFilteredRoutesUpdatedOnHandler(List<MediaRoute2Info> newRoutes) { in dispatchFilteredRoutesUpdatedOnHandler() argument
1148 newRoutes.stream().map(MediaRoute2Info::getId).collect(Collectors.toSet()); in dispatchFilteredRoutesUpdatedOnHandler()
1150 for (MediaRoute2Info route : newRoutes) { in dispatchFilteredRoutesUpdatedOnHandler()
1188 notifyRoutesUpdated(newRoutes); in dispatchFilteredRoutesUpdatedOnHandler()
1213 void updateRoutesOnHandler(List<MediaRoute2Info> newRoutes) { in updateRoutesOnHandler() argument
1216 for (MediaRoute2Info route : newRoutes) { in updateRoutesOnHandler()
/frameworks/av/media/libaudiohal/tests/
DCoreAudioHalAidl_test.cpp262 std::vector<AudioRoute> newRoutes; in connectExternalDevice() local
265 newRoutes.push_back(AudioRoute{.sourcePortIds = r.sourcePortIds, in connectExternalDevice()
273 mConfig.routes.insert(mConfig.routes.end(), newRoutes.begin(), newRoutes.end()); in connectExternalDevice()
/frameworks/base/media/tests/MediaRouter/src/com/android/mediaroutertest/
DMediaRouter2ManagerTest.java297 Map<String, MediaRoute2Info> newRoutes = waitAndGetRoutesWithManager(FEATURES_ALL); in testGetRoutes_removedRoute_returnsCorrectRoutes() local
298 assertThat(newRoutes.get(ROUTE_ID2)).isNull(); in testGetRoutes_removedRoute_returnsCorrectRoutes()
/frameworks/base/services/core/java/com/android/server/connectivity/
DVpn.java2966 final Collection<RouteInfo> newRoutes = VpnIkev2Utils.getRoutesFromTrafficSelectors( in onChildOpened() local
2996 mConfig.routes.addAll(newRoutes); in onChildOpened()