Searched refs:newRoutes (Results 1 – 10 of 10) sorted by relevance
149 private MediaRoute2Info createRouteFromAudioInfo(@Nullable AudioRoutesInfo newRoutes) { in createRouteFromAudioInfo() argument153 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()
2074 public void dispatchAudioRoutesChanged(final AudioRoutesInfo newRoutes) { in dispatchAudioRoutesChanged() argument2076 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()
2566 Collection<MediaRoute2Info> newRoutes; in onProviderStateChangedOnHandler() local2570 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()
169 final ArrayMap<String, MediaRoute2Info> newRoutes = new ArrayMap<>(); in setUniqueId() local175 newRoutes.put(routeWithProviderId.getOriginalId(), routeWithProviderId); in setUniqueId()179 mRoutes.putAll(newRoutes); in setUniqueId()
26 void dispatchAudioRoutesChanged(in AudioRoutesInfo newRoutes); in dispatchAudioRoutesChanged() argument
122 public void dispatchAudioRoutesChanged(final AudioRoutesInfo newRoutes) {132 updateAudioRoutes(newRoutes);211 void updateAudioRoutes(AudioRoutesInfo newRoutes) { in updateAudioRoutes() argument215 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 …]
1142 void dispatchFilteredRoutesUpdatedOnHandler(List<MediaRoute2Info> newRoutes) { in dispatchFilteredRoutesUpdatedOnHandler() argument1148 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() argument1216 for (MediaRoute2Info route : newRoutes) { in updateRoutesOnHandler()
262 std::vector<AudioRoute> newRoutes; in connectExternalDevice() local265 newRoutes.push_back(AudioRoute{.sourcePortIds = r.sourcePortIds, in connectExternalDevice()273 mConfig.routes.insert(mConfig.routes.end(), newRoutes.begin(), newRoutes.end()); in connectExternalDevice()
297 Map<String, MediaRoute2Info> newRoutes = waitAndGetRoutesWithManager(FEATURES_ALL); in testGetRoutes_removedRoute_returnsCorrectRoutes() local298 assertThat(newRoutes.get(ROUTE_ID2)).isNull(); in testGetRoutes_removedRoute_returnsCorrectRoutes()
2966 final Collection<RouteInfo> newRoutes = VpnIkev2Utils.getRoutesFromTrafficSelectors( in onChildOpened() local2996 mConfig.routes.addAll(newRoutes); in onChildOpened()