Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/media/
DSystemMediaRoute2Provider.java95 public void dispatchAudioRoutesChanged(final AudioRoutesInfo newRoutes) {
97 updateDeviceRoute(newRoutes);
240 private void updateDeviceRoute(AudioRoutesInfo newRoutes) { in updateDeviceRoute() argument
243 if (newRoutes != null) { in updateDeviceRoute()
244 mCurAudioRoutesInfo.mainType = newRoutes.mainType; in updateDeviceRoute()
245 if ((newRoutes.mainType & AudioRoutesInfo.MAIN_HEADPHONES) != 0) { in updateDeviceRoute()
248 } else if ((newRoutes.mainType & AudioRoutesInfo.MAIN_HEADSET) != 0) { in updateDeviceRoute()
251 } else if ((newRoutes.mainType & AudioRoutesInfo.MAIN_DOCK_SPEAKERS) != 0) { in updateDeviceRoute()
254 } else if ((newRoutes.mainType & AudioRoutesInfo.MAIN_HDMI) != 0) { in updateDeviceRoute()
257 } else if ((newRoutes.mainType & AudioRoutesInfo.MAIN_USB) != 0) { in updateDeviceRoute()
DMediaRouterService.java184 public void dispatchAudioRoutesChanged(final AudioRoutesInfo newRoutes) { in MediaRouterService()
186 if (newRoutes.mainType != mAudioRouteMainType) { in MediaRouterService()
187 if ((newRoutes.mainType & (AudioRoutesInfo.MAIN_HEADSET in MediaRouterService()
191 mGlobalBluetoothA2dpOn = (newRoutes.bluetoothName != null in MediaRouterService()
197 mAudioRouteMainType = newRoutes.mainType; in MediaRouterService()
/frameworks/base/media/java/android/media/
DMediaRoute2ProviderInfo.java169 final ArrayMap<String, MediaRoute2Info> newRoutes = new ArrayMap<>(); in setUniqueId() local
174 newRoutes.put(routeWithProviderId.getOriginalId(), routeWithProviderId); in setUniqueId()
178 mRoutes.putAll(newRoutes); in setUniqueId()
DIAudioRoutesObserver.aidl26 void dispatchAudioRoutesChanged(in AudioRoutesInfo newRoutes); in dispatchAudioRoutesChanged() argument
DMediaRouter.java121 public void dispatchAudioRoutesChanged(final AudioRoutesInfo newRoutes) {
131 updateAudioRoutes(newRoutes);
209 void updateAudioRoutes(AudioRoutesInfo newRoutes) { in updateAudioRoutes() argument
213 if (newRoutes.mainType != mCurAudioRoutesInfo.mainType) { in updateAudioRoutes()
214 mCurAudioRoutesInfo.mainType = newRoutes.mainType; in updateAudioRoutes()
216 if ((newRoutes.mainType & AudioRoutesInfo.MAIN_HEADPHONES) != 0 in updateAudioRoutes()
217 || (newRoutes.mainType & AudioRoutesInfo.MAIN_HEADSET) != 0) { in updateAudioRoutes()
219 } else if ((newRoutes.mainType & AudioRoutesInfo.MAIN_DOCK_SPEAKERS) != 0) { in updateAudioRoutes()
221 } else if ((newRoutes.mainType&AudioRoutesInfo.MAIN_HDMI) != 0) { in updateAudioRoutes()
223 } else if ((newRoutes.mainType&AudioRoutesInfo.MAIN_USB) != 0) { in updateAudioRoutes()
[all …]
/frameworks/base/media/tests/MediaRouter/src/com/android/mediaroutertest/
DMediaRouter2ManagerTest.java251 Map<String, MediaRoute2Info> newRoutes = waitAndGetRoutesWithManager(FEATURES_ALL); in testGetRoutes_removedRoute_returnsCorrectRoutes() local
252 assertNull(newRoutes.get(ROUTE_ID2)); in testGetRoutes_removedRoute_returnsCorrectRoutes()
/frameworks/base/services/core/java/com/android/server/connectivity/
DVpn.java2503 final Collection<RouteInfo> newRoutes = VpnIkev2Utils.getRoutesFromTrafficSelectors(
2524 mConfig.routes.addAll(newRoutes);