Searched refs:selectedRoute (Results 1 – 9 of 9) sorted by relevance
265 MediaRoute2Info selectedRoute = mControllerUnderTest.getSelectedRoute(); in updateVolume_propagatesCorrectlyToRouteInfo() local266 assertThat(selectedRoute.getType()).isEqualTo(MediaRoute2Info.TYPE_WIRED_HEADSET); in updateVolume_propagatesCorrectlyToRouteInfo()267 assertThat(selectedRoute.getVolume()).isEqualTo(2); in updateVolume_propagatesCorrectlyToRouteInfo()268 assertThat(selectedRoute.getVolumeMax()).isEqualTo(3); in updateVolume_propagatesCorrectlyToRouteInfo()269 assertThat(selectedRoute.getVolumeHandling()) in updateVolume_propagatesCorrectlyToRouteInfo()274 .filter(it -> !it.equals(selectedRoute)) in updateVolume_propagatesCorrectlyToRouteInfo()303 MediaRoute2Info selectedRoute = mControllerUnderTest.getSelectedRoute(); in getAvailableRoutes_whenNoProductNameIsProvided_usesTypeToPopulateName() local304 assertThat(selectedRoute.getName().toString()).isEqualTo(FAKE_ROUTE_NAME); in getAvailableRoutes_whenNoProductNameIsProvided_usesTypeToPopulateName()
398 MediaRoute2Info selectedRoute = selectedDeviceRoute; in updateSessionInfosIfNeeded() local403 selectedRoute = selectedBtRoute; in updateSessionInfosIfNeeded()406 mSelectedRouteId = selectedRoute.getId(); in updateSessionInfosIfNeeded()408 new MediaRoute2Info.Builder(MediaRoute2Info.ROUTE_ID_DEFAULT, selectedRoute) in updateSessionInfosIfNeeded()435 && containsSelectedRouteWithId(oldSessionInfo, selectedRoute.getId())) { in updateSessionInfosIfNeeded()444 mPendingTransferRequest.isTargetRoute(selectedRoute); in updateSessionInfosIfNeeded()
222 MediaRoute2Info selectedRoute = getSelectedRoute(); in getAllBluetoothRoutes() local223 if (selectedRoute != null) { in getAllBluetoothRoutes()224 routes.add(selectedRoute); in getAllBluetoothRoutes()225 routeIds.add(selectedRoute.getId()); in getAllBluetoothRoutes()
371 MediaRoute2Info selectedRoute = mRoutes.get(selectedRouteId); in onTransferToRoute() local372 if (selectedRoute != null) { in onTransferToRoute()373 mRoutes.put(selectedRouteId, new MediaRoute2Info.Builder(selectedRoute) in onTransferToRoute()
114 @Mock private lateinit var selectedRoute: MediaRoute2Info variable in com.android.systemui.media.controls.domain.pipeline.MediaDeviceManagerTest562 whenever(mr2.getSelectedRoutes(any())).thenReturn(listOf(selectedRoute)) in mr2ReturnsSystemRouteWithNullName_isPhone_usePhoneName()563 whenever(selectedRoute.name).thenReturn(REMOTE_DEVICE_NAME) in mr2ReturnsSystemRouteWithNullName_isPhone_usePhoneName()564 whenever(selectedRoute.type).thenReturn(MediaRoute2Info.TYPE_BUILTIN_SPEAKER) in mr2ReturnsSystemRouteWithNullName_isPhone_usePhoneName()581 whenever(mr2.getSelectedRoutes(any())).thenReturn(listOf(selectedRoute)) in mr2ReturnsSystemRouteWithNullName_useSelectedRouteName()582 whenever(selectedRoute.name).thenReturn(REMOTE_DEVICE_NAME) in mr2ReturnsSystemRouteWithNullName_useSelectedRouteName()
37 … session creation request and prevents it from early failing when the selectedRoute from the bluet…
811 for (MediaRoute2Info selectedRoute : selectedRoutes) { in arrangeRouteListByPreference()812 sortedRouteIds.add(selectedRoute.getId()); in arrangeRouteListByPreference()
1461 final RouteInfo selectedRoute = sStatic.mSelectedRoute; in systemVolumeChanged() local1462 if (selectedRoute == null) return; in systemVolumeChanged()1464 if (selectedRoute.isBluetooth() || selectedRoute.isDefault()) { in systemVolumeChanged()1465 dispatchRouteVolumeChanged(selectedRoute); in systemVolumeChanged()
1196 for (String selectedRoute : controller.getRoutingSessionInfo().getSelectedRoutes()) { in dispatchControllerUpdatedIfNeededOnHandler()1197 if (routesMap.containsKey(selectedRoute) in dispatchControllerUpdatedIfNeededOnHandler()1198 && mPreviousUnfilteredRoutes.containsKey(selectedRoute)) { in dispatchControllerUpdatedIfNeededOnHandler()1199 MediaRoute2Info currentRoute = routesMap.get(selectedRoute); in dispatchControllerUpdatedIfNeededOnHandler()1200 MediaRoute2Info oldRoute = mPreviousUnfilteredRoutes.get(selectedRoute); in dispatchControllerUpdatedIfNeededOnHandler()