Home
last modified time | relevance | path

Searched refs:selectedRoute (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/services/tests/media/mediarouterservicetest/src/com/android/server/media/
DAudioManagerRouteControllerTest.java265 MediaRoute2Info selectedRoute = mControllerUnderTest.getSelectedRoute(); in updateVolume_propagatesCorrectlyToRouteInfo() local
266 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() local
304 assertThat(selectedRoute.getName().toString()).isEqualTo(FAKE_ROUTE_NAME); in getAvailableRoutes_whenNoProductNameIsProvided_usesTypeToPopulateName()
/frameworks/base/services/core/java/com/android/server/media/
DSystemMediaRoute2Provider.java398 MediaRoute2Info selectedRoute = selectedDeviceRoute; in updateSessionInfosIfNeeded() local
403 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()
DLegacyBluetoothRouteController.java222 MediaRoute2Info selectedRoute = getSelectedRoute(); in getAllBluetoothRoutes() local
223 if (selectedRoute != null) { in getAllBluetoothRoutes()
224 routes.add(selectedRoute); in getAllBluetoothRoutes()
225 routeIds.add(selectedRoute.getId()); in getAllBluetoothRoutes()
/frameworks/base/media/tests/MediaRouter/src/com/android/mediaroutertest/
DStubMediaRoute2ProviderService.java371 MediaRoute2Info selectedRoute = mRoutes.get(selectedRouteId); in onTransferToRoute() local
372 if (selectedRoute != null) { in onTransferToRoute()
373 mRoutes.put(selectedRouteId, new MediaRoute2Info.Builder(selectedRoute) in onTransferToRoute()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/domain/pipeline/
DMediaDeviceManagerTest.kt114 @Mock private lateinit var selectedRoute: MediaRoute2Info variable in com.android.systemui.media.controls.domain.pipeline.MediaDeviceManagerTest
562 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()
/frameworks/base/media/java/android/media/flags/
Dmedia_better_together.aconfig37 … session creation request and prevents it from early failing when the selectedRoute from the bluet…
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
DInfoMediaManager.java811 for (MediaRoute2Info selectedRoute : selectedRoutes) { in arrangeRouteListByPreference()
812 sortedRouteIds.add(selectedRoute.getId()); in arrangeRouteListByPreference()
/frameworks/base/media/java/android/media/
DMediaRouter.java1461 final RouteInfo selectedRoute = sStatic.mSelectedRoute; in systemVolumeChanged() local
1462 if (selectedRoute == null) return; in systemVolumeChanged()
1464 if (selectedRoute.isBluetooth() || selectedRoute.isDefault()) { in systemVolumeChanged()
1465 dispatchRouteVolumeChanged(selectedRoute); in systemVolumeChanged()
DMediaRouter2.java1196 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()